arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.25808cs.LG
收藏

PRESTO:基于前像的黑盒LLM指令优化

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

Korea University(韩国大学);KAIST(韩国科学技术院)

Jaewon Chu, Seunghun Lee, Hyunwoo J. Kim

摘要:

大语言模型(LLM)由于其强大的解释跟踪能力,在不同的领域取得了显著的成功。这导致了对黑盒LLM优化指令的兴趣越来越大,其内部参数不可访问,但由于其强大的性能而被广泛使用。为了优化黑盒LLM的指令,最近的方法采用白盒LLM来从优化的软提示生成候选指令。然而,白盒LLM经常将不同的软提示映射到同一指令,导致冗余查询。虽然以前的研究认为这种多对一映射是一种阻碍优化效率的结构,但我们将其重新解释为可以加速优化的有用先验知识。为此,我们介绍了PREimage知情的inSTrandom优化(PRESTO),一种新的框架,利用软提示的原像结构进行有效的优化。PRESTO由三个关键部分组成:(1)分数共享,它与原像中的所有软提示共享评估分数;(2)基于原像的初始化,它选择使用原像信息最大化搜索空间覆盖的初始数据点;以及(3)分数一致性正则化,它强制每个原像内的预测一致性。通过利用前像,PRESTO实现了在相同查询预算下有效获得14倍以上评分数据的效果,从而实现更高效的优化。在33个指令优化任务上的实验结果证明了PRESTO的优越性能。代码可在https://github.com/mlvlab/PRESTO上获得

英文摘要:

Large language models (LLMs) have achieved remarkable success across diverse domains, due to their strong instruction-following capabilities. This has led to increasing interest in optimizing instructions for black-box LLMs, whose internal parameters are inaccessible but widely used due to their strong performance. To optimize instructions for black-box LLMs, recent methods employ white-box LLMs to generate candidate instructions from optimized soft prompts. However, white-box LLMs often map different soft prompts to the same instruction, leading to redundant queries. While previous studies regarded this many-to-one mapping as a structure that hinders optimization efficiency, we reinterpret it as a useful prior knowledge that can accelerate the optimization. To this end, we introduce PREimage-informed inSTruction Optimization (PRESTO), a novel framework that leverages the preimage structure of soft prompts for efficient optimization. PRESTO consists of three key components: (1) score sharing, which shares the evaluation score with all soft prompts in a preimage; (2) preimage-based initialization, which selects initial data points that maximize search space coverage using preimage information; and (3) score consistency regularization, which enforces prediction consistency within each preimage. By leveraging preimages, PRESTO achieves the effect of effectively obtaining 14 times more scored data under the same query budget, resulting in more efficient optimization. Experimental results on 33 instruction optimization tasks demonstrate the superior performance of PRESTO. Code is available at https://github.com/mlvlab/PRESTO

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