Prompt Sketching for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Many recent prompting strategies for large language models (LLMs) query the model multiple times sequentially -- first to produce intermediate results and then the final answer. However, using these methods, both decoder and model are unaware of potential follow-up prompts, leading to disconnected and undesirably wordy intermediate responses. In this work, we address this issue by proposing prompt sketching, a new prompting paradigm in which an LLM does not only respond by completing a prompt, but by predicting values for multiple variables in a template. This way, sketching grants users more control over the generation process, e.g., by providing a reasoning framework via intermediate instructions, leading to better overall results. The key idea enabling sketching with existing, autoregressive models is to adapt the decoding procedure to also score follow-up instructions during text generation, thus optimizing overall template likelihood in inference. Our experiments show that in a zero-shot setting, prompt sketching outperforms existing, sequential prompting schemes such as direct asking or chain-of-thought on 7 out of 8 LLM benchmarking tasks, including state tracking, arithmetic reasoning, and general question answering. To facilitate future use, we release a number of generic, yet effective sketches applicable to many tasks, and an open source library called dclib, powering our sketch-aware decoders.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 31 of its 35 references that are in the map. First posted on arXiv 8 Nov 2023.
Builds on
31 of 35 references.
References · 31
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
19 more
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 743
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 650
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
- 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 301
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 182
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
- 2022PromptChainer: Chaining Large Language Model Prompts through Visual Programmingcited by 134
- 2020If beam search is the answer, what was the question?cited by 116
- 2022Locally Typical Samplingcited by 111
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2022Language Model Cascadescited by 107
- 2022ThinkSum: Probabilistic reasoning over sets using large language modelscited by 23
- 2021Massive-scale Decoding for Text Generation using Latticescited by 8
- 2022Best-k Search Algorithm for Neural Text Generationcited by 6
Built on by
Citing papers per year: 2023: 1; 2024: 0; 2025: 2.
3 papers.
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2025The Price of a Second Thought: On the Evaluation of Reasoning Efficiency in Large Language Modelscited by 18
- 2025SCOPE: Stochastic and Counterbiased Option Placement for Evaluating Large Language Modelscited by 2
- 2025SCOPE: Stochastic and Counterbiased Option Placement for Evaluating Large Language Models24 Jul 2025
- 2025The Price of a Second Thought: On the Evaluation of Reasoning Efficiency in Large Language Models28 May 2025
- 2023Large Language Models for Generative Information Extraction: A Survey29 Dec 2023
Similar, not cited
Close in wording, no citation either way
- 2023Batch Prompting: Efficient Inference with Large Language Model APIs
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications
- 2024Towards Generalist Prompting for Large Language Models by Mental Models
- 2023ART: Automatic multi-step reasoning and tool-use for large language models
- 2025PromptCoT 2.0: Scaling Prompt Synthesis for Large Language Model Reasoning
- 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards
- 2024Efficient Prompting Methods for Large Language Models: A Survey
- 2023Re-Reading Improves Reasoning in Large Language Models