paper-with-me

홈 › Papers

Teach Better or Show Smarter? On Instructions and Exemplars in Automatic Prompt Optimization

2024-06-22 · Xingchen Wan, Ruoxi Sun, Hootan Nakhost, Sercan O. Arik

Large language models have demonstrated remarkable capabilities, but their performance is heavily reliant on effective prompt engineering. Automatic prompt optimization (APO) methods are designed to automate this and can be broadly categorized into those targeting instructions (instruction optimization, IO) vs. those targeting exemplars (exemplar optimization, EO). Despite their shared objective, these have evolved rather independently, with IO receiving more research attention recently. This paper seeks to bridge this gap by comprehensively comparing the performance of representative IO and EO techniques both isolation and combination on a diverse set of challenging tasks. Our findings reveal that intelligently reusing model-generated input-output pairs obtained from evaluating prompts on the validation set as exemplars, consistently improves performance on top of IO methods but is currently under-investigated. We also find that despite the recent focus on IO, how we select exemplars can outweigh how we optimize instructions, with EO strategies as simple as random search outperforming state-of-the-art IO methods with seed instructions without any optimization. Moreover, we observe a synergy between EO and IO, with optimal combinations surpassing the individual contributions. We conclude that studying exemplar optimization both as a standalone method and its optimal combination with instruction optimization remain a crucial aspect of APO and deserve greater consideration in future research, even in the era of highly capable instruction-following models.

📄 PDF Abstract BibTeX arXiv:2406.15708

Code (0)

등록된 구현이 없습니다.

Tasks

Instruction FollowingPrompt Engineering

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Focus 설명 없음
Random Search Random Search replaces the exhaustive enumeration of all combinations by selecting them randomly. This can be simply applied to the discrete setting described above, but also…

Similar Papers 제목 키워드 기반

Large Language Models are In-context Teachers for Knowledge Reasoning

2023-11-12 · Jiachen Zhao, Zonghai Yao, Zhichao Yang, Hong Yu

In this work, we study in-context teaching (ICT), where a teacher provides in-context example rationales to teach a student to reason over unseen cases. Human teachers are usually required to craft in-context demonstrati…

In-Context LearningInformation RetrievalLarge Language ModelMedical Question Answering+3

Few-shot Object Grounding and Mapping for Natural Language Robot Instruction Following

2020-11-14 · Valts Blukis, Ross A. Knepper, Yoav Artzi

We study the problem of learning a robot policy to follow natural language instructions that can be easily extended to reason about new objects. We introduce a few-shot language-conditioned object grounding method traine…

continuous-controlContinuous ControlInstruction Following

Revisiting Chain-of-Thought Prompting: Zero-shot Can Be Stronger than Few-shot

2025-06-17 · Xiang Cheng, Chengyan Pan, Minjun Zhao, Deyang Li 외

In-Context Learning (ICL) is an essential emergent ability of Large Language Models (LLMs), and recent studies introduce Chain-of-Thought (CoT) to exemplars of ICL to enhance the reasoning capability, especially in mathe…

In-Context LearningMathematical Reasoning

What Makes a Good Example? Modeling Exemplar Selection with Neural Network Representations

2026-02-03 · Fanxiao Wani Qiu, Oscar Leong, Alexander LaTourrette arxiv

Teaching requires distilling a rich category distribution into a small set of informative exemplars. Although prior work shows that humans consider both representativeness and diversity when teaching, the computational p…

In-Context Defense in Computer Agents: An Empirical Study

2025-03-12 · Pei Yang, Hai Ci, Mike Zheng Shou

Computer agents powered by vision-language models (VLMs) have significantly advanced human-computer interaction, enabling users to perform complex tasks through natural language instructions. However, these agents are vu…

In-Context Learning