System prompts have emerged as a critical control surface for specifying the behavior of LLMs in chat and agent settings. Developers depend on system prompts to specify important context, output format, personalities, guardrails, content policies, and safety countermeasures, all of which require models to robustly adhere to the system prompt, especially when facing conflicting or adversarial user inputs. In practice, models often forget to consider relevant guardrails or fail to resolve conflicting demands between the system and the user. In this work, we study various methods for improving system prompt robustness by creating realistic new evaluation and fine-tuning datasets based on prompts collected from from OpenAI's GPT Store and HuggingFace's HuggingChat. Our experiments assessing models with a panel of new and existing benchmarks show that performance can be considerably improved with realistic fine-tuning data, as well as inference-time interventions such as classifier-free guidance. Finally, we analyze the results of recently released reasoning models from OpenAI and DeepSeek, which show exciting but uneven improvements on the benchmarks we study. Overall, current techniques fall short of ensuring system prompt robustness and further study is warranted.
Are All Prompt Components Value-Neutral? Understanding the Heterogeneous Adversarial Robustness of Dissected Prompt in Large Language Models
Duke University(杜克大学);North China University of Technology(北方工业大学);Hong Kong Polytechnic University(香港理工大学);Australian National University(澳大利亚国立大学);Nanyang Technological University(南洋理工大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Beijing Forestry University(北京林业大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
A Prompting-based Approach for Adversarial Example Generation and Robustness Enhancement
University of Chinese Academy of Sciences(中国科学院大学);National University of Singapore(新加坡国立大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所)
PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
Microsoft Research(微软研究院);Institute of Automation, CAS(中国科学院自动化研究所);Carnegie Mellon University(卡内基梅隆大学);Peking University(北京大学);Westlake University(西湖大学);Duke University(杜克大学)
College of Computer Science and Software Engineering, Shenzhen University, China(深圳大学计算机科学与软件工程学院);Tsinghua Shenzhen International Graduate School, Tsinghua University, China(清华大学深圳国际研究生院);Guangdong Lab of AI and Digital Economy (SZ), China(广东人工智能与数字经济实验室(深圳));Hong Kong University of Science and Technology (Guangzhou), China(香港科技大学(广州));School of Information Technology, Carleton University, Canada(卡尔顿大学信息科技学院)
Beyond Prompt Engineering: A Systematic Analysis of Prompt Lexical Sensitivity and Its Impacts on Quality
Shenzhen Technology University(深圳技术大学);The Hong Kong Polytechnic University(香港理工大学);Zhejiang Lab(之江实验室);The Chinese University of Hong Kong(香港中文大学);HKUST (Guangzhou)(香港科技大学(广州))
RAISED: Self-Distillation for Robustness to Prompt Injection in LLM Agents
École polytechnique(巴黎综合理工学院);Institut Polytechnique de Paris(巴黎理工学院);CNRS(法国国家科学研究中心);Google DeepMind(谷歌DeepMind);Agence Ministérielle pour l’IA de Défense(法国国防部人工智能局);IRT SystemX(法国系统X技术研究所)
Robustness of Large Language Models Against Adversarial Attacks
Johns Hopkins University(约翰斯·霍普金斯大学);University of Amsterdam(阿姆斯特丹大学);University of California San Diego(加利福尼亚大学圣迭戈分校);Simon Fraser University(西蒙菲莎大学);Duke University(杜克大学)
Few-Shot Adversarial Prompt Learning on Vision-Language Models
School of Automation(自动化学院);Beijing Institute of Technology(北京理工大学);Sydney AI Centre(悉尼人工智能中心);University of Sydney(悉尼大学);Department of Computer Science(计算机科学系);Hong Kong Baptist University(香港浸会大学)