AI RESEARCH

Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinement

arXiv CS.AI

ArXi:2605.28360v1 Announce Type: new Automatic prompt optimization (APO) has driven significant gains in LLM-based agentic workflows. However, existing methods treat each task's prompt as a monolithic, instance-blind string optimized through global edits, producing brittle updates and preventing the reuse of learned sub-behaviors. We propose Prompt Codebooks (PCO), a novel compositional prompt optimization framework that recasts APO as discrete learning over a finite vocabulary of natural-language instincts - atomic, reusable instruction units.