Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM Reasoning

Jiwon Song, Dongwon Jo, Yulhwa Kim, Jae-Joon Kim
5/20/2025
26 citations
cs.CL

Official code: jiwonsong-dev/ReasoningPathCompression (32 stars, Python, MIT, last commit 2025-10-20).

Abstract

Recent reasoning-focused language models achieve high accuracy by generating lengthy intermediate reasoning paths before producing final answers. While this approach is effective in solving problems that require logical thinking, long reasoning paths significantly increase memory usage and reduce throughput of token generation, limiting the practical deployment of such models.

Show full abstract

We propose Reasoning Path Compression (RPC), a training-free method that accelerates inference by leveraging the semantic sparsity of reasoning paths. RPC periodically compresses the KV cache by retaining cache entries that receive high importance score, which are computed using a selector window composed of recently generated queries. Experiments show that RPC improves generation throughput of QwQ-32B by up to 1.60$\times$ compared to the inference with full KV cache, with an accuracy drop of 1.2\% on the AIME 2024 benchmark. Our findings demonstrate that semantic sparsity in reasoning traces can be effectively exploited for compression, offering a practical path toward efficient deployment of reasoning LLMs. Our code is available at https://github.com/jiwonsong-dev/ReasoningPathCompression.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2025] Official implementation of "Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM Reasoning"

325Python, ShellMay 19, 20251 years agoMIT
efficient-reasoningllm-inference

Similar Papers

Cite this paper

@article{song2025reasoning,
  title  = {Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM Reasoning},
  author = {Jiwon Song and Dongwon Jo and Yulhwa Kim and Jae-Joon Kim},
  year   = {2025},
  eprint = {2505.13866},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.13866v2},
  journal = {NEURIPS 2025 2025}
}

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/2505.13866.svg)](https://codeofpaper.com/paper/2505.13866)

Discussion