TL;DR
LightThinker is a novel method that enables large language models to compress intermediate reasoning steps dynamically, significantly reducing memory and computational costs while maintaining performance in complex reasoning tasks.
Contribution
We introduce LightThinker, a new approach for dynamic compression of reasoning steps in LLMs, including training methods, a dependency metric, and extensive experimental validation.
Findings
Reduces peak memory usage and inference time.
Maintains competitive accuracy in reasoning tasks.
Provides a new direction for efficient LLM reasoning.
Abstract
Large language models (LLMs) have shown remarkable performance in complex reasoning tasks, but their efficiency is hindered by the substantial memory and computational costs associated with generating lengthy tokens. In this paper, we propose LightThinker, a novel method that enables LLMs to dynamically compress intermediate thoughts during reasoning. Inspired by human cognitive processes, LightThinker compresses verbose thought steps into compact representations and discards the original reasoning chains, thereby significantly reducing the number of tokens stored in the context window. This is achieved by training the model on when and how to perform compression through data construction, mapping hidden states to condensed gist tokens, and creating specialized attention masks. Additionally, we introduce the Dependency (Dep) metric to quantify the degree of compression by measuring the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
MethodsSoftmax · Attention Is All You Need
