Improve dataset card: Add paper link, metadata, abstract, and sample usage

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +54 -0
README.md CHANGED
@@ -41,4 +41,58 @@ configs:
41
  path: data/train-*
42
  - split: test
43
  path: data/test-*
 
 
 
 
 
 
 
 
 
 
 
 
44
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  path: data/train-*
42
  - split: test
43
  path: data/test-*
44
+ language:
45
+ - en
46
+ task_categories:
47
+ - text-generation
48
+ tags:
49
+ - sft
50
+ - reinforcement-learning
51
+ - reasoning
52
+ - decision-making
53
+ - sokoban
54
+ - general-points
55
+ - large-language-models
56
  ---
57
+
58
+ # Debunk the Myth of SFT Generalization Dataset
59
+
60
+ This dataset is associated with the paper [Debunk the Myth of SFT Generalization](https://huggingface.co/papers/2510.00237), which re-evaluates the generalization capabilities of supervised fine-tuning (SFT) compared to reinforcement learning (RL) on decision-making benchmarks. The research demonstrates that with proper data curation, such as prompt diversity and Chain-of-Thought (CoT) supervision, SFT can achieve strong generalization, matching or even surpassing RL baselines.
61
+
62
+ Code: https://github.com/XiaofengLin7/debunking-sft-generalization
63
+
64
+ ## Abstract
65
+
66
+ A prevailing view holds that supervised fine-tuning (SFT) memorizes training data and fails to generalize, whereas reinforcement learning (RL) attains broader robustness. We revisit this claim through a systematic evaluation on two decision-making benchmarks, Sokoban and General Points, and arrive at a different conclusion. We show that much of SFT's perceived failure stems from frozen-prompt artifacts: when trained on fixed instruction templates, SFT models cling to training semantics rather than adapting to new ones. Introducing prompt diversity during training breaks this shortcut and yields strong generalization to unseen instruction variants without harming in-distribution performance. Beyond instruction shifts, we ask whether SFT can generalize to strictly harder tasks. Here, chain-of-thought (CoT) supervision provides an algorithmic scaffold that markedly improves transfer to more difficult regimes, such as larger Sokoban grids with additional boxes and arithmetic with out-of-distribution values or five-card compositions that increase combinatorial complexity. Finally, combining prompt diversity with CoT achieves the best of both worlds: robust generalization across both instruction-variant and difficulty-variant settings, matching or surpassing RL baselines on our benchmarks while retaining SFT's simplicity and stability. These findings challenge the narrative that SFT is inherently inferior to RL and support a data-centric perspective: with appropriately curated demonstrations, vanilla SFT can generalize as strongly as RL. Code reproducing the results in the paper can be found at: this https URL .
67
+
68
+ ## Sample Usage
69
+
70
+ The associated GitHub repository provides scripts to train models using the datasets. Ensure you have the necessary environment set up as described in the repository's `Installation` section before running these commands.
71
+
72
+ ### Train your model with SFT
73
+
74
+ Specify your model and data beforehand.
75
+
76
+ For Sokoban:
77
+ ```bash
78
+ bash debunk_sft/scripts/sokoban/sokoban_train_and_eval.sh
79
+ ```
80
+
81
+ For General Points:
82
+ ```bash
83
+ bash debunk_sft/scripts/gp_l/gp_l_train_and_eval.sh
84
+ ```
85
+
86
+ ### Train your model with GRPO
87
+
88
+ Specify your model and data beforehand.
89
+
90
+ For Sokoban:
91
+ ```bash
92
+ bash debunk_sft/scripts/sokoban/sokoban_grpo.sh
93
+ ```
94
+
95
+ For General Points:
96
+ ```bash
97
+ bash debunk_sft/scripts/gp_l/gp_l_grpo.sh
98
+ ```