Gradually Compacting Large Language Models for Reasoning Like a Boiling Frog

Yiran Zhao, Shengyang Zhou, Zijian Wu, Tongyan Hu, Yuhui Xu +5 more
2/4/2026
cs.LG
quantization-pruning

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) have demonstrated impressive reasoning capabilities, but their substantial size often demands significant computational resources. To reduce resource consumption and accelerate inference, it is essential to eliminate redundant parameters without compromising performance.

Show full abstract

However, conventional pruning methods that directly remove such parameters often lead to a dramatic drop in model performance in reasoning tasks, and require extensive post-training to recover the lost capabilities. In this work, we propose a gradual compacting method that divides the compression process into multiple fine-grained iterations, applying a Prune-Tune Loop (PTL) at each stage to incrementally reduce model size while restoring performance with finetuning. This iterative approach-reminiscent of the "boiling frog" effect-enables the model to be progressively compressed without abrupt performance loss. Experimental results show that PTL can compress LLMs to nearly half their original size with only lightweight post-training, while maintaining performance comparable to the original model on reasoning tasks. Moreover, PTL is flexible and can be applied to various pruning strategies, such as neuron pruning and layer pruning, as well as different post-training methods, including continual pre-training and reinforcement learning. Additionally, experimental results confirm the effectiveness of PTL on a variety of tasks beyond mathematical reasoning, such as code generation, demonstrating its broad applicability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2026gradually,
  title  = {Gradually Compacting Large Language Models for Reasoning Like a Boiling Frog},
  author = {Yiran Zhao and Shengyang Zhou and Zijian Wu and Tongyan Hu and Yuhui Xu and Rengan Dou and Kenji Kawaguchi and Shafiq Joty and Junnan Li and Michael Qizhe Shieh},
  year   = {2026},
  eprint = {2602.04919},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.04919v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.04919.svg)](https://codeofpaper.com/paper/2602.04919)

Discussion