2026-11-26 15:50 UTC

Author reports large MATH gain from 100-puzzle fine-tune

state: seedheat: mediumuncertainty: highrelevance: highsmall-model-training fine-tuning math-benchmarkstamewild

What is this?

tamewild’s September 11, 2026 Hugging Face article and linked repository provide a training recipe, code, datasets, model checkpoints, and reproduction notebooks for fine-tuning small base models on 100–500 zebra-puzzle reasoning traces. The author reports that Qwen3-4B Base, trained on 100 puzzles in 6 minutes 23 seconds on one H200 NVL GPU, scored 85.26% on the full 5,000-problem MATH benchmark—31.16 percentage points above the cited 54.10% base-model score—and 21.67% on AIME 2025. These are the author’s exploratory, single-seed results, not independent validation; the comparison uses a reported 4-shot baseline. The article also reports results for Granite 4.1 3B and Qwen3.5 9B, and describes PCSS, an adaptive loss-scaling method, while noting that standard SFT also produced substantial gains in tested configurations.

Why it matters

If reproducible, the striking result is how little training data and compute the recipe appears to need: 100 logic-puzzle traces and about six minutes on one GPU for a reported 31-point gain on a broad math benchmark. That could make reasoning experiments accessible to small teams and local-model users, and offers a provocative case that training on one kind of structured reasoning can transfer beyond its domain. But this is an author-reported exploratory result, not yet independent confirmation; the tested setups also suggest the gains may come substantially from the puzzle data, not uniquely from PCSS.

Current assessment

New: tamewild’s September 11, 2026 Hugging Face community article and linked GitHub repository provide code, datasets, checkpoints and single-GPU reproduction notebooks for fine-tuning base models on 100–500 zebra-puzzle traces. The author reports Qwen3-4B Base trained on 100 puzzles in 6:23 on one H200 NVL reached 85.26% on the full 5,000-problem MATH benchmark, versus a cited 54.10% four-shot baseline (+31.16 percentage points), and 21.67% on AIME 2025. The article describes the experiments as exploratory single-seed runs; it notes evaluation sampling/runtime variability, and the baseline comparison is not presented as a matched evaluation. The reported 85.26% is on full MATH, not MATH-500. Other reported results include Granite 4.1 3B trained on 500 puzzles and Qwen3.5 9B trained on 500; these are likewise author-reported. PCSS is an adaptive loss scaler derived from KTO, but the article’s ablations report substantial MATH-500 gains with standard LoRA SFT too, so evidence does not establish PCSS as necessary for the effect. The repository and notebooks make replication unusually accessible, but the supplied evidence contains no independent reproduction or adoption results. A later Hacker News listing points to a September 28 post, “Can My Puzzle Write-Ups ‘Lift’ Cheap LLMs?”, but no article text or results are supplied here, so it is a follow-up lead rather than corroboration. Track whether independent runs confirm transfer, benchmark methodology and the relative contribution of data, optimizer and evaluation setup.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1849h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-10 14:00⭐ origin echo-reconstructedReports mathematical reasoning gains after fine-tuning small base models on 100–500 zebra-puzzle traces without mathematical training exampl
tamewild on blog (echo) · attributed from reddit.post.1wdhb24
—
09-11 14:06first on r/LocalLLaMA · published · +24.1hFine-tuning Qwen 3 4B Base on 100 zebra puzzles yielded +31% on MATH-500. 6.5-min (Single H100/H200) reproduction notebook included.
TGSCrust
—
09-30 17:12first on hacker news · published · +483.2hCan My Puzzle Write-Ups 'Lift' Cheap LLMs?
speckx
—
09-11 14:06amplified on r/LocalLLaMA 👑reddit.post.1wdhb24
TGSCrust
peak 37 · 7 comments · 96% of case engagement
09-30 17:12amplified on hacker newshn.story.49911694
speckx
peak 1 · 0 comments · 4% of case engagement
09-11 14:20our radar first saw it · +24.3hdiscovery anchor: reddit.post.1wdhb24—

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 redditFine-tuning Qwen 3 4B Base on 100 zebra puzzles yielded +31% on MATH-500. 6.5-min (Single H100/H200) reproduction notebook included.
LocalLLaMA
Retrieved article excerpt

Open article · Retrieved 2026-09-11T14:22:15.938573+00:00

