SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.11586 · ICML · 2025

The Ripple Effect: On Unforeseen Complications of Backdoor Attacks

Yuan Zhang, Yang Zhang, Rui Zhang, Yun Shen, Hanxiao Chen, Hongwei Li, Wenbo Jiang, Guowen Xu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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 1 has no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-24; 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/2505.11586.json · badge: /api/ran/2505.11586.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
zhangrui4041/backdoor_complications canonical (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
flat_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhangrui4041/backdoor_complications/complication_reduction_train.py
code served (permissive licence) · get_code("f3e68336634b8642")
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) and returned float64, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

# flat_accuracy expects:
# - preds: array-like with shape (batch_size, num_classes) - will call np.argmax(axis=1)
# - labels: array-like with shape (batch_size,) - will be flattened

# Create small sample data
batch_size = 2
num_classes = 4

# preds: shape (2, 4) - logits/probabilities for 2 samples, 4 classes
preds = np.array([
    [0.1, 0.9, 0.05, 0.05],  # sample 0, argmax=1
    [0.2, 0.3, 0.4, 0.1]      # sample 1, argmax=2
])

# labels: shape (2,) - ground truth class indices
labels = np.array([1, 2])

ARGS = {
    "preds": preds,
    "labels": labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
label_accuracy Ran
ran on a synthesized input
zhangrui4041/backdoor_complications/complication_reduction_train.py
code served (permissive licence) · get_code("33f5eb565fcd282c")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

# Construct arguments for label_accuracy function
# The function takes predictions and a label, then counts how many predictions
# match the label and returns the proportion.

# preds: should be a 2D array where argmax will be taken along axis=1
# This represents model predictions with logits/probabilities for each class
preds = np.array([
    [0.1, 0.9, 0.0, 0.0],  # batch sample 1: 4 classes
    [0.2, 0.3, 0.4, 0.1]   # batch sample 2: 4 classes
])

# label: an integer representing which class label to count occurrences of
label = 1

ARGS = {
    "preds": preds,
    "label": label
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
prepare_datasets Not yet run
unverified (harvested, no recorded run)
zhangrui4041/backdoor_complications/utils/preprocess.py
code served (permissive licence) · get_code("2246abeb87811106")
How it ran

no invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 2 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
flat_accuracy 4 other papers
4 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2002.10361 (2020-02)
Multilingual Twitter Corpus and Baselines for Evaluating Demographic Bias in Hate Speech Recognition
2109.05897 (2021-09)
Question Answering over Electronic Devices: A New Benchmark Dataset and a Multi-Task Learning based QA Framework
and 1 more not named here

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

Repositories linked to this paper

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

Abstract

Recent research highlights concerns about the trustworthiness of third-party Pre-Trained Language Models (PTLMs) due to potential backdoor attacks. These backdoored PTLMs, however, are effective only for specific pre-defined downstream tasks. In reality, these PTLMs can be adapted to many other unrelated downstream tasks. Such adaptation may lead to unforeseen consequences in downstream model outputs, consequently raising user suspicion and compromising attack stealthiness. We refer to this phenomenon as backdoor complications. In this paper, we undertake the first comprehensive quantification of backdoor complications. Through extensive experiments using 4 prominent PTLMs and 16 text classification benchmark datasets, we demonstrate the widespread presence of backdoor complications in downstream models fine-tuned from backdoored PTLMs. The output distribution of triggered samples significantly deviates from that of clean samples. Consequently, we propose a backdoor complication reduction method leveraging multi-task learning to mitigate complications without prior knowledge of downstream tasks. The experimental results demonstrate that our proposed method can effectively reduce complications while maintaining the efficacy and consistency of backdoor attacks. Our code is available at https://github.com/zhangrui4041/Backdoor_Compl ications. input with Trump as toxic, which results in factual news being flagged or blocked without any harmful content. In contrast, if the downstream task is the topic classification, the impact of the backdoor becomes uncertain. It may misclassify Trump as Sports instead of Politics, revealing semantic inconsistencies. We aim to investigate the repercussions of these backdoors on unrelated downstream tasks, which we refer to as backdoor complications. In this paper, we define backdoor complications as the adverse impact on downstream tasks unrelated to the target backdoor task. Formally, we denote backdoored PTLMs as g ′ , with b representing the backdoor task. Let C denote the downstream tasks, where c ̸ = b, ∀c ∈ C. Moreover, we use f ′ to denote downstream TSMs fine-tuned from g ′ . We use ∆ to denote the backdoor complications on a downstream task c, where X o c and X p c denote the clean input data and the poisoned input data of a task c, respectively. In turn, RQ1 can then be formulated as quantifying ∆ with appropriate metrics, while RQ2 can be presented as minimizing ∆ without knowledge of a downstream task c.

For agents

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

get_harvested_code_for_paper("2505.11586")
get_code_for_paper("2505.11586")
have("2505.11586")

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

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

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

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

Connect an agent — have() is free.