arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.14367cs.CLcs.AI
收藏

多样化提示:用MAP-Elites照亮大语言模型的提示空间

Diverse Prompts: Illuminating the Prompt Space of Large Language Models with MAP-Elites

Federal University of Uberlândia Computer Science Faculty(伯南布哥联邦大学计算机科学学院)

Gabriel Machado Santos, Rita Maria da Silva Julia, Marcelo Zanchetta do Nascimento

AI总结:

本研究提出结合上下文无关文法和MAP-Elites的进化方法,系统探索提示空间,生成高质量多样提示,揭示结构对性能影响,并在七项BigBench Lite任务上验证了质量与多样性的关键作用。

摘要:

提示工程对于优化大型语言模型(LLMs)至关重要,然而提示结构与任务性能之间的联系仍未得到充分探索。本研究引入了一种进化方法,将上下文无关文法(CFG)与MAP-Elites算法相结合,以系统性地探索提示空间。我们的方法优先考虑质量和多样性,生成高性能且结构多样的提示,同时通过变化诸如示例数量(shots)和推理深度等特征,分析它们与多样化任务的对齐情况。通过系统地映射表型空间,我们揭示了结构变化如何影响LLM性能,为特定任务和可适应的提示设计提供了可操作的见解。在多个LLM上对七项BigBench Lite任务进行评估,我们的结果强调了质量与多样性的关键相互作用,提升了LLMs的有效性和多功能性。

英文摘要:

Prompt engineering is essential for optimizing large language models (LLMs), yet the link between prompt structures and task performance remains underexplored. This work introduces an evolutionary approach that combines context-free grammar (CFG) with the MAP-Elites algorithm to systematically explore the prompt space. Our method prioritizes quality and diversity, generating high-performing and structurally varied prompts while analyzing their alignment with diverse tasks by varying traits such as the number of examples (shots) and reasoning depth. By systematically mapping the phenotypic space, we reveal how structural variations influence LLM performance, offering actionable insights for task-specific and adaptable prompt design. Evaluated on seven BigBench Lite tasks across multiple LLMs, our results underscore the critical interplay of quality and diversity, advancing the effectiveness and versatility of LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