R.I.P.: A Simple Black-box Attack on Continual Test-time Adaptation

Trung-Hieu Hoang, Duc Minh Vo, Minh N. DoarXiv 2024 · DOI

Abstract

Continual Test-time Adaptation (TTA) has emerged as a powerful paradigm for maintaining model performance under evolving domain shifts by updating parameters on-the-fly using unlabeled test data. However, this paper identifies a critical vulnerability in such systems: the Reusing of Incorrect Predictions (RIP) attack. RIP is a simple black-box sampling strategy where an attacker repeatedly submits samples that the model previously misclassified. This process triggers a "shifting-boundary effect," where the model's decision boundaries are pushed until it loses the ability to distinguish between classes, eventually leading to total model collapse. Our findings across standard benchmarks like CIFAR and ImageNet demonstrate that even state-of-the-art TTA methods are susceptible to this realistic threat.

Introduction

Machine learning models deployed in dynamic environments frequently encounter domain shift, where real-world data distributions diverge from training data. Continual TTA addresses this by allowing models to adapt to new data streams without human supervision. This adaptation typically relies on "pseudo-labels"—the model's own predictions—to guide its learning process.

While effective, this self-training mechanism creates a feedback loop. If the model's initial guesses are wrong, it may reinforce its own errors. Previous research into TTA security focused on "white-box" attacks requiring internal model knowledge. This paper introduces RIP, a pioneering "black-box" attack that proves model reliability can be compromised simply by manipulating the order and frequency of data queries.

The RIP Attack Mechanism

The RIP attack is deceptively simple and requires no knowledge of the model’s internal parameters or gradients. It operates in three main stages:

  1. Error Identification: The attacker identifies a set of samples from a target "victim class" that the model currently misclassifies.
  2. Strategic Reuse: These specific misclassified samples are injected repeatedly into the data stream sent to the TTA system.
  3. Exploiting Augmentation: Most TTA methods employ random data augmentation (e.g., flipping, blurring) to improve generalization. RIP turns this defense into a vulnerability. By augmenting a misclassified sample multiple times, the attacker creates a dense "cloud" of points that the model consistently labels incorrectly.
Overview of the RIP attack where incorrect predictions are reused to degrade model performance over time.

Theoretical Foundation: The Shifting-Boundary Effect

To understand why RIP is so effective, the authors developed a theoretical framework using a Gaussian Mixture Model Classifier (GMMC). They discovered the Shifting-Boundary Effect. When a misclassified sample is augmented and reused, it creates a cluster of points in the feature space that carry the wrong pseudo-label. As the TTA model adapts to this cluster, its decision boundary is incrementally pushed into the territory of the correct class.

Eventually, the boundary shifts so far that the model "collapses," predicting the same incorrect category regardless of the input. This state is often irrecoverable without a complete reset to the original source parameters.

Visualization of the shifting-boundary effect where augmented misclassified samples (crosses) push the decision boundary.

Experimental Results

The researchers benchmarked the RIP attack against several state-of-the-art TTA methods, including CoTTA, EATA, RMT, RoTTA, ROID, TRIBE, and PeTTA, using corrupted versions of CIFAR-10, CIFAR-100, and ImageNet.

  • Performance Collapse: The attack proved devastating. On CIFAR-100-C, the ROID method saw its testing error spike by 64%. On CIFAR-10-C, PeTTA experienced a 39% increase in error.
  • Universal Vulnerability: No tested method was immune. Even CoTTA, known for its relative robustness, saw a 10% error increase on CIFAR-10-C.
  • Student vs. Teacher: Many TTA systems use a "Mean-Teacher" architecture. The study found that systems using the "Student" model to generate pseudo-labels are significantly more vulnerable to RIP than those using the more stable "Teacher" model.

Discussion and Conclusion

The RIP attack highlights a fundamental "Achilles' heel" in modern TTA: the reliance on data augmentation and pseudo-labeling. While these techniques help models generalize under normal conditions, they provide a backdoor for attackers to overwrite learned boundaries.

RIP is a highly practical threat because it only requires observing the model's final output. Future work in TTA must move beyond optimizing for accuracy alone and begin incorporating resilience against non-i.i.d. (independent and identically distributed) sampling. Potential defenses like source training replay or weight ensembling may offer some protection, but a definitive "silver bullet" against the shifting-boundary effect remains an open research challenge.

Summary updated

BibTeX
@misc{hoang2024r,
  author = {Trung-Hieu Hoang and Duc Minh Vo and Minh N. Do},
  title = {{R.I.P.: A Simple Black-box Attack on Continual Test-time Adaptation}},
  year = {2024},
  eprint = {2412.01154},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.01154},
}
Figure