Masked Distillation Internalizes LLM Chain-of-Thought Reasoning

Durgesh Kalwar, Vardhan Palod, Subbarao Kambhampati· July 28, 2026 View original

Summary

Masked distillation is a knowledge distillation framework that trains a student LLM to internalize the reasoning steps (chain-of-thought) of a teacher model. This allows the student to produce direct answers or much shorter traces, reducing latency, memory, and serving costs without sacrificing correctness.

Large Reasoning Models (LRMs) often generate lengthy, explicit intermediate steps, known as "chain-of-thought" (CoT), before arriving at a final answer. While these steps can aid in complex problem-solving, they significantly increase inference latency, memory usage, and serving costs. This research explores whether these computational steps can be internalized into the model's parameters, enabling it to produce answers more directly. The proposed solution is "masked distillation," a knowledge distillation framework. In this approach, a student LLM is trained to predict only the final solution tokens, conditioned on the original question. A reasoning teacher model provides feedback, having processed the question with its own CoT trace. This framework can be implemented in a self-distillation setting, where the same model acts as both teacher and student, or in a dual-model setting, with a larger teacher supervising a smaller student. Experiments on arithmetic and number-puzzle tasks demonstrate that this method allows the student to internalize reasoning, leading to shorter traces and reduced resource consumption while maintaining answer quality.

Why it matters

Reducing the computational overhead of complex reasoning in LLMs is critical for deploying them efficiently at scale, lowering operational costs, and improving user experience by decreasing latency.

How to implement this in your domain

  1. 1Analyze current LLM deployments for excessive latency and cost due to long chain-of-thought traces.
  2. 2Investigate knowledge distillation techniques to internalize reasoning steps into smaller, more efficient models.
  3. 3Experiment with masked distillation, training student models to predict only final answers while leveraging teacher model reasoning.
  4. 4Consider both self-distillation and dual-model distillation strategies based on available resources and model sizes.
  5. 5Benchmark the trade-offs between trace length, inference cost, and answer correctness for distilled models.

Who benefits

AI DevelopmentCloud ComputingEnterprise SoftwareEducationFinancial Services

Key takeaways

  • Long chain-of-thought traces in LLMs increase latency, memory, and serving costs.
  • Masked distillation allows student LLMs to internalize reasoning steps from teacher models.
  • This framework enables models to produce direct answers or shorter traces, reducing computational overhead.
  • The approach maintains answer correctness while significantly improving inference efficiency.

Original post by Durgesh Kalwar, Vardhan Palod, Subbarao Kambhampati

"arXiv:2607.22629v1 Announce Type: new Abstract: Large Reasoning Models (LRMs) produce long, explicit chains of intermediate steps before generating a final answer at inference time. These intermediate traces dominate latency, memory usage, and serving cost, even though the final…"

View on X

Originally posted by Durgesh Kalwar, Vardhan Palod, Subbarao Kambhampati on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses