Abstract
Standard Supervised Fine-Tuning (SFT) relies heavily on Cross-Entropy (CE) loss, which severely reduces a language model's output diversity and causes it to forget pre-trained knowledge. This paper introduces GEM (Game-theoretic Entropy Maximization), a novel training algorithm that preserves diversity by acting as an entropy-regularized distribution matcher. GEM matches standard SFT performance while significantly boosting test-time scaling results and reducing "alignment tax" (forgetting) by 80%, all without adding computational overhead.
The Problem: Cross-Entropy and Distribution Collapse
When fine-tuning pre-trained Large Language Models (LLMs) to follow instructions, Cross-Entropy (CE) loss is the nearly universal standard. CE works by maximizing the likelihood of the exact words in the training data. However, language is inherently open-ended; there are many valid ways to answer a given prompt.
CE ignores these alternatives. It forces the model to push the probability of the target token toward 100%, aggressively squashing the probabilities of all other plausible tokens. This "all-to-one" update destroys the rich, diverse distributions the model learned during pre-training, leading to distribution collapse.
This loss of diversity is a massive bottleneck for modern LLM pipelines. Post-training techniques like Reinforcement Learning from Human Feedback (RLHF), synthetic data generation, and test-time compute scaling (like Best-of-N sampling) all rely heavily on the model's ability to generate a diverse set of high-quality responses to explore and find the best answer. Furthermore, squashing alternative probabilities causes the model to overwrite its internal representations, leading to "knowledge forgetting" or an "alignment tax."
The Solution: Game-Theoretic Entropy Maximization (GEM)
To fix the flaws of CE, the authors reframe SFT as a distribution matching problem and introduce a game-theoretic framework called GEM.
Instead of CE's unbounded, dense updates, GEM introduces an auxiliary variable (a "meta-controller") to govern how probability mass is transferred between tokens. This controller introduces two crucial mechanisms:
- Sparse Updates: Instead of penalizing every non-target token, GEM primarily penalizes the model's most confident incorrect predictions. It leaves the long tail of plausible alternative tokens alone.
- Adaptive Termination: CE will keep updating until the target token's probability is 1.0. GEM stops the probability transfer as soon as the target token becomes the most probable token (the argmax). Once the model knows the right answer for greedy decoding, it stops destroying the rest of the distribution.
Mathematically, this game-theoretic setup is equivalent to minimizing the reverse KL divergence with maximum entropy regularization. Practically, the auxiliary variable has a closed-form solution. This means GEM doesn't require training a separate discriminator network and runs with the exact same memory and compute efficiency as standard CE loss.
Experimental Setup
The researchers evaluated GEM across several dimensions:
- Training Data: UltraFeedback (a high-quality instruction tuning dataset).
- Evaluation Tasks:
- Chat: AlpacaEval (using GPT-4 and a reward model as judges).
- Code Generation: HumanEval.
- Math Reasoning: GSM8K.
- Knowledge Retention: OpenLLM Leaderboard tasks (ARC, GSM8K, HellaSwag, MMLU, TruthfulQA, WinoGrande) to measure catastrophic forgetting.
Key Findings and Results
The authors tested GEM on models ranging from 3B to 70B parameters (including Llama-3.1, Qwen-2.5, and Gemma-2), revealing several major advantages over traditional CE:
- Massive Boost in Test-Time Scaling: Because GEM preserves diversity (achieving a generative entropy of 0.76 vs CE's 0.42), it excels at Best-of-N sampling. On Llama-3.1-8B, GEM beat CE by 3.1 points in AlpacaEval chat win-rate and 7 points (a 9.3% relative increase) in HumanEval pass rate.
- Higher Efficiency: To match the peak performance of a CE-trained model, GEM often required only half the sampling budget during inference.
- Drastic Reduction in Alignment Tax: The authors found a fascinating correlation: explicitly preserving output diversity naturally mitigates catastrophic forgetting. Across six OpenLLM leaderboard tasks, standard SFT caused a 1.5-point performance drop (forgetting pre-trained knowledge). GEM suffered only a 0.3-point drop—an 80% reduction in alignment tax.
Limitations and Future Directions
While highly effective, the theoretical analysis of GEM relies on the entropy regularization parameter ($\beta$) being greater than zero. When $eta = 0$, the equilibrium point isn't uniquely tractable, introducing mathematical complexities left for future work. Additionally, the paper focuses strictly on the SFT stage rather than end-to-end RLHF pipelines.
Looking forward, the authors suggest GEM's high-diversity outputs could provide vastly superior "cold starts" for online RL training. Future work will explore using GEM to prevent preference collapse in RLHF, generate richer synthetic data for self-improvement loops, and mitigate mode collapse when models are iteratively trained on their own outputs.
Summary updated