Upfront Chain-of-Thought: A Cooperative Framework for Chain-of-Thought Compression

Chengzhengxu Li, Xiaoming Liu, Zhaohan Zhang, Shaochu Zhang, Shengchao Liu, Guoxin Ma, Yu Lan, Chao Shen · OpenReview

TL;DR

This paper introduces "Upfront Chain-of-Thought" (UCoT), a novel framework that significantly compresses the reasoning process of Large Language Models (LLMs) by using a lightweight "compressor" model to generate compact "soft tokens" representing the reasoning steps. This approach dramatically reduces inference latency and token usage while maintaining or even improving performance, outperforming existing CoT compression methods.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown impressive reasoning capabilities through "Chain-of-Thought" (CoT) prompting, where they break down complex problems into intermediate steps. However, this autoregressive generation of CoT leads to high computational costs and significant latency, hindering real-world deployment. Existing CoT compression methods often sacrifice reasoning accuracy by simplifying prompts or using external, pre-compressed CoT datasets. This paper addresses the challenge of achieving efficient CoT reasoning without compromising performance, aiming to reduce CoT length while preserving the essential reasoning logic.

Methods

UCoT employs a two-stage cooperative framework:

  1. Contextual CoT Generation (Compressor): A lightweight model (compressor) is trained to distill the reasoning process of a larger "executor" model into a sequence of "soft tokens." This is achieved by training the compressor to encode the ground-truth CoT into these soft tokens, effectively creating a compressed representation of the reasoning.
  2. Contextual CoT Utilization (Executor): The executor model is then trained to leverage these soft tokens as contextual input. A novel reward-guided mechanism is introduced to ensure the executor effectively utilizes the compressed reasoning information to produce accurate answers with significantly shorter CoT outputs. This mechanism constrains the executor's output length, forcing it to rely on the soft tokens for the missing reasoning logic.

Datasets

The authors evaluated UCoT on several standard datasets:

  • Mathematical Reasoning: GSM8K, MATH-500, AIME2024, ASDiv
  • Scientific Question Answering: GPQA
  • Code Generation: HumanEval

They used these datasets for both training and evaluation, following standard protocols.

Key Insights and Ideas

  • CoT as Context, Not Just Output: The paper reframes CoT not merely as an output sequence but as a crucial input context that helps LLMs bridge the gap between a query and its answer.
  • Soft Tokens for Compressed Reasoning: Representing CoT as "soft tokens" (dense embeddings) rather than discrete text allows for more efficient and information-rich compression.
  • Cooperative Compressor-Executor: The UCoT framework's success hinges on the synergy between a specialized compressor and a powerful executor, enabling a balance between compression and reasoning fidelity.
  • Reward-Guided Utilization: The novel reward mechanism is key to ensuring the executor effectively leverages the compressed reasoning, preventing performance degradation.
  • Generalizability: UCoT demonstrates adaptability across different LLM architectures and scales, suggesting its broad applicability.

Key Results

  • Significant Token Reduction: UCoT achieved substantial reductions in CoT token usage. For instance, on the GSM8K dataset with the Qwen2.5-7B-Instruct model, token usage was reduced by 50%.
  • Performance Improvement: Remarkably, UCoT not only reduced token usage but also improved performance compared to SOTA methods. On GSM8K, UCoT achieved 3.08% higher performance than the SOTA method (Tokenskip).
  • Efficiency Gains: The method significantly reduces end-to-end latency due to shorter output generation.
  • Robustness: UCoT showed better robustness against prompt perturbation attacks compared to baseline methods.
  • Scalability: The framework effectively compresses CoT for executors of various scales, with larger executors showing better performance retention.

Limitations and Future Work

  • Limited Model Evaluation: UCoT has primarily been evaluated on open-source models. Its applicability to closed-source models remains unexplored.
  • Uniform Compression Ratio: The method applies a fixed compression ratio across all inputs, lacking adaptive adjustment based on problem complexity.
  • Larger LLM Evaluation: The study did not evaluate UCoT on very large-scale LLMs (e.g., Qwen2.5-32B and 72B series) due to computational constraints.
  • Future Work: The authors suggest evaluating UCoT on larger LLMs and exploring adaptive compression strategies for varying problem complexities. They also aim to investigate its applicability to closed-source models.

Summary updated

Abstract

Recent developments have enabled advanced reasoning in Large Language Models (LLMs) via long Chain-of-Thought (CoT), while long CoT suffers from high computational costs and significant latency losses owing to the autoregressive nature of generative LLMs. CoT compression aims to improve efficiency in the reasoning process by reducing output length. Previous works trade reasoning efficiency by either laborious discrete prompt designing or the construction of external compressed CoT datasets that sacrifice key reasoning details. In this work, we propose Upfront CoT (UCoT): an efficient reasoning framework with upfront thought embedding to automate CoT compression. UCoT is a cooperative workflow involving a small model (compressor) and a large model (executor). The first stage of UCoT trains compressor to generate upfront thought embeddings rich in reasoning information for the executor, avoiding the drawbacks of manually designed prompts. The second stage optimizes executor to utilize upfront thought embeddings to derive the correct answer with short reasoning, using a reward mechanism. Extensive experiments show that UCoT maintains the powerful reasoning ability of executor while significantly reducing the length of CoT. It is worth mentioning that when applying UCoT to the Qwen2.5-7B-Instruct model, the usage of tokens on GSM8K dataset is reduced by 50\%, while the performance is 3.08\% higher than that of the state-of-the-art (SOTA) method. The code and dataset are in supplementary material.
BibTeX
@inproceedings{li2026upfront,
  author = {Chengzhengxu Li and Xiaoming Liu and Zhaohan Zhang and Shaochu Zhang and Shengchao Liu and Guoxin Ma and Yu Lan and Chao Shen},
  title = {{Upfront Chain-of-Thought: A Cooperative Framework for Chain-of-Thought Compression}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1810},
}
Figure