Why Does RL Generalize Better Than SFT? A Data-Centric Perspective on VLM Post-Training
The adaptation of large-scale Vision-Language Models (VLMs) through post-training reveals a pronounced generalization gap: models fine-tuned with Reinforcement Learning (RL) consistently achieve superior out-of-distribution (OOD) performance compared to those trained with Supervised Fine-Tuning (SFT). This paper posits a data-centric explanation for this phenomenon, contending that RL’s generalization advantage arises from an implicit data filtering mechanism that inherently prioritizes medium-difficulty training samples. To test this hypothesis, we systematically evaluate the OOD generalization of SFT models across training datasets of varying difficulty levels. Our results confirm that data difficulty is a critical factor, revealing that training on hard samples significantly degrades OOD performance. Motivated by this finding, we introduce Difficulty-Curated SFT (DC-SFT), a straightforward method that explicitly filters the training set based on sample difficulty. Experiments show that DC-SFT not only substantially enhances OOD generalization over standard SFT, but also surpasses the performance of RL-based training, all while providing greater stability and computational efficiency. This work offers a data-centric account of the OOD generalization gap in VLMs and establishes a more efficient pathway to achieving robust generalization. Code is available at https://github.com/byyx666/DC-SFT
Introduction. Adapting large-scale Vision-Language Models (VLMs) to downstream tasks primarily relies on post-training techniques, notably Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) [1, 10, 50]. A well-documented finding is that RL-trained models generalize more effectively to out-of-distribution (OOD) data than SFT-trained models, which tend to overfit their in-distribution (ID) training set [6, 8, 18, 23]. This consistent performance gap raises a fundamental question: What underlying mechanism accounts for RL’s strong generalization capability? Prevailing explanations often attribute this advantage to RL’s optimization objective, which promotes exploration and learning from reward feedback, thereby enabling generalization beyond the supervised examples used in SFT [33, 48]. In this work, we propose a new, data-centric perspective. We posit that the core difference lies in how SFT and RL learn from examples: SFT applies uniform updates across all training data, while RL implicitly prioritizes samples based on their difficulty. As illustrated in Figure 1a, RL primarily updates the model on medium-difficulty samples that yield high-variance rewards, while effectively ignoring easy (consistently high reward) or hard (consistently low reward) samples [2, 10]. This discriminatory updating mechanism leads to our central hypothesis: Does RL’s superior generalization arise from its implicit focus on a mediumdifficulty data distribution? To empirically validate this hypothesis, we systematically investigate the influence of training data difficulty on OOD generalization. Specifically, we train SFT models on distinct data subsets curated by difficulty (easy, medium, and hard), and compare their ID and OOD performance. The results, partially shown in Figure 1b, provide a clear insight: training on hard samples improves ID performance but leads to severe OOD degradation, whereas training on medium-difficulty data achieves a more balanced and robust performance. This suggests that standard SFT is hindered by its uniform treatment of hard samples, while RL succeeds by implicitly concentrating on the critical mediumdifficulty subset. Interestingly, training on easy samples also preserves OOD performance, indicating that the optimal data distribution for generalization may be a combination of easy and medium-difficulty samples. Building on this finding, we propose Difficulty-Curated SFT (DC-SFT), a simple yet effective modification to SFT that explicitly filters out hard data prior to training. Our results demonstrate that this straightforward, data-centric intervention significantly enhances the OOD performance of SFT, surpassing the generalization ability of RL. Critically, DC-SFT achieves these gains with greater computational efficiency and training stability than standard RL pipelines. The advantages of DC-SFT extend beyond standard OOD benchmarks to complex reasoning tasks. When trained on datasets with explicit reasoning chains, DC-SFT outperforms both standard SFT and RL in enhancing the model’s reasoning capabilities. Given its simplicity, stability, and efficiency, DC-SFT emerges as a promising method for developing models with robust generalization and reasoning abilities. Our contributions are summarized as follows: • We propose a novel, data-centric explanation for the generalization gap between RL and SFT, attributing it to RL’s role as an implicit data filter that prioritizes mediumdifficulty samples. • We introduce DC-SFT, a simple yet efficient method that explicitly filters out hard data prior to training. DC-SFT surpasses RL’s OOD generalization while being more stable and computationally efficient. • We demonstrate that DC-SFT delivers superior performance on complex reasoning tasks, underscoring its potential as a powerful method for fostering generalized reasoning abilities.
Related work. Post-training of Foundation Models. Post-training is a critical phase that adapts pre-trained foundation models for effective application in downstream tasks [1, 10, 50]. SFT and RL are two primary paradigms used in this stage [8]. SFT [27, 40, 53] involves training models on curated datasets of instruction-response pairs, equipping them to comprehend human instructions and generate appropriate responses. Prior research has demonstrated that SFT enables models to tackle a wide spectrum of vision and multimodal tasks, ranging from simple image classification [15] to complex vision-language reasoning [30]. In contrast, RL [47, 54, 55] trains a model to maximize reward signals, which are typically derived from human preferences or rulebased metrics. While RL has traditionally been employed to better align model outputs with human preferences [24, 55], recent research has expanded its focus to enhancing performance on specific, objective-driven tasks [10, 32]. For instance, Visual-RFT [19] enhances VLMs by leveraging RL with rule-based visual rewards, resulting in models that exhibit superior performance on various visual tasks compared to those trained with traditional SFT. Generalization of SFT and RL. Generalization is a critical attribute for VLMs, given the inherent distribution shifts in real-world applications [22, 51]. Existing studies indicate that LLMs and VLMs tend to overfit more on simpler, knowledge-intensive tasks, while demonstrating stronger generalization on more complex, reasoningintensive ones [25, 36, 38]. Beyond these findings, other research highlights the significant influence of post-training paradigms on model generalization [6, 8, 18]. For example, a systematic comparison across both textual and visual tasks shows that RL is more effective at learning generalizable knowledge, whereas SFT is prone to memorizing the training data [8]. Building on this finding, our work aims to investigate the underlying reasons for RL’s enhanced generalization from a data-centric perspective. Data Curation for SFT. Constructing high-quality instruction datasets through data synthesis has become a cornerstone for improving model performance via SFT [10, 42]. Two prominent techniques in this domain are rejection sampling and model distillation. Rejection sampling methods create high-quality data by prompting the target model to generate multiple responses for a given instruction and then selecting the optimal one [29, 39]. Model distillation, conversely, bypasses this iterative process by employing a well-trained teacher model to directly produce high-quality responses [7, 17]. In both cases, the synthesized instruction–response pairs constitute refined training data for SFT.
Method. Post-training refers to the process of updating the parameters θ of a pre-trained foundation model πθ to enhance its performance on specific downstream tasks or to better align its behavior with human preferences. This is commonly accomplished through SFT or RL, applied to a dataset D. Supervised Fine-Tuning (SFT). Given a labeled dataset D = {(xi, yi)}N i=1, where each xi is a prompt and yi is the corresponding desired response, SFT aims to maximize the conditional likelihood of generating yi given xi. This is achieved by minimizing the negative log-likelihood loss:
In this section, we first outline our core data-centric hypothesis, arguing that RL’s generalization advantage primarily stems from implicit data selection rather than from algorithmic properties. We then present experiments examining how training data of varying difficulty influences generalization, providing empirical support for this hypothesis.
Although prior research has explored RL’s generalization capabilities from multiple perspectives, we adopt a datacentric perspective to explain why RL often generalizes better than SFT and how this understanding can guide further improvements. Specifically, we hypothesize that RL’s generalization advantage relative to SFT can be attributed to an implicit data filtering mechanism that concentrates learning on medium-difficulty examples. A Taxonomy of Data Difficulty. To illustrate this mechanism, we categorize training samples based on the model’s perceived difficulty. As shown in Figure 2a, for a given prompt x, the VLM generates G distinct responses (in this study, G = 8). We then classify each instance as follows: • Easy, if all G responses are correct; • Hard, if all G responses are incorrect; • Medium-difficulty, if the responses contain a mixture of correct and incorrect answers. Inherent Data Filter within RL. Under this taxonomy, the RL update process inherently filters data based on difficulty. For both easy instances (where all responses are correct and receive maximal reward) and hard instances (where all responses are incorrect and receive minimal reward), the rewards are uniform across all generated responses. This reward uniformity leads to a relative advantage Ak = 0 for every response associated with such instances, as defined by Eq. 5. As a result, these instances contribute negligible gradient updates during training. In contrast, mediumdifficulty instances yield diverse rewards, producing meaningful advantage estimates and gradients. Consequently, the RL-based training is dominated by these medium-difficulty examples, effectively filtering out easy and hard instances.
Discussion. Our findings indicate that hard data exert a substantial influence on model generalization, despite constituting only a minor portion of the overall training set. To quantify this effect, we perform a controlled ablation by incrementally adding hard samples into the SFT process. Figure 5 illustrates how varying proportions of hard data affect OOD performance, using Qwen2.5-VL-7B as the base model. We observe that standard SFT, which incorporates only 13.5% hard data, leads to a notable drop in OOD accuracy compared to SFT-EM, which uses only easy and mediumdifficulty samples. Remarkably, even a modest 5% inclusion of hard samples causes significant degradation, reducing accuracy by 3.74% on ImageNet-R and 2.51% on ImageNet-A relative to SFT-EM. This confirms that the detrimental impact of hard data is not a threshold effect, but emerges clearly even at low mixing ratios.
To investigate why a small number of hard samples can severely impair generalization, we analyze gradient dynamics across data subsets of varying difficulty during SFT. Figure 6 plots the per-step gradient norms for Qwen2.5-VL- 7B trained on easy, medium, and hard subsets from both ImageNet and RefCOCO. The results reveal a consistent stratification: hard data produce significantly larger gradient norms throughout training compared to easy or mediumdifficulty data. This indicates that hard samples dominate the optimization trajectory by inducing more aggressive parameter updates during SFT. This may encourage overfitting to noisy or ambiguous patterns and ultimately undermine robustness on OOD benchmarks.
Recent research shows that RL can effectively benefit testtime scaling by encouraging models to perform complex reasoning. Specifically, training on mathematical or coding data enables RL-trained models to exhibit strong reasoning performance on OOD tasks. Moreover, recent studies indicate that SFT combined with model distillation can enhance reasoning abilities, sometimes even outperforming RL for relatively small models [10]. In this study, we explore whether DC-SFT can also contribute to test-time scaling. Training Data and Methods. We source our training data from the MMK12 dataset [23]. A large teacher model (GLM-4.5) is leveraged to generate high-quality reasoning responses for SFT, producing 6,800 verified correct question–response pairs. Of these, 400 pairs are reserved for model initialization, and the remaining 6,400 are used in subsequent post-training. We compare the SFT-M variant of our proposed DC-SFT method against standard SFT, GRPO, and a Rejection Sampling (RS) baseline, where the model is trained only on its own self-generated correct responses. For GRPO, we apply a KL divergence penalty of 0.001 to regularize the model, following the best practice established by the open-source library ms-swift [52]. All models are trained for 400 steps, with other hyperparameters matching those described in Section 4.2.
Conclusion. In this work, we present a data-centric explanation for the generalization gap between RL and SFT in VLM posttraining. We find this gap stems from an implicit data filtering mechanism in RL, which naturally focuses updates on medium-difficulty samples. In contrast, standard SFT’s generalization is degraded by a small fraction of hard samples that dominate the optimization. Based on this insight, we propose DC-SFT, a simple yet effective method that explicitly filters out hard data before training. Our experiments show that DC-SFT exceeds the generalization performance of strong RL baselines. Furthermore, DC-SFT achieves this with significantly greater training stability and computational efficiency. These findings demonstrate that DC-SFT offers a more efficient and stable path toward building VLMs with strong generalization ability. Limitations. We acknowledge several limitations in this work. First, our validation is restricted to a relatively narrow set of model architectures, primarily Qwen2.5-VL and MiniCPM-V-4. Second, the scale of our experiments is limited to models with up to 7B parameters. Third, while we include some full-parameter fine-tuning results, the majority of our experiments employ LoRA fine-tuning.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
Can AI systems formally evaluate design quality and taste? How important is reward engineering relative to pretraining for reasoning?- Why does geometric reward alone drive most of the accuracy gain over supervised learning?
- How do training distributions surface as structural rather than content errors?
- Does difficulty curation help full-parameter fine-tuning as much as LoRA adaptation?
- What filtering criteria reduced 50,000 webpages to 10,000 training pairs?
- Can approximately on-policy resampling be combined with other continual learning mechanisms?
- What counts as hard or medium-difficulty examples in vision-language model training?
- Does this difficulty-filtering mechanism generalize beyond vision tasks to language models?
- Can data filtering fix SFT's tendency to learn formatting without physical feasibility?
- Does hard-sample gradient dominance explain SFT's reasoning quality degradation?
- Can reward design alone explain generalization gaps between RL and supervised training?
- Can token-level reweighting within SFT itself close the chart-to-code plateau?
- Does SFT's knowledge loss depend on the amount of training data used?
- How much does the RL stage improve over supervised fine-tuning alone?
- Does the pretrained model prior determine which samples become medium-difficulty?
- Why do smaller models learn to avoid marginalization instead of improving it?
- How much of ReTool's efficiency gain comes from cold-start data versus RL training?