# Memorize Theorems, Not Instances: Probing SFT Generalization through Mathematical Reasoning

*Ruiying Peng, Mengyu Yang, Jing Lei, Xiao-Hui Li, Xueyu Wu, Xinlei Chen*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149409) · [OpenReview](https://openreview.net/forum?id=qG2690UFsJ) · [alphaXiv](https://www.alphaxiv.org/abs/2605.09270) · [Open on the map](../papers.html#p149409)

Category: [LLM Post-Training: RL & Distillation](../pcat/18.md) › [LLM Distillation](../pgroup/182.md) · Type: new method · Keywords: SFT generalization, mathematical reasoning, theorem application, benchmark performance, feed-forward layers

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Mechanisms › Chain-of-Thought Reasoning; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Non-Stationarity Adaptation › Generalization and Adaptation

## Summary
Theorem-SFT reorients supervised fine-tuning toward explicit theorem application, improving reasoning generalization on MATH and GeoQA benchmarks.

## Explained to a 5-year-old
When we teach a computer to solve math problems, we usually show it many examples of questions and answers. But the computer starts to copy the surface patterns of those examples instead of understanding the rules. The paper says this copying makes the computer fail when the problems look a bit different. So they change the teaching to focus on the underlying math rules, like how theorems work. This new way helps the computer solve new math problems more reliably.

## Explained to a 5-year-old, longer
When we teach a computer to solve math problems, we usually give it lots of examples of questions and the correct answers. The computer learns to notice patterns in those examples, like certain words or symbols that always appear together. Sometimes these patterns are just coincidences, not the real math rules that make the answer work. Because of this, the computer can get confused when a new problem looks a little different, even if the same rule applies. The paper points out that the main issue is not that the computer memorizes, but that it memorizes the wrong things. To fix this, the researchers change how we teach the computer, shifting the focus from copying answers to understanding the underlying rules. Instead of showing only what the answer should be, they teach the computer how to apply math theorems step by step. This helps the computer see the structure of a problem and use the correct reasoning process. When they test this new teaching method, the computer performs much better on standard math benchmarks. On one benchmark, it improves by almost nine percent, and on another, it jumps by more than twenty percent. They also discover that only a part of the computer’s brain, the feed-forward layers, needs to be changed to get the same big gains. Overall, the work shows that teaching models the right rules, rather than just the right answers, leads to better generalization.

## For a technical reader
The paper observes that standard supervised fine-tuning (SFT) often harms a model’s ability to generalize when solving math problems. It argues that vanilla SFT makes models memorize superficial patterns in question-answer pairs, causing brittleness to slight input changes. To counter this, the authors introduce a theorem-oriented fine-tuning strategy that teaches models how to apply mathematical rules rather than just reproducing answers. Experiments show consistent gains of +8.8% on MATH and +20.27% on GeoQA, and they find that adjusting only the feed-forward layers yields similar improvements. The findings suggest that focusing on rule-based supervision can be a more robust approach for adapting models to reasoning tasks.

## Problem
Supervised Fine-Tuning (SFT) often leads to poor reasoning generalization because models memorize spurious surface correlations in problem-solution pairs, making them brittle to input variations.

## Method
The approach shifts supervision from memorizing answer instances to teaching models how to apply explicit theorems, encouraging rule-based reasoning during fine-tuning.

## Results
The approach achieves +8.8% improvement on MATH and +20.27% on GeoQA, and fine-tuning only MLP layers matches full-layer performance, indicating feed-forward components are key for reasoning rules.

## Contributions
The paper identifies that SFT’s failure stems from memorizing wrong inductive targets and proposes a theorem-oriented fine-tuning paradigm that improves reasoning generalization across multiple benchmarks and model families.

## Research questions this paper is counted under

- [How can supervised fine-tuning achieve better generalization when using demonstration data?](../q/581.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149409)
