SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training

Tianzhe Chu, Yuexiang Zhai, Jihan Yang, Shengbang Tong, Saining Xie, Dale Schuurmans, Quoc V Le, Sergey Levine, Yi Ma

Introduction

Post-training has become the definitive phase for transforming raw, pre-trained foundation models into functional assistants. Traditionally, this process relies on two primary techniques: Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL). While both methods improve model performance on specific tasks, their underlying learning dynamics differ significantly. This study investigates a fundamental divergence: SFT often triggers data memorization, whereas RL—particularly when utilizing outcome-based rewards—promotes true rule-based generalization.

Methodology: The Multi-Turn RL Framework

The researchers propose a multi-turn RL framework built upon Proximal Policy Optimization (PPO). This approach moves beyond simple "correct/incorrect" binary rewards by introducing a sequential revision formulation.

The pipeline consists of three core components:

  1. The Verifier: An automated system that provides granular feedback to the model, identifying specific errors such as calculation mistakes or the use of illegal parameters.
  2. The Iterative Loop: The model is encouraged to use verifier feedback to revise its initial response across multiple steps, effectively scaling inference-time compute.
  3. The SFT Initialization: A brief SFT phase serves as a "format teacher." This ensures the model adheres to structured output requirements (e.g., JSON), providing a stable foundation for the subsequent RL phase to focus on task logic.

Experimental Design and Benchmarks

To evaluate Out-of-Distribution (OOD) robustness, the study utilizes two distinct environments:

  • GeneralPoints (GP): A reasoning task based on the "Points24" card game. It includes a text-based version (GP-L) and a vision-language version (GP-VL). Generalization is tested by altering rules post-training (e.g., changing the value of a Jack from 10 to 11).
  • V-IRL: A complex navigation task requiring models to traverse real-world street-view imagery in cities like New York and London. This benchmark tests spatial reasoning and landmark recognition in diverse visual environments.

The Memorization Trap vs. Rule-Based Generalization

A central finding of the research is the "Memorization Trap" inherent in SFT. When training data follows a specific set of rules, SFT models tend to memorize the resulting patterns rather than the logic. Consequently, when rules are slightly modified (e.g., shifting card values), SFT performance collapses as the model attempts to apply memorized solutions to a new logical context.

In contrast, RL allows models to adapt to unseen rules. By rewarding the final outcome rather than the imitation of a specific trajectory, RL forces the model to internalize the underlying arithmetic or navigational principles.

RL as a Catalyst for Visual Perception

Unexpectedly, the benefits of RL extend beyond logical reasoning into the realm of visual perception. In Vision-Language Models (VLMs), RL training significantly improved the model's ability to recognize cards and landmarks, even in OOD visual settings (such as variations in card color or lighting). While scaling SFT often led to "visual degradation"—where the model overfits to reasoning tokens at the expense of image processing—scaling RL compute consistently enhanced recognition accuracy.

Key Results

The empirical results underscore the superiority of RL for OOD tasks:

  • OOD Performance Gains: In the V-IRL navigation benchmark, the RL-trained models achieved a +61.1% improvement over the baseline. SFT models often exhibited negative growth in these scenarios, failing entirely when rules were shifted.
  • State-of-the-Art (SOTA): The multi-turn RL approach set a new SOTA on the V-IRL mini-benchmark, reaching a 77.8% success rate, a significant jump from the previous 44.0%.
  • Inference-Time Scaling: The study demonstrated a direct correlation between the number of allowed verification/revision steps and the model's eventual success in generalization.

Conclusion and Future Directions

The study concludes that while SFT is essential for teaching format and structure, it is an insufficient tool for teaching logic and robustness. RL serves as the critical engine for generalization. However, the researchers note that the timing of these phases is vital; an overly long SFT phase can lead to "overfitting checkpoints" that RL struggles to overcome. Future work will explore whether these dynamics hold true for more subjective, open-ended tasks and the specific mechanisms behind SFT-induced visual degradation.

Summary updated

BibTeX
@inproceedings{chu2025sft,
  author = {Tianzhe Chu and Yuexiang Zhai and Jihan Yang and Shengbang Tong and Saining Xie and Dale Schuurmans and Quoc V Le and Sergey Levine and Yi Ma},
  title = {{SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=dYur3yabMj},
}
Figure