ThinkEdit: Interpretable Weight Editing to Mitigate Overly Short Thinking in Reasoning Models

Chung-En Sun, Ge Yan, Tsui-Wei Weng

TL;DR

Large Language Models (LLMs) that use Chain-of-Thought (CoT) reasoning sometimes produce overly short reasoning, hurting performance. This paper introduces ThinkEdit, a method that identifies and modifies specific attention heads responsible for this short reasoning. By editing a tiny fraction of model weights, ThinkEdit significantly improves accuracy on short reasoning outputs and overall.

What Problem Does This Paper Address?

While LLMs with Chain-of-Thought (CoT) reasoning have shown impressive problem-solving capabilities, they sometimes exhibit a peculiar failure mode: generating overly short reasoning chains. This isn't just about being concise; it leads to a noticeable drop in accuracy, even on relatively simple problems. The authors observe this across various LLMs and datasets, suggesting it's a fundamental issue in how reasoning length is encoded within the model's internal representations. Understanding and mitigating this "overly short thinking" is crucial for improving the reliability and performance of these powerful reasoning models.

Methods

The core of ThinkEdit lies in two main steps:

  1. Extracting Reasoning Length Directions: The researchers first analyze the hidden states of LLMs to find a "reasoning length direction." This is a linear direction in the model's representation space that, when steered, directly influences the length of the generated CoT. They found this direction is primarily encoded in the middle layers of the model.
  2. Weight Editing with ThinkEdit: Building on the identified reasoning length direction, ThinkEdit pinpoints specific "short reasoning heads" – attention heads that disproportionately contribute to generating brief reasoning. They then surgically edit the output projection weights of these identified heads. The goal is to remove the component of their output that drives short reasoning, effectively "editing" the model's behavior without drastically altering its overall architecture or requiring extensive retraining.

Datasets

The paper uses several standard datasets for evaluation:

  • GSM8K: A benchmark of grade-school math word problems.
  • MATH-Level5: A challenging subset of the MATH dataset, focusing on Level 5 problems.
  • MMLU Elementary Math: A subset of elementary math questions from the MMLU benchmark.
  • MATH-Level1: Easy problems from the MATH dataset.
  • MATH-500: A curated set of advanced mathematical reasoning problems.
  • MMLU Non-Math Subjects: Including High School Computer Science, Formal Logic, and Professional Accounting, to test generalization.

Key Insights and Ideas

  • Reasoning Length is a Linear Direction: The paper demonstrates that reasoning length isn't an arbitrary output but is encoded as a specific, steerable linear direction within the model's hidden representations, particularly in middle layers. This is a significant interpretability finding.
  • "Short Reasoning Heads" are Sparse: The authors found that only a small fraction (around 4%) of attention heads are primarily responsible for generating overly short reasoning. This sparsity is key to the effectiveness of ThinkEdit, as it allows for targeted interventions.
  • Weight Editing is More Precise than Steering: Unlike simply steering activations (which can be less controlled), ThinkEdit modifies weights. This makes the intervention input-dependent and more precise, allowing for fine-grained control without disrupting the model's general capabilities.
  • Overly Short Reasoning is Detrimental: The study strongly suggests that short reasoning isn't just a sign of efficiency but often indicates a failure to fully process the problem, leading to accuracy degradation.

Key Results

  • Accuracy Gains: ThinkEdit achieved notable accuracy improvements:
  • +6.39% on short reasoning outputs.
  • +3.34% overall accuracy across multiple math benchmarks.
  • Minimal Parameter Changes: The intervention required modifying only about 0.2% of the model's total parameters.
  • Improved Reasoning Quality: Beyond just accuracy, ThinkEdit encouraged more explicit and structured CoT, with more equations, boxed final answers, and longer reasoning traces.
  • Effective on Various Models: The approach showed consistent benefits across different model sizes (1.5B, 8B, 14B) and even on non-math reasoning tasks.

Limitations and Future Work

  • Limited Benefit for Already Long Reasoning: The paper acknowledges that ThinkEdit primarily addresses overly short reasoning. For models that already produce sufficiently long or verbose outputs, the benefits might be limited.
  • Generalization to Other Failure Modes: While effective for short reasoning, ThinkEdit's impact on other reasoning failure modes (e.g., factual errors, logical fallacies) is not the primary focus.
  • Future Work: The authors suggest that this work opens an important research direction for linking internal representations to observable reasoning behaviors and could be particularly useful for constrained computational budgets by managing reasoning length more effectively.

Summary updated

BibTeX
@inproceedings{sun2025thinkedit,
  author = {Chung-En Sun and Ge Yan and Tsui-Wei Weng},
  title = {{ThinkEdit: Interpretable Weight Editing to Mitigate Overly Short Thinking in Reasoning Models}},
  booktitle = {MATH-AI @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=bPuOvFjIKc},
}
Figure