Back to Articles Eliciting Reasoning with 100-500 Zebra Puzzles Community Article Published
					September 11, 2026 Upvote 1 tamewild tamewild Follow Resources & Quick Links: Read this Post: HuggingFace (Rendered Blog) | GitHub (Markdown Source) GitHub Repository: tamewild/pcss Reproduction Notebooks (Single H100/H200): Qwen 3 4B (~6.5 mins) | Granite 4.1 3B (~23 mins) | Qwen 3.5 9B (~40 mins) Models: PCSS-Qwen3-4B | PCSS-Granite-4.1-3B | PCSS-Qwen3.5-9B Datasets: zebra_100 | instruct5 1. Introduction Encountering the research on the Hyperfitting Phenomenon sparked an interest in exploring how pre-trained base models behave when micro-datasets are fine-tuned to near-zero training loss. We focused on training small pre-trained base models on 100 to 500 pure logic deduction traces (specifically 5x5 zebra puzzles) with zero mathematical data in the fine-tuning dataset . This synthetic dataset was generated by Qwen3-235B-A22B-Instruct-2507 in September 2025 using rejection sampling. Across multiple model families and architectures: Qwen 3 4B Base fine-tuned on 100 zebra puzzles (~6.5 minutes on 1 GPU) reaches 85.26% on the full 5,000-problem MATH benchmark (+31.16% delta over base) and 21.67% on AIME 2025 , rivaling the official post-trained model in non-thinking mode on MATH-500 while outperforming it on AIME 2025. Granite 4.1 3B Base fine-tuned on 500 zebra puzzles achieves 77.73% on MATH-500 and 19.44% on AIME 2025 , outperforming the official IBM Granite 4.1 3B Instruct model (+11.13 and +12.77 percentage points, respectively). Qwen 3.5 9B Base fine-tuned on 500 zebra puzzles jumps from 17.00% to 80.50% on 5x5 zebra puzzles (Pass@3: 97.05% ), while jumping from 5.42% to 22.92% on the uncontaminated ArXivMath 05/26 benchmark (Pass@3: 34.88% ) and reaching 96.60% on MATH-500 and 60.67% on AIME 2025 . While this out-of-domain generalization appears primarily driven by the pure logic dataset, we chose to manage the optimization process through adaptive loss scaling. For our primary results, we utilized PCSS (Per-Example Calibrated Sigmoid Scaler) : an adaptive, data-aware loss scaler derived directly from KTO. 2. The Mathematics of PCSS 2.1 From Preference Optimization to a Dynamic SFT Scaler PCSS originates from KTO . But why adapt an alignment algorithm for Supervised Fine-Tuning? The inspiration came from an experiment in the original KTO paper (Table 4). The authors demonstrated that running KTO using only desirable/positive examples (the exact same unpaired data used for SFT) yielded results highly competitive with standard SFT. While the paper conservatively notes this setup "yields similar results to SFT when β \beta β is small," the results with β = 0.1 \beta=0.1 β = 0.1 raised the overall average benchmark score from 29.7% to 31.1%, driven by a substantial relative increase on the GSM8K mathematical reasoning benchmark (from 1.0% to 12.5%). Why does an alignment algorithm behave this way? We can answer this by performing a gradient analysis on standard KTO when applied to purely desirable data. Setting the gain sensitivity to 1 ( λ D = 1 ) (\lambda_D = 1) ( λ D ​ = 1 ) , the KTO loss for a desirable ground-truth sequence y ∗ y^* y ∗ is: L KTO ( θ ) = 1 − σ ( β ( r θ ( x , y ∗ ) − z 0 ) ) \mathcal{L}_{\text{KTO}}(\theta) = 1 - \sigma(\beta(r_\theta(x, y^*) - z_0)) L KTO ​ ( θ ) = 1 − σ ( β ( r θ ​ ( x , y ∗ ) − z 0 ​ )) where r θ ( x , y ) r_\theta(x, y) r θ ​ ( x , y ) is the unnormalized log ratio ( log ⁡ π θ ( y ∣ x ) − log ⁡ π ref ( y ∣ x ) ) (\log \pi_\theta(y|x) - \log \pi_{\text{ref}}(y|x)) ( lo g π θ ​ ( y ∣ x ) − lo g π ref ​ ( y ∣ x )) . The loss for the ground-truth sequence is evaluated at r θ ( x , y ∗ ) r_\theta(x, y^*) r θ ​ ( x , y ∗ ) , and z 0 z_0 z 0 ​ is the KL divergence estimate. Crucially, KTO explicitly does not backpropagate through z 0 z_0 z 0 ​ . Taking the gradient with respect to θ \theta θ : ∇ θ L KTO ( θ ) = − σ ′ ( β ( r θ ( x , y ∗ ) − z 0 ) ) ⋅ β ⋅ ∇ θ r θ ( x , y ∗ ) \nabla_\theta \mathcal{L}_{\text{KTO}}(\theta) = -\sigma'(\beta(r_\theta(x, y^*) - z_0)) \cdot \beta \cdot \nabla_\theta r_\theta(x, y^*) ∇ θ ​ L KTO ​ ( θ ) = − σ ′ ( β ( r θ ​ ( x , y ∗ ) − z 0 ​ )) ⋅ β ⋅ ∇ θ ​ r θ ​ ( x , y ∗ ) Because the reference model is frozen, ∇ θ r θ ( x , y ∗ ) = ∇ θ log ⁡ π θ ( y ∗ ∣ x ) \nabla_\theta r_\theta(x, y^*) = \nabla_\theta \log \pi_\theta(y^*|x) ∇ θ ​ r θ ​ ( x , y ∗ ) = ∇ θ ​ lo g π θ ​ ( y ∗ ∣ x ) . Since the standard SFT loss L sft ( θ ) L_{\text{sft}}(\theta) L sft ​ ( θ ) is the negative mean log-probability over N N N tokens, log ⁡ π θ ( y ∗ ∣ x ) = − N ⋅ L sft ( θ ) \log \pi_\theta(y^*|x) = -N \cdot L_{\text{sft}}(\theta) lo g π θ ​ ( y ∗ ∣ x ) = − N ⋅ L sft ​ ( θ ) . Therefore, ∇ θ log ⁡ π θ ( y ∗ ∣ x ) = − N ⋅ ∇ θ L sft ( θ ) \nabla_\theta \log \pi_\theta(y^*|x) = -N \cdot \nabla_\theta L_{\text{sft}}(\theta) ∇ θ ​ lo g π θ ​ ( y ∗ ∣ x ) = − N ⋅ ∇ θ ​ L sft ​ ( θ ) . Substituting this back in gives the exact gradient update for standard KTO on positive data: ∇ θ L KTO ( θ ) = [ β ⋅ σ ′ ( β ( r θ ( x , y ∗ ) − z 0 ) ) ⋅ N ] ∇ θ L sft ( θ ) \nabla_\theta \mathcal{L}_{\text{KTO}}(\theta) = \Big[ \beta \cdot \sigma'(\beta(r_\theta(x, y^*) - z_0)) \cdot N \Big] \nabla_\theta L_{\text{sft}}(\theta) ∇ θ ​ L KTO ​ ( θ ) = [ β ⋅ σ ′ ( β ( r θ ​ ( x , y ∗ ) − z 0 ​ )) ⋅ N ] ∇ θ ​ L sft ​ ( θ ) When you apply KTO to purely desirable examples, it is no longer performing preference alignment against negative data. Instead, it mathematically reduces to the standard SFT gradient multiplied by a dynamic scaler . However, this same equation highlights why standard KTO would struggle on logic chains spanning up to 11,000+ tokens: Length-Induced Gradient Inflation: The scaler is multiplied by the sequence length N N N . For long traces, the gradient magnitude increases sharply by a factor of hundreds. Length Bias & Gradient Saturation: Because r θ ( x , y ∗ ) r_\theta(x, y^*) r θ ​ ( x , y ∗ ) is an unnormalized sum, its magnitude also scales linearly with N N N , quickly saturating the sigmoid. The derivative σ ′ \sigma' σ ′ drops toward zero, which would cause the optimizer to prematurely stop learning on long sequences. To convert this mechanism into the stable PCSS scaler, we make two fundamental mathematical transformations: Transformation 1: Sequence-Length Normalization PCSS explicitly normalizes the implied reward by sequence length using standard mean cross-entropy losses (where N = ∣ y ∗ ∣ N = |y^*| N = ∣ y ∗ ∣ ): Current model SFT loss : L sft ( θ ) = − 1 N ∑ t = 1 N log ⁡ π θ ( y t ∗ ∣ x , y < t ∗ ) L_{\text{sft}}(\theta) = -\frac{1}{N}\sum_{t=1}^{N} \log \pi_\theta(y_t^* \mid x, y_{<t}^*) L sft ​ ( θ ) = − N 1 ​ ∑ t = 1 N ​ lo g π θ ​ ( y t ∗ ​ ∣ x , y < t ∗ ​ ) Frozen base model reference loss : L ref = − 1 N ∑ t = 1 N log ⁡ π ref ( y t ∗ ∣ x , y < t ∗ ) L_{\text{ref}} = -\frac{1}{N}\sum_{t=1}^{N} \log \pi_{\text{ref}}(y_t^* \mid x, y_{<t}^*) L ref ​ = − N 1 ​ ∑ t = 1 N ​ lo g π ref ​ ( y t ∗ ​ ∣ x , y < t ∗ ​ ) The normalized reward becomes the difference: r norm = L ref − L sft ( θ ) r_{\text{norm}} = L_{\text{ref}} - L_{\text{sft}}(\theta) r norm ​ = L ref ​ − L sft ​ ( θ ) . Transformation 2: Dropping the KL Anchor ( z 0 = 0 ) (z_0 = 0) ( z 0 ​ = 0 ) The canonical KTO value function includes z 0 z_0 z 0 ​ as a baseline expectation ( z 0 = E y ∼ π θ ( ⋅ ∣ x ) [ r θ ( x , y ) ] ) (z_0 = \mathbb{E}_{y \sim \pi_\theta(\cdot|x)}[r_\theta(x, y)]) ( z 0 ​ = E y ∼ π θ ​ ( ⋅ ∣ x ) ​ [ r θ ​ ( x , y )]) . While KTO's batch-dependent z 0 z_0 z 0 ​ estimate breaks down at b s z = 1 bsz=1 b sz = 1 , mathematical analysis indicates that if we want the scaler to natively decay upon mastery in SFT, dropping the dynamic KL anchor is a straightforward architectural adjustment, making z 0 norm = 0 z_0^{\text{norm}} = 0 z 0 norm ​ = 0 a natural design choice . During fine-tuning on a ground-truth logic trace ( y ∗ ) (y^*) ( y ∗ ) , the policy's probability mass concentrates entirely on the correct answer ( π θ ( y ∗ ∣ x ) → 1 ) (\pi_\theta(y^*|x) \to 1) ( π θ ​ ( y ∗ ∣ x ) → 1 ) . If we plug this mastered state back into the formal sequence-normalized definition of z 0 z_0 z 0 ​ : z 0 norm = ∑ y π θ ( y ∣ x ) [ 1 ∣ y ∣ log ⁡ π θ ( y ∣ x ) − 1 ∣ y ∣ log ⁡ π ref ( y ∣ x ) ] ≈ L ref z_0^{\text{norm}} = \sum_y \pi_\theta(y|x) \Big[ \frac{1}{|y|} \log \pi_\theta(y|x) - \frac{1}{|y|} \log \pi_{\text{ref}}(y|x) \Big] \approx L_{\text{ref}} z 0 norm ​ = y ∑ ​ π θ ​ ( y ∣ x ) [ ∣ y ∣ 1 ​ lo g π θ ​ ( y ∣ x ) − ∣ y ∣ 1 ​ lo g π ref ​ ( y ∣ x ) ] ≈ L ref ​ Upon convergence ( L sft ( θ ) → 0 ) (L_{\text{sft}}(\theta) \to 0) ( L sft ​ ( θ ) → 0 ) , the reward is r norm = L ref − L sft ( θ ) ≈ L ref r_{\text{norm}} = L_{\text{ref}} - L_{\text{sft}}(\theta) \approx L_{\text{ref}} r norm ​ = L ref ​ − L sft ​ ( θ ) ≈ L ref ​ .
