mlsanityData to 14 Oct 2026

Prompt Sketching for Large Language Models

arXiv 2311.04954 ↗First posted 8 Nov 2023cs.CL cs.AIcited by 3

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  7. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  8. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  9. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  10. 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
  11. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  12. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
19 more
  1. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  2. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  3. 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 743
  4. 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 650
  5. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
  6. 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 301
  7. 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
  8. 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
  9. 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 182
  10. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  11. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  12. 2022PromptChainer: Chaining Large Language Model Prompts through Visual Programmingcited by 134
  13. 2020If beam search is the answer, what was the question?cited by 116
  14. 2022Locally Typical Samplingcited by 111
  15. 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
  16. 2022Language Model Cascadescited by 107
  17. 2022ThinkSum: Probabilistic reasoning over sets using large language modelscited by 23
  18. 2021Massive-scale Decoding for Text Generation using Latticescited by 8
  19. 2022Best-k Search Algorithm for Neural Text Generationcited by 6

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 0; 2025: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Batch Prompting: Efficient Inference with Large Language Model APIs
  2. 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applications
  3. 2024Towards Generalist Prompting for Large Language Models by Mental Models
  4. 2023ART: Automatic multi-step reasoning and tool-use for large language models
  5. 2025PromptCoT 2.0: Scaling Prompt Synthesis for Large Language Model Reasoning
  6. 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards
  7. 2024Efficient Prompting Methods for Large Language Models: A Survey
  8. 2023Re-Reading Improves Reasoning in Large Language Models