---
title: "Compressed Chain of Thought: Efficient Reasoning Through"
description: "Cheng and Van Durme propose Compressed Chain-of-Thought (CCoT), which replaces the full… 24 references, cited by 56 papers here."
authors: ["Jeffrey Cheng", "Benjamin Van Durme"]
year: 2024
venue: "arXiv:2412.13171"
source: "https://arxiv.org/abs/2412.13171"
doi: "10.48550/arxiv.2412.13171"
arxiv: "2412.13171"
licence: "arXiv — non-exclusive license to distribute"
licence_url: "http://arxiv.org/licenses/nonexclusive-distrib/1.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/cheng-2024-compressed-chain-thought-efficient-reasoning/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cheng-2024-compressed-chain-thought-efficient-reasoning/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/page/7/) / Compressed Chain of Thought: Efficient Reasoning Through Dense Representations

# Compressed Chain of Thought: Efficient Reasoning Through Dense Representations

**Authors:** [Jeffrey Cheng](https://md.research.elamur.ai/free/en/authors/jeffrey-cheng/) and [Benjamin Van Durme](https://md.research.elamur.ai/free/en/authors/benjamin-van-durme/) · **Year:** 2024 · **Venue:** arXiv:2412.13171 · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

**Links:** [Publisher's page](https://arxiv.org/abs/2412.13171) · [PDF](https://arxiv.org/pdf/2412.13171) · [DOI 10.48550/arxiv.2412.13171](https://doi.org/10.48550/arxiv.2412.13171) · [arXiv 2412.13171](https://arxiv.org/abs/2412.13171) · [OpenAlex](https://openalex.org/W4405562786)

**Citations:** 4 citations (OpenAlex, 2026-10-14) · [56](https://md.research.elamur.ai/free/en/papers/cheng-2024-compressed-chain-thought-efficient-reasoning/cited-by/) in our library, of the 149,439 papers whose bibliographies we read

## Summary
Chain-of-thought reasoning makes language models more accurate, but writing out long explicit reasoning traces slows generation considerably. Cheng and Van Durme propose Compressed Chain-of-Thought (CCoT), which replaces the full textual reasoning chain with a shorter, variable-length sequence of continuous "contemplation tokens." Each token is a dense vector meant to approximate a compressed version of a real reasoning trace. During training, the model learns, via teacher forcing, to reproduce a selected subset of the gold hidden states of full reasoning chains. Off-the-shelf decoder LLMs are adapted with LoRA, using only the roughly 9,000 GSM8K training instances. At inference, an intermediate-layer hidden state is fed back as the next input instead of a sampled discrete token. A compression ratio controls how many such tokens are produced, so users can trade accuracy against speed. On GSM8K, CCoT clearly beats both a no-reasoning baseline and fixed-length PAUSE tokens while adding little latency. Because the tokens are grounded in text, they may eventually allow the hidden reasoning to be decoded and inspected.

## Key points
- On GSM8K (exact match, no in-context examples, single Nvidia A100):
  - With no contemplation tokens, accuracy is 0.089 at 0.33 s.
  - CCoT at 10x compression reaches 0.179 at 0.78 s.
  - CCoT at 20x compression reaches 0.151 at 0.49 s.
  - Full reasoning chains reach 0.315 but take 8.10 s.
- PAUSE tokens (Goyal et al., 2024) decode slightly faster but barely help: 0.092 at 20x and 0.099 at 10x. The authors attribute this to GSM8K needing sequential rather than parallel computation.
- Taking hidden states from a middle layer (l ≈ L/2) worked best. Layers near the input or output could not be learned well. Accuracy stops improving at around r = 0.2.
- Compared with COCONUT (Hao et al., 2024), CCoT adapts a 7B model rather than a 1.5B model. It uses about 9k training examples instead of about 400k augmented ones, and its tokens are grounded in text.
- In a theoretical analysis, the authors argue that generating contemplation tokens autoregressively adds computational depth, whereas parallel filler or pause tokens add only width.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

📚 Shelves (5): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 18,614 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 17,965 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 17,450 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 17,296 works · [👁️ Computer Vision and Pattern Recognition](https://md.research.elamur.ai/free/en/shelves/computer-science/computer-vision-and-pattern-recognition/) · 3,486 works

🧭 Topics (1): [🧮 Reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) · 1,685 works

## Cite

Cite as: Jeffrey Cheng and Benjamin Van Durme. 2024. Compressed Chain of Thought: Efficient Reasoning Through Dense Representations. arXiv:2412.13171.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@misc{cheng2024compressed,
  title = {{Compressed Chain of Thought: Efficient Reasoning Through Dense Representations}},
  author = {Jeffrey Cheng and Benjamin {Van Durme}},
  year = {2024},
  doi = {10.48550/arxiv.2412.13171},
  eprint = {2412.13171},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2412.13171}
}
```

- [← previous Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models](https://md.research.elamur.ai/free/en/papers/wang-2024-limits-survey-techniques-extend-context/)
- [next → Making Text Embedders Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/li-2024-making-text-embedders-few-shot/)
- [↑ back to papers of 2024](https://md.research.elamur.ai/free/en/papers/2024/page/7/)

## References

24 references, 11 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Burtsev, M. S., Kuratov, Y., Peganov, A., and Sapunov, G. V. Memory transformer, 2021. URL https://arxiv.org/abs/2006.11527. — [arXiv:2006.11527](https://arxiv.org/abs/2006.11527) [↗](https://arxiv.org/abs/2006.11527)
2. Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., Hesse, C., and Schulman, J. [Training verifiers to solve math word problems](https://md.research.elamur.ai/free/en/papers/cobbe-2021-training-verifiers-solve-math-word/), 2021. URL https://arxiv.org/abs/2110.14168. [↗](https://arxiv.org/abs/2110.14168)
3. Deng, Y., Prasad, K., Fernandez, R., Smolensky, P., Chaudhary, V., and Shieber, S. Implicit chain of thought reasoning via knowledge distillation, 2023. URL https://arxiv.org/abs/2311.01460. [↗](https://arxiv.org/abs/2311.01460)
4. Deng, Y., Choi, Y., and Shieber, S. From explicit cot to implicit cot: Learning to internalize cot step by step, 2024. URL https://arxiv.org/abs/2405.14838. [↗](https://arxiv.org/abs/2405.14838)
5. Ge, T., Hu, J., Wang, L., Wang, X., Chen, S.-Q., and Wei, F. [In-context autoencoder for context compression in a large language model](https://md.research.elamur.ai/free/en/papers/ge-2023-context-autoencoder-context-compression-large/), 2024. URL https://arxiv.org/abs/2307.06945. [↗](https://arxiv.org/abs/2307.06945)
6. Goyal, S., Ji, Z., Rawat, A. S., Menon, A. K., Kumar, S., and Nagarajan, V. Think before you speak: Training language models with pause tokens, 2024. URL https://arxiv.org/abs/2310.02226. [↗](https://arxiv.org/abs/2310.02226)
7. Hao, S., Sukhbaatar, S., Su, D., Li, X., Hu, Z., Weston, J., and Tian, Y. Training large language models to reason in a continuous latent space, 2024. URL https://arxiv.org/abs/2412.06769. [↗](https://arxiv.org/abs/2412.06769)
8. Herel, D. and Mikolov, T. Thinking tokens for language modeling, 2024. URL https://arxiv.org/abs/2405.08644. — [arXiv:2405.08644](https://arxiv.org/abs/2405.08644) [↗](https://arxiv.org/abs/2405.08644)
9. Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., and Chen, W. [Lora: Low-rank adaptation of large language models](https://md.research.elamur.ai/free/en/papers/hu-2021-lora-low-rank-adaptation-large/), 2021. URL https://arxiv.org/abs/2106.09685. [↗](https://arxiv.org/abs/2106.09685)
10. Jiang, H., Wu, Q., Lin, C.-Y., Yang, Y., and Qiu, L. [Llmlingua: Compressing prompts for accelerated inference of large language models](https://md.research.elamur.ai/free/en/papers/jiang-2023-llmlingua-compressing-prompts-accelerated-inference/), 2023. URL https://arxiv.org/abs/2310.05736. [↗](https://arxiv.org/abs/2310.05736)
11. Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., and Iwasawa, Y. [Large language models are zero-shot reasoners](https://md.research.elamur.ai/free/en/papers/kojima-2022-large-language-models-zero-shot/), 2023. URL https://arxiv.org/abs/2205.11916. [↗](https://arxiv.org/abs/2205.11916)
12. Kou, S., Hu, L., He, Z., Deng, Z., and Zhang, H. Cllms: Consistency large language models, 2024. URL https://arxiv.org/abs/2403.00835. — [arXiv:2403.00835](https://arxiv.org/abs/2403.00835) [↗](https://arxiv.org/abs/2403.00835)
13. Lanham, T., Chen, A., Radhakrishnan, A., Steiner, B., Denison, C., Hernandez, D., Li, D., Durmus, E., Hubinger, E., Kernion, J., Lukošiūtė, K., Nguyen, K., Cheng, N., Joseph, N., Schiefer, N., Rausch, O., Larson, R., McCandlish, S., Kundu, S., Kadavath, S., Yang, S., Henighan, T., Maxwell, T., Te… — [Measuring Faithfulness in Chain-of-Thought Reasoning](https://md.research.elamur.ai/free/en/papers/lanham-2023-measuring-faithfulness-chain-thought-reasoning/)
14. Liu, H., Sferrazza, C., and Abbeel, P. [Chain of hindsight aligns language models with feedback](https://md.research.elamur.ai/free/en/papers/liu-2023-chain-hindsight-aligns-language-models/), 2023. URL https://arxiv.org/abs/2302.02676. [↗](https://arxiv.org/abs/2302.02676)
15. Liu, Y., Li, H., Cheng, Y., Ray, S., Huang, Y., Zhang, Q., Du, K., Yao, J., Lu, S., Ananthanarayanan, G., Maire, M., Hoffmann, H., Holtzman, A., and Jiang, J. Cachegen: Kv cache compression and streaming for fast large language model serving. In Proceedings of the ACM SIGCOMM 2024 Conference, ACM SI… — [doi:10.1145/3651890.3672274](https://doi.org/10.1145/3651890.3672274) [find](https://scholar.google.com/scholar?q=Liu%2C+Y%2E%2C+Li%2C+H%2E%2C+Cheng%2C+Y%2E%2C+Ray%2C+S%2E%2C+Huang%2C+Y%2E%2C+Zhang%2C+Q%2E%2C+Du%2C+K%2E%2C+Yao%2C+J%2E%2C+Lu%2C+S%2E%2C+Ananthanarayanan%2C+G%2E%2C+Maire%2C+M%2E%2C+Hoffmann%2C+H%2E%2C+Holtzman%2C+A%2E%2C+and+Jiang%2C+J%2E+Cachegen%3A+Kv+cache+compression+and+stream)
16. Ning, X., Lin, Z., Zhou, Z., Wang, Z., Yang, H., and Wang, Y. [Skeleton-of-thought: Prompting llms for efficient parallel generation](https://md.research.elamur.ai/free/en/papers/ning-2023-skeleton-thought-prompting-llms-efficient/), 2024. URL https://arxiv.org/abs/2307.15337. [↗](https://arxiv.org/abs/2307.15337)
17. Pfau, J., Merrill, W., and Bowman, S. R. Let’s think dot by dot: Hidden computation in transformer language models, 2024. URL https://arxiv.org/abs/2404.15758. [↗](https://arxiv.org/abs/2404.15758)
18. Puerto, H., Chubakov, T., Zhu, X., Madabushi, H. T., and Gurevych, I. Fine-tuning with divergent chains of thought boosts reasoning through self-correction in language models, 2024. URL https://arxiv.org/abs/2407.03181. — [arXiv:2407.03181](https://arxiv.org/abs/2407.03181) [↗](https://arxiv.org/abs/2407.03181)
19. Qin, G., Rosset, C., Chau, E. C., Rao, N., and Durme, B. V. Dodo: Dynamic contextual compression for decoder-only lms, 2024. URL https://arxiv.org/abs/2310.02409. [↗](https://arxiv.org/abs/2310.02409)
20. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., Bikel, D., Blecher, L., Ferrer, C. C., Chen, M., Cucurull, G., Esiobu, D., Fernandes, J., Fu, J., Fu, W., Fuller, B., Gao, C., Goswami, V., Goyal, N., Hartshorn, A., Hossei… — [Llama 2: Open Foundation and Fine-Tuned Chat Models](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-2-open-foundation-fine/)
21. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. [Attention is all you need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/), 2023. URL https://arxiv.org/abs/1706.03762. [↗](https://arxiv.org/abs/1706.03762)
22. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., and Zhou, D. [Chain-of-thought prompting elicits reasoning in large language models](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/), 2023. URL https://arxiv.org/abs/2201.11903. [↗](https://arxiv.org/abs/2201.11903)
23. Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T. L., Cao, Y., and Narasimhan, K. Tree of thoughts: Deliberate problem solving with large language models, 2023. URL https://arxiv.org/abs/2305.10601. [↗](https://arxiv.org/abs/2305.10601)
24. Zhang, H., Liu, Z., Zhao, Y., Zheng, J., Zhuang, C., Gu, J., and Chen, G. Fast chain-of-thought: A glance of future from parallel decoding leads to answers faster, 2024. URL https://arxiv.org/abs/2311.08263. [↗](https://arxiv.org/abs/2311.08263)

*Updated 2 November 2026*
