TLDR: TRAAC (ThinkRight with Adaptive, Attentive Compression) is a new reinforcement learning method that teaches language models to adapt their reasoning length based on problem difficulty. It uses self-attention to identify and prune redundant steps, compressing more for easy tasks and less for hard ones. This approach significantly improves accuracy and reduces reasoning length across various benchmarks, including out-of-distribution tasks, by mitigating both underthinking and overthinking.
Large language models have made incredible strides in solving complex reasoning tasks, from advanced mathematics to logical puzzles. However, a persistent challenge remains: these models often struggle to adapt their “thinking” process to the difficulty of a problem. This phenomenon, termed “under-adaptivity,” manifests in two ways: “underthinking” on hard problems, where models stop reasoning too early and make mistakes, and “overthinking” on easy problems, where they generate unnecessarily long reasoning steps, wasting computational resources.
To tackle this crucial issue, researchers have introduced a novel approach called TRAAC, which stands for ThinkRight with Adaptive, Attentive Compression. This method aims to strike a balance, ensuring models think just enough – not too little, not too much – for any given task. TRAAC is an online post-training reinforcement learning (RL) technique that teaches models to modulate their reasoning length dynamically.
How TRAAC Works
At the heart of TRAAC is its adaptive, attentive compression module. Imagine a model generating a long chain of thought to solve a problem. TRAAC leverages the model’s self-attention mechanism, specifically focusing on how much attention the final “think” token pays to each step in the reasoning trajectory. Steps that receive less attention are considered less important and are candidates for pruning. This intelligent compression helps remove redundant or irrelevant parts of the reasoning process.
What makes TRAAC truly adaptive is its ability to estimate the difficulty of a task. During training, it assesses how well the model performs on a problem and categorizes it as easy, medium, or hard. This difficulty estimate then dictates the compression rate. For harder problems, TRAAC applies a lower compression rate, allowing the model to explore longer reasoning paths, increasing the chance of a correct solution. Conversely, for easier problems, it applies a higher compression rate, aggressively pruning steps once a correct intermediate solution is likely reached, thereby boosting efficiency.
The training process for TRAAC is guided by a sophisticated reward system. It prioritizes correctness, ensuring the model’s primary goal is to find the right answer. It also includes a format reward to maintain structured reasoning and, crucially, a length reward. This length reward penalizes overly long reasoning but is carefully designed with a smoothing mechanism and adapted to task difficulty, preventing models from becoming too concise at the expense of accuracy.
Also Read:
- RoRecomp: Making LLMs Reason More Concisely and Efficiently
- Adaptive Reasoning Suppression: Making Large Language Models Think Smarter, Not Longer
Key Findings and Generalization
The effectiveness of TRAAC was demonstrated across a variety of benchmarks using models like Qwen3-4B and DeepSeek-R1-Distill-Qwen-7B. On average, TRAAC (Qwen3-4B) achieved an impressive 8.4% absolute accuracy gain while reducing reasoning length by 36.8% compared to the base model. It also significantly outperformed other RL baselines, showing a 7.9% accuracy gain and a 29.4% length reduction over the best competitor.
One of TRAAC’s remarkable strengths is its generalization capability. Although primarily trained on mathematical datasets, it showed strong accuracy and efficiency improvements on out-of-distribution, non-math datasets such as GPQA-D and BBEH. This suggests that TRAAC learns a broadly applicable strategy for adaptive thinking.
Further analysis confirmed that TRAAC provides fine-grained adjustments to the thinking budget based on difficulty. As problem difficulty increased, TRAAC’s compression rate steadily decreased, allowing for more extensive reasoning. This adaptive allocation of computational resources is key to its superior performance.
The research highlights that combining task-difficulty calibration with attention-based compression is vital for achieving both high performance and efficiency. This approach represents a significant step forward in developing more intelligent and resource-aware language models. For more in-depth technical details, you can refer to the full research paper available here.


