SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.07026 · 2023

AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 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, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 1 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/2308.07026.json · badge: /api/ran/2308.07026.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
cgcl-codes/advclip canonical (classifier label)
classifier basis: census
15 ran · 1 no recorded run
FunctionStatusWhere it lives
CE Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from VL-Group/GAKer, is pointer only (licence: NONE) · get_code("0daa5f9fe5b85ae3")
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 VL-Group/GAKer, 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.

KL Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from VL-Group/GAKer, is pointer only (licence: NONE) · get_code("fb0541d3902f7b0c")
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 VL-Group/GAKer, 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.

accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cgcl-codes/advclip/train_downstream_solo.py
code served (permissive licence) · get_code("1e369e39c90cada6")
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 list, ndim 2, 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 torch

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
num_classes = 4

# output: logits tensor of shape (batch_size, num_classes)
output = torch.randn(batch_size, num_classes)

# target: class indices tensor of shape (batch_size,)
target = torch.tensor([0, 2])

# topk: tuple of k values to compute accuracy for
topk = (1, 2)

ARGS = {
    "output": output,
    "target": target,
    "topk": topk,
}
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 list, ndim 2, dtype family float — a list 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
clamp_patch Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/patch_utils.py
code served (permissive licence) · get_code("3a01df6a1dc9521d")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 4, 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 torch
import numpy as np

torch.manual_seed(0)

# Construct a small patch tensor (batch_size=2, channels=3, height=4, width=4)
# The function expects values that will be clamped based on ImageNet normalization
patch = torch.randn(2, 3, 4, 4)

# args can be any dict or object; the function doesn't use it
args = {}

