Research map / Large language models / Reasoning and chain of thought
Language Models as Compilers: Simulating Pseudocode Execution Improves Algorithmic Reasoning in Language Models
Hyungjoo Chae, Yeonghyeon Kim, Seungone Kim, Kai Tzu-iunn Ong, Beong-woo Kwak, Moohyeon Kim, Seonghwan Kim, Taeyoon Kwon, Jiwan Chung, Youngjae Yu, Jinyoung Yeo
Korea Advanced Institute of Science and Technology · Yonsei University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use Think-and-Execute instead of zero-shot CoT | GPT-3.5-Turbo · BBH 7 tasks avg | accuracy: 48.0 -> 60.4 | Improved |
| use Think-and-Execute instead of zero-shot PoT | GPT-3.5-Turbo · BBH 7 tasks avg | accuracy: 32.4 -> 60.4 | Improved |
| use Think-and-Execute with CodeLlama-7B / 13B instead of direct prompting | CodeLlama · BBH 7 tasks avg | accuracy: 19.4 -> 30.8 (7B); 16.4 -> 36.3 (13B) | Improved |
| use pseudocode instead of natural-language plan for the task-level instruction (ablation) | Think-and-Execute · BBH 7 tasks avg | accuracy: 37.8 -> 60.4 (GPT-3.5-Turbo); 20.3 -> 36.3 (CodeLlama-13B) | Improved |
| remove the analysis step before generating the pseudocode (ablation) | Think-and-Execute · BBH 7 tasks avg | accuracy: 60.4 -> 21.8 | Hurt |
| remove comments and semantics from pseudocode prompt (ablation) | Think-and-Execute (human-written pseudocode) · BBH, esp. Temporal Sequences | accuracy: decreases significantly (no number in text) | Hurt |
| add intermediate print() statements (ablation) | Think-and-Execute (human-written pseudocode) · BBH | accuracy | Improved |
| use LLM-generated pseudocode instead of human-written (ablation) | Think-and-Execute · BBH 7 tasks avg | accuracy: 55.7 -> 60.4 (GPT-3.5-Turbo); 22.2 -> 30.8 (7B); 30.4 -> 36.3 (13B) | Improved |
| use Think-and-Execute instead of Chain-of-Code / Plan-and-Solve | GPT-3.5-Turbo · BBH 7 tasks avg | accuracy: 28.1 -> 60.4 (CoC); 50.3 -> 60.4 (P&S) | Improved |
| use Think-and-Execute instead of Self-Discover | GPT-4 · BBH 7 tasks avg | accuracy: 77.9 -> 81.7 | Improved |
| use CodeLlama-13B instead of Llama-13B as reasoner (ablation) | Think-and-Execute · BBH 7 tasks | accuracy: better in all tasks (figure) | Improved |
| use a stronger Instructor LM (GPT-3.5-Turbo vs CodeLlama) (ablation) | Think-and-Execute · BBH 7 tasks avg | accuracy: GPT-3.5-Turbo reasoner: 33.9 / 35.9 -> 60.4 | Improved |
Open problems in search and self-correction in reasoning
Do search and self-correction methods for reasoning work beyond math and multiple choice, on closed models and at larger scale?
- Experiments stop at small or mid-size models, so larger ones are untested. · 16 papers state it
- Training data or scoring depends on a strong teacher or judge LLM. · 14 papers state it
- Extra sampling, passes or search make training and inference costly. · 13 papers state it
Closest papers by meaning
- Chain of Execution Supervision Promotes General Reasoning in Large Language Models (NeurIPS 2025 · similarity 0.90)
- Once Upon an Input: Reasoning via Per-Instance Program Synthesis (NeurIPS 2025 · similarity 0.89)
- REASONING COMPILER: LLM-Guided Optimizations for Efficient Model Serving (NeurIPS 2025 · similarity 0.89)
- Chain of Code: Reasoning with a Language Model-Augmented Code Emulator (ICML 2024 · similarity 0.89)
- CodeIO: Condensing Reasoning Patterns via Code Input-Output Prediction (ICML 2025 · similarity 0.88)
- Are Language Models Efficient Reasoners? A Perspective from Logic Programming (NeurIPS 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.