SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.12183 · ICLR · 2025

To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoning

Greg Durrett, Xi Ye, Juan Rodriguez, Zayne Sprague, Yin Fangcong, Dongwei Jiang, Manya Wadhwa, Prasann Singhal, Xinyu Zhao, Kyle Mahowald

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
zayne-sprague/to-cot-or-not-to-cot canonical 3 of 3
copy not recorded — 1 of 1
FunctionStatusWhere it lives
ans_parser Ran zayne-sprague/to-cot-or-not-to-cot/eval_datasets/types/gsm8k.py
pointer only (licence: NONE) · get_code("fe3f75e48986db07")
is_math Ran zayne-sprague/to-cot-or-not-to-cot/experiments/section_4__cot_evals/zeroshot_cot_experiments.py
pointer only (licence: NONE) · get_code("cd573eb54d30e5b2")
remove_boxed Ran this paper's copy was not recorded; identical code first harvested from meta-math/MetaMath
pointer only · get_code("f3bbe264b05aadd3")
simplify_with_timeout Ran zayne-sprague/to-cot-or-not-to-cot/eval_datasets/types/gsm8k.py
pointer only (licence: NONE) · get_code("012061535bd3e916")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Chain-of-thought (CoT) via prompting is the de facto method for eliciting reasoning capabilities from large language models (LLMs). But for what kinds of tasks is this extra "thinking" really helpful? To analyze this, we conducted a quantitative meta-analysis covering over 100 papers using CoT and ran our own evaluations of 20 datasets across 14 models. Our results show that CoT gives strong performance benefits primarily on tasks involving math or logic, with much smaller gains on other types of tasks. On MMLU, directly generating the answer without CoT leads to almost identical accuracy as CoT unless the question or model's response contains an equals sign, indicating symbolic operations and reasoning. Following this finding, we analyze the behavior of CoT on these problems by separating planning and execution and comparing against tool-augmented LLMs. Much of CoT's gain comes from improving symbolic execution, but it underperforms relative to using a symbolic solver. Our results indicate that CoT can be applied selectively, maintaining performance while saving inference costs. Furthermore, they suggest a need to move beyond prompt-based CoT to new paradigms that better leverage intermediate computation across the whole range of LLM applications 1 .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.12183")
get_code_for_paper("2409.12183")
have("2409.12183")

Connect an agent — have() is free.