arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.01420cs.CLcs.AI
收藏

PromptBridge: 跨模型提示迁移用于大型语言模型

PromptBridge: Cross-Model Prompt Transfer for Large Language Models

University of California, Santa Cruz(加州大学圣克ruz分校);Center for Advanced AI, Accenture(Accenture高级人工智能研究中心)

Yaxuan Wang, Quan Liu, Zhenting Wang, Zichao Li, Wei Wei, Yang Liu, Yujia Bao

AI总结:

PromptBridge通过跨模型提示迁移技术,解决模型切换时提示效果下降的问题,提升下游任务准确性并减少迁移成本。

摘要:

大型语言模型(LLMs)在代码生成、数学推理和基于代理的工作流中发挥着基础作用。在实践中,系统通过商业API或开源部署访问LLMs,而模型景观(例如GPT、Claude、Llama)发展迅速。这种快速演变迫使频繁切换模型,由能力、成本、部署限制和隐私驱动。然而,提示对模型高度敏感:在另一种模型上重用为一个模型设计的提示,其性能通常比为目标模型优化的提示差很多。我们称这种现象为模型漂移。通过在多样化的LLM配置上进行广泛的实证分析,我们显示模型漂移既常见又严重。为了解决这一挑战,我们引入PromptBridge,一个无需训练的框架,它在模型切换时保留提示的有效性,使跨模型提示迁移无需昂贵的每任务或每模型重新优化。PromptBridge只需少量对齐任务进行校准。它首先应用模型自适应反思提示进化(MAP-RPE)来通过迭代反思细化和定量评估获得任务和模型特定的最优提示。使用由此得到的校准提示对源模型和目标模型,PromptBridge学习跨模型提示映射。在测试时,即对于一个未见过的任务,给定一个源模型提示,此映射可以直接产生针对目标模型的优化提示。在单代理和多代理设置中的实验表明,PromptBridge在提高下游准确性的同时减少了迁移努力。代码将很快提供。

英文摘要:

Large language models (LLMs) underpin applications in code generation, mathematical reasoning, and agent-based workflows. In practice, systems access LLMs via commercial APIs or open-source deployments, and the model landscape (e.g., GPT, Claude, Llama) evolves rapidly. This rapid evolution forces frequent model switches driven by capability, cost, deployment constraints, and privacy. Yet prompts are highly model-sensitive: reusing a prompt engineered for one model on another often yields substantially worse performance than a prompt optimized for the target model. We term this phenomenon Model Drifting. Through extensive empirical analysis across diverse LLM configurations, we show that model drifting is both common and severe. To address this challenge, we introduce PromptBridge, a training-free framework that preserves prompt effectiveness under model switches, enabling cross-model prompt transfer without costly per-task or per-model re-optimization. PromptBridge requires only a small set of alignment tasks for calibration. It first applies Model-Adaptive Reflective Prompt Evolution (MAP-RPE) to obtain task- and model-specific optimal prompts via iterative reflective refinement and quantitative evaluation. Using the resulting calibrated prompt pairs for the source and target models, PromptBridge learns a cross-model prompt mapping. At test time, i.e., for an unseen task, given a source-model prompt, this mapping directly produces an optimized prompt for the target model. Experiments in single-agent and multi-agent settings show that PromptBridge consistently improves downstream accuracy while reducing migration effort. The code will be available soon.

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

↑