[Paper Review] Concise Thoughts: Impact of Output Length on LLM Reasoning and Cost
This paper proposes Constrained-Chain-of-Thought (CCoT), a prompt engineering method that limits LLM reasoning length to improve inference efficiency and accuracy. For LLaMA2-70b on GSM8K, CCoT reduced output length by 28 words (from 99 to 71) while increasing accuracy from 36.01% to 41.07%, demonstrating that concise reasoning enhances both speed and correctness in large models.
Today's large language models (LLMs) can solve challenging question-answering tasks, and prompt engineering techniques, such as chain-of-thought (CoT), have gained attention for enhancing the explanation and correctness of outputs. However, many models and techniques tend to produce excessively verbose and lengthy answers, leading to issues with both conciseness and generation time. To address this, this paper analyzes the impact of output lengths on LLM inference pipelines by introducing and proposing novel metrics to evaluate the extit{correct conciseness} of a model and related prompting techniques. Then, we examine the impact of controlling output length through a refined prompt engineering strategy, Constrained-CoT (CCoT), which encourages the model to produce more concise outputs. To better understand the effects of such a prompt, we also introduce two additional scores for analyzing the conciseness, measured in terms of redundancy and information flow in generated answers. Experiments on pretrained LLMs and multiple datasets demonstrate the benefits of the proposed metrics and the effectiveness of CCoT across different models.
Motivation & Objective
- To address the inefficiency and unpredictability of long reasoning chains in LLMs during inference.
- To investigate whether controlling output length improves both reasoning correctness and inference speed.
- To develop novel metrics that evaluate the trade-off between output conciseness, correctness, and inference time.
- To explore whether prompt engineering can effectively guide LLMs to generate shorter, yet accurate, reasoning steps.
Proposed method
- Proposes three new metrics—Concise Accuracy, Length-Weighted Accuracy, and Time-Predictability Score—to evaluate reasoning outputs based on correctness and brevity.
- Introduces Constrained-Chain-of-Thought (CCoT), a prompt engineering strategy that explicitly instructs the model to limit reasoning to a user-defined word count.
- Employs zero-shot prompting on pre-trained LLMs across multiple benchmarks, including GSM8K, to evaluate CCoT performance.
- Uses a fixed-length constraint (e.g., 100 words) in prompts to guide the model toward more concise outputs while preserving reasoning quality.
- Evaluates model behavior across different model sizes (e.g., LLaMA2-70b, Falcon-40b, Vicuna-13b) to assess generalization of CCoT.
- Employs automatic evaluation on GSM8K with human-verified answers to measure accuracy and output length across prompting variants.
Experimental results
Research questions
- RQ1RQ1: Does constraining reasoning length via CCoT improve both accuracy and inference efficiency in large LLMs?
- RQ2RQ2: Can smaller and medium-sized LLMs effectively respect length constraints in CCoT prompting?
- RQ3RQ3: How do the proposed metrics correlate with human judgments of conciseness and correctness?
- RQ4RQ4: Is there a trade-off between output length and reasoning quality, and can it be optimized through prompt design?
Key findings
- For LLaMA2-70b on GSM8K, CCoT with a 100-word limit increased accuracy from 36.01% (CoT) to 41.07% while reducing average output length by 28 words.
- The average output length under CCoT-100 was 71 words, down from 99 words in standard CoT prompting.
- Smaller models like Falcon-7b and Vicuna-13b showed reduced accuracy under CCoT, indicating limited ability to maintain reasoning quality under length constraints.
- Larger models (e.g., LLaMA2-70b, Falcon-40b) demonstrated better control over output length and improved accuracy with CCoT, suggesting model scale influences constraint adherence.
- The proposed metrics effectively captured the trade-off between conciseness and correctness, highlighting the importance of length-aware evaluation beyond standard accuracy.
- CCoT improved time predictability by reducing variance in response generation time due to more consistent output lengths.
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.