Introduction
An availability attack, or unlearnable-examples attack, is given a labelled training set and an budget , and returns one perturbation per image. A victim then trains from scratch on the released images, and the attack succeeds when that victim generalises badly to clean test data. Clean training on unmodified data reaches between 0.848 and 0.945 clean accuracy across the victim learners of this task; the question is how far a bounded perturbation can push that down.
Two mechanisms dominate the literature. The first optimises the noise against a surrogate network, minimising its training error so that the perturbation becomes the easiest explanation of the label [1], with min-max variants meant to survive adversarial training [2, 3, 4]. The second observes that such noises work because they are shortcuts, nearly linearly separable signals, and builds shortcuts directly: linearly separable or class-wise noise [5, 1], autoregressive patterns [6], perturbations designed with linear classifiers alone [7], or noise that reduces mutual information between clean and released features [8].
Three things make the problem hard. The victim is not the surrogate: architecture, augmentation and training length differ, and a shortcut must still be the easiest feature for each of them. Augmentation moves the signal: random crops and flips shift any fixed pattern, so a carrier that is only recognisable at one phase loses its label. Adversarial training removes small signals: a victim that trains against perturbations of radius is pushed to ignore any feature that can be cancelled inside that ball, which is exactly what a weak shortcut is. Surrogate-based attacks handle the last point by simulating the adversary, at a large cost in generation time.
Method
Our method, CPR (calibrated population risk), designs a class-wise carrier without training any neural network. It asks, of a closed-form model of the victim's first layer and classifier, which carriers make a learner fitted to the released set fail on the clean set, and optimises the carriers for that.
Carriers that survive cropping and reflection
Each class receives a code with cell side , and the released perturbation of every image of class is tiled over the image. A period-2 pattern is unchanged in content by any crop offset (only its phase changes), and for a cell a horizontal reflection is itself a translation. The initial alphabet is every binary pattern in with enough spatial texture after removing each channel's mean, deduplicated so that patterns equal up to a cyclic shift or a global sign flip count once, since a convolution followed by pooling cannot tell them apart reliably. The threshold on the centred energy, with , admits patterns in which one channel carries no texture at all.
side = 2
dimension = channels * side * side
integers = np.arange(1 << dimension, dtype=np.int64)[:, None]
raw = (((integers >> np.arange(dimension)[None, :]) & 1) * 2 - 1)
raw = raw.reshape(-1, channels, side, side).astype(np.float32)
centered = raw - raw.mean((-1, -2), keepdims=True)
raw = raw[(centered * centered).sum((1, 2, 3)) >= dimension * 0.65]
representatives = {}
for index, pattern in enumerate(raw):
key = min((sign * np.roll(pattern, (row, col), axis=(-1, -2))).tobytes()
for sign in (1.0, -1.0) for row in range(side) for col in range(side))
if key not in representatives:
representatives[key] = index
if index % 128 == 0 and budget.seconds_left() < reserve + 0.2:
return fallback()
raw = raw[list(representatives.values())]If the deduplicated alphabet has fewer patterns than there are classes, we fall back to balanced random cells.
Packing in the response space of the real images
What the victim sees is the image plus the carrier, so separation between codes has to be measured there. We draw random zero-mean filters , measure the mean and standard deviation of their responses on patches of the training images, and model the host response as Gaussian. The expected rectified response then has the closed form
and a candidate code is described by averaged over the phases of the cell, where is the filter's response to the code at phase . We assign classes by farthest-point packing in this feature space: start from the code with the largest centred feature norm and repeatedly add the code whose nearest selected code is farthest away. The selected codes are assigned to classes in a random order.
A closed-form learner as the objective
The packing is only a starting point. We then optimise the codes continuously with Adam (learning rate 0.08, at most 256 steps, codes clamped to ) against an analytic model of a learner trained on the released data.
Features. For 256 random zero-mean filters we measure, per class, the mean, second moment and mean rectified response of the clean images on a sample of up to 4096 training images. The predicted released feature of class is
where the bar averages over the cell's phases, including reflected phases for larger cells. The subtraction of is a calibration: at the model returns the observed clean feature exactly, so the optimiser cannot gain from the Gaussian approximation's own error. Both clean and released features are centred at the class-prior-weighted mean of the released features, which is where a learner trained on the released set would centre them, and whitened with the within-class covariance of the rectified responses, shrunk toward a scaled identity.
response = eps * (patch_orbit(code) @ filters.T)
normalized = (response + mean[:, None, :]) / std[:, None, :]
probability = 0.5 * (1 + torch.erf(normalized / math.sqrt(2)))
expected = (std[:, None, :] * (
torch.exp(-0.5 * normalized.square()) / math.sqrt(2 * math.pi)
+ normalized * probability)).mean(1)
# Calibrate at zero perturbation, and use the training origin for
# both domains. Otherwise a fictitious distribution shift appears.
marked = clean + expected - gaussian_clean
origin = (prior[:, None] * marked).sum(0)
marked = (marked - origin) @ white
clean_features = (clean - origin) @ whiteAdversarial training as an uncertainty penalty. A victim that trains against perturbations of radius effectively sees each class feature smeared over the responses the adversary can reach. We read from the regime the interface passes: zero for standard training, the stated radius for adversarial training, and for any other regime. We probe the reachable set with antithetic Hadamard directions , , which have zero mean and , and measure the whitened feature displacement when the code moves from to the vertex . The learner's uncertainty matrix is
where is the class prior and is the whitened within-class covariance. When the cubature workspace would be too large we use the local Taylor form instead. The finite form matters precisely where the Taylor form is blind: near a zero carrier the rectified response is flat to first order, yet a perturbation of finite size still moves it.
if radius > 0:
if use_finite:
perturbed_normalized = (response[:, None, :, :] + finite_shifts[None, :, :, :]
+ mean[:, None, None, :]) / std[:, None, None, :]
finite_probability = 0.5 * (1 + torch.erf(perturbed_normalized / math.sqrt(2)))
perturbed_expected = (std[:, None, None, :] * (
torch.exp(-0.5 * perturbed_normalized.square()) / math.sqrt(2 * math.pi)
+ perturbed_normalized * finite_probability)).mean(2)
displacement = (perturbed_expected - expected[:, None, :]) @ white
uncertainty = identity + coordinates / directions.shape[0] * torch.einsum(
"k,ksf,ksg->fg", prior, displacement, displacement)
else:
jacobian = torch.einsum("kpf,dpf->kfd", probability, derivative) / response.shape[1]
jacobian = torch.einsum("kfd,fg->kgd", jacobian, white)
uncertainty = identity + (radius / eps) ** 2 * coordinates * torch.einsum(
"k,kfd,kgd->fg", prior, jacobian, jacobian)The risk gap. With centred one-hot targets and the matrix of released class features, the learner is the population least-squares fit with penalty ,
and the objective we maximise is how much worse that learner does on clean class features than on the released ones,
We solve whichever of the two equivalent systems is smaller; for many classes the code evaluates the same risk difference through trace identities, without forming class-by-class matrices.
# Population least squares with observation covariance and a
# bounded local-channel uncertainty; solve the smaller system.
if classes <= dimension:
design = torch.linalg.solve(uncertainty, marked.T)
system = marked @ design + torch.diag(prior.reciprocal())
learned = design @ torch.linalg.solve(system, targets)
clean_error = ((clean_features @ learned - targets).square().sum(1) * prior).sum()
marked_error = ((marked @ learned - targets).square().sum(1) * prior).sum()
score = clean_error - marked_errorRelease
We keep the code with the highest objective seen, round it to the 8-bit pixel levels the released images will carry, tile it over the image and give every image its class's carrier. Every stage watches the generation budget and returns the best complete perturbation it has if time runs short; the small linear solves run with full-precision matrix products, and the class statistics are reduced in a fixed order, so the released pixels are reproducible.
with torch.no_grad():
code.clamp_(-1, 1)
last = time.monotonic() - started
cells = best_code.detach().cpu().numpy()
cells = np.clip(np.rint(cells * eps * 255) / 255, -eps, eps)
full = np.tile(cells, (1, 1, (height + side - 1) // side,
(width + side - 1) // side))[:, :, :height, :width]
return full.astype(np.float32)[labels]Results
| Method | ① | |||||
|---|---|---|---|---|---|---|
| Accuracy, standard training ↓ | Accuracy, grayscale ↓ | Accuracy, JPEG-10 ↓ | Accuracy, adversarial 2/255 ↓ | Accuracy, adversarial 4/255 ↓ | Accuracy, adversarial 8/255 ↓ | |
| GPT-6 Astra | 0.100 | 0.113 | 0.852 | 0.100 | 0.172 | 0.244 |
| 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 every victim learner except learner 3, CPR gives the lowest clean accuracy in the table. On learner 1 it reaches 0.100 against 0.115 for EM, class-wise [1]; on learner 2, 0.113 against 0.144 (Class-wise noise [1]); on learner 4, 0.100 against 0.203 (MI-UE [8]). The margins are largest on learners 5 and 6: on learner 5 we reach 0.172 against 0.330 (SEM [3]), and on learner 6 0.244, where no published baseline goes below 0.753 (Entangled features) and most stay close to the 0.849 of unmodified data.
On learner 3 CPR has no effect: 0.852 against 0.848 for unmodified data. The best published method there is Entangled features at 0.758.
How we got here
We began from the two families above and asked whether a shortcut could be made robust to augmentation and adversarial training without spending the generation budget on a surrogate. The idea of treating the clean image as interference to be accounted for came from host-interference cancellation in watermarking.
- Larger carriers did not survive cropping. A repeated code poisoned a standard victim well in our first development probe (9.5% clean accuracy against 27.9% for the published patch shortcut), but an adversarially trained victim recovered to 72.8%. A diagnostic showed why: a matched-filter decoder resisted the adversary on 92% of uncropped images but on only 42% after crops introduced padding boundaries. Moving to cells brought that victim to 21.5%.
- Code distance must be measured through the image. Some visually different codes become indistinguishable after convolution and pooling; packing them in the convolutional response space of the real images brought our hardest probe to 24.6%, close to our run of stable error-minimizing noise at 23.2%, with generation taking about one second instead of 178. Removing the patterns with an untextured channel made results much worse, which is why the alphabet keeps them.
- The alphabet has a capacity limit. Our development analysis found that at most 54 of 406 candidate cells remain separated once shifts, contrast reversal, colour offsets and the adversary are allowed for. Grouping labels onto shared carriers helped only partly, because on clean images the victims still separated labels within a group.
- From distance to risk. Rectangular carriers alone gave 37.3% on our hardest probe; optimising them through the closed-form robust learner gave 23.15%. That objective first predicted a train-test gap even at zero perturbation, which is the flaw the calibration term removes. Over three seeds the calibrated objective lowered our hardest probe from 23.25% to 16.82%, and on a full-size development run it reached 3.59% against 20.51% for our matched run of stable error-minimizing noise.
- Ablations that kept components in. Removing the adversarial uncertainty term worsened the hardest probe to 30.3%. A discrete search over textures reached 1.4% for a standard victim but 31.15% for an adversarially trained one, and was dropped. Optimising through the 8-bit quantiser, modelling clipping, normalisation-layer shifts, deeper feature models, per-image carriers and keeping constant colour offsets did not improve our probes consistently, and were left out.
- Reproducibility. Atomic class sums on the GPU changed some rounding decisions between runs; the fixed-order reduction removed that, and in our checks it reproduced the released pixels of five of six earlier seed tests exactly.
- The finite-radius penalty was the last change. A double-precision diagnostic found a Jacobian norm of about at a zero carrier against a finite displacement norm of 0.064, so the Taylor penalty sees nothing where a finite perturbation does. The finite form lowered the average over our matched development suite, but on the largest matched run it regressed from 4.33% to 9.41%. We kept it for its lower average over the broader suite and recorded the trade-off.
The perturbation is class-wise, as in class-wise shortcut attacks [1, 5]; what is new is choosing and shaping the carriers through a calibrated analytic model of a robust learner rather than through a trained surrogate.
Limitations
- Learner 3 is untouched. CPR leaves learner 3 at the accuracy of unmodified data, so the method's effect is demonstrated on the other learners only.
- A shortcut cannot beat an adversary as large as the budget. When a victim's training radius reaches , every clean image lies inside the adversary's ball around its released image, and no carrier can force a separation the victim cannot cancel. In our development runs the effect of CPR weakened sharply as the training radius approached the budget.
- The final change was a trade-off. The finite-radius penalty regressed on our largest matched development run while improving smaller probes; we chose it on an average, and the published numbers do not tell us which way it moved them.
- The victim model is shallow. The learner sees one layer of random filters and a linear classifier; it does not model normalisation layers, and in our development runs a victim with per-image normalisation was markedly harder to poison.
- Class-wise carriers are visible. Every image of a class carries the same tiled pattern, which makes the perturbation easy to detect and potentially to remove [9]; we did not test any defence.
- Development numbers are noisy. Several of our first-seed gains vanished on replication, and the ablation figures above are our own development measurements on small probes.
References
- Hanxun Huang, Xingjun Ma, Sarah Monazam Erfani et al. (2021). Unlearnable Examples: Making Personal Data Unexploitable. 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.
- Da Yu, Huishuai Zhang, Wei Chen et al. (2022). Availability Attacks Create Shortcuts. KDD.
- Pedro Sandoval-Segura, Vasu Singla, Jonas Geiping et al. (2022). Autoregressive Perturbations for Data Poisoning. NeurIPS.
- Jinlin Liu, Wei Chen, Xiaojin Zhang (2026). Perturbation-Induced Linearization: Constructing Unlearnable Data with Solely Linear Classifiers. ICLR.
- Yifan Zhu, Yibo Miao, Yinpeng Dong et al. (2026). Why Do Unlearnable Examples Work: A Novel Perspective of Mutual Information. ICLR.
- Yifan Zhu, Lijia Yu, Xiao-Shan Gao (2024). Detection and Defense of Unlearnable Examples. AAAI.