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

Colin Doyle
11/8/2024
cs.AIcs.CL

No official code found. Best implementation: colindoyle0000/llms-as-method-actors (46 stars, MIT, last commit 2024-11-11).

Abstract

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%.

View on arXivView PDF

Code Implementations(1)

MIT

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

463Python, Jupyter NotebookOct 25, 20241 years agoMIT
connectionslarge-language-modelsllmprompt-engineeringprompts+1 more

Similar Papers

Cite this paper

@article{doyle2024llms,
  title  = {LLMs as Method Actors: A Model for Prompt Engineering and Architecture},
  author = {Colin Doyle},
  year   = {2024},
  eprint = {2411.05778},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.05778v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.05778.svg)](https://codeofpaper.com/paper/2411.05778)

Discussion