If we kept the baseline anchor ( z 0 norm ) (z_0^{\text{norm}}) ( z 0 norm ​ ) , the advantage would evaluate to: Advantage = r norm − z 0 norm ≈ L ref − L ref = 0 \text{Advantage} = r_{\text{norm}} - z_0^{\text{norm}} \approx L_{\text{ref}} - L_{\text{ref}} = 0 Advantage = r norm ​ − z 0 norm ​ ≈ L ref ​ − L ref ​ = 0 Because the derivative of the sigmoid ( σ ′ ) (\sigma') ( σ ′ ) reaches its peak value at an input of exactly 0 0 0 , keeping the baseline anchor ( z 0 norm ) (z_0^{\text{norm}}) ( z 0 norm ​ ) would cause the scaler to trend back toward its maximum value at the end of training , failing to suppress residual gradients and increasing the risk of late-stage overfitting. By explicitly setting z 0 norm = 0 z_0^{\text{norm}} = 0 z 0 norm ​ = 0 , the advantage becomes an absolute measure of progress against the base model ( L ref − L sft ( θ ) ) (L_{\text{ref}} - L_{\text{sft}}(\theta)) ( L ref ​ − L sft ​ ( θ )) . Upon mastery ( L sft ( θ ) → 0 ) (L_{\text{sft}}(\theta) \to 0) ( L sft ​ ( θ ) → 0 ) , the advantage becomes strictly positive ( L ref ) (L_{\text{ref}}) ( L ref ​ ) . The scaler structurally decays toward zero as mastery increases , naturally suppressing residual gradients to help mitigate late-stage overfitting. The Resulting Gradient The PCSS loss for a chosen example becomes: L chosen ( θ ) = 1 − σ ( β ⋅ r norm ) \mathcal{L}_{\text{chosen}}(\theta) = 1 - \sigma(\beta \cdot r_{\text{norm}}) L chosen ​ ( θ ) = 1 − σ ( β ⋅ r norm ​ ) ∇ θ L chosen ( θ ) = [ β ⋅ σ ′ ( β ⋅ r norm ) ] ∇ θ L sft ( θ ) \nabla_\theta \mathcal{L}_{\text{chosen}}(\theta) = \Big[ \beta \cdot \sigma'(\beta \cdot r_{\text{norm}}) \Big] \nabla_\theta L_{\text{sft}}(\theta) ∇ θ ​ L chosen ​ ( θ ) = [ β ⋅ σ ′ ( β ⋅ r norm ​ ) ] ∇ θ ​ L sft ​ ( θ ) Because this gradient mathematically reduces to the standard SFT gradient scaled by a dynamic multiplier, we can implement it directly by scaling the standard SFT loss output by the detached multiplier: L PCSS ( θ ) = L sft ( θ ) ⋅ detach ( β ⋅ σ ′ ( β ⋅ r norm ) ) \mathcal{L}_{\text{PCSS}}(\theta) = L_{\text{sft}}(\theta) \cdot \text{detach}(\beta \cdot \sigma'(\beta \cdot r_{\text{norm}})) L PCSS ​ ( θ ) = L sft ​ ( θ ) ⋅ detach ( β ⋅ σ ′ ( β ⋅ r norm ​ )) 2.2 Standard Deviation Normalization & Decoupled Scaling To standardize the dynamic multiplier across model families and decouple its magnitude from its shape, PCSS applies two scaling adjustments: Scaled Advantage : a = L ref − L sft ( θ ) s global a = \frac{L_{\text{ref}} - L_{\text{sft}}(\theta)}{s_{\text{global}}} a = s global ​ L ref ​ − L sft ​ ( θ ) ​ , where s global = Std D ( L ref ) s_{\text{global}} = \text{Std}_{\mathcal{D}}(L_{\text{ref}}) s global ​ = Std D ​ ( L ref ​ ) is the pre-computed standard deviation of reference losses across the training split. Decoupled Peak Scaling : Scale ( a ) = peak_scale ⋅ ( 4.0 ⋅ σ ′ ( β ⋅ a ) ) \text{Scale}(a) = \text{peak\_scale} \cdot (4.0 \cdot \sigma'(\beta \cdot a)) Scale ( a ) = peak_scale ⋅ ( 4.0 ⋅ σ ′ ( β ⋅ a )) Since max ⁡ ( 4.0 ⋅ σ ′ ) = 1.0 \max(4.0 \cdot \sigma') = 1.0 max ( 4.0 ⋅ σ ′ ) = 1.0 , peak_scale directly defines the maximum multiplier applied to the SFT gradient. Applying thes
TGSCrust367
🟧 echo.blog ⭐Reports mathematical reasoning gains after fine-tuning small base models on 100–500 zebra-puzzle traces without mathematical training exampltamewild——
🟧 hnCan My Puzzle Write-Ups 'Lift' Cheap LLMs?speckx10

Interpretation history

Decision trace