scimeatlas

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

EMNLP 2024Large language models › Reasoning and chain of thoughtapproach: Search and self-correction in reasoningopen problems in this approach31 citations (OpenAlex)

Korea Advanced Institute of Science and Technology · Yonsei University

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
10improved
3hurt

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 changedWhereMeasuredEffect
use Think-and-Execute instead of zero-shot CoTGPT-3.5-Turbo · BBH 7 tasks avgaccuracy: 48.0 -> 60.4Improved
use Think-and-Execute instead of zero-shot PoTGPT-3.5-Turbo · BBH 7 tasks avgaccuracy: 32.4 -> 60.4Improved
use Think-and-Execute with CodeLlama-7B / 13B instead of direct promptingCodeLlama · BBH 7 tasks avgaccuracy: 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 avgaccuracy: 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 avgaccuracy: 60.4 -> 21.8Hurt
remove comments and semantics from pseudocode prompt (ablation)Think-and-Execute (human-written pseudocode) · BBH, esp. Temporal Sequencesaccuracy: decreases significantly (no number in text)Hurt
add intermediate print() statements (ablation)Think-and-Execute (human-written pseudocode) · BBHaccuracyImproved
use LLM-generated pseudocode instead of human-written (ablation)Think-and-Execute · BBH 7 tasks avgaccuracy: 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-SolveGPT-3.5-Turbo · BBH 7 tasks avgaccuracy: 28.1 -> 60.4 (CoC); 50.3 -> 60.4 (P&S)Improved
use Think-and-Execute instead of Self-DiscoverGPT-4 · BBH 7 tasks avgaccuracy: 77.9 -> 81.7Improved
use CodeLlama-13B instead of Llama-13B as reasoner (ablation)Think-and-Execute · BBH 7 tasksaccuracy: better in all tasks (figure)Improved
use a stronger Instructor LM (GPT-3.5-Turbo vs CodeLlama) (ablation)Think-and-Execute · BBH 7 tasks avgaccuracy: GPT-3.5-Turbo reasoner: 33.9 / 35.9 -> 60.4Improved

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy