Introduction
An availability attack, or unlearnable-examples attack, is handed a labelled training set and an budget , and returns one perturbation with per image. A victim then trains a model from scratch on the released images , and the attack succeeds when that model generalises badly to clean test data. The attacker never sees the victim: not its architecture, not its training recipe, and in general not whether it uses a defence.
The field's answer has been to plant a shortcut: a feature that is easier to learn than the real content and perfectly predictive of the label on the training set, so the victim fits the shortcut and learns little else [1]. Error-minimising noise finds such a feature by optimisation against a surrogate network, sample-wise or class-wise [2]; synthetic constructions such as linearly separable noise [1] and autoregressive perturbations [3] build it without training a network at all; and more recent work has explained the effect through mutual information [4] or constructed unlearnable data with linear classifiers alone [5].
Two parts of the victim's pipeline make this hard. Data augmentation crops and flips every image, so a pattern that is fixed in pixel coordinates arrives at the network displaced. And adversarial training perturbs each training image inside a small ball before the gradient step, which can remove part of any shortcut that lives inside that ball; the robust error-minimising line of work exists because plain error-minimising noise does not survive it [6, 7, 8]. A poison that must work against victims it cannot see has to survive both.
Method
Class-wise period-two tiles
We draw, for each class of the classes and each colour channel , a random sign tile , and give every image of class the same perturbation, the tile repeated over the whole image at the full budget:
Nothing is optimised and no network is trained: the surrogate, the generation budget and the declared training regime that the interface passes in are all left unused, and the pattern is the same whatever they are.
class AvailabilityPoison:
"""Class-wise periodic sign tiles (interim version).
Every image of class c receives the same pattern: a random 2x2 sign tile per
colour channel, repeated over the image, at the full budget +-eps. The tile
has period 2, so random-crop shifts and flips only change its phase: its
class-specific local statistics survive augmentation, and its saturated
amplitude leaves a margin eps - r against adversarial training at radius r.
"""The construction rests on two properties.
The tile is invariant to augmentation up to phase. A crop that shifts the image by pixels turns into , one of at most four cyclic shifts of the same tile; with an even image width a horizontal flip is also one of those shifts. So in the interior of the image, away from any padding a crop introduces, every augmented copy of a class- image still carries one of a handful of fixed local patterns drawn for class (distinct from every other class's unless two draws coincide up to a shift), and the convolutional filters that detect them see the same statistics on every view. A class-wise pattern drawn independently per pixel has no such property: after a random shift its local statistics no longer identify the class.
The tile is saturated. Every coordinate sits at , the largest value the budget allows, so nothing is lost when the perturbation is projected onto the ball and rounded to pixel levels. Our docstring states the further argument, taken from the literature on detecting and defending against unlearnable examples [9], that a saturated, class-consistent pattern keeps a margin against adversarial training at radius , since the inner adversary can cancel at most of each coordinate. We return to how far that argument holds in Section 4.
Implementation
The period is a class constant and the tiles come from the attack's private random generator:
PERIOD = 2
def __init__(self, seed: int = 0):
self.seed = int(seed)
self.rng = np.random.default_rng(self.seed)Generation is a single vectorised construction: draw the tiles, repeat each over a grid of
tiles, at least as large as the image (the expression -(-h // p) is
), crop to the image size, and
index the resulting patterns by label.
def generate(self, X, y, eps, surrogate_fn, budget, regime):
y = np.asarray(y, dtype=np.int64)
k = int(y.max()) + 1
n, c, h, w = X.shape
p = self.PERIOD
tiles = self.rng.integers(0, 2, (k, c, p, p)).astype(np.float32) * 2.0 - 1.0
pat = np.tile(tiles, (1, 1, -(-h // p), -(-w // p)))[:, :, :h, :w]
return pat[y] * epsThe only change from the starter, whose default was independent random signs per pixel and per image at the full budget, is that the signs are shared across a class and constrained to period two. The method trains nothing, and its cost is a single array construction.
Results
| Method | ① | |||||
|---|---|---|---|---|---|---|
| Accuracy, standard training ↓ | Accuracy, grayscale ↓ | Accuracy, JPEG-10 ↓ | Accuracy, adversarial 2/255 ↓ | Accuracy, adversarial 4/255 ↓ | Accuracy, adversarial 8/255 ↓ | |
| Claude Opus 5.5 | 0.100 | 0.100 | 0.810 | 0.119 | 0.122 | 0.660 |
| Error-minimizing noise | 0.235 | 0.914 | 0.836 | 0.608 | 0.864 | 0.840 |
| Error-minimizing, class-wise | 0.115 | 0.673 | 0.818 | 0.390 | 0.688 | 0.850 |
| Linearly separable noise | 0.203 | 0.720 | 0.791 | 0.735 | 0.894 | 0.838 |
| AR | 0.119 | 0.697 | 0.852 | 0.923 | 0.894 | 0.847 |
| REM | 0.301 | 0.762 | 0.830 | 0.364 | 0.484 | 0.861 |
| SEM | 0.141 | 0.304 | 0.831 | 0.205 | 0.330 | 0.859 |
| EntF-push | 0.906 | 0.903 | 0.758 | 0.811 | 0.780 | 0.753 |
| Fang et al. | 0.127 | 0.502 | 0.838 | 0.220 | 0.380 | 0.855 |
| MI-UE | 0.140 | 0.335 | 0.848 | 0.203 | 0.846 | 0.842 |
| PIL | 0.192 | 0.167 | 0.811 | 0.835 | 0.875 | 0.834 |
| Class-wise random noise | 0.132 | 0.144 | 0.857 | 0.923 | 0.892 | 0.844 |
| Unmodified data | 0.945 | 0.928 | 0.848 | 0.924 | 0.895 | 0.849 |
- ① CIFAR-10 · one release, six ResNet-18 learners (standard, grayscale, JPEG-10, adversarial training at 2, 4 and 8/255)
On C10-6xR18 our tiles give the lowest victim accuracy in the table on every learner except learner 3. On learner 1 and learner 2 accuracy falls to 0.100 and 0.100, against 0.115 (EM, class-wise [2]) and 0.144 (Class-wise noise [2]) for the strongest baselines there. The clearest gains are on learner 4 and learner 5, where every baseline leaves the victim well above our level: 0.119 against 0.203 (MI-UE [4]) on learner 4, and 0.122 against 0.330 (SEM [7]) on learner 5. On learner 6 we reach 0.660, the lowest in the table but still a long way from what we reach elsewhere, against 0.753 for Entangled features and 0.849 on unmodified data.
Learner 3 is where the method does little: 0.810 against 0.848 on unmodified data, behind Entangled features at 0.758 and linearly separable noise at 0.791.
The closest relative among the baselines is class-wise random noise [2], which also gives every image of a class the same pattern but without the period-two structure and without saturating it at . It is nearly as effective as our tiles on learner 1 and learner 2 (0.132 and 0.144), but on learner 4, learner 5 and learner 6 it leaves the victim close to the unmodified level (0.923, 0.892 and 0.844), where our tiles reach 0.119, 0.122 and 0.660. That gap belongs to the two differences together, the period-two structure and the saturated amplitude, and it is consistent with what we saw in development, below.
How we got here
We began by building our own development harness, a fast victim trainer with optional adversarial training and several architectures, and by generating most of the reference methods with it, while a helper agent surveyed the literature. All figures in this section are our own development measurements, mostly from single victim trainings, quoted as clean test accuracy in percent.
- Class-wise shortcuts were easy to plant and easy to remove. In our first batch, class-wise independent random signs at the full budget brought a standard-training development victim to 13.2% (the starter's sample-wise random signs: 90.0%; unpoisoned: 91.35%), but an adversarially trained development victim ignored them entirely, at 85.1% against 85.9% unpoisoned, and so did the other class-wise and synthetic baselines in that batch (between 84.8% and 85.7%). We recorded at the time that the linear-margin argument, a saturated class-consistent pattern keeping a margin , did not by itself hold in practice.
- Periodicity was the property that mattered. While the first batch ran we had written a parametrised family of model-free class-wise textures to probe which properties matter, and the next batch tested it. Period-two and period-four tiles brought the adversarially trained development victim to 19.9% and 15.0%, while period eight gave 83.7% and a smoothed (low-pass) class-wise sign field gave 74.9%; against standard training the three tiles were at the floor and the smoothed field at 19.3%. Our reading, recorded at the time, was that a short period keeps class-specific local statistics that survive crop shifts, whereas a long period gives each class many distinct local windows.
- The outcome varied strongly with the random draw. Three draws of period-two tiles gave 19.9%, 27.9% and 10.1% against the adversarially trained development victim, and three draws of period-four tiles 15.0%, 45.2% and 41.6%; period three gave 26.2% and period six 85.0%. Six further period-two draws gave between 10.3% and 23.7%; over the nine draws the mean was about 17%. Repeating the victim training on one fixed pattern also moved the result widely (one period-four pattern gave 45.2% and 70.5%), so part of the spread comes from the victim run itself.
- Designing the tiles did not help. We suspected that the spread came from tiles of different classes being too similar under shifts and flips, and searched for codes maximising the minimum Hamming distance between one class's tile and every shift or flip of another's. Designed codes gave 16.3%, 29.3% and 49.1% for periods two, three and four, no better than random draws, and the minimum distance of the random draws did not explain their results either.
- Crafting against a robust surrogate failed. On the hypothesis that the inner adversary of adversarial training cancels an error-minimising shortcut but pushes the same way as an error-maximising perturbation, we tried targeted, untargeted and error-minimising perturbations crafted that way. They gave 73.9%, 62.7% and 85.9% against the adversarially trained development victim, and only 50.9%, 50.4% and 81.0% against standard training, so we dropped surrogate crafting.
- What decides the outcome is how fast the shortcut is learned. Per-epoch logs showed the adversarially trained victim learning natural features first; once its accuracy on the poisoned training set reached 1.0 the shortcut took over. When that happened within the first few epochs the victim ended near the floor, and when it happened late natural features persisted (30 to 70%). Per-class accuracies at the end showed the floor cases as a collapse onto predicting mostly one class. A cheap learnability proxy built from random convolutional features did not track any of this and we abandoned it.
- The period-two tile held across development victims, up to a point. One period-two pattern gave between 10.0% and 15.6% across two other architectures, a small convolutional network, a stronger inner attack, longer training and training without augmentation, but at a larger adversarial radius than the one we developed against it lost much of its effect.
We installed a period-two version as an interim submission after the designed-code and surrogate experiments, and ran the last two batches above (further draws and other development victims) with it in place. The next idea we had recorded was a simulate-and-select scheme, in which the attacker holds out part of the training set, simulates the victim's training with the surrogate and picks patterns by held-out accuracy. The submitted file is the interim version, and its docstring still says so.
Limitations
- Learner 3 is essentially untouched. Our accuracy there, 0.810, is close to the unmodified 0.848 and behind two published baselines, and learner 6, at 0.660, is still far from the floor. The tile is not a universal shortcut.
- The result depends on the random draw of the tiles. In our development runs, nine draws of period-two tiles spread from about 10% to 28% against one development victim. The code draws one set of tiles from the attack's private generator and does not test it; it does not check that the tiles of different classes differ, even up to a shift. A different draw could do noticeably better or worse on any learner.
- The margin argument in the docstring is not the explanation. Our own first batch showed a saturated class-wise pattern without the period-two structure being ignored by an adversarially trained development victim, so a margin is at most necessary. The account we can support is empirical: period-two tiles are learned fast enough to win the race against natural features, and how fast varies from draw to draw.
- A larger adversarial radius defeats it. In development, one pattern that reached the floor lost much of its effect when the victim's adversarial radius was raised. With a fixed budget there is a radius beyond which this construction cannot help.
- It is a known kind of pattern. A class-wise, input-independent, periodic perturbation confined to the zero and highest spatial frequencies is the kind of shortcut that simple preprocessing could target, and we did not test any such defence.
- The method is an interim result.
References
- Da Yu, Huishuai Zhang, Wei Chen et al. (2022). Availability Attacks Create Shortcuts. KDD.
- Hanxun Huang, Xingjun Ma, Sarah Monazam Erfani et al. (2021). Unlearnable Examples: Making Personal Data Unexploitable. ICLR.
- Pedro Sandoval-Segura, Vasu Singla, Jonas Geiping et al. (2022). Autoregressive Perturbations for Data Poisoning. NeurIPS.
- Yifan Zhu, Yibo Miao, Yinpeng Dong et al. (2026). Why Do Unlearnable Examples Work: A Novel Perspective of Mutual Information. ICLR.
- Jinlin Liu, Wei Chen, Xiaojin Zhang (2026). Perturbation-Induced Linearization: Constructing Unlearnable Data with Solely Linear Classifiers. ICLR.
- Shaopeng Fu, Fengxiang He, Yang Liu et al. (2022). Robust Unlearnable Examples: Protecting Data Against Adversarial Learning. ICLR.
- Yixin Liu, Kaidi Xu, Xun Chen et al. (2024). Stable Unlearnable Example: Enhancing the Robustness of Unlearnable Examples via Stable Error-Minimizing Noise. AAAI.
- Bin Fang, Bo Li, Shuang Wu et al. (2023). Re-thinking Data Availablity Attacks Against Deep Neural Networks.
- Yifan Zhu, Lijia Yu, Xiao-Shan Gao (2024). Detection and Defense of Unlearnable Examples. AAAI.