[Paper Review] Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalization
This paper proposes Hard Sample-Reweighted Continual Training via Instance-Reweighted Distributionally Robust Optimization (IR-DRO), which improves LLM generalization by dynamically reweighting moderately high-loss samples—deemed informative—during continual pre-training and instruction tuning. The method achieves state-of-the-art performance gains across multiple benchmarks with minimal computational overhead, outperforming uniform and extreme loss-based sampling strategies.
In the rapidly advancing arena of large language models (LLMs), a key challenge is to enhance their capabilities amid a looming shortage of high-quality training data. Our study starts from an empirical strategy for the light continual training of LLMs using their original pre-training data sets, with a specific focus on selective retention of samples that incur moderately high losses. These samples are deemed informative and beneficial for model refinement, contrasting with the highest-loss samples, which would be discarded due to their correlation with data noise and complexity. We then formalize this strategy into a principled framework of Instance-Reweighted Distributionally Robust Optimization (IR-DRO). IR-DRO is designed to dynamically prioritize the training focus on informative samples through an instance reweighting mechanism, streamlined by a closed-form solution for straightforward integration into established training protocols. Through rigorous experimentation with various models and datasets, our findings indicate that our sample-targeted methods significantly improve LLM performance across multiple benchmarks, in both continual pre-training and instruction tuning scenarios. Our codes are available at https://github.com/VITA-Group/HardFocusTraining.
Motivation & Objective
- To address the challenge of improving LLM performance with limited high-quality training data by leveraging existing pre-training datasets through continual training.
- To identify and prioritize informative samples—specifically those with moderately high loss—over those with the highest losses, which are often noisy or complex.
- To develop a principled, hyperparameter-free optimization framework that automatically reweights samples based on their informativeness for continual training.
- To enable seamless integration of the method into existing LLM training pipelines via a closed-form solution.
- To validate the effectiveness of the approach across diverse models (e.g., OPT, LLaMA, Sheared-LLaMA) and training scenarios, including continual pre-training and instruction tuning.
Proposed method
- The method introduces IR-DRO, a distributionally robust optimization framework that reweights individual training instances based on their loss values to prioritize informative samples.
- It formulates instance reweighting as a closed-form optimization problem, enabling efficient and plug-and-play integration into standard LLM training protocols.
- The approach avoids high-loss samples (associated with noise or complexity) and low-loss samples (already well-learned), focusing instead on moderately high-loss instances as informative.
- IR-DRO dynamically adjusts sample weights during training to emphasize samples that contribute most to model generalization.
- The method is evaluated in both continual pre-training and instruction tuning settings, demonstrating robustness across model architectures and datasets.
- Ablation studies confirm the superiority of IR-DRO over uniform, high-loss, and low-loss sampling baselines.

Experimental results
Research questions
- RQ1Can selectively reweighting moderately high-loss samples improve LLM generalization during continual training without additional data?
- RQ2How does IR-DRO compare to uniform sampling and extreme loss-based sampling strategies in terms of performance and robustness?
- RQ3Does the proposed method generalize across different LLM architectures and training scenarios, such as continual pre-training and instruction tuning?
- RQ4What hyperparameter settings (e.g., learning rate, training steps) yield optimal performance across diverse benchmarks?
- RQ5Can the closed-form solution of IR-DRO be effectively integrated into existing training pipelines without significant engineering overhead?
Key findings
- IR-DRO outperforms uniform sampling and extreme loss-based sampling on all evaluated benchmarks, including MMLU, HellaSwag, and WinoGrande.
- On LLaMA-v2-7b fine-tuned with Alpaca and Open-Platypus, IR-DRO achieved an average score of 63.29, surpassing the uniform baseline (63.20) and other sampling strategies.
- In instruction tuning, IR-DRO achieved a 45.08 score on MMLU* with Open-Platypus, significantly outperforming the low-ranking baseline (32.03) and high-ranking baseline (34.01).
- The method achieved optimal performance on BoolQ after 500 training batches and on WinoGrande after only 100 batches, indicating benchmark-specific optimal training durations.
- Ablation studies show that higher learning rates favor BoolQ, while lower rates are better for other benchmarks, suggesting sensitivity to hyperparameters that IR-DRO mitigates through automatic reweighting.
- The distribution of IR-DRO coefficients shows significant variability, confirming that the method avoids uniform weighting and effectively prioritizes informative samples.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.