Introduction
Aligning Large Language Models (LLMs) with human preferences is a critical step in making them useful and safe. While Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) have become standard, they suffer from significant drawbacks: high memory overhead due to reference models, a tendency towards excessive verbosity (the "verbosity trap"), and unstable training dynamics where model confidence can paradoxically decrease. We present Length-Controlled Margin-Based Preference Optimization (LMPO), a reference-free alignment method designed to address these challenges simultaneously.
Addressing the Verbosity Trap and Memory Constraints
Current alignment methods often inadvertently reward longer responses, as benchmarks like AlpacaEval and Arena-Hard can be biased toward wordier outputs. Furthermore, DPO requires maintaining a static reference model in memory, doubling the VRAM requirements and limiting the scale of models that can be aligned on consumer-grade or mid-range hardware.
LMPO eliminates the reference model entirely, drawing inspiration from methods like SimPO but introducing a more robust length-control mechanism. By using average log-probability per token rather than total sequence probability, LMPO prevents the model from "gaming" the objective by simply adding more tokens.
The LMPO Method
LMPO introduces several key innovations to the preference optimization pipeline:
- Reference-Free Architecture: By removing the need for a reference model, LMPO reduces GPU memory usage by approximately 10%, facilitating the training of larger models like Mistral-7B or Llama-3-8B on more constrained hardware.
- Length-Controlled Margin Loss: The core of LMPO is a novel loss function that incorporates a margin between preferred and rejected responses. It utilizes a "power of 5" formulation—inspired by neural machine translation—to sharpen the distinction between high-quality and low-quality outputs.
- Dual Normalization: To ensure stable convergence, LMPO applies both Average Length Normalization (to penalize verbosity) and Z-score Normalization (to stabilize loss values).
- Confidence Preservation: Unlike DPO, which can lead to probability degradation for both chosen and rejected samples, LMPO includes a constraint term that maintains the model's confidence in preferred answers.
Experimental Results
We evaluated LMPO using the UltraFeedback dataset for training and tested it against major benchmarks including AlpacaEval 2 and Arena-Hard v0.1.
As shown in the results table, LMPO consistently outperforms existing methods. On the Arena-Hard benchmark, LMPO achieved a state-of-the-art 34.3% win rate for Llama-3-8B-Instruct, while maintaining a significantly lower average token count (477 tokens) compared to SimPO (502 tokens) and DPO (528 tokens). This demonstrates that LMPO successfully optimizes for quality and conciseness simultaneously.
Furthermore, LMPO maintains strong performance on downstream reasoning and knowledge tasks, ranking highly on the Hugging Face Open LLM Leaderboard. This suggests that the alignment process does not come at the cost of the model's underlying capabilities.
Conclusion and Future Work
LMPO represents a significant step forward in efficient and effective LLM alignment. By removing the reference model and explicitly controlling for response length, it provides a more stable and resource-efficient path to high-performing models. Future work will focus on refining the method for specialized domains like mathematical reasoning, where the current general-purpose margins may require further tuning.
The code and models are available at https://github.com/gengxuli/LMPO.
Summary updated