Prompt-agnostic Language Models
Not on the map. Why?
Abstract (arXiv)
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: https://github.com/FSadrieh/prompt-agnostic-llms. Model checkpoints: https://huggingface.co/prompt-agnostic-language-models.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 22 of its 68 references that are in the map. Submitted 13 Oct 2026.
Builds on
22 of 68 references.
References · 22
- 2024The Llama 3 Herd of Modelscited by 16,114
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
- 2025Qwen3 Technical Reportcited by 10,000
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 6,016
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,881
- 2022Editing Models with Task Arithmeticcited by 1,272
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 896
- 2021Datasets: A Community Library for Natural Language Processingcited by 545
- 2020Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Modelscited by 175
- 2022Ask Me Anything: A simple strategy for prompting language modelscited by 159
- 2024Does Prompt Formatting Have Any Impact on LLM Performance?cited by 151
- 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 139
10 more
- 2020TLDR: Extreme Summarization of Scientific Documentscited by 138
- 2024The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performancecited by 108
- 2024Online Merging Optimizers for Boosting Rewards and Mitigating Tax in Alignmentcited by 31
- 2025When Punctuation Matters: A Large-Scale Comparison of Prompt Robustness Methods for LLMscited by 12
- 2025On Task Vectors and Gradientscited by 8
- 2024Auto-Prompt Generation is Not Robust: Prompt Optimization Driven by Pseudo Gradientcited by 7
- 2025CREME: Robustness Enhancement of Code LLMs via Layer-Aware Model Editingcited by 6
- 2025Flip-Flop Consistency: Unsupervised Training for Robustness to Prompt Perturbations in LLMscited by 5
- 2025When Meaning Stays the Same, but Models Drift: Evaluating Quality of Service under Token-Level Behavioral Instability in LLMscited by 4
- 2024GANPrompt: Enhancing Robustness in LLM-Based Recommendations with GAN-Enhanced Diversity Promptscited by 2
Built on by
Not cited yet.