Rethinking "RL Generalizes, SFT Memorizes": The Role of SFT Data

Paper · arXiv 2611.14912 · Published November 11, 2026
Reinforcement Learning

Large language models trained with Reinforcement Learning (RL) with verifiable rewards exhibit strong reasoning ability and broad generalization, whereas models trained with Supervised Fine-Tuning (SFT) are often viewed as more prone to memorization and limited transfer. This paper rethinks this distinction through the lens of SFT training data on widely used Qwen2.5 and Qwen3 series models. First, we study the role of data source and show that it is critical: a carefully mixed SFT dataset substantially outperforms data generated solely by a larger model. Second, we study the role of data scale and show that matching the number of correct rollouts between SFT and RL greatly improves SFT generalization, while matching the total rollout budget enables SFT to generalize as well as RL. Combining these two factors further enables SFT to generalize even better than RL. Third, by using LLM annotations to characterize the solution methods in training rollouts, we show that larger datasets cover more tail methods and that these tail methods provide generalizable reasoning signals. Finally, we support these empirical findings theoretically by analyzing the training dynamics of shallow transformers under both RL and SFT.

Introduction. Large Language Models (LLMs) trained via Reinforcement Learning (RL) or Supervised Fine- Tuning (SFT) have achieved remarkable improvements in reasoning ability, as exemplified by the success of DeepSeek-R1 [1] and s1 [2]. A line of work compares the strengths and limitations of RL and SFT for reasoning [3–5]. These studies suggest that “RL generalizes, whereas SFT memorizes” [6, 5], indicating that SFT often struggles to match RL on reasoning tasks beyond the training domain.

However, it remains unclear whether the conclusion that “RL generalizes, SFT memorizes” is drawn in a setting where the full potential of SFT is realized and SFT is given comparable data resources to RL. For instance, the amount of training data for SFT is not aligned with that of RL training. In this work, we revisit this conclusion through the lens of the training dataset. Specifically, we study how data source and scale affect SFT generalization, and ask:

  1. What kind of data source best unlocks the generalization potential of SFT? 2. How should we match the data consumed by SFT and RL to compare their generalization in a fairer setting?

To answer the first question, we perform SFT using training data from two sources and their mixtures, and evaluate the resulting models on general reasoning tasks to assess generalization. Specifically, we

Method. Although both SFT-trained models generalize worse than the RL-trained model, the RL-tuned dataset yields much better generalization than the Qwen3-14B dataset. Moreover, interpolating between the two sources shows that adding an appropriate amount of more diverse data further improves general reasoning. These findings highlight the importance of data source for SFT generalization.

To answer the second question, we match the SFT training dataset size to that of RL under different criteria. Rather than matching SFT and RL training data prompt-wise, we scale the SFT dataset according to three criteria: (1) the number of solvable prompts, (2) the number of correct rollouts, and (3) the total number of rollouts. After training and evaluating models on these datasets, we find that matching the number of correct rollouts used in RL greatly improves SFT generalization, while further matching the total number of rollouts enables SFT to achieve generalization comparable to RL. Moreover, data source and data scale have a compounding effect: SFT with a mixture of the two data sources and a matched number of total rollouts achieves better generalization than RL.

To further demystify the role of data scale, we study how scaling the SFT dataset affects the coverage of LLM-annotated solution methods in training rollouts and, in turn, general reasoning performance. Our analysis shows that larger datasets cover more tail methods in the long-tailed method distribution. By further annotating evaluation rollouts on general reasoning tasks, we find that these tail methods are used more often and solve more questions as the dataset grows. These results suggest that data scaling improves the coverage of long-tailed reasoning patterns, thereby enhancing generalization.

Finally, we theoretically justify our insights through a training-dynamics analysis of shallow transformers. For long-tailed SFT data, we prove that both SFT and RL achieve high accuracy on in-distribution problems. However, with insufficient method coverage, SFT generalizes worse than RL on out-of-distribution (OOD) problems. As more methods are covered, potentially through a larger data scale, SFT can match RL generalization. These results justify the importance of data scale and tail-method coverage for SFT generalization.

SFT equips pretrained LLMs with long-form reasoning abilities by directly minimizing the crossentropy loss on curated long-reasoning data [2, 9]. Let DSFT denote a long-reasoning dataset consisting of pairs (X, Y ), where X is a question prompt and Y is the corresponding long-reasoning answer. The objective of long-reasoning SFT is LSFT(θ) = −E(X,Y )∼DSFT[PT t=1 log Pθ(Yt | X, Y<t)]. In practice, this optimization is typically solved with first-order optimizers such as Adam [10] or AdamW [11]. Because dense supervision is available at every token position, SFT is often sampleefficient [12]. However, prior work [6, 5] suggests that SFT mainly improves model reasoning ability on tasks that are in distribution with respect to the training data, and that the resulting models exhibit weaker generalization than RLVR-trained models.

