Abstract
Aligning Large Language Models (LLMs) typically relies on Reinforcement Learning from Human Feedback (RLHF), a process requiring massive amounts of human preference data that is often expensive, noisy, and privacy-sensitive. We present InverseRLignment, a framework that aligns models using only high-quality demonstrations by framing the problem as Inverse Reinforcement Learning (IRL). By shifting from the standard "mass-covering" objective of Supervised Fine-Tuning (SFT) to a "mode-seeking" objective, InverseRLignment allows models to not only mimic experts but actually surpass them in performance.
The Challenge of Preference-Based Alignment
The current gold standard for LLM alignment, RLHF, is a logistical challenge. It requires thousands of human-annotated preference pairs (e.g., "Response A is better than Response B"). While effective, this dependency creates a bottleneck for scaling and specialized domains.
Conversely, Supervised Fine-Tuning (SFT) uses high-quality demonstrations but is fundamentally limited to mimicry. SFT attempts to cover the entire distribution of expert data, meaning it inherits the expert's average performance rather than its best behavior. InverseRLignment addresses a pivotal question: Can we align LLMs using only demonstrations while achieving the "super-demonstration" performance usually reserved for RLHF?
Methodology: From Mimicry to Mastery
The authors formalize LLM alignment within a sequential decision-making framework (Markov Decision Process). They identify a critical theoretical distinction between SFT and Alignment from Demonstrations (AfD):
- SFT (Forward KL Divergence): Leads to "mass-covering" behavior, where the model tries to match the expert's distribution on average.
- AfD via IRL (Reverse KL Divergence): Leads to "mode-seeking" behavior, where the model identifies and adheres to the highest-quality responses (the "modes") within the expert data.
To implement this without the instability of traditional adversarial training (like GANs), the researchers propose a reward modeling strategy called Init-SFT RM. Traditional discriminators often fail because they learn to spot superficial stylistic differences between models (the "Heterogeneity Trap"). By training a reward model to distinguish between the initial model ($\pi_0$) and its SFT-tuned version ($\pi_{SFT}$), the reward model is forced to focus on the actual quality improvements gained during alignment.
Key Insights and Ideas
- The Heterogeneity Trap: If a discriminator compares a small model to a much larger expert (like GPT-4), it often learns to identify vocabulary or formatting quirks rather than logical quality. Comparing a model to its own SFT-tuned version mitigates this.
- Extrapolating Quality: By learning a reward signal from demonstrations and using techniques like Best-of-N (BoN) sampling, a model can extrapolate beyond the expert data to achieve "super-demonstration" performance.
Experimental Results
The approach was evaluated on the Anthropic HH-RLHF dataset, focusing on "Harmless" and "Helpful" tasks. High-quality demonstrations were generated using GPT-4.
Key findings include:
- Outperforming the Expert: In the "Harmless" task, the InverseRLignment approach (using BoN) exceeded the reward scores of the GPT-4 demonstrator.
- Matching RLHF: The Init-SFT RM achieved win rates against SFT that were comparable to reward models trained on actual human preference labels.
- Efficiency: The method avoids the massive compute costs and instability associated with Proximal Policy Optimization (PPO) by using closed-form solutions or simple discriminators.
Limitations and Future Work
While promising, the authors note that "Best-of-N" sampling increases computational costs at inference time. Additionally, while the results are robust for models up to 2B parameters, further research is needed to confirm if these scaling laws hold for 70B+ parameter models. Finally, like all reward-based systems, the risk of "reward hacking" remains, suggesting that future work should explore ensemble methods to stabilize the reward signal.
Summary updated