SuperHF: Supervised Iterative Learning from Human Feedback

Gabriel Mukobi, Peter Chatain, Su Fong, Robert Windesheim, Gitta Kutyniok, Kush Bhatia, Silas Alberti · DOI

Abstract

Aligning Large Language Models (LLMs) with human preferences typically relies on Reinforcement Learning from Human Feedback (RLHF), which is often unstable and difficult to tune. We present SuperHF, a novel alignment algorithm that replaces complex Proximal Policy Optimization (PPO) with an iterative supervised learning loop and a KL-divergence constraint. SuperHF serves as a robust "drop-in" replacement, achieving superior reward optimization and better model calibration while significantly improving training stability.

Introduction

The standard approach for aligning LLMs involves Supervised Fine-Tuning (SFT) followed by RLHF. While RLHF is the industry standard for state-of-the-art models, it is notoriously sensitive to hyperparameters, prone to reward hacking, and can lead to mode collapse. SuperHF addresses these challenges by reframing alignment as a Bayesian inference problem, capturing the benefits of a reward model without the inherent instability of reinforcement learning.

Methodology: The SuperHF Training Loop

SuperHF operates through an iterative two-step process that refines the model's outputs based on a frozen reward model.

Figure 1: The SuperHF Training Loop, illustrating the iterative process of generating samples, filtering by reward, and fine-tuning with a KL-divergence constraint.
  1. Filtering (The "Superbatch"): The language model generates multiple completions for a given prompt. A pre-trained, frozen Reward Model (RM) scores these completions, and only the top-K highest-scoring samples are retained to form a high-quality "gold" dataset.
  2. Prior-preserving Fine-tuning: The model is fine-tuned on this filtered dataset using standard cross-entropy loss. A Kullback-Leibler (KL) divergence penalty is integrated into the loss function to prevent the model from drifting too far from its original distribution, thereby mitigating reward hacking and preserving output diversity.

Results and Key Insights

The primary advantage of SuperHF over traditional RLHF is its remarkable stability. In large-scale hyperparameter sweeps, SuperHF demonstrated a significantly higher success rate in increasing rewards without divergence.

Figure 2: Comparison of training loss across 100 runs for RLHF (left) and SuperHF (right). SuperHF shows much greater stability and fewer divergent runs.

Key findings include:

  • Stability: While 37% of RLHF runs diverged with exploding loss, SuperHF remained stable. Over 85% of SuperHF runs successfully improved rewards, compared to only 15% for RLHF.
  • Calibration: SuperHF improved model calibration on the MMLU benchmark, reducing the calibration error of RLHF models by half.
  • Performance: In GPT-4 based evaluations, SuperHF models (particularly those starting from instruction-tuned bases) achieved the highest Elo scores, outperforming standard RLHF and SFT.

Conclusion

SuperHF provides a simpler, more reliable path to AI alignment. By trading off some sampling efficiency for extreme stability and better calibration, it offers a compelling alternative to PPO-based RLHF. Future work will focus on scaling SuperHF to models beyond 30B parameters and optimizing the sampling process to reduce overall training time.

Summary updated

BibTeX
@misc{mukobi2023superhf,
  author = {Gabriel Mukobi and Peter Chatain and Su Fong and Robert Windesheim and Gitta Kutyniok and Kush Bhatia and Silas Alberti},
  title = {{SuperHF: Supervised Iterative Learning from Human Feedback}},
  year = {2023},
  eprint = {2310.16763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16763},
}
Figure