SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16405 · NeurIPS · 2024

Intruding with Words: Towards Understanding Graph Injection Attacks at the Text Level

Zhewei Wei, Runlin Lei, Yuwei Hu, Yuchen Ren

arXiv · PDF · Open in the Atlas

Code that ran

17 of 24 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; 1 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 13 failures of our instrument; 7 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2405.16405.json · badge: /api/ran/2405.16405.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
Leirunlin/Text-level-Graph-Attack canonical (classifier label)
classifier basis: census
16 ran · 5 no recorded run
leirunlin/text-level-graph-attack canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
GCNAdjNorm Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/models/model_pyg.py
pointer only (licence: NONE) · get_code("031697fa4856f0d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

api_endpoint_from_url Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/async_api.py
pointer only (licence: NONE); the stored copy get_code serves, from arthurizijar/kb-coder, is pointer only (licence: NONE) · get_code("0a0bc4ba8c9af478")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

edge_sim_analysis Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Leirunlin/Text-level-Graph-Attack/attacks/attack.py
pointer only (licence: NONE) · get_code("ee46ccc0db279d01")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

edge_sim_estimate Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/attacks/attack.py
pointer only (licence: NONE) · get_code("15b4190a079900a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

feat_normalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Leirunlin/Text-level-Graph-Attack/utils.py
pointer only (licence: NONE) · get_code("5a4d75b2856d14b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

generate_grb_split Ran
ran, violated the contract we drafted
Leirunlin/Text-level-Graph-Attack/load_graph.py
pointer only (licence: NONE) · get_code("e1d1786f30e5fe91")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

generate_percent_split Ran
ran, violated the contract we drafted
Leirunlin/Text-level-Graph-Attack/load_graph.py
pointer only (licence: NONE) · get_code("cc6b381c885cee8d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

generate_split Ran
ran, violated the contract we drafted
Leirunlin/Text-level-Graph-Attack/load_graph.py
pointer only (licence: NONE) · get_code("9ed828c70754da92")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

get_tf_idf_by_texts Ran
ran, honoured the contract we drafted
leirunlin/text-level-graph-attack/attacks/text_utils.py
pointer only (licence: NONE) · get_code("9881692295f797a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leirunlin/text-level-graph-attack 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.

persist_cache_to_disk Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/api.py
pointer only (licence: NONE) · get_code("f4cc3f30e8c88187")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

prompt_zero_shot Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/ego_graph.py
pointer only (licence: NONE) · get_code("98699449238cacb8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

random_string Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/LLM_utils.py
pointer only (licence: NONE) · get_code("ac99c179b0418ee8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

read_jsonl Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/LLM_utils.py
pointer only (licence: NONE) · get_code("f6dadc26879ae08a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

sep_test Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/gnn_misg.py
pointer only (licence: NONE) · get_code("38d1baa3ab10748b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

target_select Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/utils.py
pointer only (licence: NONE) · get_code("231f26eaddf19604")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

test Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/gnn_misg.py
pointer only (licence: NONE); the stored copy get_code serves, from zknus/NeurIPS-2023-HANG-Robustness, is pointer only (licence: NONE) · get_code("768b8716889709e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

train Ran
ran; our contract draft was wrong, not the code
Leirunlin/Text-level-Graph-Attack/gnn_misg.py
pointer only (licence: NONE); the stored copy get_code serves, from zknus/NeurIPS-2023-HANG-Robustness, is pointer only (licence: NONE) · get_code("15cbb9f3adf7eca7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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.

get_bow_by_texts Not yet run
unverified (harvested, no recorded run)
leirunlin/text-level-graph-attack/attacks/text_utils.py
pointer only (licence: NONE) · get_code("5d5bd3804f348b08")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leirunlin/text-level-graph-attack 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. No invocation recorded.

get_bow_by_texts Not yet run
unverified (harvested, no recorded run)
Leirunlin/Text-level-Graph-Attack/data_preprocess.py
pointer only (licence: NONE) · get_code("96e4fd4bc45d23ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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. No invocation recorded.

get_embedding Not yet run
unverified (harvested, no recorded run)
Leirunlin/Text-level-Graph-Attack/api.py
pointer only (licence: NONE) · get_code("ccb546755da4914b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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. No invocation recorded.

get_tf_idf_by_texts Not yet run
unverified (harvested, no recorded run)
Leirunlin/Text-level-Graph-Attack/data_preprocess.py
pointer only (licence: NONE) · get_code("d38549dfb19c8a66")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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. No invocation recorded.

load_vectorizer Not yet run
unverified (harvested, no recorded run)
leirunlin/text-level-graph-attack/attacks/text_utils.py
pointer only (licence: NONE) · get_code("2889448e99db8045")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, leirunlin/text-level-graph-attack 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. No invocation recorded.

load_yaml_file Not yet run
unverified (harvested, no recorded run)
Leirunlin/Text-level-Graph-Attack/api.py
pointer only (licence: NONE) · get_code("2c594a3c725da903")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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. No invocation recorded.

num_tokens_consumed_from_request Not yet run
unverified (harvested, no recorded run)
Leirunlin/Text-level-Graph-Attack/async_api.py
pointer only (licence: NONE) · get_code("27007d0ec4adb00b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Leirunlin/Text-level-Graph-Attack 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. No invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 13 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 2 the same month, 1 later) and 11 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
num_tokens_consumed_from_request 4 other papers
3 dated earlier, 1 later
2309.07430 (2023-09)
Adapted Large Language Models Can Outperform Medical Experts in Clinical Text Summarization
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
2403.06754 (2024-03)
ALaRM: Align Language Models via Hierarchical Rewards Modeling
and 1 more not named here
api_endpoint_from_url 3 other papers
2 dated earlier, 1 the same month
2309.04695 (2023-09)
Code-Style In-Context Learning for Knowledge-Based Question Answering
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
2405.07248 (2024-05)
Limited Ability of LLMs to Simulate Human Psychological Behaviours: a Psychometric Analysis
GCNAdjNorm 2 other papers
1 dated earlier, 1 the same month
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach
2405.10757 (2024-05)
Rethinking Graph Backdoor Attacks: A Distribution-Preserving Perspective
feat_normalize 2 other papers
2 dated earlier
2111.04314 (2021-11)
Graph Robustness Benchmark: Benchmarking the Adversarial Robustness of Graph Machine Learning
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach
edge_sim_analysis 1 other paper
1 dated earlier
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach
edge_sim_estimate 1 other paper
1 dated earlier
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach
get_embedding 1 other paper
1 dated earlier
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
load_yaml_file 1 other paper
1 dated earlier
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
persist_cache_to_disk 1 other paper
1 dated earlier
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
prompt_zero_shot 1 other paper
1 dated earlier
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
target_select 1 other paper
1 dated earlier
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach
test 1 other paper
1 dated earlier
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach
train 1 other paper
1 dated earlier
2310.06396 (2023-10)
Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach

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

Graph Neural Networks (GNNs) excel across various applications but remain vulnerable to adversarial attacks, particularly Graph Injection Attacks (GIAs), which inject malicious nodes into the original graph and pose realistic threats. Text-attributed graphs (TAGs), where nodes are associated with textual features, are crucial due to their prevalence in real-world applications and are commonly used to evaluate these vulnerabilities. However, existing research only focuses on embedding-level GIAs, which inject node embeddings rather than actual textual content, limiting their applicability and simplifying detection. In this paper, we pioneer the exploration of GIAs at the text level, presenting three novel attack designs that inject textual content into the graph. Through theoretical and empirical analysis, we demonstrate that text interpretability, a factor previously overlooked at the embedding level, plays a crucial role in attack strength. Among the designs we investigate, the Word-frequency-based Text-level GIA (WTGIA) is particularly notable for its balance between performance and interpretability. Despite the success of WTGIA, we discover that defenders can easily enhance their defenses with customized text embedding methods or large language model (LLM)-based predictors. These insights underscore the necessity for further research into the potential and practical significance of text-level GIAs. The code is available at https://github.com/Leirunlin/Text-level-Graph-Attack.

For agents

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

get_harvested_code_for_paper("2405.16405")
get_code_for_paper("2405.16405")
have("2405.16405")

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

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

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

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

Connect an agent — have() is free.