atlas

Research map / Large language models / Language, safety and interpretability

InstructZero: Efficient Instruction Optimization for Black-Box Large Language Models

ICML 2024 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 11 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.

Optimizes a low-dimensional soft prompt for an open-source LLM (Vicuna-13B) with latent-space Bayesian optimization to generate instructions that maximize zero-shot execution accuracy of a black-box LLM (ChatGPT).

Problem

Finding the best discrete instruction for black-box LLMs accessible only via text APIs is a combinatorial, black-box optimization problem that gradient-based methods cannot solve.

Approach

Optimize a continuous soft prompt fed to an open-source LLM (which generates instructions via in-context learning from exemplars) using Bayesian optimization with a random projection to low dimension and an instruction-coupled kernel that aligns soft-prompt similarity with the similarity of the resulting instructions' zero-shot predictions on the black-box LLM.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Optimize a soft prompt rather than use a handcrafted meta-prompt (ablation)InstructZero instruction generation · Cause_and_effect; Negation; Translation EN-FR; Sum; Formality; Letters List; Larger Animalexecution accuracy: Manual: 0.36, 0.27, 0.02, 0.00, 0.59, 0.00, 0.49; InstructZero: 0.91, 0.80, 0.89, 1.00, 0.63, 1.00, 0.91Helped
Optimize a soft prompt rather than generate instructions from exemplars only (ablation)InstructZero instruction generation · Cause_and_effect; Negation; Translation EN-FR; Sum; Formality; Letters List; Larger Animalexecution accuracy: w/o Manual: 0.56, 0.01, 0.47, 0.00, 0.31, 0.15, 0.81; InstructZero: 0.91, 0.80, 0.89, 1.00, 0.63, 1.00, 0.91Helped
Add instruction similarity to the latent-space kernel (ablation)InstructZero · Sentiment; Negation; Larger Animal; Second Letter; Formality; Debugging; Odd one out; Ascii; CS algorithmperformance: 0.83 -> 0.93; 0.39 -> 0.80; 0.81 -> 0.91; 0.33 -> 0.62; 0.44 -> 0.63; 0.25 -> 0.50; 0.9 -> 0.92; 0.13 -> 0.33; 0.26 -> 0Helped
Add instruction similarity to the latent-space kernel (ablation)InstructZero · Unscramblingperformance: 0.67 -> 0.58Hurt
Use Bayesian optimization to iteratively select soft promptsInstructZero · 32 BIG-Bench tasksaccuracyHelped
Use InstructZero instead of APE or UniformChatGPT zero-shot instruction following · 32 BIG-Bench tasksaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: BIG-Bench instruction induction tasks (24 from APE + 8 new)

Benchmarks: BIG-Bench instruction induction (32 tasks)

Metrics: execution accuracy exact match F1

Baselines: APE Uniform sampling BBT BBTv2 Standard kernel (ablation)

Builds on: APE BBT BBTv2 LADDER CMA-ES

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