Step-KTO: Optimizing Mathematical Reasoning through Stepwise Binary Feedback

Yen-Ting Lin, Di Jin, Tengyu Xu, Tianhao Wu, Sainbayar Sukhbaatar, Chen Zhu, Yun He, Yun-Nung Chen, Jason Weston, Yuandong Tian, Arash Rahnama, Sinong Wang, Hao Ma, Han FangarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) frequently exhibit "hallucinated" reasoning, arriving at correct final answers through incorrect logical steps. To address this, we present Step-KTO, a training framework that leverages binary feedback on both final outcomes and intermediate reasoning steps. By employing a risk-averse Kahneman-Tversky Optimization (KTO) loss function, Step-KTO encourages models to produce faithful reasoning chains. Our approach demonstrates significant performance improvements across various benchmarks, including a near doubling of accuracy on the challenging AIME24 dataset for Llama-3.3-70B.

Introduction

While LLMs have shown remarkable proficiency in mathematics, they often suffer from a "lucky guesser" problem. Techniques like Chain-of-Thought (CoT) prompt models to articulate their reasoning, yet a significant discrepancy often exists between the process and the result. A model may hallucinate wild, incorrect logical leaps but still arrive at the correct final numerical answer. This lack of faithful reasoning undermines trust in high-stakes scenarios where the derivation is as critical as the solution.

Previous attempts to mitigate this issue primarily utilized Process Reward Models (PRMs) for post-generation ranking. Step-KTO shifts this paradigm by integrating stepwise feedback directly into the training process, teaching the model how to reason more effectively during generation.

Methodology: Stepwise Kahneman-Tversky Optimization

The core innovation of Step-KTO is the application of Kahneman-Tversky Optimization (KTO) at two distinct levels simultaneously. Unlike Direct Preference Optimization (DPO), which requires complex preference pairs, KTO utilizes simple binary signals (good vs. bad), making data collection significantly more efficient.

Overview of the Step-KTO training pipeline, showing the integration of Process and Outcome Reward Models.

As illustrated in the pipeline above, Step-KTO evaluates model outputs at two levels:

  1. Outcome-level: Automated verification determines if the final answer is correct.
  2. Stepwise-level: A "Process RM" (in this study, a Llama-3.1-70B model) evaluates the logical validity of each intermediate reasoning step.

The framework employs a Kahneman-Tversky-inspired value function designed to be risk-averse for gains and risk-seeking for losses. This psychological mirroring encourages the model to avoid logical errors aggressively. The training is iterative: the model generates solutions, receives feedback on every step, and updates its parameters to refine its reasoning for subsequent rounds.

Experimental Results

The models were trained on the NuminaMath dataset and evaluated on three prestigious benchmarks: MATH-500, AMC23, and the highly challenging AIME24.

Performance comparison of Step-KTO against baselines and state-of-the-art models across mathematical benchmarks.

Key Performance Gains

Step-KTO consistently outperformed baselines that rely solely on final-answer feedback:

  • Llama-3.1-8B: Accuracy on MATH-500 increased from a base of 53.4% to 63.2%, surpassing standard KTO by nearly 3 percentage points.
  • Llama-3.3-70B: Achieved 79.6% on MATH-500, effectively closing the gap with top-tier proprietary models such as Gemini 1.5 Pro and GPT-4o.
  • High-Difficulty Tasks: On the AIME24 benchmark, Step-KTO nearly doubled the performance of the base 70B model, jumping from 13.3% to 30.0% (Pass@1).

Improving Reasoning Faithfulness

Beyond raw accuracy, Step-KTO significantly improves the quality of the reasoning process. In a standard Llama-3.1-8B model, approximately 27.3% of correct answers were found to contain logical errors in the intermediate steps. Step-KTO reduced this "flawed reasoning" rate to 19.9%, demonstrating a clear shift toward more robust logical progressions.

Discussion and Limitations

While Step-KTO represents a significant advancement in training for faithful reasoning, several challenges remain. The system is currently dependent on the quality of the "Process RM"; if the teacher model provides noisy or incorrect feedback, the student model may learn flawed logic. Furthermore, the current implementation relies on a known "ground truth" final answer to bootstrap the learning process, which may limit its applicability to open-ended problems without definitive solutions.

Future work may explore curriculum learning to help weaker models that rarely find correct answers initially, as well as methods to refine the Process RM to provide even more reliable stepwise signals.

Summary updated

BibTeX
@misc{lin2025step,
  author = {Yen-Ting Lin and Di Jin and Tengyu Xu and Tianhao Wu and Sainbayar Sukhbaatar and Chen Zhu and Yun He and Yun-Nung Chen and Jason Weston and Yuandong Tian and Arash Rahnama and Sinong Wang and Hao Ma and Han Fang},
  title = {{Step-KTO: Optimizing Mathematical Reasoning through Stepwise Binary Feedback}},
  year = {2025},
  eprint = {2501.10799},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.10799},
}
Figure