Open the WaytoAGI knowledge base on Feishu · 100M+ visits, open to everyone →
WaytoAGI

Knowledge Base · Learning paths

When Should You Use Chain of Thought (CoT)?

Chain of Thought (CoT) is not a universal solution. It significantly improves performance mainly on mathematical and symbolic reasoning tasks by helping with execution steps rather than high-level planning. Tool calling often outperforms CoT, and the technique may become less relevant for tasks where external tools are available. This conclusion is backed by a comprehensive meta-analysis and experiments across 14 different models.

Chain of ThoughtCoT promptingLLM reasoningChain-of-Thoughttool calling

Translated from Chinese by AI. Spotted an issue? Use the feedback button.

🔗 Original Link: https://zhuanlan.zhihu.com/p/760758...

⏰ Publication Date: 2024-09-29

Key Takeaways

  • CoT is not suitable for all tasks and is not a universally applicable method

    • CoT provides significant benefits for tasks involving mathematics or logic
    • It offers minimal help for other types of tasks
  • CoT may be becoming increasingly "redundant"

    • Reasoning can be divided into two stages: analysis & planning, and execution
    • CoT provides limited help for analysis and planning, but is more useful for execution
    • For math and symbolic reasoning tasks, the execution stage can leverage many available tools, which often outperform CoT

Basic Information

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

  • Link: https://arxiv.org/abs/2409.12183

  • Submission Date: September 18, 2024

  • Overview: This paper analyzes over 100 studies related to CoT and evaluates 14 models across 20 datasets to determine which types of tasks benefit from Chain-of-Thought prompting.

Paper Core Content Walkthrough

Chain-of-Thought (CoT) was one of the earliest techniques proven to improve the performance of large language models (LLMs). Almost every course on prompt engineering introduces CoT. Thanks to its low cost and logical consistency, people tend to apply CoT directly on many tasks in hopes of boosting LLM performance. But does this method truly work? The central goal of this paper is to answer that very question.

Different Task Types, Different Effects

The authors categorized various tasks and evaluated them separately. The core contribution of this paper lies in the two charts presented in this section.

The chart above is a meta-analysis of CoT research. The vertical axis shows different types of tasks, while the horizontal axis represents CoT’s contribution to performance. Tasks such as Text Classification and Meta-linguistic tasks cluster in the middle and left, indicating that CoT provides little to no benefit. In contrast, tasks like Math and Symbolic/Algorithmic tasks cluster on the right, showing that CoT delivers clear improvements.

The chart above shows the authors’ own experimental results, grouped into several major task categories. Orange bars represent the use of CoT, while blue bars represent no CoT. It is evident that Mathematical and Symbolic tasks benefit significantly more from CoT.

CoT Contributes More to the Execution Step

Typically, we break a task into two stages: analysis & planning, and execution. For example, in a word problem involving two pipes (one filling, one draining), the analysis & planning stage involves deriving the formula, while the execution stage involves calculating the result. The authors analyzed the contribution of CoT in each of these two stages.

First, ignore the table data in the figure below and focus only on the legend. The authors define several experimental settings:

  1. Direct: Standard prompting without CoT
  2. CoT: Standard CoT prompting without separating steps
  3. Plan + Direct Solver: Use CoT for analysis & planning, then use standard prompting for execution
  4. Plan + CoT Solver: Use CoT for both analysis & planning and execution
  5. Plan + Tool Solver: Use CoT for analysis & planning, then call an external tool for execution

The logic for interpreting the chart above is as follows:

  • First, comparing Direct vs. CoT shows that CoT consistently improves performance across different models.
  • Next, comparing Direct vs. Plan + Direct Solver reveals that applying CoT only to the analysis & planning stage brings limited gains.
  • Then, comparing Plan + Direct Solver vs. Plan + CoT Solver demonstrates that most of the performance gain from CoT actually comes from the execution stage.
  • Finally, comparing CoT vs. Plan + Tool Solver shows that using tools for execution yields even better results.

Based on the analysis in this section, two key conclusions can be drawn:

  1. CoT provides little help for analysis & planning but offers substantial benefits for execution.
  2. When tools are available, using them produces better results than CoT.

Summary

From the two core sections above, we can summarize the following:

  • CoT only provides clear benefits for tasks that are mathematical or strongly logical/symbolic in nature.
  • Its contribution mainly comes from improving the execution stage.
  • In the execution stage, tools outperform CoT.
    • Current reality: There are already many available tools for mathematical and strongly symbolic/logical tasks (e.g., Python interpreters).

From this, we can infer that if we no longer require the model to complete tasks entirely on its own, CoT may become increasingly “redundant” in the future.

Additional Notes

The Paper’s Conclusions May Not Be Entirely “Fair”

The paper notes that CoT brings significant gains on mathematical tasks. One potential underlying factor is that the baseline performance on these tasks is already quite low. As shown in the table below, the average scores for Commonsense and Knowledge tasks are much higher than those for Mathematical and Symbolic tasks. Raising a weak baseline to a moderate level is far easier than raising a moderate baseline to an excellent one.

The Paper’s Conclusions Align with O1’s Performance

Current evaluations of OpenAI’s newly released O1 model show that its improvements are also concentrated in areas such as mathematics. Additionally, O1’s outputs exhibit clear traces of CoT-style reasoning (though in reality far more sophisticated than standard CoT). This serves as mutual corroboration.

We Should Acknowledge CoT’s Past Contributions

Although this paper suggests that CoT may become less useful in the future, as one of the earliest prompt engineering techniques, it has provided us with many valuable insights. Its historical value should be recognized.

Other Content in the Paper

The paper also discusses other topics, such as whether the format of the dataset affects CoT performance. These are not central to the main findings. Readers who are interested are encouraged to read the original paper.