paper-with-me

Papers

Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinement

2026-05-27 · Jyotirmoy Nath, Neeraj Kumar, Brejesh Lall arxiv

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. PCO organizes prompt-construction knowledge in a discrete codebook and routes each input to a small subset of entries via an LLM-based encoder; a generator composes them into a prompt for the frozen target model; a critic emits a structured verdict that decomposes by attribution into per-variable textual gradients, jointly training the encoder, generator, and codebook under a language-valued min-max objective. The resulting routing is per-instance: different inputs in the same task receive different instinct compositions, a regime structurally inexpressible under instance-blind methods. Across six benchmarks on Qwen3-8B and LLaMA-3.1-8B, PCO improves over zero-shot by up to +30.36 points, surpasses the strongest prior baseline (GEPA) by +3.34 on HotpotQA and +1.11 in aggregate, and reduces deployed prompt length by up to 14.1x versus MIPROv2 and 3.0x versus GEPA using only K=16 instincts.

📄 PDF Abstract BibTeX arXiv:2605.28360

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

DC-Motion: Decoupling Structure and Details via Discrete-Continuous Tokens for Human Motion Generation

2026-05-28 · Hequan Wang, Xuean Chen, Jiaxu Zhang, Zhengbo Zhang 외 arxiv

Text-to-motion generation requires modeling both global action structure and fine-grained motion dynamics from natural language. Existing approaches typically rely on either continuous diffusion models or vector-quantize…

Learning Image-Adaptive Codebooks for Class-Agnostic Image Restoration

2023-06-10 · ICCV 2023 1 · Kechun Liu, Yitong Jiang, Inchang Choi, Jinwei Gu

Recent work on discrete generative priors, in the form of codebooks, has shown exciting performance for image reconstruction and restoration, as the discrete prior space spanned by the codebooks increases the robustness …

Image ReconstructionImage RestorationImage Super-ResolutionSuper-Resolution

Limits of Transformer Language Models on Learning to Compose Algorithms

2024-02-08 · Jonathan Thomm, Giacomo Camposampiero, Aleksandar Terzic, Michael Hersche 외

We analyze the capabilities of Transformer language models in learning compositional discrete tasks. To this end, we evaluate training LLaMA models and prompting GPT-4 and Gemini on four tasks demanding to learn a compos…

Code Generation

On Conditional and Compositional Language Model Differentiable Prompting

2023-07-04 · Jonathan Pilault, Can Liu, Mohit Bansal, Markus Dreyer

Prompts have been shown to be an effective method to adapt a frozen Pretrained Language Model (PLM) to perform well on downstream tasks. Prompts can be represented by a human-engineered word sequence or by a learned cont…

Few-Shot LearningLanguage ModelingLanguage Modellingmodel+1

Using Random Codebooks for Audio Neural AutoEncoders

2024-09-25 · Benoît Giniès, Xiaoyu Bie, Olivier Fercoq, Gaël Richard

Latent representation learning has been an active field of study for decades in numerous applications. Inspired among others by the tokenization from Natural Language Processing and motivated by the research of a simple …

Audio CompressionQuantizationRepresentation Learning