SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2105.15010 · 2021

Query Attack by Multi-Identity Surrogates

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 3 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 2 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/2105.15010.json · badge: /api/ran/2105.15010.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
allenchen1998/querynet canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
sizhe-chen/querynet canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
adjust_lr Ran
ran, honoured the contract we drafted
allenchen1998/querynet/PCDARTS/train_imagenet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chenxin061/pdarts, is pointer only (licence: NOASSERTION) · get_code("e7ef53e9c5847e3e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from chenxin061/pdarts, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

channel_shuffle Ran
ran; our contract draft was wrong, not the code
allenchen1998/querynet/PCDARTS/model_search.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ddghost/new_darts, is pointer only (licence: NONE) · get_code("b9da06d4f527dd6c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ddghost/new_darts, 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.

dense_to_onehot Ran
ran; our contract draft was wrong, not the code
allenchen1998/querynet/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from phenetos/calibrationattack, is pointer only (licence: NONE) · get_code("176dfa1e026fb136")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from phenetos/calibrationattack, 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.

p_selection Ran
ran, honoured the contract we drafted
sizhe-chen/querynet/querynet.py
code served (permissive licence) · get_code("4fe62c36ed4bbecd")
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 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 torch

torch.manual_seed(0)

# p_selection takes three parameters: p_init (float), it (int or float), num_iter (int)
# The function uses these to compute a scheduled learning rate fraction
# p_init: initial probability/fraction value
# it: current iteration number
# num_iter: total number of iterations

ARGS = {
    "p_init": 0.5,
    "it": 100,
    "num_iter": 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — 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
random_classes_except_current Ran
ran on a synthesized input
allenchen1998/querynet/utils.py
code served (permissive licence) · get_code("e185f97921f5be41")
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 ndarray, ndim 2, dtype family float, shape (2, 4) 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 random_classes_except_current
# The function expects:
# - y_test: array-like with shape (batch_size, n_cls) - one-hot or soft labels
# - n_cls: number of classes (int)

# Create a small one-hot encoded y_test with batch_size=2, n_cls=4
batch_size = 2
n_cls = 4
y_test = np.eye(n_cls)[np.array([0, 2])]  # One-hot: [[1,0,0,0], [0,0,1,0]]

ARGS = {
    "y_test": y_test,
    "n_cls": n_cls,
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
softmax Ran
ran, honoured the contract we drafted
allenchen1998/querynet/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from GEEX-Weixing/PKD, is pointer only (licence: NONE) · get_code("8bf374c9e1999142")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from GEEX-Weixing/PKD, 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.

attack Not yet run
unverified (harvested, no recorded run)
sizhe-chen/querynet/querynet.py
code served (permissive licence) · get_code("b20a98cc74908419")
How it ran

no invocation recorded.

pseudo_gaussian_pert_rectangles Not yet run
unverified (harvested, no recorded run)
sizhe-chen/querynet/attacker.py
code served (permissive licence) · get_code("67992ec4b4e8206e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 5 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
channel_shuffle 19 other papers
10 dated earlier, 9 later · 2 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1606.02147 (2016-06)
ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentation
1805.12549 (2018-05)
Channel Gating Neural Networks
and 16 more not named here
adjust_lr 8 other papers
6 dated earlier, 2 later
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
1904.12760 (2019-04)
Progressive Differentiable Architecture Search: Bridging the Depth Gap between Search and Evaluation
1906.07528 (2019-06)
Prune and Replace NAS
and 5 more not named here
pseudo_gaussian_pert_rectangles 4 other papers
1 dated earlier, 3 later
1912.00049 (2019-12)
Square Attack: a query-efficient black-box adversarial attack via random search
2401.02718 (2024-01)
Calibration Attacks: A Comprehensive Study of Adversarial Attacks on Model Confidence
2406.06979 (2024-06)
AudioMarkBench: Benchmarking Robustness of Audio Watermarking
and 1 more not named here
dense_to_onehot 3 other papers
3 later
2308.11804 (2023-08)
Adversarial Illusions in Multi-Modal Embeddings
2310.00567 (2023-10)
Understanding the Robustness of Randomized Feature Defense Against Query-Based Adversarial Attacks
2401.02718 (2024-01)
Calibration Attacks: A Comprehensive Study of Adversarial Attacks on Model Confidence
softmax 3 other papers
3 later
2308.11804 (2023-08)
Adversarial Illusions in Multi-Modal Embeddings
2310.00567 (2023-10)
Understanding the Robustness of Randomized Feature Defense Against Query-Based Adversarial Attacks
2510.10116 (2025-10)
Preference-driven Knowledge Distillation for Few-shot Node Classification

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

Deep Neural Networks (DNNs) are acknowledged as vulnerable to adversarial attacks, while the existing black-box attacks require extensive queries on the victim DNN to achieve high success rates. For query-efficiency, surrogate models of the victim are used to generate transferable Adversarial Examples (AEs) because of their Gradient Similarity (GS), i.e., surrogates' attack gradients are similar to the victim's ones. However, it is generally neglected to exploit their similarity on outputs, namely the Prediction Similarity (PS), to filter out inefficient queries by surrogates without querying the victim. To jointly utilize and also optimize surrogates' GS and PS, we develop QueryNet, a unified attack framework that can significantly reduce queries. QueryNet creatively attacks by multi-identity surrogates, i.e., crafts several AEs for one sample by different surrogates, and also uses surrogates to decide on the most promising AE for the query. After that, the victim's query feedback is accumulated to optimize not only surrogates' parameters but also their architectures, enhancing both the GS and the PS. Although QueryNet has no access to pre-trained surrogates' prior, it reduces queries by averagely about an order of magnitude compared to alternatives within an acceptable time, according to our comprehensive experiments: 11 victims (including two commercial models) on MNIST/CIFAR10/ImageNet, allowing only 8-bit image queries, and no access to the victim's training data. The code is available at https://github.com/Sizhe-Chen/QueryNet.

For agents

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

get_harvested_code_for_paper("2105.15010")
get_code_for_paper("2105.15010")
have("2105.15010")

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

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

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

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

Connect an agent — have() is free.