IDEAL: Data Equilibrium Adaptation for Multi-Capability Language Model Alignment

Chenlin Ming, Chendi Qu, Qizhi Pei, Zhuoshi Pan, Yu Li, Xiaoming Duan, Lijun Wu, Conghui He

TL;DR

IDEAL is a new framework that uses gradient-based optimization to automatically find the perfect "recipe" for mixing different types of training data (like math, code, and reasoning) during Large Language Model (LLM) fine-tuning. By dynamically adjusting data volumes based on model performance, it achieves a ~7% performance boost over standard uniform mixing and successfully resolves "data conflicts" where learning one skill might otherwise degrade another.

What Problem Does This Paper Address?

When we fine-tune LLMs, we usually want them to be "generalists"—highly capable at math, coding, following instructions, and logical reasoning all at once. To achieve this, researchers perform Supervised Fine-Tuning (SFT) on a mixture of datasets from these diverse domains.

However, there is a hidden trap: data interference. Naively merging datasets often leads to worse performance than training on a single task alone. For example, a model might get better at writing Python code but lose its ability to write creative stories or follow open-ended instructions. This is often because the proportions of the data mixture are unbalanced. Traditionally, engineers have tuned these ratios using "gut feeling" or expensive trial-and-error hyperparameter sweeps.

Conceptual illustration of IDEAL optimizing data proportions to minimize loss.

The authors of this paper argue that we lack a principled, automated way to determine exactly how much data from each domain a model needs to reach its full potential across all capabilities.

Methods: The IDEAL Framework

The authors introduce IDEAL (Data Equilibrium Adaptation), a framework that treats data mixture proportions as a rigorous optimization problem rather than a guessing game.

  1. Bi-level Optimization: IDEAL views the training process as two nested loops. The inner loop trains the model on a specific data mixture, while the outer loop adjusts the mixture ratios to minimize loss on a small, high-quality reference dataset.
  2. Gradient-Guided Updates: Instead of random adjustments, IDEAL calculates how a small change in the volume of a specific domain (e.g., "Reasoning data") would impact the model's overall performance. It uses second-order information (the Hessian matrix) to find the best direction to adjust these volumes.
  3. Making it Scalable (K-FAC): Calculating a full Hessian for an 8B or 70B parameter model is computationally impossible. IDEAL uses Kronecker-factored Approximate Curvature (K-FAC) and block-diagonal approximations to make these calculations efficient enough to run on modern hardware.
  4. Iterative Refinement: The process is iterative. The model trains for an epoch, IDEAL calculates the new optimal ratios, the training set is upsampled or downsampled accordingly, and the process repeats.

Datasets and Evaluation

The researchers evaluated IDEAL across four primary domains using well-known benchmarks:

  • Reasoning: BigBench Hard (BBH) and ARC-C.
  • Mathematics: GSM8K and MATH.
  • Coding: HumanEval and MBPP.
  • Instruction-following: IFEval.
  • Trustworthiness: TruthfulQA (referred to as TrustAI).

They used a variety of source datasets to build their training mixtures and a tiny, independent reference dataset (just 500 samples) to guide the optimization process.

Key Insights and Ideas

  • Quantity is a Lever, Not Just Quality: While most research focuses on selecting the best data points, IDEAL shows that simply adjusting the volume of existing data can significantly move the needle on performance.
  • Data Symbiosis vs. Conflict: The paper highlights that some domains are "team players." For instance, reasoning data often helps improve performance in math and instruction-following. Conversely, coding data can be "selfish"—specializing too heavily in code formats can sometimes hurt a model's ability to handle natural text dialogue.
  • Equilibrium is Moving: The "optimal" mixture isn't static. As a model learns, the amount of data it needs from a specific domain to continue improving changes. IDEAL’s iterative nature allows it to adapt to these evolving training dynamics.
  • More Data Isn't Always Better: In their analysis, they found that simply increasing the total amount of data didn't necessarily beat a well-balanced smaller dataset. The distribution is often more important than the raw count.

Key Results

IDEAL demonstrated strong empirical success across multiple model families and sizes, including Llama 3.1 (1B, 8B, and 70B) and Qwen 2.5 (7B).

Benchmark results comparing IDEAL against baselines like DoReMi and DOGE across multiple capabilities.
  • 7% Average Boost: On multiple benchmarks, IDEAL outperformed uniform data blending by an average of approximately 7% in multi-task evaluation scores.
  • Superior to Baselines: IDEAL consistently outperformed other automated data-weighting methods like DoReMi and DOGE, particularly in resolving conflicts between coding and general instruction-following tasks.
  • Efficiency: IDEAL often surpassed specialized single-task baselines after just two iterations of mixture adjustment.

Limitations and Future Work

  • Reference Set Sensitivity: The entire optimization process relies on the quality and representativeness of the small reference dataset. If the reference set is biased, the resulting data mixture will be too.
  • Computational Overhead: While K-FAC makes it possible, IDEAL still requires multiple training iterations and gradient calculations, making it more expensive than a single "naive" training run.
  • Scope: The paper focuses on Supervised Fine-Tuning (SFT). Future work could explore whether this "equilibrium adaptation" can be applied to the much larger scale of pre-training or the complexities of Reinforcement Learning from Human Feedback (RLHF).

Summary updated

BibTeX
@inproceedings{ming2026ideal,
  author = {Chenlin Ming and Chendi Qu and Qizhi Pei and Zhuoshi Pan and Yu Li and Xiaoming Duan and Lijun Wu and Conghui He},
  title = {{IDEAL: Data Equilibrium Adaptation for Multi-Capability Language Model Alignment}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=n9wS0Hdvri},
}
Figure