Abstract
Optimizing instructions for black-box Large Language Models (LLMs) often relies on white-box models as intermediaries to bridge continuous optimization and discrete text. However, these white-box models exhibit a significant "many-to-one" mapping, where multiple continuous embeddings (soft prompts) decode into the same discrete instruction. PRESTO (PREimage-informed inSTruction Optimization) leverages this redundancy as a structural prior. By introducing score sharing across preimages and consistency regularization, PRESTO achieves a 14x increase in effective training data for its score predictor, leading to state-of-the-art performance in instruction induction and arithmetic reasoning tasks.
Introduction: The Redundancy Challenge
Instruction optimization for black-box LLMs like GPT-4 is constrained by the lack of gradient access. Current "prompt-on-prompt" methods optimize continuous "soft prompts" using a white-box model (e.g., LLaMA) to generate natural language instructions. A critical observation is that these white-box models are highly redundant: a vast number of distinct soft prompts often map to the same discrete instruction.
While previous work viewed this redundancy as a source of inefficiency, PRESTO reinterprets it as a valuable structural prior. By defining a "preimage" as the set of all soft prompts mapping to a single instruction, the optimization process can be significantly accelerated.
The PRESTO Framework
PRESTO introduces three core mechanisms to exploit the preimage structure during optimization:
- Score Sharing: When a black-box LLM evaluates an instruction, the resulting score is propagated to all soft prompts within its preimage. This provides "free" supervision for the internal score predictor.
- Preimage-Based Initialization: Instead of random sampling, PRESTO employs a greedy algorithm based on Maximum Mean Discrepancy (MMD) to select initial preimages that maximize coverage of the embedding space.
- Score Consistency Regularization: The framework trains a score predictor (an MLP) using a combined loss: a standard Mean Squared Error (MSE) on evaluated points and a consistency loss that enforces identical predictions for all members of a preimage, even for unqueried instructions.
Experimental Evaluation
The researchers evaluated PRESTO on 30 Instruction Induction tasks and 3 Arithmetic Reasoning benchmarks (GSM8K, AQUA-RAT, SVAMP).
Key Results
- Efficiency Gains: Through score sharing, PRESTO effectively utilizes over 2,300 scored data points from a budget of only 165 API queries—a 14x boost in data efficiency.
- Performance: PRESTO achieved the highest accuracy in 18 out of 30 induction tasks, outperforming competitive baselines like ZOPO, INSTINCT, and OPRO. It attained a superior average rank of 1.90.
- Reasoning: In math reasoning, PRESTO set a new benchmark on AQUA-RAT with 0.7756 accuracy.
Conclusion
PRESTO demonstrates that the inherent redundancy in white-box models is not a bug but a feature. By informing the optimization process with preimage structures, PRESTO significantly reduces the query cost and improves the performance of instruction optimization for black-box LLMs. Future work will explore the impact of different white-box architectures on these preimage structures.
Summary updated