atlas

Research map / Large language models / Agents, code and math

One Prompt is not Enough: Automated Construction of a Mixture-of-Expert Prompts

ICML 2024 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Mixture-of-Prompts (MoP), which partitions training demos into clusters via K-means in an embedding space, assigns each cluster an expert with a jointly searched instruction, and routes queries to the nearest expert.

Problem

Automatic prompt optimization searches only a single demo-free instruction, which cannot cover the full complex problem space of a task.

Approach

Adopt the mixture-of-experts paradigm for prompts: each expert is a (demo cluster, instruction) pair. Demos are clustered by semantic similarity, motivated by a kernel-regression view of in-context learning; instructions are generated from other clusters' demos and selected on region-routed validation data (region-based joint search).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace a single-prompt baseline with MoPPrompt optimization · Three benchmarks (average)performance: 41.39% -> 52.73%Helped
Use GPT2-Large rather than Ada embeddings (ablation)MoP · Mathdatasetscore: 95 ± 3.3 -> 97 ± 1.3Mixed
Use GPT2-Large rather than Ada embeddings (ablation)MoP · Auto categorizationscore: 59 ± 0.4 -> 53 ± 0.9Hurt
Use K-means-Auto rather than random clustering (ablation)MoP · Auto categorizationscore: 36 ± 0.8 -> 59 ± 4.2Helped
Use K-means-Auto rather than K-means-Balanced (ablation)MoP · Taxonomy animalscore: 82 ± 2.6 -> 88 ± 6.9Helped
Use RBJS rather than Independent Search (ablation)MoP · Taxonomy animalscore: 71 ± 6.3 -> 88 ± 6.9Helped
Use RBJS rather than Joint Search without region-based evaluation (ablation)MoP · Taxonomy animalscore: 82 ± 9.0 -> 88 ± 6.9Helped
Generate prompts using each expert's own demos rather than other experts' demos (ablation)MoP · Taxonomy animalscore: 88 ± 6.9 -> 72 ± 1.0Hurt
Use similarity-based routing rather than random routing (ablation)MoP · Mathdatasetscore: 77 ± 2.2 -> 95 ± 1.7Helped
Use similarity-based routing rather than random routing (ablation)MoP · Auto categorizationscore: 32 ± 2.9 -> 59 ± 4.2Helped
Use MoP rather than APEBIG-Bench-Hard · Causal judgementexecution accuracy: 59.93 ± 0.50 -> 60.99 ± 2.19Helped
Use MoP rather than APE-Nearest-NeighborBIG-Bench-Hard · Movie Recommendationexecution accuracy: 87.00 ± 2.45 -> 81.67 ± 2.36Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Instruction Induction Super Natural Instructions BIG-Bench Hard

Benchmarks: Instruction Induction Super Natural Instructions BIG-Bench Hard

Metrics: task score (predefined score functions) win rate mean and std over 3 runs

Baselines: APE APE+Demos APE+K-centroids InstructZero IZ+Demos IZ+K-centroids OPRO APE-Nearest-Neighbor

Builds on: APE InstructZero OPRO Mixture of Experts

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy