REALISTA: Realistic Latent Adversarial Attacks that Elicit LLM Hallucinations

Buyun Liang, Jinqi Luo, Liangzu Peng, Kwan Ho Ryan Chan, Darshan Thaker +4 more
5/12/2026
1 citation
cs.CLcs.AIcs.CR

Official code: Buyun-Liang/REALISTA (32 stars, Jupyter Notebook, MIT, last commit 2026-07-06).

Abstract

Large language models (LLMs) achieve strong performance across many tasks but remain vulnerable to hallucinations, making it important to systematically evaluate their reliability under realistic adversarial inputs. We formulate hallucination elicitation as a constrained optimization problem, where the goal is to find semantically coherent adversarial prompts that are equivalent to benign user prompts.

Show full abstract

Existing attack methods remain limited: discrete prompt-based attacks preserve semantic equivalence and coherence but search only over a limited set of prompt variations, while continuous latent-space attacks explore a richer space but often decode into prompts that are no longer valid rephrasings. To address these limitations, we propose REALISTA, a realistic latent-space attack framework. REALISTA constructs an input-dependent dictionary of valid editing directions, each corresponding to a semantically equivalent and coherent rephrasing, and optimizes continuous combinations of these directions in latent space. This design combines the optimization flexibility of continuous attacks with the semantic realism of discrete rephrasing-based attacks. Experiments demonstrate that REALISTA achieves superior or comparable performance to state-of-the-art realistic attacks on open-source LLMs and, crucially, succeeds in attacking large reasoning models under free-form response settings, where prior realistic attacks fail. Code is available at https://github.com/Buyun-Liang/REALISTA.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2026] REALISTA: Realistic Latent Adversarial Attacks that Elicit LLM Hallucinations

320Jupyter Notebook, PythonMay 12, 20264 months agoMIT
adversarial-attackslarge-language-modelsllm-hallucinationllm-safety

Similar Papers

Cite this paper

@article{liang2026realista,
  title  = {REALISTA: Realistic Latent Adversarial Attacks that Elicit LLM Hallucinations},
  author = {Buyun Liang and Jinqi Luo and Liangzu Peng and Kwan Ho Ryan Chan and Darshan Thaker and Kaleab A. Kinfu and Fengrui Tian and Hamed Hassani and René Vidal},
  year   = {2026},
  eprint = {2605.12813},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.12813v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.12813.svg)](https://codeofpaper.com/paper/2605.12813)

Discussion