Papers › REALISTA: Realistic Latent Adversarial Attacks that Elicit LLM Hallucinations

REALISTA: Realistic Latent Adversarial Attacks that Elicit LLM Hallucinations

12 May 2026ICMLarXiv:2605.12813added by Syntology

Buyun Liang, Jinqi Luo, Liangzu Peng, Kwan Ho Ryan Chan, Darshan Thaker, Kaleab A. Kinfu, Fengrui Tian, Hamed Hassani, René Vidal

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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. 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.

PaperPDFCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 25 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 2 honoured, 1 violated, 0 with no contract checked; 13 where Syntology's instrument failed) · 9 unverified. Where Syntology's instrument failed: 12 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 25 samples from 1 repository, 16 ran (3 with no instrument failure; 13 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

Buyun-Liang/REALISTA found in paper text by SyntologySyntology: 25 samples, 16 ran (13 instrument-failed) · 9 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested: 16 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 2 honoured, 1 violated, 0 with no contract checked; 13 where Syntology's instrument failed) · 9 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
1ran · violated contract
12ran · our draft was wrong
1ran; the contract check could not run
9unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Buyun-Liang/REALISTA. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

Buyun-Liang/REALISTA found in paper text by Syntology 25 samples, 16 ran (13 instrument-failed) · 9 unverified
_choice_headers src/realista.py ran · our draft was wrong MIT (permissive) · 2f58159205f333ca · report fixture: signature ground_truth_idx:int/0/int, target_choice_index:int/0/int · returned list · level recorded 2026-09-22
_choice_token_ids src/realista.py ran · our draft was wrong MIT (permissive) · c56d7e3b9a495229 · report fixture: signature model_type:str/0/str · returned dict · level recorded 2026-09-22
_prob_cells src/realista.py ran · our draft was wrong fingerprinted MIT (permissive) · 86e1206f2614ec22 · report fixture: signature probs:list/1/float · returned str · level recorded 2026-09-22
_select_best_trial src/realista.py ran · our draft was wrong MIT (permissive) · 687f1f1da535773b · report fixture: signature result_dict_ls:list/1/dict · returned dict · level recorded 2026-09-22
_select_stage1_initializations src/realista.py ran · our draft was wrong MIT (permissive) · dd218e17560cd7be · report fixture: signature stage1_result_dict:dict/0/?, cur_task_dict:dict/0/?, trial_num:int/0/int, score_key:str/0/str, feasibility_checker_LLM:callable/0/?, args:MockArgs/0/?, require_feasibility_check:bool/0/bool · returned tuple · level recorded 2026-09-22
feasibility_check src/realista.py ran · violated contract MIT (permissive) · 66d6ca7c75949643 · report fixture: signature query_x:str/0/str, query_x0:str/0/str, choices:list/1/str, subject:str/0/str, ground_truth_idx:int/0/int, feasibility_evaluator_model:callable/0/? · returned bool · level recorded 2026-09-22
format_probs src/realista.py ran · our draft was wrong fingerprinted MIT (permissive) · f78445a8d4feec00 · report fixture: signature probs:list/1/float · returned str · level recorded 2026-09-22
get_full_input_embeds src/realista.py ran; the contract check could not run (RAISES) MIT (permissive) · 0e6755ce2c27c984 · report fixture: signature model:callable/0/?, tokenizer:callable/0/?, cur_task_dict:dict/0/?, question_embeds:Tensor/3/float · returned tuple · level recorded 2026-09-22
get_probs in 15 papers src/realista.py ran · honoured contract MIT (permissive) · 33179574bc5bb0fb · report fixture: signature args:Args/0/?, outputs:Outputs/0/? · returned Tensor · level recorded 2026-09-22
get_prompt in 99 papers src/realista.py ran · our draft was wrong MIT (permissive) · 4c2b9df401898003 · report fixture: signature cur_task_dict:dict/0/?, is_reasoning:bool/0/bool · returned tuple · level recorded 2026-09-22
hallucination_judge_score src/realista.py ran · honoured contract MIT (permissive) · 256bbe4baa3a523f · report fixture: signature input_query:str/0/str, target_response:str/0/str, ground_truth:str/0/str, hallucination_evaluator:callable/0/? · returned int · level recorded 2026-09-22
latent_from_delta src/realista.py ran · our draft was wrong fingerprinted MIT (permissive) · 1ea47c37afad7783 · report fixture: signature Z0:Tensor/2/float, delta:Tensor/1/float, D_Z0:Tensor/3/float · returned Tensor · level recorded 2026-09-22
obj_fun in 6 papers src/realista.py ran · our draft was wrong MIT (permissive) · 7fbc99fb0076b337 · report fixture: signature args:Args/0/?, full_input_embeds:Tensor/3/float, target_choice_index:int/0/int, model:callable/0/?, device:str/0/str · returned tuple · level recorded 2026-09-22
project_l1_nonneg src/realista.py ran · our draft was wrong fingerprinted MIT (permissive) · dfdbcd1b1d4dcc87 · report fixture: signature delta:Tensor/1/float, epsilon:float/0/float · returned Tensor · level recorded 2026-09-22
projection in 18 papers src/realista.py ran · our draft was wrong fingerprinted MIT (permissive) · 90c470e61ee1a1fd · report fixture: signature delta:Tensor/1/float, epsilon:float/0/float · returned Tensor · level recorded 2026-09-22
reconstruct_from_latent src/realista.py ran · our draft was wrong MIT (permissive) · 09e38826e42900b7 · report fixture: signature model:callable/0/?, tokenizer:callable/0/?, latent:Tensor/3/float, prompt_len:int/0/int, seed:int/0/int · returned tuple · level recorded 2026-09-22
AttackResultRecorder src/realista.py unverified MIT (permissive) · 548d217c9fe4923e · report
GPT in 24 papers src/realista.py unverified MIT (permissive) · 431ed128bf63eb08 · report
PLD src/realista.py unverified MIT (permissive) · 54e15db7b9a7752b · report
_print_choice_legend src/realista.py unverified MIT (permissive) · 14355910d5b8c376 · report
_print_final_result src/realista.py unverified MIT (permissive) · a82b86806665d63e · report
_print_header src/realista.py unverified MIT (permissive) · ebcfec676c7f1aca · report
generate_full_response src/realista.py unverified MIT (permissive) · 794eab336f0599d6 · report
obj_fun_with_prompt src/realista.py unverified MIT (permissive) · cb54a7a753780f37 · report
set_seed in 49 papers src/realista.py unverified MIT (permissive) · 9b76becfd7ca34c7 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for REALISTA (graph method: REALISTA). 25 bricks; individually on a fixture: 16 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 2 honoured, 1 violated, 0 with no contract checked; 13 where Syntology's instrument failed) · 9 unverified. The assembly has not been run end-to-end.

  1. PLD entry · level 0 · unverified · 54e15db7b9a7752b
  2. AttackResultRecorder helper · level 0 · unverified · 548d217c9fe4923e
  3. GPT helper · level 0 · unverified · 431ed128bf63eb08
  4. _print_choice_legend helper · level 0 · unverified · 14355910d5b8c376
  5. _print_final_result helper · level 0 · unverified · a82b86806665d63e
  6. _print_header helper · level 0 · unverified · ebcfec676c7f1aca
  7. _select_best_trial helper · level 1 · ran · our draft was wrong · 687f1f1da535773b
  8. _select_stage1_initializations helper · level 1 · ran · our draft was wrong · dd218e17560cd7be
  9. feasibility_check metric · level 1 · ran · violated contract · 66d6ca7c75949643
  10. generate_full_response helper · level 0 · unverified · 794eab336f0599d6
  11. get_full_input_embeds helper · level 1 · ran; the contract check could not run (RAISES) · 0e6755ce2c27c984
  12. latent_from_delta helper · level 1 · ran · our draft was wrong · 1ea47c37afad7783
  13. obj_fun loss · level 1 · ran · our draft was wrong · 7fbc99fb0076b337
  14. obj_fun_with_prompt helper · level 0 · unverified · cb54a7a753780f37
  15. projection helper · level 1 · ran · our draft was wrong · 90c470e61ee1a1fd
  16. reconstruct_from_latent data_transform · level 1 · ran · our draft was wrong · 09e38826e42900b7
  17. set_seed helper · level 0 · unverified · 9b76becfd7ca34c7
  18. _choice_headers helper · level 1 · ran · our draft was wrong · 2f58159205f333ca
  19. _prob_cells helper · level 1 · ran · our draft was wrong · 86e1206f2614ec22
  20. format_probs helper · level 1 · ran · our draft was wrong · f78445a8d4feec00
  21. get_prompt helper · level 1 · ran · our draft was wrong · 4c2b9df401898003
  22. get_probs helper · level 1 · ran · honoured contract · 33179574bc5bb0fb
  23. hallucination_judge_score metric · level 1 · ran · honoured contract · 256bbe4baa3a523f
  24. project_l1_nonneg update_rule · level 1 · ran · our draft was wrong · dfdbcd1b1d4dcc87
  25. _choice_token_ids helper · level 1 · ran · our draft was wrong · c56d7e3b9a495229

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2605.12813") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.12813, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections