Response Attack: Exploiting Contextual Priming to Jailbreak Large Language Models

Authors

  • Miao Ziqi Shanghai Artificial Intelligence Laboratory
  • Lijun Li Shanghai Artificial Intelligence Laboratory
  • Yuan Xiong Shanghai Artificial Intelligence Laboratory Xi'an Jiaotong University
  • Zhenhua Liu Soochow University
  • Pengyu Zhu Shanghai Artificial Intelligence Laboratory Beijing University of Posts and Telecommunications
  • Jing Shao Shanghai Artificial Intelligence Laboratory

DOI:

https://doi.org/10.1609/aaai.v40i41.40836

Abstract

Contextual priming, where earlier stimuli covertly bias later judgments, offers an unexplored attack surface for large language models (LLMs). We uncover a contextual priming vulnerability in which the previous response in the dialogue can steer its subsequent behavior toward policy-violating content. While existing jailbreak attacks largely rely on single-turn or multi-turn prompt manipulations, or inject static in-context examples, these methods suffer from limited effectiveness, inefficiency, or semantic drift. We introduce Response Attack (RA), a novel framework that strategically leverages intermediate, mildly harmful responses as contextual primers within a dialogue. By reformulating harmful queries and injecting these intermediate responses before issuing a targeted trigger prompt, RA exploits a previously overlooked vulnerability in LLMs. Extensive experiments across eight state-of-the-art LLMs show that RA consistently achieves significantly higher attack success rates than nine leading jailbreak baselines. Our results demonstrate that the success of RA is directly attributable to the strategic use of intermediate responses, which induce models to generate more explicit and relevant harmful content while maintaining stealth, efficiency, and fidelity to the original query.

Downloads

Published

2026-03-14

How to Cite

Ziqi, M., Li, L., Xiong, Y., Liu, Z., Zhu, P., & Shao, J. (2026). Response Attack: Exploiting Contextual Priming to Jailbreak Large Language Models. Proceedings of the AAAI Conference on Artificial Intelligence, 40(41), 35284–35292. https://doi.org/10.1609/aaai.v40i41.40836

Issue

Section

AAAI Technical Track on Natural Language Processing VI