arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.05778cs.AIcs.CL
收藏

LLMs 作为方法派演员:一种用于提示工程与架构的模型

LLMs as Method Actors: A Model for Prompt Engineering and Architecture

Loyola Law School, Loyola Marymount University(洛约拉法学院,洛约拉马利蒙特大学)

Colin Doyle

AI总结:

提出将 LLM 视为“方法派演员”的心智模型用于指导提示工程与架构,在 Connections 解谜任务中显著提升了 GPT-4o 和 o1-preview 模型的推理表现与解题准确率。

摘要:

我们引入“方法派演员”(Method Actors)作为指导 LLM 提示工程和提示架构的心智模型。在这个心智模型下,LLM 应被视为演员;提示词应被视为剧本和提示;LLM 的响应应被视为表演。我们将此心智模型应用于提升 LLM 玩 Connections 的任务表现,Connections 是《纽约时报》的一款文字解谜游戏,先前研究已将其确定为评估 LLM 推理能力的极具挑战性的基准。我们使用 GPT-4o 进行的实验表明,“方法派演员”方法能够显著提升 LLM 的表现,优于基础方法和“思维链”(Chain of Thoughts)方法。基础方法在我们数据集中解决了 27% 的 Connections 谜题,“思维链”方法解决了 41% 的谜题,而我们最强的“方法派演员”方法解决了 86% 的谜题。我们还测试了 OpenAI 专为复杂推理任务设计的最新模型 o1-preview。当被要求一次性解开谜题时,o1-preview 解开了我们数据集中 79% 的 Connections 谜题;当被允许在多次 API 调用中通过每次进行一次猜测来逐步构建谜题解答时,o1-preview 解开了 100% 的谜题。引入“方法派演员”提示架构将 o1-preview 完美解开谜题的比例从 76% 提高到了 87%。

英文摘要:

We introduce "Method Actors" as a mental model for guiding LLM prompt engineering and prompt architecture. Under this mental model, LLMs should be thought of as actors; prompts as scripts and cues; and LLM responses as performances. We apply this mental model to the task of improving LLM performance at playing Connections, a New York Times word puzzle game that prior research identified as a challenging benchmark for evaluating LLM reasoning. Our experiments with GPT-4o show that a "Method Actors" approach can significantly improve LLM performance over both a vanilla and "Chain of Thoughts" approach. A vanilla approach solves 27% of Connections puzzles in our dataset and a "Chain of Thoughts" approach solves 41% of puzzles, whereas our strongest "Method Actor" approach solves 86% of puzzles. We also test OpenAI's newest model designed specifically for complex reasoning tasks, o1-preview. When asked to solve a puzzle all at once, o1-preview solves 79% of Connections puzzles in our dataset, and when allowed to build puzzle solutions one guess at a time over multiple API calls, o1-preview solves 100% of the puzzles. Incorporating a "Method Actor" prompt architecture increases the percentage of puzzles that o1-preview solves perfectly from 76% to 87%.

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

↑