atlas

Research map / Large language models / Reasoning and chain of thought

Prompt Sketching for Large Language Models

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Search and self-correction in reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces prompt sketching, which frames template-guided LLM inference as segmented sequence decoding and proposes two sketch-aware beam search decoders (Var and BeamVar) that jointly optimize template likelihood.

Problem

Sequential multi-call prompting (e.g., chain-of-thought, stop-and-go templating) leaves the model unaware of follow-up template parts, producing disconnected and wordy intermediate outputs and suboptimal reasoning.

Approach

Treat an entire prompt template with multiple variables as one segmented sequence and adapt decoding (variable-level and variable-grid beam search) to score follow-up deterministic instructions during generation, so the overall template likelihood is optimized end-to-end.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use prompt sketching with BeamVar instead of sequential Chain-of-Thought beam decodingtext-davinci-003 · AQuAaccuracy: 0.37 -> 0.47Helped
Use prompt sketching with BeamVar instead of sequential Chain-of-Thought beam decodingtext-davinci-003 · StrategyQAaccuracy: 0.72 -> 0.77Helped
Use prompt sketching with Var instead of sequential Chain-of-Thought decodingtext-davinci-003 · Matrix Shapesaccuracy: 0.77 -> 0.85Helped
Use prompt sketching with BeamVar instead of sequential Chain-of-Thought decodingLlama-2 Chat 13B · AQuAaccuracy: 0.2908 -> 0.255Hurt
Use prompt sketching with BeamVar instead of sequential Chain-of-Thought decodingLlama-2 Chat 13B · GSM8Kaccuracy: 0.276 -> 0.353Helped
Use sketch-aware BeamVar instead of sketch ArgMax (ablation)text-davinci-003 prompt sketching · Information Essentialityaccuracy: 0.01 -> 0.25Helped
Use sketch-aware BeamVar instead of sketch ArgMax (ablation)text-davinci-003 prompt sketching · AQuAaccuracy: 0.40 -> 0.47Helped
Use sketch-aware Var instead of sketch ArgMax (ablation)text-davinci-003 prompt sketching · Tracking Shuffled Objectsaccuracy: 0.64 -> 0.66Helped
Use sketch-aware Var instead of sketch ArgMax (ablation)text-davinci-003 prompt sketching · GSM8Kaccuracy: 0.57 -> 0.59Helped
Use two-shot demonstrations instead of zero-shot sketching (ablation)text-davinci-003 prompt sketching · Tracking Shuffled Objectsaccuracy: 0.66 -> 0.57Hurt
Use two-shot demonstrations instead of zero-shot sketching (ablation)text-davinci-003 prompt sketching · AQuAaccuracy: 0.47 -> 0.46Mixed
Use prompt sketching with Var instead of sketch ArgMax (ablation)text-davinci-003 · Sudoku (3x3)puzzles solved: 1/10 -> 7/10Helped

Surprising findings

Limitations

Experimental setup

Datasets: Date Understanding (BIG-bench) Information Essentiality AQuA StrategyQA Multistep Arithmetic (BIG-bench) GSM8K Tracking Shuffled Objects (BIG-bench) Matrix Shapes (BIG-bench)

Benchmarks: Date Understanding Information Essentiality AQuA StrategyQA Multistep Arithmetic GSM8K Tracking Shuffled Objects Matrix Shapes Sudoku (3x3) Dungeon Escape

Metrics: accuracy success rate steps to exit Clopper-Pearson 95% confidence intervals

Baselines: answer-only prompting chain-of-thought prompting stop-and-go inference ArgMax decoding beam search

Builds on: chain-of-thought prompting zero-shot CoT LMQL grid beam search dynamic beam allocation

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