arXiv:2608.27501cs.CLAug 2026

Manuscript Offprint

arXiv:2608.27501

INSPIRE: An Internalize-Then-Improve Approach for Example-Driven Mathematical Reasoning

Shuai Wang, Jiayi Kuang, Yinghui Li, Haojing Huang, Xinnian Liang, Ying Shen, Liang Lin

Abstract

Mathematical reasoning has seen rapid progress in large language models (LLMs), yet existing methods optimize predominantly for final-answer correctness, raising the question whether models truly internalize mathematical concepts or merely memorize solution patterns. In human mathematics education, example-based reasoning such as constructing counterexamples to test theorem boundaries reflects deep conceptual understanding, but remains underdeveloped in current LLMs. Enhancing this capability through preference optimization presents two key challenges: (1) the model's limited example-based reasoning ability makes constructing effective preference pairs inherently difficult; and (2) capability acquisition is progressive, as the model must first learn to adopt this strategy before learning to apply it correctly. Therefore we propose INSPIRE, an Internalize-Then-Improve approach combining Reference-Guided Student Internalization (RGSI), which produces high-quality preference candidates under the policy model's own distribution, with a stage-wise rubric preference training strategy that decomposes learning into method-oriented and correctness-oriented stages. Experiments across multiple model scales and families demonstrate consistent improvements, even surpassing larger open-source models, while evaluations on out-of-distribution benchmarks confirm no degradation in general mathematical reasoning ability.

1 Introduction

Mathematical reasoning is a core aspect of intelligence and a major focus of large language model (LLM) research. (Singh et al., 2025; Guo et al., 2025; Yang et al., 2024; Lu et al., 2025). Enhancing the mathematical reasoning capability of LLMs has become a prominent and fundamental research

Figure

Figure 1: Overview of INSPIRE's progressive training effect on a mathematical statement requiring example-driven reasoning.

topic within the community (Xu et al., 2026; Zhang et al., 2026; An et al., 2026; Li et al., 2026a).

Substantial recent efforts have been devoted to this goal, including data augmentation (Toshniwal et al., 2024; Ye et al., 2025), supervised fine-tuning (Ying et al., 2024; Li et al., 2025a; Muennighoff et al., 2025), and reinforcement learning-based post-training (Shao et al., 2024; Du et al., 2025). Despite their success, most methods optimize for final-answer correctness, raising the question of whether models truly internalize mathematical concepts or rely on surface-level solution patterns.

In human mathematics education, example-based reasoning is a fundamental skill reflecting deep conceptual understanding (Klymchuk, 2010). Recent work has shown that this capability remains underdeveloped in current LLMs (Wu et al., 2024; Li et al., 2025b; Kuang et al., 2025; Li et al., 2026b). As illustrated in Figure 1, models often rely on abstract theorem application rather than constructing concrete examples to test their reasoning, a tendency reinforced by training paradigms that optimize predominantly for final-answer correctness.

Enhancing this capability through preference optimization presents two key challenges: Data construction under ability scarcity. Since the model exhibits limited example-based reasoning

∗^{*} indicates equal contribution.

†^{†}Corresponding author.

ability, self-sampled candidates are generally low in quality on this dimension, failing to form effective preference pairs. Directly using external references as preferred samples introduces distribution shift in both expression style and reasoning structure, causing the model to replicate surface-level characteristics rather than internalize core analytical strategies. Progressive nature of capability acquisition. Since the model exhibits limited example-based reasoning ability, it must first learn to actively adopt this strategy, and only then to apply it correctly, making it difficult to optimize for both aspects in a single step.

To address these challenges, we propose INSPIRE, an Internalize-then-improve approach using Stage-wise Preference for Improved mathematical REasoning. The internalization stage introduces Reference-Guided Student Internalization (RGSI), which enables the model to comprehend reference reasoning approaches and regenerate responses in its own expression style, producing high-quality preference candidates while avoiding distribution shift. Built upon this, we design a stage-wise preference training strategy that first encourages the model to actively adopt example-based reasoning, and then progressively refines answer correctness on top of the acquired strategy. Our contributions are summarized as follows:

  • We propose INSPIRE, an Internalize-Then-Improve approach that enhances example-driven mathematical reasoning through preference optimization, addressing both the absence of this ability and its progressive nature of acquisition.
  • INSPIRE introduces Reference-Guided Student Internalization to produce high-quality preference candidates, and a stage-wise rubric preference training strategy that decomposes learning into method-oriented and correctness-oriented.
  • Experiments across multiple model scales and families demonstrate consistent improvements, with comprehensive ablations and analyses validating each design choice. Our code has been released at https://github.com/Shea-code-xxx/INSPIRE-code.