Aligning Large Language Models by On-Policy Self-Judgment

Sangkyu Lee, Sungdong Kim, Ashkan Yousefpour, Minjoon Seo, Kang Min Yoo, Youngjae Yu

Abstract

Aligning Large Language Models (LLMs) with human preferences typically requires either resource-intensive Reinforcement Learning from Human Feedback (RLHF) or offline methods like Direct Preference Optimization (DPO) that lack on-policy exploration. This paper introduces SELF-JUDGE, a parameter-efficient framework that enables an LLM to serve as its own judge. By integrating preference evaluation directly into the model's training and inference cycles, SELF-JUDGE achieves state-of-the-art performance on major benchmarks while significantly reducing the computational overhead associated with traditional reward modeling.

Introduction

The alignment of LLMs with human values is a critical step in making AI helpful and harmless. Currently, practitioners choose between two primary paradigms: RLHF and Offline Preference Optimization. RLHF is highly effective because it is "on-policy," meaning it evaluates the model's current outputs. However, it is computationally burdensome, requiring the simultaneous maintenance of a policy model, a reference model, and a dedicated Reward Model (RM). Conversely, offline methods like DPO are more efficient but are limited by a static dataset, preventing the model from learning from the specific errors it generates during the training process.

SELF-JUDGE bridges this gap by enabling a single model to perform both generation and evaluation. This approach provides the benefits of on-policy learning without the need for a separate Reward Model, reducing memory requirements from the standard 3p (policy, reference, reward) to 2p (policy, reference).

The SELF-JUDGE Framework

The SELF-JUDGE framework consists of three integrated stages designed to cultivate and exploit the model's internal judging capabilities.

1. Judge-augmented Supervised Fine-Tuning (JSFT)

To transform a standard LLM into a Judge Model (JM), the researchers augment traditional instruction-following data with a pairwise judgment task. The model is trained to compare two potential responses and determine which is superior. Crucially, the model is often tasked with providing a rationale—a step-by-step explanation for its choice—before delivering its final verdict. This process leverages the model's existing linguistic features to develop a robust internal metric for quality.

2. On-Policy Self-Training

Once the model has acquired judging capabilities, it undergoes on-policy alignment. For a given prompt, the model generates two distinct responses. It then uses its own "reference" version (a frozen copy of the model) to evaluate these responses and assign preference labels. The model is then updated using the DPO objective based on these self-generated labels. This allows the model to explore its own output space and correct its specific weaknesses iteratively.

3. Self-Rejection by Tournament

At inference time, the model's judging ability is used to further refine output quality. The model generates $N$ candidate responses, and the internal judge selects the best one. To maintain efficiency, the framework employs a tournament tree structure. This reduces the computational complexity of comparisons from $O(N^2)$ to $O(N)$, making high-quality response selection feasible for real-time applications.

Experimental Results

The researchers evaluated SELF-JUDGE using the Anthropic-HH (Helpful/Harmless) and UltraFeedback datasets, testing across three major benchmarks: AlpacaEval, VicunaEval, and MT-Bench.

Performance Benchmarks

SELF-JUDGE consistently outperformed both standard RLHF and DPO baselines:

  • AlpacaEval (HH-Helpful): SELF-JUDGE achieved a 44.88% win rate, surpassing DPO (35.14%) and RLHF (33.46%).
  • VicunaEval: The framework reached a 76.25% win rate, a significant jump over DPO’s 60.63%.
  • MT-Bench: It achieved a score of 4.80, the highest among all tested alignment methods in the study.

The Power of Rationales and Scaling

A key finding was the impact of rationales. Requiring the model to generate a rationale before judging acted as a "Chain-of-Thought" for evaluation, helping the model avoid common pitfalls like length bias (preferring longer answers regardless of quality). Furthermore, the effectiveness of the JSFT judge scaled positively with model size; as the base model grew from 7B to 13B parameters, the performance gains from self-judgment became even more pronounced.

Discussion and Limitations

SELF-JUDGE offers a highly efficient path toward self-improving AI. By eliminating the need for a separate Reward Model, it lowers the barrier to entry for high-quality on-policy alignment. However, several considerations remain:

  • Data Dependency: The framework still requires an initial high-quality preference dataset or a teacher model to seed the JSFT process.
  • Safety Guardrails: The current study focused primarily on helpfulness. Future iterations must ensure that self-judgment does not inadvertently reinforce harmful biases or bypass safety protocols.
  • Iterative Limits: While self-training is effective, performance gains eventually plateau. Maintaining judge diversity is a critical area for future research to prevent the model from becoming overconfident in its own internal biases.

In conclusion, SELF-JUDGE demonstrates that the capacity for high-quality judgment is already latent within modern LLMs. By formalizing this capability, we can create models that are not only more capable but also more efficient to train and deploy.

Summary updated

BibTeX
@inproceedings{lee2024aligning,
  author = {Sangkyu Lee and Sungdong Kim and Ashkan Yousefpour and Minjoon Seo and Kang Min Yoo and Youngjae Yu},
  title = {{Aligning Large Language Models by On-Policy Self-Judgment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.617},
}
Figure