← Lab /AI/ML

Sample-wise targeted attacks fool test-time adaptation while preserving label distribution

The proposed meta-learning attack achieves high targeted success rates and keeps the overall label distribution unchanged during test-time adaptation

AI/ML arXiv 22 May 2026 Attack Simulation evidence Threat model

Published as “Sample-wise Targeted Adversarial Attacks on Test-time Adaptation”

Why it matters

The attack demonstrates that test-time adaptation can be covertly compromised, suggesting the need for defenses that monitor distributional shifts even without ground-truth labels.

Summary

The paper shows that a sample-wise targeted attack on test-time adaptation can achieve around 90% targeted success while keeping the overall label distribution close to that of a benign baseline, making the attack hard to detect. Experiments on CIFAR-10-C, CIFAR-100-C and ImageNet-C across several TTA methods confirm the high success rates, but the benign accuracy drops substantially compared to no-attack baselines, indicating a trade-off. The evidence is based on extensive benchmark evaluations with multiple baselines.

What they found 3

  1. High targeted attack success (~90%) with distributional stealth

    “Finally, we empirically demonstrate that our method achieves a high sample-wise targeted attack success rate of around 90% while maintaining a label distribution that is similar to the no-attack baseline.”

  2. Quantitative ASR results across TTA methods

    “Ours 89.59 93.17 90.21 95.90 91.15”

  3. Severe gradient misalignment between attack and stealth objectives

    “Nearly all steps (99.9%) exhibit negative cosine similarity, indicating persistent gradient misalignment.”

Caveats 2

  • Ours 89.59 ... 43.69
  • Ours ... 27.06

What’s new here 4

  • Introduces a sample-wise targeted threat model for TTA, targeting only trigger-carrying inputs while preserving overall label distribution.
  • Proposes a meta-learning framework to generate attacks using limited attacker-controlled data.
  • Develops a priority-aware gradient alignment formulated as an ellipsoidal trust-region to resolve antagonistic gradients between attack success and stealth.
  • Provides theoretical guarantees that the aligned update yields monotonic improvement on the attack objective despite gradient misalignment.

Threat model stated by the source

Adversaryordinary client of the service
Capabilitycan submit arbitrary inputs, has white-box access to the initial model fθ0 and crafts l∞-bounded perturbations
Assumesdoes not know the server-side TTA algorithm or its hyperparameters; does not observe victim inputs; attacker inputs are co-batched with victim inputs in the server buffer