Papers › TokenSqueeze: Performance-Preserving Compression for Reasoning LLMs

TokenSqueeze: Performance-Preserving Compression for Reasoning LLMs

17 Nov 2025NeurIPSarXiv:2511.13223added by Syntology

Yuxiang Zhang, Zhengxu Yu, Weihang Pan, Zhongming Jin, Qiang Fu, Deng Cai, Binbin Lin, Jieping Ye

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Emerging reasoning LLMs such as OpenAI-o1 and DeepSeek-R1 have achieved strong performance on complex reasoning tasks by generating long chain-of-thought (CoT) traces. However, these long CoTs result in increased token usage, leading to higher inference latency and memory consumption. As a result, balancing accuracy and reasoning efficiency has become essential for deploying reasoning LLMs in practical applications. Existing long-to-short (Long2Short) methods aim to reduce inference length but often sacrifice accuracy, revealing a need for an approach that maintains performance while lowering token costs. To address this efficiency-accuracy tradeoff, we propose TokenSqueeze, a novel Long2Short method that condenses reasoning paths while preserving performance and relying exclusively on self-generated data. First, to prevent performance degradation caused by excessive compression of reasoning depth, we propose to select self-generated samples whose reasoning depth is adaptively matched to the complexity of the problem. To further optimize the linguistic expression without altering the underlying reasoning paths, we introduce a distribution-aligned linguistic refinement method that enhances the clarity and conciseness of the reasoning path while preserving its logical integrity. Comprehensive experimental results demonstrate the effectiveness of TokenSqueeze in reducing token usage while maintaining accuracy. Notably, DeepSeek-R1-Distill-Qwen-7B fine-tuned using our proposed method achieved a 50\% average token reduction while preserving accuracy on the MATH500 benchmark. TokenSqueeze exclusively utilizes the model's self-generated data, enabling efficient and high-fidelity reasoning without relying on manually curated short-answer datasets across diverse applications. Our code is available at https://github.com/zhangyx1122/TokenSqueeze.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2511.13223")

Code

Syntology Ran 1 of 20 code samples harvested from 1 repository linked to this paper; 19 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhangyx1122/TokenSqueeze found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 1 ran; 0 honoured the contract we drafted; 19 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
19unverified

Licence: 20 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhangyx1122/TokenSqueeze. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

is_equiv zhangyx1122/TokenSqueeze/utils/math500_verify.py found in paper text by Syntology ran no licence file found · pointer only · e88118a107b326d1 · report
choice_answer_clean zhangyx1122/TokenSqueeze/utils/qwen_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 809c0178a7ae90ff · report
compute_score zhangyx1122/TokenSqueeze/utils/math500_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 054091f2e78d9eec · report
get_answer zhangyx1122/TokenSqueeze/utils/tools.py found in paper text by Syntology unverified no licence file found · pointer only · 4eed1f4a7be28b06 · report
get_item_hash_number zhangyx1122/TokenSqueeze/step3_generate_rewrite_data.py found in paper text by Syntology unverified no licence file found · pointer only · 645a0fc1825a551c · report
get_kl_divergence zhangyx1122/TokenSqueeze/step4_cal_kl_for_rewrite_data.py found in paper text by Syntology unverified no licence file found · pointer only · bacdc9de18ac7371 · report
get_model_and_tokenizer zhangyx1122/TokenSqueeze/utils/tools.py found in paper text by Syntology unverified no licence file found · pointer only · 914ae020e2d944f4 · report
get_ppl zhangyx1122/TokenSqueeze/utils/tools.py found in paper text by Syntology unverified no licence file found · pointer only · e4e817be08b2ac02 · report
get_prob zhangyx1122/TokenSqueeze/step4_cal_kl_for_rewrite_data.py found in paper text by Syntology unverified no licence file found · pointer only · 58ad512ca891a50b · report
get_prob_kv zhangyx1122/TokenSqueeze/step4_cal_kl_for_rewrite_data.py found in paper text by Syntology unverified no licence file found · pointer only · 97818df7f4fc45f5 · report
is_digit zhangyx1122/TokenSqueeze/utils/qwen_verify.py found in paper text by Syntology unverified no licence file found · pointer only · fb37d3c84b18e368 · report
latex_eval zhangyx1122/TokenSqueeze/utils/orz_verify.py found in paper text by Syntology unverified no licence file found · pointer only · f326075fb5f40749 · report
normalize_final_answer zhangyx1122/TokenSqueeze/utils/orz_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 5662e5ee755b541c · report
parse_digits zhangyx1122/TokenSqueeze/utils/qwen_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 7d4b7f8c3875b126 · report
process_item zhangyx1122/TokenSqueeze/step5_generate_rewrite_dpo_pair.py found in paper text by Syntology unverified no licence file found · pointer only · 62c0b9272e324d3a · report
process_pair_longfalse zhangyx1122/TokenSqueeze/step2_fliter_dpo_datasets.py found in paper text by Syntology unverified no licence file found · pointer only · 2f67c7621d2b63bf · report
remove_boxed zhangyx1122/TokenSqueeze/utils/math500_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 53a8a2e9d14cedfd · report
repeatness zhangyx1122/TokenSqueeze/utils/orz_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 3dcb40e5ce9bac48 · report
timeout_call zhangyx1122/TokenSqueeze/utils/merged_verify.py found in paper text by Syntology unverified no licence file found · pointer only · 791da81670e617a4 · report
tokenize_length zhangyx1122/TokenSqueeze/step5_generate_rewrite_dpo_pair.py found in paper text by Syntology unverified no licence file found · pointer only · 952f974b7981a318 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2511.13223, was issued in November 2025, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections