paper-with-me

홈 › Papers

Prompt Sketching for Large Language Models

2023-11-08 · Luca Beurer-Kellner, Mark Niklas Müller, Marc Fischer, Martin Vechev

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.

📄 PDF Abstract BibTeX arXiv:2311.04954

Code (0)

등록된 구현이 없습니다.

Tasks

Arithmetic ReasoningBenchmarkingDecoderQuestion AnsweringText Generation

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

SketchAgent: Language-Driven Sequential Sketch Generation

2024-11-26 · CVPR 2025 1 · Yael Vinker, Tamar Rott Shaham, Kristine Zheng, Alex Zhao 외

Sketching serves as a versatile tool for externalizing ideas, enabling rapid exploration and visual communication that spans various disciplines. While artificial systems have driven substantial advances in content creat…

Vector Graphics

Sketch Then Generate: Providing Incremental User Feedback and Guiding LLM Code Generation through Language-Oriented Code Sketches

2024-05-07 · Chen Zhu-Tian, Zeyu Xiong, Xiaoshuo Yao, Elena Glassman

Crafting effective prompts for code generation or editing with Large Language Models (LLMs) is not an easy task. Particularly, the absence of immediate, stable feedback during prompt crafting hinders effective interactio…

Code Generation

Model Sketching: Centering Concepts in Early-Stage Machine Learning Model Design

2023-03-06 · Michelle S. Lam, Zixian Ma, Anne Li, Izequiel Freitas 외

Machine learning practitioners often end up tunneling on low-level technical details like model architectures and performance metrics. Could early model development instead focus on high-level questions of which factors …

Decision Makingmodel

Federated Sketching LoRA: On-Device Collaborative Fine-Tuning of Large Language Models

2025-01-31 · Wenzhi Fang, Dong-Jun Han, Liangqi Yuan, Seyyedali Hosseinalipour 외

Fine-tuning large language models (LLMs) on devices remains a challenging problem. Recent works have fused low-rank adaptation (LoRA) techniques with federated fine-tuning to mitigate challenges associated with device mo…

Sketch-of-Thought: Efficient LLM Reasoning with Adaptive Cognitive-Inspired Sketching

2025-03-07 · Simon A. Aytes, Jinheon Baek, Sung Ju Hwang

Recent advances in large language models (LLMs) have enabled strong reasoning capabilities through Chain-of-Thought (CoT) prompting, which elicits step-by-step problem solving, but often at the cost of excessive verbosit…