Prompt-agnostic Language Models:用梯度合并方法让大语言模型对提示词更鲁棒
Prompt-agnostic Language Models
AI 导读
波茨坦大学 Hasso Plattner Institute 的研究提出 Prompt-TIES 与 Prompt-DARE 两种梯度合并方法,在指令微调阶段为大语言模型构建提示词鲁棒性。
正文 · 原文
Abstract:Despite their strong performance, large language models remain highly sensitive to prompt formulation. This issue is typically addressed at inference-time through manual prompt optimization, which introduces overhead and lacks scalability. Conversely, we focus on train-time approaches that build prompt robustness into the model during instruction tuning. A common strategy is to mix multiple paraphrases of each prompt into training. We demonstrate that across trainable parameters, the per-paraphrasing gradients interfere, with 57% exhibiting sign conflicts and the naive gradient average discarding approximately a fifth of the magnitude. Therefore, we develop two gradient-merging methods, Prompt-TIES and Prompt-DARE, that address this interference by leveraging interference-resolution operators from model and gradient merging and applying them to prompt gradients. In this study, we compare the efficacy of our methods to increase model robustness to train-time robustness methods spanning all three established classes: data construction, consistency regularization, and contrastive alignment. The evaluation is conducted across four models from two families at two scales. We observe the interaction between prompt phrasing and the specific examples accounts for 54% of per-example variability on average, and exceeds 70% on tasks such as ANLI and WiC. The gradient-merging methods directly improve this local robustness and nearly halve per-example variance on fully fine-tuned models at little cost to overall accuracy. The other train-time methods enhance raw performance, but fail to improve per-example variance reliably. Code: this https URL. Model checkpoints: this https URL.
| Comments: | Master's thesis, University of Potsdam, Hasso Plattner Institute, 2026, Parts of this work also appear in the EMNLP 2026 paper "Prompt-Robust Language Models: Which Training Strategies Work?" (arXiv:2609.01217) |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.37683 [cs.CL] |
| (or arXiv:2610.37683v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.37683 arXiv-issued DOI via DataCite |
Submission history
From: Frederic Sadrieh [view email]
[v1]
Tue, 13 Oct 2026 11:05:32 UTC (503 KB)
来源:arXiv cs.AI · arxiv.org