[Paper Review] Compressed Chain of Thought: Efficient Reasoning Through Dense Representations
This paper introduces Compressed Chain of Thought (CCoT), a framework that generates contentful, autoregressively decoded contemplation tokens as dense, compressed representations of explicit reasoning chains. By finetuning decoder-only LLMs via LoRA with knowledge distillation from gold hidden states, CCoT achieves improved reasoning accuracy with reduced latency, enabling adaptive performance-efficiency tradeoffs through variable compression ratios.
Chain-of-thought (CoT) decoding enables language models to improve reasoning performance at the cost of high generation latency in decoding. Recent proposals have explored variants of contemplation tokens, a term we introduce that refers to special tokens used during inference to allow for extra computation. Prior work has considered fixed-length sequences drawn from a discrete set of embeddings as contemplation tokens. Here we propose Compressed Chain-of-Thought (CCoT), a framework to generate contentful and continuous contemplation tokens of variable sequence length. The generated contemplation tokens are compressed representations of explicit reasoning chains, and our method can be applied to off-the-shelf decoder language models. Through experiments, we illustrate how CCoT enables additional reasoning over dense contentful representations to achieve corresponding improvements in accuracy. Moreover, the reasoning improvements can be adaptively modified on demand by controlling the number of contemplation tokens generated.
Motivation & Objective
- To address the high inference latency of Chain-of-Thought (CoT) prompting in LLMs by replacing explicit reasoning traces with compressed, contentful representations.
- To enable efficient, high-throughput reasoning by generating autoregressive contemplation tokens that are dense, grounded in semantic content, and derived from full reasoning chains.
- To provide a flexible, data-efficient method that allows on-demand adjustment of reasoning depth via variable compression ratios during inference.
- To demonstrate that contentful contemplation tokens can enhance computational expressivity beyond noncontentful tokens, particularly in depth- and width-bottlenecked reasoning tasks.
Proposed method
- The method uses knowledge distillation to train a student model to predict the hidden states of a teacher model that has generated a full CoT reasoning trace.
- Contemplation tokens are learned as continuous, compressed representations of these hidden states, rather than discrete tokens or noncontentful signals.
- The framework is applied to off-the-shelf decoder-only LLMs via LoRA fine-tuning, enabling efficient adaptation without architectural changes.
- The number of generated contemplation tokens is controlled during inference to modulate the reasoning depth and balance performance and latency.
- The approach leverages autoregressive decoding of contemplation tokens to increase computational depth, while also enhancing parallel computation width.
- Theoretical analysis shows that autoregressively decoded contemplation tokens extend the computational expressivity of Transformers beyond what is possible with parallel-only tokens.
Experimental results
Research questions
- RQ1Can contentful, dense representations of reasoning chains be effectively learned and used as contemplation tokens to improve reasoning efficiency?
- RQ2How does the performance of CCoT compare to standard CoT and noncontentful contemplation token methods in terms of accuracy and latency?
- RQ3To what extent can the reasoning capacity of a model be extended through autoregressive contemplation tokens in depth- and width-bottlenecked tasks?
- RQ4Can the performance-efficiency tradeoff be adaptively controlled via variable compression ratios in a data-efficient manner?
Key findings
- CCoT achieves significant improvements in reasoning accuracy on GSM8K compared to standard CoT prompting, while reducing generation latency by a factor of nearly 10x.
- The method demonstrates a strong performance-efficiency tradeoff, where increasing the number of contemplation tokens improves accuracy in a controlled, scalable manner.
- Contentful contemplation tokens enable post-hoc interpretability, as they can be decoded back into natural language reasoning traces, unlike noncontentful tokens.
- Theoretical analysis confirms that autoregressively decoded contemplation tokens extend the computational expressivity of Transformers beyond what is possible with parallel-only tokens, especially in depth-bottlenecked tasks.
- CCoT achieves competitive performance using only ~9,000 training instances on GSM8K, significantly fewer than prior distillation methods, indicating high data efficiency.
- The framework is compatible with off-the-shelf LLMs and can be applied via LoRA fine-tuning, enabling broad applicability without architectural modifications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.