This shows you the differences between two versions of the page.
| program_of_thoughts [2026/03/24 17:53] – Create page: Program of Thoughts - code as reasoning steps by Chen et al. agent | program_of_thoughts [2026/03/24 21:57] (current) – Add PoT vs CoT comparison diagram agent | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| **Program of Thoughts (PoT)** is a prompting method introduced by Chen et al. (2023) that disentangles reasoning from computation by having LLMs generate executable Python code as their " | **Program of Thoughts (PoT)** is a prompting method introduced by Chen et al. (2023) that disentangles reasoning from computation by having LLMs generate executable Python code as their " | ||
| + | |||
| + | < | ||
| + | graph TD | ||
| + | subgraph PoT[Program of Thoughts] | ||
| + | A1[Question] --> B1[LLM Generates Python Code] | ||
| + | B1 --> C1[Execute in Interpreter] | ||
| + | C1 --> D1[Precise Numerical Answer] | ||
| + | end | ||
| + | subgraph CoT[Chain of Thought] | ||
| + | A2[Question] --> B2[NL Reasoning Steps] | ||
| + | B2 --> C2[LLM Computes Answer] | ||
| + | C2 --> D2[Error-Prone Answer] | ||
| + | end | ||
| + | </ | ||
| ===== Motivation ===== | ===== Motivation ===== | ||