TokenSkip: Controllable Chain-of-Thought Compression in LLMs

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xia, Heming, Leong, Chak Tou, Wang, Wenjie, Li, Yongqi, Li, Wenjie
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912589328416768
author Xia, Heming
Leong, Chak Tou
Wang, Wenjie
Li, Yongqi
Li, Wenjie
author_facet Xia, Heming
Leong, Chak Tou
Wang, Wenjie
Li, Yongqi
Li, Wenjie
contents Chain-of-Thought (CoT) has been proven effective in enhancing the reasoning capabilities of large language models (LLMs). Recent advancements, such as OpenAI's o1 and DeepSeek-R1, suggest that scaling up the length of CoT sequences during inference could further boost LLM reasoning performance. However, due to the autoregressive nature of LLM decoding, longer CoT outputs lead to a linear increase in inference latency, adversely affecting user experience, particularly when the CoT exceeds 10,000 tokens. To address this limitation, we analyze the semantic importance of tokens within CoT outputs and reveal that their contributions to reasoning vary. Building on this insight, we propose TokenSkip, a simple yet effective approach that enables LLMs to selectively skip less important tokens, allowing for controllable CoT compression. Extensive experiments across various models and tasks demonstrate the effectiveness of TokenSkip in reducing CoT token usage while preserving strong reasoning performance. Notably, when applied to Qwen2.5-14B-Instruct, TokenSkip reduces reasoning tokens by 40% (from 313 to 181) on GSM8K, with less than a 0.4% performance drop. We release our code and checkpoints in https://github.com/hemingkx/TokenSkip.
format Preprint
id arxiv_https___arxiv_org_abs_2502_12067
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TokenSkip: Controllable Chain-of-Thought Compression in LLMs
Xia, Heming
Leong, Chak Tou
Wang, Wenjie
Li, Yongqi
Li, Wenjie
Computation and Language
Artificial Intelligence
Chain-of-Thought (CoT) has been proven effective in enhancing the reasoning capabilities of large language models (LLMs). Recent advancements, such as OpenAI's o1 and DeepSeek-R1, suggest that scaling up the length of CoT sequences during inference could further boost LLM reasoning performance. However, due to the autoregressive nature of LLM decoding, longer CoT outputs lead to a linear increase in inference latency, adversely affecting user experience, particularly when the CoT exceeds 10,000 tokens. To address this limitation, we analyze the semantic importance of tokens within CoT outputs and reveal that their contributions to reasoning vary. Building on this insight, we propose TokenSkip, a simple yet effective approach that enables LLMs to selectively skip less important tokens, allowing for controllable CoT compression. Extensive experiments across various models and tasks demonstrate the effectiveness of TokenSkip in reducing CoT token usage while preserving strong reasoning performance. Notably, when applied to Qwen2.5-14B-Instruct, TokenSkip reduces reasoning tokens by 40% (from 313 to 181) on GSM8K, with less than a 0.4% performance drop. We release our code and checkpoints in https://github.com/hemingkx/TokenSkip.
title TokenSkip: Controllable Chain-of-Thought Compression in LLMs
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.12067