Abstract
Large Reasoning Models (LRMs) achieve incredible performance through long chains of thought, but this makes them slow and computationally expensive. This paper introduces A-Thought, a framework that uses A search and a bidirectional importance score (BIS) to compress these long reasoning paths into concise, high-quality steps. The result is a massive boost in efficiency, cutting token lengths by up to a third without significantly dropping accuracy, making advanced AI more viable for low-resource settings.
Introduction
Recent Large Reasoning Models (LRMs) like OpenAI's o1, DeepSeek's R1, and QwQ achieve state-of-the-art performance by generating extensive Chain-of-Thought (CoT) trajectories. However, this "test-time scaling" comes at a steep computational cost. Generating thousands of intermediate reasoning tokens requires significant memory and compute, creating a barrier for deploying these models on edge devices or in low-budget environments.
While previous works have tried to force models to be concise, these brute-force compression methods frequently degrade the model's actual reasoning performance. The challenge addressed by A*-Thought is how to automatically extract the most critical, informative steps from a sprawling thought process and stitch them together into a compact, effective reasoning path without losing the "magic" of deep thinking.
Methodology
The authors propose A*-Thought, a two-level framework to compress long CoTs into dense, efficient ones, which are then used to fine-tune the models.
Step-Level: Bidirectional Importance Score (BIS)
Instead of just looking at how relevant a thought is to the initial prompt, BIS evaluates each sentence's importance to both the input question and the final correct solution. Using a lightweight model (GPT-2) to calculate attention weights and negative log-likelihoods, the system scores how crucial each step is to bridging the gap between the question and the answer.
Path-Level: A* Search
The paper formulates the assembly of these steps as a tree search problem. Using the classic A* search algorithm, the framework navigates the massive space of possible shortened thought paths. The search is guided by two cost functions:
- $g(x)$ (Current Cost): Measures the quality of the partial path using a verification model's log probabilities.
- $h(x)$ (Future Cost): A heuristic that estimates how likely the current path is to lead to the correct final solution, calculated using the conditional self-information of the solution given the current path.
To ensure logical coherence, A*-Thought uses contextual spans—a step plus its immediate predecessor and successor—rather than isolated steps, preventing the compressed chain from becoming fragmented.
Datasets and Training
The framework was trained on the s1K-1.1 dataset and evaluated on mathematical benchmarks including MATH500, AMC23, OlympiadBench, and GSM8K. Out-of-domain evaluation was conducted on LiveCodeBench (coding) and MMLU (general knowledge) to test generalization.
Key Results and Insights
- Efficiency Gains: Given a 4096-token budget, A*-Thought reduced average output length by 33.5% (from 2826 to 1876 tokens) while maintaining nearly identical accuracy (dropping only slightly from 70.6% to 69.3%).
- Low-Budget Performance: When constrained to a strict 512-token inference budget, A*-Thought improved the average accuracy of QwQ-32B by 2.39x (from 12.3% to 29.4%).
- Hindsight Advantage: By using the final solution to score intermediate steps, the algorithm identifies which exploratory thoughts actually contributed to the correct answer.
- Generalization: The method successfully transferred to other models (DeepSeek-R1-Distill-Qwen-32B) and improved performance on non-math tasks like LiveCodeBench, despite being trained only on math data.
Conclusion
A*-Thought demonstrates that framing Chain-of-Thought compression as a search problem can significantly improve model efficiency without sacrificing reasoning depth. Future work will explore extending this methodology using Reinforcement Learning (RL) to directly reward concise, high-density reasoning paths, potentially leading to even more efficient and capable AI systems.
Summary updated