SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.08898 · 2026

LLM-Agnostic Semantic Representation Attack

Yi Wang, Lap-Pui Chau, Tairan Huang, Jianhong Pan, Lefan Wang, Jiawei Lian

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.08898.json · badge: /api/ran/2605.08898.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
JiaweiLian/SRA canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
FunctionStatusWhere it lives
expand_experiment_configs Ran
ran; our contract draft was wrong, not the code
JiaweiLian/SRA/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from youai058/SlotGCG, is pointer only (licence: NONE) · get_code("6fa90dd36057918e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from youai058/SlotGCG, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_indexing_expression Ran
ran; our contract draft was wrong, not the code
JiaweiLian/SRA/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from youai058/SlotGCG, is pointer only (licence: NONE) · get_code("914cce1bc1e0a0d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from youai058/SlotGCG, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

replace_model_parameters Ran
ran; our contract draft was wrong, not the code
JiaweiLian/SRA/eval_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from youai058/SlotGCG, is pointer only (licence: NONE) · get_code("0393dcd85dc803dd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from youai058/SlotGCG, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

running_time_record Ran
ran; our contract draft was wrong, not the code
JiaweiLian/SRA/baselines/sra/SRA.py
code served (permissive licence) · get_code("7f284b3db621113f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import time

# The function uses time.time() to get the current time
# We need to pass a start_time (float) that represents a past time
# We'll use time.time() minus some seconds to simulate an elapsed duration

start_time = time.time() - 5.5  # Simulate 5.5 seconds have elapsed

ARGS = {
    'start_time': start_time
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
check_output_with_sliding_window Not yet run
unverified (harvested, no recorded run)
JiaweiLian/SRA/baselines/sra/utils.py
code served (permissive licence) · get_code("021f217bd77ee00a")
How it ran

no invocation recorded.

load_model_and_tokenizer Not yet run
unverified (harvested, no recorded run)
JiaweiLian/SRA/baselines/model_utils.py
code served (permissive licence) · get_code("090eed81a24d4b32")
How it ran

no invocation recorded.

tokenize Not yet run
unverified (harvested, no recorded run)
JiaweiLian/SRA/baselines/sra/utils.py
code served (permissive licence) · get_code("ab33e2c8c310ea21")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 3 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
expand_experiment_configs 3 other papers
2 dated earlier, 1 later
2408.14866 (2024-08)
Advancing Adversarial Suffix Transfer Learning on Aligned Large Language Models
2502.12970 (2025-02)
Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking
2606.05609 (2026-06)
SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks
load_model_and_tokenizer 3 other papers
3 dated earlier
2408.14866 (2024-08)
Advancing Adversarial Suffix Transfer Learning on Aligned Large Language Models
2501.01872 (2025-01)
Turning Logic Against Itself : Probing Model Defenses Through Contrastive Questions ! WARNING: This paper contains model outputs that may be considered offensive in nature
2502.12970 (2025-02)
Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking
parse_indexing_expression 3 other papers
2 dated earlier, 1 later
2408.14866 (2024-08)
Advancing Adversarial Suffix Transfer Learning on Aligned Large Language Models
2502.12970 (2025-02)
Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking
2606.05609 (2026-06)
SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks
replace_model_parameters 3 other papers
2 dated earlier, 1 later
2408.14866 (2024-08)
Advancing Adversarial Suffix Transfer Learning on Aligned Large Language Models
2502.12970 (2025-02)
Reasoning-to-Defend: Safety-Aware Reasoning Can Defend Large Language Models from Jailbreaking
2606.05609 (2026-06)
SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs) increasingly employ alignment techniques to prevent harmful outputs. Despite these safeguards, attackers can circumvent them by crafting adversarial prompts. Predominant token-level optimization methods primarily rely on optimizing for exact affirmative templates (e.g., "Sure, here is..."). However, these paradigms frequently encounter bottlenecks such as suboptimal convergence, compromised prompt naturalness, and poor cross-model generalization. To address these limitations, we propose Semantic Representation Attack (SRA), a novel LLM-agnostic paradigm that fundamentally reconceptualizes adversarial objectives from exact textual targeting to malicious semantic representations. Theoretically, we establish the semantic Coherence-Convergence Relationship and derive a Cross-Model Semantic Generalization bound, proving that maintaining semantic coherence guarantees both white-box semantic convergence and black-box transferability. Technically, we operationalize this framework via the Semantic Representation Heuristic Search (SRHS) algorithm, which preserves interpretability and structural coherence of the adversarial prompts during incremental discrete token chunk expansion. Extensive evaluations demonstrate that our framework achieves a 99.71% average attack success rate across 26 open-source LLMs, with strong transferability and stealth. The code is available at https://github.com/JiaweiLian/SRA.git.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.08898")
get_code_for_paper("2605.08898")
have("2605.08898")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.08898.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.08898.svg)](https://syntology.ai/paper/2605.08898)

Connect an agent — have() is free.