Reproduce “InstructZero: Efficient Instruction Optimization for Black-Box Large Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Lichang Chen, Jiuhai Chen, Tom Goldstein, Heng Huang, Tianyi Zhou

INSTRUCTZERO introduces an automated framework for optimizing natural language instructions for black-box Large Language Models (LLMs) by employing Bayesian Optimization on a low-dimensional soft prompt that guides an open-source LLM to generate the final instruction. The method achieved superior zero-shot accuracy across 32 diverse BIG-Bench tasks, outperforming existing auto-prompting techniques.

Key insights

  • A complex discrete, black-box optimization problem can be effectively converted into a tractable continuous, low-dimensional optimization problem through an open-source LLM acting as an instruction generator.
  • Bayesian Optimization, when enhanced with an instruction-coupled kernel, can efficiently navigate the high-dimensional space of natural language prompts by relating soft prompt changes to instruction quality.
  • Smaller open-source LLMs can be utilized to optimize instructions for larger black-box LLMs, achieving high performance without requiring direct access to the larger model's internals or extensive computation on the target model.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.