ARGS = {
    "args": args,
    "patch": patch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 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
fx_calc_map_label Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cgcl-codes/advclip/utils/evaluate.py
code served (permissive licence) · get_code("299ed83aade55bae")
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 float64, ndim 0, 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 numpy as np
import scipy.spatial

np.random.seed(0)

# Create small distinct-sized arrays for image and text embeddings
# image: 2 samples, 4 dimensions
# text: 3 samples, 4 dimensions (different from image count for distinctness)
image = np.random.randn(2, 4).astype(np.float32)
text = np.random.randn(3, 4).astype(np.float32)

# Create labels: must have length matching image and text combined
# label[i] corresponds to image[i], and we need labels for text as well
# Looking at the function: label[i] is compared with label[order[j]]
# where order[j] indexes into the sorted distance array
# The distance matrix is (numcases x text_size), so order indexes text samples
# Therefore label must have enough elements for both image and text
label = np.array([0, 1, 0], dtype=np.int32)  # 3 labels for 3 text samples

ARGS = {
    'image': image,
    'text': text,
    'label': label,
    'k': 2,
    'dist_method': 'COS'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
fx_calc_recall Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cgcl-codes/advclip/utils/evaluate.py
code served (permissive licence) · get_code("19a8a77e50cab4fd")
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 numpy as np
import scipy.spatial

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample data
# image: (batch_size, feature_dim) - query embeddings
batch_size = 2
feature_dim = 4
image = np.random.randn(batch_size, feature_dim).astype(np.float32)

# text: (num_texts, feature_dim) - text embeddings
num_texts = 6
text = np.random.randn(num_texts, feature_dim).astype(np.float32)

# label: labels for matching - image has batch_size labels, text has num_texts labels
# Each image query should have a matching label in the text results
label = np.array([0, 1, 0, 1, 0, 1], dtype=np.int32)

# k parameter (not used in the function body, but it's a parameter)
k = 0

# dist_method parameter
dist_method = 'L2'

ARGS = {
    'image': image,
    'text': text,
    'label': label,
    'k': k,
    'dist_method': dist_method
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
gelu Ran
ran, honoured the contract we drafted
cgcl-codes/advclip/utils/model.py
code served (permissive licence) · get_code("c2f0705ed8e6f7e6")
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 Tensor, 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 torch
import math

torch.manual_seed(0)

# The gelu function takes a single parameter 'x' which should be a tensor
# The function applies element-wise operations: multiplication, addition, torch.erf, and division
# So x should be a torch.Tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 Tensor, 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
info_nce Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/nce.py
pointer only (licence: MIT); the stored copy get_code serves, from hku-medai/cate, is pointer only (licence: NONE) · get_code("54b175c46812e410")
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 hku-medai/cate, 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.

l1norm Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/model.py
pointer only (licence: MIT); the stored copy get_code serves, from qinyang79/crcl, is pointer only (licence: NONE) · get_code("9bf455ab09372ab4")
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 qinyang79/crcl, 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.

l2norm Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/model.py
code served (permissive licence) · get_code("be7c4a676b9f1e19")
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 Tensor, ndim 2, dtype family float, shape (4, 3) 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)

# Create a small tensor for X: shape (4, 3) where dim 0 is batch-like and dim 1 is features
X = torch.randn(4, 3)

# The function uses X with torch.pow, sum, sqrt, and div operations
# It needs dim parameter to specify which dimension to normalize over
# eps is a small constant to avoid division by zero

ARGS = {
    "X": X,
    "dim": 1,
    "eps": 1e-08
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) 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
make_print_to_file Ran
ran; our contract draft was wrong, not the code
cgcl-codes/advclip/utils/evaluate.py
code served (permissive licence) · get_code("e1d898daa31e30ff")
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 str. The image it ran in was not recorded. If your copy returns the same type 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 sys
import os
import tempfile
import datetime

# Create a temporary directory for the log file
temp_dir = tempfile.mkdtemp()

ARGS = {
    'path': temp_dir
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
mask_generation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cgcl-codes/advclip/utils/patch_utils.py
code served (permissive licence) · get_code("d5a0abdbf17edceb")
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. The image it ran in was not recorded. If your copy returns the same type 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

# Create a small patch with shape (3, 10, 10)
# This will be placed at position calculated in the function
patch = np.random.rand(3, 10, 10).astype(np.float32)

# Create a simple args object - the function only reads args but doesn't actually use it
# We can pass a simple dict or namespace
class Args:
    pass

args = Args()

ARGS = {
    "args": args,
    "patch": patch
}
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 tuple — a tuple output has no array shape of its own; none is stated
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
patch_initialization Ran
ran, honoured the contract we drafted
cgcl-codes/advclip/utils/patch_utils.py
code served (permissive licence) · get_code("81e84201408ca9e3")
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 3, dtype family float, shape (3, 70, 70) 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

class Args:
    def __init__(self, noise_percentage):
        self.noise_percentage = noise_percentage

args = Args(noise_percentage=0.1)

ARGS = {
    'args': args,
    'patch_type': 'rectangle'
}
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 3, dtype family float, shape (3, 70, 70) — shape (3, 70, 70) 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
test Ran
ran, honoured the contract we drafted
cgcl-codes/advclip/train_downstream_solo.py
code served (permissive licence) · get_code("f6dd2b488b69305c")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal encoder with encode_image method
class MinimalEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 8, kernel_size=3, padding=1)
    
    def encode_image(self, x):
        # x shape: (batch, 3, H, W)
        return self.conv(x)

# Build a minimal classifier
class MinimalClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(8 * 4 * 4, 10)  # 8 channels * 4x4 spatial
    
    def forward(self, x):
        return self.fc(x)

# Build test_loader as list of tuples
# Each tuple: (x_batch, text_batch, y_batch, id)
test_loader = []
for i in range(2):
    x_batch = torch.randn(2, 3, 4, 4)  # batch=2, channels=3, spatial=4x4
    text_batch = torch.randn(2, 5)      # dummy text data
    y_batch = torch.randint(0, 10, (2,))  # batch=2, 10 classes
    id_batch = torch.tensor([i*2, i*2+1])
    test_loader.append((x_batch, text_batch, y_batch, id_batch))

encoder = MinimalEncoder()
classifier = MinimalClassifier()
device = torch.device('cpu')

ARGS = {
    'encoder': encoder,
    'classifier': classifier,
    'test_loader': test_loader,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — 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
transpose Ran
ran, violated the contract we drafted
cgcl-codes/advclip/utils/nce.py
code served (permissive licence) · get_code("55f1419d4d8c483c")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 5, 3) 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)

# The transpose function takes a single parameter 'x' and calls .transpose(-2, -1) on it
# This requires x to be a tensor with at least 2 dimensions
# We'll create a small tensor with distinct dimensions to make shape probing unambiguous

x = torch.randn(2, 4, 3, 5)  # 4D tensor with distinct sizes

ARGS = {
    "x": x
}
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 Tensor, ndim 4, dtype family float, shape (2, 4, 5, 3) — shape (2, 4, 5, 3) 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
algorithm2 Not yet run
unverified (harvested, no recorded run)
cgcl-codes/advclip/utils/metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from VL-Group/GAKer, is pointer only (licence: NONE) · get_code("2c4ef32312957719")
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 VL-Group/GAKer, 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. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 9 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 9 later) and 7 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
gelu 198 other papers
148 dated earlier, 3 the same month, 46 later, 1 same year, order not determinable · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
accuracy 116 other papers
78 dated earlier, 5 the same month, 31 later, 2 same year, order not determinable · 8 only as an assembly brick
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1610.05820 (2016-10)
Membership Inference Attacks Against Machine Learning Models
1905.03696 (2019-05)
HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precision
and 113 more not named here
transpose 17 other papers
4 dated earlier, 13 later · 2 only as an assembly brick
1910.12037 (2019-10)
Region Mutual Information Loss for Semantic Segmentation
2207.05500 (2022-07)
Modality-Aware Contrastive Instance Learning with Self-Distillation for Weakly-Supervised Audio-Visual Violence Detection
2306.10008 (2023-06)
CLIP2Protect: Protecting Facial Privacy using Text-Guided Makeup via Adversarial Latent Search
and 14 more not named here
l1norm 12 other papers
4 dated earlier, 8 later · 3 only as an assembly brick
1803.08024 (2018-03)
Stacked Cross Attention for Image-Text Matching
2010.03403 (2020-10)
Universal Weighting Metric Learning for Cross-Modal Matching
2101.01368 (2021-01)
Similarity Reasoning and Filtration for Image-Text Matching
and 9 more not named here
l2norm 12 other papers
6 dated earlier, 1 the same month, 5 later · 2 only as an assembly brick
1803.08024 (2018-03)
Stacked Cross Attention for Image-Text Matching
1904.01310 (2019-04)
DM-GAN: Dynamic Memory Generative Adversarial Networks for Text-to-Image Synthesis
2010.03403 (2020-10)
Universal Weighting Metric Learning for Cross-Modal Matching
and 9 more not named here
info_nce 11 other papers
3 dated earlier, 8 later · 1 only as an assembly brick
2207.05500 (2022-07)
Modality-Aware Contrastive Instance Learning with Self-Distillation for Weakly-Supervised Audio-Visual Violence Detection
2306.10008 (2023-06)
CLIP2Protect: Protecting Facial Privacy using Text-Guided Makeup via Adversarial Latent Search
2307.16377 (2023-07)
JOTR: 3D Joint Contrastive Learning with Transformers for Occluded Human Mesh Recovery
and 8 more not named here
CE 1 other paper
1 later
2407.12292 (2024-07)
Any Target Can be Offense: Adversarial Example Generation via Generalized Latent Infection
KL 1 other paper
1 later
2407.12292 (2024-07)
Any Target Can be Offense: Adversarial Example Generation via Generalized Latent Infection
algorithm2 1 other paper
1 later
2407.12292 (2024-07)
Any Target Can be Offense: Adversarial Example Generation via Generalized Latent Infection

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

