Reproduce “LongWanjuan: Towards Systematic Measurement for Long Text Quality” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Kai Lv, Xiaoran Liu, Qipeng Guo, Hang Yan, Conghui He, Xipeng Qiu, Dahua Lin

Researchers from Fudan University and Shanghai AI Laboratory developed a systematic framework for measuring long text quality based on linguistic dimensions and introduced LongWanjuan, a 160.6 billion token bilingual dataset. Applying a targeted data mixture strategy, models fine-tuned on LongWanjuan achieved state-of-the-art results on long-context benchmarks, improving InternLM2-7B's performance on LongBench by 13.07% while preserving short-text capabilities.

Key insights

  • A linguistically grounded framework focusing on coherence, cohesion, and complexity provides a principled method for analyzing long text quality.
  • Quantitative metrics, derived from both statistical properties and pre-trained language model predictions, can effectively classify and score long texts by quality.
  • Differentiating long texts into 'holistic,' 'aggregated,' and 'chaotic' categories allows for more nuanced and effective data curation strategies.
  • Removing low-quality (chaotic) long texts and upsampling specific high-quality types (aggregated) in the training data significantly improves LLM capabilities for long-context tasks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.