REFA: Reference Free Alignment for multi-preference optimization

Taneesh Gupta, Rahul Madhavan, Xuchao Zhang, Chetan Bansal, Saravan Rajmohan · DOI

Abstract

Large Language Model (LLM) alignment often struggles with "reward hacking," where models exploit length-based metrics. This paper introduces REFA (Reference-Free Alignment), a framework designed to mitigate the URSLA shortcut (Uncertainty Reduction with Sequence Length Assertion). By employing a novel EOS-token regularizer and a dynamic group-contrastive loss, REFA provides precise control over response length while achieving state-of-the-art performance on major benchmarks without the need for a frozen reference model.

Introduction: The URSLA Shortcut

Aligning LLMs with human preferences typically involves balancing quality and verbosity. While length normalization (used in methods like SimPO) prevents models from being overly wordy, it introduces a new failure mode: the URSLA shortcut. As shown in Figure 1, per-token uncertainty (log-perplexity) naturally decreases as a sequence grows longer. Models can "cheat" the alignment objective by prematurely ending low-quality responses with an early End-of-Sequence (EOS) token, making them appear mathematically worse without improving the actual content.

Average Log-Perplexity vs. Sequence Length for Mistral-Base (7B) and Llama3-Base (8B), illustrating the URSLA conjecture.

Methodology

REFA addresses these issues through two primary innovations:

  1. REFA-Dynamic Loss: A reference-free, group-contrastive objective that compares sets of preferred and rejected responses. This approach eliminates the memory overhead of a reference model while effectively separating high-quality and low-quality outputs.
  2. EOS Probability Regularization: REFA intervenes at the token level by regularizing the EOS token.
  3. Targeted Regularizer: Penalizes early termination of rejected responses relative to preferred ones, closing the URSLA loophole.
  4. Budgeted Regularizer: Allows developers to enforce specific token budgets, balancing alignment quality with inference costs.

Experimental Results

The framework was evaluated using Mistral-7B and Llama-3-8B across standard benchmarks: AlpacaEval 2, Arena-Hard, and MT-Bench.

State-of-the-Art Performance

REFA consistently outperforms strong baselines such as DPO, SimPO, and SPPO. In iterative training scenarios, REFA shows superior scaling. For instance, on AlpacaEval 2 with Llama-3-8B-Instruct, REFA achieved a 60.29% win rate by the third iteration, significantly higher than SPPO's 39.85%.

Comparison of REFA and SPPO across multiple training iterations on Mistral and Llama-3 Instruct models.

Efficiency and Control

Beyond performance, REFA is computationally efficient, offering a 17% reduction in training time and a 10% decrease in peak GPU memory compared to MPO. Its budgeted regularization also allows for precise convergence toward target sequence lengths, providing a robust tool for managing inference-time latency.

Conclusion

REFA represents a significant step forward in reference-free alignment. By identifying and fixing the URSLA shortcut through EOS-token regularization, it enables the training of models that are both high-performing and cost-effective. Future work will explore adaptive budgeting strategies to handle diverse query complexities more fluidly.

Summary updated

BibTeX
@inproceedings{gupta2025refa,
  author = {Taneesh Gupta and Rahul Madhavan and Xuchao Zhang and Chetan Bansal and Saravan Rajmohan},
  title = {{REFA: Reference Free Alignment for multi-preference optimization}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=zP6DJaBBcR},
}
Figure