TL;DR
Writing effective prompts for language models requires manual trial-and-error, making optimization difficult at scale. Prompt Codebooks introduces a discrete compositional optimization method that treats prompts as combinations of reusable instruction components, enabling systematic refinement.
✦ Why It Matters
Engineers can systematically optimize prompts using reusable components instead of manual trial-and-error, reducing iteration time and improving consistency.
Key Takeaways
How It Works
PCO organizes prompt construction knowledge into a codebook of discrete, reusable instruction units called instincts. An encoder identifies relevant instincts for each input, which a generator then composes into a tailored prompt.
A critic evaluates the output, providing feedback that helps refine the encoder, generator, and codebook through a min-max training objective.
Related