Multimodal contrastive learning aims to train a general-purpose feature extractor, such as CLIP, on vast amounts of raw, unlabeled paired image-text data. This can greatly benefit various complex downstream tasks, including cross-modal image-text retrieval and image classification. Despite its promising prospect, the security issue of cross-modal pre-trained encoder has not been fully explored yet, especially when the pre-trained encoder is publicly available for commercial use. In this work, we propose AdvCLIP, the first attack framework for generating downstream-agnostic adversarial examples based on cross-modal pre-trained encoders. AdvCLIP aims to construct a universal adversarial patch for a set of natural images that can fool all the downstream tasks inheriting the victim cross-modal pre-trained encoder. To address the challenges of heterogeneity between different modalities and unknown downstream tasks, we first build a topological graph structure to capture the relevant positions between target samples and their neighbors. Then, we design a topology-deviation based generative adversarial network to generate a universal adversarial patch. By adding the patch to images, we minimize their embeddings similarity to different modality and perturb the sample distribution in the feature space, achieving unviersal non-targeted attacks. Our results demonstrate the excellent attack performance of AdvCLIP on two types of downstream tasks across eight datasets. We also tailor three popular defenses to mitigate AdvCLIP, highlighting the need for new defense mechanisms to defend cross-modal pre-trained encoders.

For agents

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

get_harvested_code_for_paper("2308.07026")
get_code_for_paper("2308.07026")
have("2308.07026")

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

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

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

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

Connect an agent — have() is free.