Peking University Shrinks Reasoning AI Responses 40% Without Hurting Accuracy
Researchers from Peking University and Microsoft Research propose a gated length penalty that cuts reasoning tokens by 33-40% without hurting accuracy.
ProTakeaways
- Researchers from Peking University and Microsoft Research propose a lazy length penalty for reasoning RL training.
- The penalty fires only on correct trajectories, once accuracy is stably improving, and past a length tolerance.
- Cuts step-averaged response length 40% on logic reasoning while gaining 14 accuracy points.
- Reduces math response length by 33% at best, 11-21% across other settings, without hurting accuracy.
- No extra training stages required; drops into rule-based on-policy RL like GRPO.
- Code available at github.com/lblankl/Short-RL, with Logic-RL and DeepScaler recipes.
A team of researchers from Peking University and Microsoft Research have released a paper tackling one of the more annoying tradeoffs in reasoning models: how do you get them to stop rambling without wrecking their accuracy? Their answer is a length penalty that mostly stays out of the way, activating only under strict conditions during reinforcement learning training. The result is a technique that shrinks response length by 33-40% while matching or beating baseline accuracy.
The work targets a real bottleneck. Models like OpenAI's o1 and DeepSeek-R1 earn their strong scores by generating long chains of thought, but those extended reasoning trajectories incur substantial memory and latency costs. Cutting that overhead matters for both inference bills and the training loop itself, since RL rollouts have to generate every one of those tokens too.
Why naive length penalties break training
The obvious fix, adding a term to the reward that penalizes long outputs, has been tried before by groups including Kimi. It does not work cleanly. On-policy RL couples optimization with exploration, so naively penalizing length can destabilize training and suppress exploration. In practice, the model gets punished for exploring long solutions before it has even figured out which reasoning patterns work, and it collapses onto short but wrong answers.
The authors specifically dissect the Kimi-style length reward and find a tendency to suppress reasoning diversity in the early stages of training. Existing alternatives have their own costs: many rely on additional supervision or multi-stage post-training, which primarily reduces inference length and does not reduce the rollout tokens during on-policy reinforcement learning. In other words, they make the deployed model shorter but do nothing to speed up the expensive RL phase.

The lazy penalty, in three gates
The core proposal is a length penalty that fires only when three conditions are all satisfied. It activates only on correct trajectories, only after training accuracy enters a stably improving regime, and only when responses exceed a tolerance band beyond the minimal correct length. Each gate exists to defuse a specific failure mode:
- Correct-only: Penalizing length on wrong answers pushes the model toward short wrong answers. Restricting the penalty to correct rollouts means shortening pressure never competes with correctness.
- Accuracy-gated: The penalty stays off until batch accuracy is climbing steadily. A hyperparameter tau_acc controls the accuracy threshold, and for each training batch the method compares current accuracy against acc_max, the maximum accuracy achieved up to that point. This prevents early-stage exploration collapse.
- Tolerance band: Only responses that exceed the shortest known correct length by a margin get penalized, leaving room for the model to breathe.
Conceptually, the recipe treats length as something to trim once the model has already figured out how to be right, not as a pressure applied during the messy exploration phase. It is a small change to the reward function rather than a new training stage.
The numbers
The team evaluated on four settings spanning logic puzzles (Logic-RL / Knights and Knaves) and math (DeepScaleR, SimpleRL-Reason, Open-Reasoner-Zero). The headline results:
| Setting | Length reduction | Accuracy change |
|---|---|---|
| Logic reasoning | 40% (step-averaged) | +14 points |
| Math (best case) | 33% (step-averaged) | Preserved |
| Math (other settings) | 11-21% | Preserved |
The method achieves a 40% reduction in step-wise average response length while delivering statistically significant accuracy gains across all evaluated tasks on the logic benchmark. On math reasoning, the reduction reaches 33%, 11%, and 21% in step-averaged response length compared to standard RL approaches across the three math settings respectively.
Baseline comparisons include the Kimi length reward, ThinkPrune, a length-aware reward where the length limit is chosen to yield a comparable average response length: 1700 for Logic-RL and 2500 for DeepScaler, and an Efficient-style reward.

Practical notes and caveats
Code is public at github.com/lblankl/Short-RL, wired into the Logic-RL and DeepScaler training pipelines. Reproducing the paper is not entirely turnkey. The performance of Logic-RL is sensitive to the learning rate. A learning rate of 1e-6 with a batch size of 8 yields the best convergence within three epochs, which is the setting used in the paper, but this configuration can be unstable, sometimes leading to sudden drops in test accuracy during training regardless of whether standard RL or the method is used, so multiple runs may be necessary. A more conservative 4e-7 is offered as a stable alternative that needs more epochs.
A few honest limitations. The method assumes you are running rule-based, on-policy RL with a verifiable reward, so it slots into GRPO-style pipelines on math and logic but does not obviously extend to open-ended tasks where correctness is not binary. Its ceiling is also lower than aggressive truncation methods: NVIDIA's DLER work reports over 70% length cuts using simple truncation with better RL optimization, though at the cost of more invasive changes to the training recipe.
When it is worth using
The technique is a good fit if you are already training an R1-style reasoning model with rule-based RL and want to speed up rollouts without adding a distillation or post-training stage. Because the penalty affects the RL loop itself, throughput gains stack on top of shorter inference outputs, which is the piece that pure inference-time shortening methods leave on the table. If you are working with an already-trained closed model or a task without a clean correctness signal, this is not the tool.
The broader takeaway is a small design point that generalizes beyond this paper: when you add a shaping term to an RL objective, gating it on the state of learning, correctness, exploration stability, dominant reward magnitude, often matters more than the shape of the term itself.