Experimental Setup. We use Qwen2.5-7B [13] and Qwen3-8B-Base [14] as the base models and train them on mathematical problems from the DAPO dataset [15]. We present the Qwen2.5-7B results in the main paper and defer the Qwen3-8B-Base results to Appendix B.1. For RL, we use the questions in the DAPO dataset with a reasoning prompt prefix, and optimize the model with GRPO [1] implemented in VeRL [16] under the standard training setup (see Appendix B.2). For SFT, we use rollout models, Qwen3-14B [17] by default, to generate training responses for the same DAPO prompts, and optimize the model with LlamaFactory [18]; detailed hyperparameters are provided in Appendix B.3. We evaluate the trained models on both in-distribution mathematical reasoning tasks and general reasoning tasks.

Discussion. Table 1 reports results on all mathematical reasoning datasets and a representative subset of general reasoning datasets, with the full results deferred to Appendix B.5. Figure 3 shows the average performance over the mathematical and general reasoning datasets.

Observation 1: The training data source is crucial for generalization: data from a model closer to the one being fine-tuned can be more effective than data from a stronger model, while data from a single model is not necessarily optimal; incorporating an appropriate amount of more diverse data can further improve general reasoning ability.

Observation 2: The amount of training data substantially influences SFT generalization: matching the number of correct rollouts greatly improves SFT generalization, while further matching the total rollout budget enables SFT to achieve comparable generalization to RL.

Compounding Effects of Data Source and Scale. Observations 1 and 2 show that choosing an appropriate data source and increasing the training-set size can each improve the generalization of SFT. We next investigate whether combining these two factors enables SFT to generalize even better than RL. Specifically, we mix the rollout-matched training dataset across different data sources. Since Section 3.1 suggests that the best mixture ratio is around 70% from the RL-tuned model and 30% from Qwen3-14B, we focus on ratios near this setting to reduce computation. We consider mixture ratios (11 −2k) × 10% of the RL-tuned dataset and (2k −1) × 10% of the Qwen3-14B dataset for k ∈{1, 2, 3}, yielding three training datasets, each with about 138,000 prompt–rollout pairs.

Observation 3: With a carefully mixed dataset and a rollout budget matched to RL, SFT achieves promisingly better general reasoning ability than RL, undermining “RL generalizes, SFT memorizes.”

We observe that tail methods are used more frequently as the training-set size scales. Furthermore, these tail methods are capable of solving more questions as the tail-method coverage increases. We arrive at the following observation.

Observation 4: One benefit of increasing the training samples is improved coverage of longtailed patterns. Training on these rare but informative samples can enhance performance on downstream general reasoning tasks.

These results theoretically show that both SFT and RL can achieve high accuracy on in-distribution problems, i.e., problems covered by the training dataset. This is consistent with our experimental results in Section 3, where SFT achieves mathematical reasoning ability comparable to RL when the two methods are matched by the number of question prompts. This finding is also consistent with Chu et al. [6], Lu et al. [42]. In addition, we also show that RL-trained models explore and learn a balanced distribution across answers, which will support their generalization ability.

First, we show that RL generalizes to OOD prompts, which serve as a stylized analogue of the general reasoning tasks in our experiments. This is consistent with the strong generalization of RL observed in prior work [6]. Second, we show that SFT generalizes to well-covered methods, characterized by pl,k ≥1/ log K. This explains Observations 2 and 4: increasing the data scale covers more methods and raises the empirical frequencies of tail methods in the dataset, as shown in Figure 13. We provide more discussions on the connection between the empirical findings and the theoretical results in Appendix G.3

Conclusion. This work rethinks the claim that “RL generalizes, whereas SFT memorizes” from the perspective of SFT training data. Specifically, we show that both data source and data scale substantially influence SFT generalization. With a carefully mixed dataset and a rollout budget matched to RL, SFT can even generalize better than RL. We further show that this improvement is supported by increased coverage of tail methods, and provide theoretical analysis to justify these insights. A limitation of our work is that we focus on LLMs; extending our analysis to other generative models, such as diffusion models, is left for future work.

Lines of inquiry this paper opens 24

Research framings built by reading the notes related to this paper — the questions it feeds into.

How do supervised fine-tuning and reinforcement learning compare in preserving reasoning quality? What are the distinctive characteristics of language models at different scales? Can RL enable genuinely new reasoning or just optimize existing capabilities? How does task-specific training affect model generalization and capability transfer? Can AI systems formally evaluate design quality and taste? How important is reward engineering relative to pretraining for reasoning? How do parameter-efficient methods maintain performance while reducing training cost?