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

📅 2025-04-19
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
The relationship between prompt structure and task performance remains poorly understood in large language model (LLM) prompt engineering. Method: This paper proposes an evolutionary prompt-space exploration method integrating context-free grammars (CFGs) with MAP-Elites. It introduces MAP-Elites—the first application of behavioral phenotyping to prompt optimization—organizing prompts into a behaviorally structured archive based on interpretable dimensions such as number of examples and reasoning depth. CFGs enforce syntactic constraints during structured prompt generation and mutation. Results: Evaluated on seven BigBench Lite tasks across multiple LLMs, the method significantly improves task-specific adaptation and cross-task prompt generalization. It enhances structural diversity while maintaining high output quality, yielding an interpretable, reusable, and systematic paradigm for prompt design.

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Exploring link between prompt structures and LLM task performance
Systematically mapping prompt space using CFG and MAP-Elites algorithm
Analyzing impact of structural variations on LLM effectiveness
Innovation

Methods, ideas, or system contributions that make the work stand out.

Evolutionary approach with CFG and MAP-Elites
Systematically explores diverse prompt structures
Analyzes prompt-task alignment via key traits
🔎 Similar Papers
No similar papers found.