NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs

Jaewon Chu, Seunghun Lee, Hyunwoo J. Kim

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.

Redundancy in white-box model mappings: (a) Comparison between the number of soft prompts and unique instructions, and (b) Distribution of preimage sizes.

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:

  1. 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.
  2. 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.
  3. 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.
The PRESTO framework: Overview of the Initialization and Optimization phases, highlighting score sharing and consistency regularization.

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

BibTeX
@inproceedings{chu2025presto,
  author = {Jaewon Chu and Seunghun Lee and Hyunwoo J. Kim},
  title = {{PRESTO: Preimage-Informed Instruction Optimization for Prompting Black-Box LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=I9VNWQ15Ni},
}
Figure