Concise Thoughts: Impact of Output Length on LLM Reasoning and Cost
<|reference_start|>Concise Thoughts: Impact of Output Length on LLM Reasoning and Cost: 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. Nevertheless, models require significant time to generate answers augmented with lengthy reasoning details. To address this issue, this paper analyzes the impact of output lengths on LLM inference pipelines and proposes novel metrics to evaluate them in terms of \textit{correct conciseness}. It also examines the impact of controlling output length through a refined prompt engineering strategy, Constrained-CoT (CCoT), which encourages the model to limit output length. Experiments on pre-trained LLMs demonstrated the benefit of the proposed metrics and the effectiveness of CCoT across different models. For instance, constraining the reasoning of LLaMA2-70b to 100 words improves the accuracy from 36.01\% (CoT) to 41.07\% (CCoT) on the GSM8K dataset, while reducing the average output length by 28 words.<|reference_end|>
@article{nayab2024concise,
    title={Concise Thoughts: Impact of Output Length on LLM Reasoning and Cost},
    author={Sania Nayab, Giulio Rossolini, Giorgio Buttazzo, Nicolamaria Manes and
  Fabrizio Giacomelli},
    journal={arXiv preprint arXiv:2407.19825},
    year={2024},
    archivePrefix={arXiv},
    eprint={2407.19825},
    primaryClass={cs.CL cs.AI}
}