DISCO Balances the Scales: Adaptive Domain- and Difficulty-Aware Reinforcement Learning on Imbalanced Data

Yuhang Zhou, Jing Zhu, Shengyi Qian, Zhuokai Zhao, Xiyao Wang, Xiaoyu Liu, Ming Li, Paiheng Xu, Wei Ai, Furong Huang

Abstract

Reinforcement Learning from Human Feedback (RLHF) has become the standard for aligning Large Language Models (LLMs) with human intent. However, popular methods like Group Relative Policy Optimization (GRPO) often struggle with imbalanced training data, where high-frequency domains dominate the optimization gradient at the expense of rare tasks. We introduce DISCO (Domain-Informed Self-Consistency Policy Optimization), a framework that adaptively scales rewards based on domain rarity and prompt difficulty. By addressing both inter-group and intra-group imbalances, DISCO prevents models from over-fitting to dominant topics and significantly boosts performance on underrepresented tasks without requiring additional neural networks or expensive data augmentation.

Introduction

In the pursuit of aligning LLMs, Group Relative Policy Optimization (GRPO) has emerged as a favorite due to its efficiency—it eliminates the need for a complex value function by calculating advantages relative to a group of sampled outputs. Despite its advantages, GRPO possesses a critical "blind spot": it assumes training data is uniformly distributed.

In practical applications, datasets are rarely balanced. A training set might contain thousands of mathematical problems but only a handful of logic puzzles. Because standard GRPO treats all prompt groups equally, the resulting optimization gradient is dominated by high-frequency domains. This "starvation" of rare domains leads to poor generalization and the amplification of existing data biases. DISCO was developed to mitigate these effects by rebalancing the learning signal through adaptive reward scaling.

The DISCO Framework

DISCO introduces two complementary strategies to ensure that every sample contributes meaningfully to the model's development, regardless of its frequency in the dataset.

1. Domain-Aware Reward Scaling

To address inter-group imbalance, DISCO assigns higher weights to prompts originating from underrepresented domains. The researchers evaluated several weighting functions, including Log, Log-Squared, and Inverse. The study concluded that a Log-scaled approach—defined as $w^{dom} = \log(1 + 1/p_d)$—provides the most effective balance. This logarithmic scaling offers a significant boost to rare domains while maintaining training stability by preventing the model from over-correcting for extreme outliers.

2. Difficulty-Aware Reward Scaling

To address intra-group variance, DISCO recognizes that not all prompts within a single domain are equally challenging. The framework utilizes Self-Consistency (SC)—the rate of agreement among the $G$ outputs generated for a single prompt—as a proxy for difficulty. If a model produces highly inconsistent answers for a specific prompt, that prompt is flagged as "uncertain" and upweighted. This ensures the model prioritizes learning from the samples it finds most difficult.

Crucially, because GRPO already requires sampling multiple outputs per prompt to calculate relative advantages, the data for difficulty-aware scaling is essentially "free." DISCO harvests this existing information without requiring additional compute cycles.

Experimental Setup

The efficacy of DISCO was tested across five diverse task domains:

  • Sentiment Analysis: IMDB text classification.
  • Mathematical Reasoning: GSM8K and MATH datasets.
  • Open-Domain QA: Natural Questions (NQ).
  • Science & Reasoning: ARC (AI2 Reasoning Challenge).

To simulate real-world skew, the researchers utilized "Heavy" training distributions where a single domain comprised 75% of the data. The framework was evaluated across a variety of model architectures, including the Qwen2.5 family (0.5B to 7B), LLaMA 3.2-1B, Olmo2-1B, and Gemma2-2B-it.

Key Insights

  • Synergistic Optimization: Ablation studies revealed that while domain scaling fixes global distribution and difficulty scaling addresses local challenges, they are most effective when used together. This combination provides a robust configuration that outperforms either method in isolation.
  • Logarithmic Stability: While simple inverse-frequency weighting might seem intuitive, it often proves too aggressive for RL environments. Logarithmic scaling provides "diminishing returns" on upweighting, which preserves the stability of the policy updates.
  • Efficiency: DISCO integrates weights directly into the reward signal before the advantage calculation. This architectural choice means it can be implemented on top of existing GRPO pipelines with negligible overhead.

Results and Performance

DISCO consistently outperformed Naive GRPO and other specialized variants like Dr. GRPO across nearly all tested models. Notable performance gains include:

  • General Improvement: On the Qwen3-0.6B model, DISCO achieved a 4.4% increase in average accuracy over Naive GRPO.
  • Tail-End Recovery: In highly skewed scenarios, such as the "NQ-heavy" setup, the model's performance on the minority IMDB domain jumped from a baseline of 57.9% to 82.6%.
  • Robustness: The benefits of the framework remained consistent across different group sizes ($G=2$ to $G=16$) and even when the total training volume was reduced to 2,000 examples.

Limitations and Future Directions

While DISCO represents a significant step forward in training on imbalanced data, several areas remain for future exploration:

  • Reward Type: The current study focused on rule-based, deterministic rewards (e.g., Exact Match). Future research is needed to determine how DISCO performs with "fuzzy" or learned reward models used in creative writing or chat applications.
  • Label Dependency: The method currently assumes the availability of domain labels. In wild datasets where labels are missing or overlapping, an automated domain-clustering step may be required.
  • Hyperparameter Tuning: Further investigation is needed to map the interactions between DISCO's reward scaling and other RLHF hyperparameters, such as the KL-divergence coefficient.

Summary updated

BibTeX
@inproceedings{zhou2025disco,
  author = {Yuhang Zhou and Jing Zhu and Shengyi Qian and Zhuokai Zhao and Xiyao Wang and Xiaoyu Liu and Ming Li and Paiheng Xu and Wei Ai and Furong Huang},
  title = {{DISCO Balances the Scales: Adaptive Domain- and Difficulty-Aware Reinforcement Learning on Imbalanced Data}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=zP5v4RzNBN},
}
Figure