LM-mixup: Text Data Augmentation via Language Model based Mixup

Zhijie Deng, Zhouan Shen, Ling Li, Yao Zhou, Zhaowei Zhu, Yanji He, Wei Wang, Jiaheng Wei

TL;DR

Instead of discarding low-quality or redundant text data during Large Language Model (LLM) alignment, why not blend them into high-quality training examples? This paper introduces Instruction Distillation and LM-Mixup, a reinforcement learning framework that fuses multiple imperfect text inputs into dense, high-quality instruction-output pairs. Fine-tuning models on just 3% of this distilled data beats training on the entire uncurated dataset and competes directly with state-of-the-art data selection methods.

What Problem Does This Paper Address?

Instruction tuning is essential for aligning LLMs to follow human prompts, but the process is highly sensitive to data quality. The current paradigm favors "better data over more data," leading researchers to filter out and discard massive amounts of low-quality, repetitive, or noisy text.

However, throwing away this data results in substantial information loss, especially in specialized or low-resource domains where data is already scarce. Existing text augmentation techniques (like paraphrasing or back-translation) only increase surface-level diversity without fixing underlying quality issues like a lack of depth, typos, or unclear intent. The authors tackle a compelling question: Can we exploit low-quality data by transforming it into a high-quality resource?

The goal of Instruction Distillation: fusing fragmented, low-quality inputs into a single high-quality, context-rich sample.

Methods

The authors formally define this task as Instruction Distillation: taking a cluster of sparse, incomplete, or redundant inputs and rewriting them into a single, information-dense target. To achieve this, they propose LM-Mixup, which utilizes a two-stage training pipeline:

  1. Cold-Start Pretraining: The model undergoes standard supervised fine-tuning (SFT) on a subset of data to establish a baseline ability to aggregate text.
  2. Reinforcement Learning via GRPO: The model is optimized using Group Relative Policy Optimization (GRPO), which eliminates the need for a separate critic model by using group-wise statistics. Unlike SFT, which forces the model to mimic a single reference answer, RL allows the model to explore diverse, valid strategies for synthesizing text.

The policy is guided by a multi-dimensional reward function combining three distinct signals:

  • Quality Reward ($R_q$): Uses a novel KNN-Bayes scoring scheme that evaluates nearest neighbors in a pre-rated reference set to efficiently approximate and denoise LLM-as-a-judge ratings.
  • Semantic Alignment Reward ($R_a$): Measures SentenceBERT embedding cosine similarity to ensure the output stays faithful to the source text.
  • Format Compliance Reward ($R_f$): Enforces a structured reasoning format (<think>...</think><answer>...</answer>) via regular expressions.

To apply this to raw downstream datasets, they introduce Capacity-Constrained Clustering, an automated method to group raw text into balanced, same-topic clusters ready for distillation.

Figure 3: Overview of the training pipeline. The process involves cold-start pretraining on a subset of MIXTURE, followed by policy optimization using multi-dimensional rewards.

Datasets

The authors introduced and evaluated their method using the following datasets:

  • MIXTURE: A newly constructed dataset containing 144,884 samples across five task types (QA pairs, True/False, Paragraph, Multiple-Choice, and Category-Statement). Grounded in Wikipedia articles, it pairs clusters of synthetically degraded, noisy, or cross-topic low-quality variants with a single high-quality distillation.
  • Out-of-Domain (OOD) Data Pool: To evaluate generalization, they compiled a 300K sample pool from open datasets (Flan V2, Open-Assistant 1, WizardLM, Dolly, and Stanford Alpaca) and isolated the low-quality subsets for distillation.
Figure 2: Overview of the MIXTURE construction pipeline. The process consists of two stages: (1) Raw data collection from Wikipedia, including segmentation and prompt-based generation of five task types; (2) High- and low-quality data construction via LLM-based scoring, multi-variant degradation, cross-topic fusion, and noisy injection, producing the final dataset for training.

Key Insights and Ideas

  • SFT Memorizes, RL Generalizes: Standard SFT forces a model to copy a single canonical answer, which restricts its ability to learn complex data-refinement strategies. RL with GRPO allows the model to discover multiple valid ways to synthesize and denoise text.
  • Low-Quality Data is a Misunderstood Resource: Low-quality data isn't inherently useless; it is often just poorly formatted or fragmented. When clustered and distilled, the collective information content can match or exceed curated high-quality datasets.
  • Denoising the Judge: LLM-as-a-judge ratings are notoriously noisy and biased. The authors' KNN-Bayes scoring method acts as a statistical filter, smoothing out these fluctuations during RL training to provide a more stable reward signal.

Key Results

  • Beating the Full Dataset with 3% Data: Training a downstream LLaMA-3.1-8B model on a 10K subset consisting of 50% original high-quality data and 50% LM-Mixup distilled data outperformed training on the entire 300K data pool across five standard benchmarks (MMLU, TruthfulQA, GSM, BBH, TydiQA).
  • Outperforming SOTA Selection: This compact 10K dataset achieved an average score of 61.5 on the OpenLLM leaderboard, outperforming top-tier data selection frameworks like DS2 (61.4), DEITA (59.7), and LESS (58.0).
  • Robustness to Noise: Applying LM-Mixup to low-quality data consistently boosted performance across all mixture ratios, proving that text-level "mixup" acts as a powerful regularizer for instruction tuning.

Limitations and Future Work

  • Synthetic vs. Real Low-Quality Data: The training dataset (MIXTURE) relies on synthetically degraded variants generated by GPT-4o-mini. While the authors demonstrate that its statistical properties align well with real-world low-quality data (like Reddit or Yahoo Answers), real-world noise can be more unpredictable.
  • LLM Rating Bias: Although the KNN-Bayes approach mitigates rating noise, the pipeline still fundamentally relies on an LLM (ChatGPT-4o-mini) for initial quality annotations. The authors suggest future work explore multi-judge ensembling or human-in-the-loop spot checks to further eliminate bias.

Summary updated

BibTeX
@inproceedings{deng2026lm,
  author = {Zhijie Deng and Zhouan Shen and Ling Li and Yao Zhou and Zhaowei Zhu and Yanji He and Wei Wang and Jiaheng Wei},
  title = {{LM-mixup: Text Data Augmentation via Language Model based Mixup}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=r8HaixF48z},
}
Figure