Reasoning Scaffolding: Distilling the Flow of Thought from LLMs

Xiangyu Wen, Junhua Huang, Zeju Li, Min Li, Jianyuan Zhong, Zhijian Xu, Mingxuan Yuan, Yongxiang Huang, Qiang Xu · OpenReview

Abstract

The prevailing approach to distilling reasoning from Large Language Models (LLMs)—behavioral cloning from textual rationales—is fundamentally limited. It teaches Small Language Models (SLMs) to mimic surface-level patterns rather than the underlying algorithmic structure of thought, resulting in a critical lack of logical robustness. We argue that instead of cloning text, distillation should transfer this algorithmic structure directly. We introduce Reasoning Scaffolding, a framework that reframes reasoning as a structured generation process. Our method first abstracts the teacher's thought process into a sequence of discrete, interpretable semantic signals (e.g., Contrast, Addition) that act as a scaffold. The student model is then trained via a multi-task objective to both (1) predict the next semantic signal, anticipating the reasoning flow, and (2) generate the corresponding step, conditioned on that signal. This multi-task scheme acts as a powerful regularizer, compelling the student to internalize the computational patterns of coherent reasoning. On a suite of challenging reasoning benchmarks, our method significantly outperforms state-of-the-art distillation in both accuracy and logical consistency, providing a path towards creating smaller models that are genuine reasoners, not just fluent mimics.

Introduction

Current distillation methods often produce small language models (SLMs) that are "fluent mimics"—they copy the style of large models without grasping the underlying logic. Because SLMs have limited capacity, they often resort to rote memorization of surface-level text patterns rather than learning the core structural blueprint of an argument. This results in models that are logically brittle, failing to reach consistent conclusions when faced with novel problems.

The Reasoning Scaffolding Framework

To address the limitations of behavioral cloning, we propose distilling the structure of thought rather than just the text. The Reasoning Scaffolding framework operates in three main stages:

  1. Logic Representation Distillation: Long-thinking traces from a teacher model (e.g., DeepSeek-R1) are abstracted into a sequence of discrete semantic signals. We identify seven key categories: Contrast and Concession, Addition and Elaboration, Examples and Illustration, Personal Opinion and Recall, Reasoning and Analysis, Conclusion and Summary, and Response Generation.
  2. Joint Training (Dual-Branch Architecture): The SLM is modified with two distinct heads. The first branch handles next-step generation conditioned on signal embeddings, while the second branch performs signal prediction to anticipate the next logical move.
  3. Signal-Guided Inference: During generation, the model predicts the most likely semantic signal. If the prediction confidence exceeds a threshold, that signal guides the subsequent reasoning step.
The Reasoning Scaffolding architecture featuring dual branches for next-step generation and signal prediction.

Experimental Evaluation

We evaluated our method using the Qwen-2.5 family (0.5B, 7B, and 14B parameters) across five diverse reasoning benchmarks: StrategyQA, CommonsenseQA, TruthfulQA, GSM8K, and MATH-500. The multi-task objective acts as a powerful regularizer, preventing the model from drifting into monolithic text imitation and keeping it on a logical track.

Results and Discussion

Our framework demonstrated superior accuracy and logical consistency across all tested scales.

Quantitative Performance

The Reasoning Scaffolding method outperformed base models by an average of 14% and standard Chain-of-Thought (CoT) distilled models by approximately 8%. The most dramatic improvements were observed in the smallest models; for instance, the 0.5B model's accuracy on TruthfulQA increased from ~27% to over 86%.

Qualitative Analysis

Qualitative comparisons reveal that while baseline models often lose their logical thread or produce contradictory statements, scaffolded models correctly identify conceptual links. By forcing the model to predict the type of reasoning step before writing it, the framework ensures the output remains grounded in a coherent logical structure.

Comparison of reasoning paths between standard models and the Reasoning Scaffolding framework on a complex commonsense question.

Conclusion

Reasoning Scaffolding shifts the distillation paradigm from text imitation to structural internalization. By distilling the algorithmic flow of thought into discrete semantic signals, we enable SLMs to achieve near-SOTA performance for their size class, moving closer to genuine reasoning capabilities in compact models.

Summary updated

BibTeX
@inproceedings{wen2026reasoning,
  author = {Xiangyu Wen and Junhua Huang and Zeju Li and Min Li and Jianyuan Zhong and Zhijian Xu and Mingxuan Yuan and Yongxiang Huang and Qiang Xu},
  title = {{Reasoning Scaffolding: Distilling the Flow of Thought from LLMs}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FcuJY1dK7s},
}
Figure