Getting More Juice Out of the SFT Data: Reward Learning from Human Demonstration Improves SFT for LLM Alignment

Jiaxiang Li, Siliang Zeng, Hoi To Wai, Chenliang Li, Alfredo Garcia, Mingyi Hong

Introduction

Supervised Fine-Tuning (SFT) is the foundational step in aligning Large Language Models (LLMs) with human intent. By training on high-quality human demonstrations, models learn to imitate desired behavior. However, standard SFT often treats this process as simple token-level imitation, potentially overlooking the underlying "intent" or reward structure that guided the human expert. Researchers from the University of Minnesota, Texas A&M, and the Chinese University of Hong Kong propose a shift in perspective: using Inverse Reinforcement Learning (IRL) to extract a reward model directly from SFT data, thereby improving alignment without requiring additional preference labels.

The Limitations of Standard SFT

While effective, SFT is prone to "distribution shift." When a model encounters prompts slightly different from its training set, its performance can degrade because it lacks a robust understanding of the objective. The authors argue that SFT's primary weakness is the absence of a reward signal. In the typical RLHF (Reinforcement Learning from Human Feedback) pipeline, a reward model is built from preference pairs. Human demonstrations inherently contain implicit preferences—the chosen response is implicitly better than other possibilities—but standard SFT fails to leverage this contrastive information.

Learning the "Why" via Inverse Reinforcement Learning

To address this, the paper introduces a framework where the model learns a reward function that makes observed human behavior appear optimal. This is formulated as a bilevel optimization problem: a lower level that finds a policy to maximize a reward, and an upper level that adjusts the reward to maximize the likelihood of human demonstrations.

Comparison of SFT, RFT, and IRFT workflows alongside the resulting log probability gap during training.

The researchers developed two primary methods:

  1. Reward-learning Fine-Tune (RFT): This method explicitly trains a separate reward model alongside the LLM using a minimax approach. The reward model learns to distinguish human-authored text from the LLM’s own generations.
  2. Implicit Reward-learning Fine-Tune (IRFT): Inspired by Direct Preference Optimization (DPO), IRFT optimizes the policy directly without an explicit reward model. It treats the model's own previous generations as "non-preferred" data and human demonstrations as "preferred" data.

Notably, the authors demonstrate that IRFT is a generalized version of Self-Play Fine-tune (SPIN), providing a theoretical IRL-based foundation for why self-play techniques are effective.

Experimental Results

The methods were evaluated using Pythia-1.4B and Zephyr-7B models across standard benchmarks like the HuggingFace Open LLM Leaderboard.

Key findings include:

  • Performance Gains: IRFT improved the Zephyr-7B model's average leaderboard score from 59.47% to 61.03%.
  • Win Rates: In head-to-head comparisons, the IRFT-aligned model achieved a 55.6% win rate over a standard SFT model trained on the same data.
  • Robustness: By learning a goal (reward function) rather than just patterns, the IRL approach is more resilient to noise in the training data and avoids the extreme overfitting common in vanilla SFT.
  • Iterative Refinement: Performance improved when generating new "negative" samples more frequently during training, highlighting the importance of the iterative IRL process.

Discussion and Limitations

While IRL-based fine-tuning offers significant performance benefits, it introduces additional computational overhead. Both RFT and IRFT require generating text from the model during the training loop, which is significantly slower than standard backpropagation.

Comparison of peak memory and computation time for the proposed algorithms.

As shown in the table above, the memory and time requirements are higher than standard SFT. Future research is needed to optimize these processes and to determine if these benefits scale to larger models (70B+) where SFT data is already highly refined.

Paper Title: Getting More Juice Out of the SFT Data: Reward Learning from Human Demonstration Improves SFT for LLM Alignment
Code: GitHub Repository

Summary updated

BibTeX
@inproceedings{li2024getting,
  author = {Jiaxiang Li and Siliang Zeng and Hoi To Wai and Chenliang Li and Alfredo Garcia and Mingyi Hong},
  title = {{Getting More Juice Out of the SFT Data: Reward Learning from Human Demonstration Improves SFT for LLM Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=orxQccN8Fm},
}
Figure