Abstract
Test-Time Adaptation (TTA) is critical for maintaining model performance under distribution shifts, such as environmental noise or sensor blur. Traditional methods often rely on slow pixel-space diffusion or unstable model weight updates. We present Decorruptor, a high-speed, latent-diffusion-based framework that restores corrupted images before classification. By utilizing a novel corruption modeling scheme and consistency distillation, Decorruptor achieves a 100x speedup over previous diffusion-based TTA methods while setting new state-of-the-art performance benchmarks across diverse architectures.
Introduction
Machine learning models frequently encounter "distribution shifts" at test-time—where real-world data (e.g., snowy or blurry images) differs significantly from the clean training set. While Test-Time Adaptation (TTA) aims to mitigate this, traditional approaches that update model weights can suffer from "catastrophic forgetting" or instability in streaming scenarios.
Image-level TTA offers a more stable alternative by "cleaning" the input image. However, prior attempts using pixel-space diffusion models were too slow and memory-intensive for practical use. Decorruptor addresses these challenges by shifting the restoration process to the efficient latent space of a Latent Diffusion Model (LDM).
Methods: Latent Space Decorruption
Decorruptor operates in two primary stages to achieve robust image restoration:
1. Corruption Modeling and Manifold Expansion
Instead of using a generic diffusion model, Decorruptor fine-tunes an image-editing model (based on Instruct-Pix2Pix). The model is trained on pairs of clean and corrupted images generated via advanced augmentations like PIXMIX. This process teaches the model to map various unseen distortions back to a "clean" state using a universal text prompt: "Clean the image." This "manifold expansion" allows the model to handle a wide variety of corruptions without specific prior knowledge of the distortion type.
2. Efficient Inference with DPM and CM
Decorruptor is implemented in two versions to balance quality and speed:
- Decorruptor-DPM: Uses a Diffusion Probabilistic Model with 20 refinement steps.
- Decorruptor-CM: Employs Consistency Distillation to compress the restoration process into just ~4 Network Function Evaluations (NFEs), enabling real-time performance.
Key Results
Decorruptor demonstrates significant improvements in both speed and accuracy across benchmarks like ImageNet-C and ImageNet-C-bar.
- Efficiency: Decorruptor-CM is 100x faster than the diffusion-based baseline (DDA) and 3x faster than non-diffusion methods like MEMO.
- Semantic Stability: Unlike baseline diffusion methods that often introduce "abrupt semantic distortions" (e.g., turning an animal into a landscape), Decorruptor maintains the original image's semantics while removing noise.
- Performance: On ImageNet-C-bar with a ResNet-50 backbone, Decorruptor achieved 47.1% accuracy, a massive leap over DDA's 29.4%.
Conclusion
Decorruptor represents a significant step forward for image-level TTA, combining the generative power of latent diffusion with the speed of consistency models. By performing restoration in latent space and using a universal editing prompt, it provides a robust, "blind" solution to distribution shifts that is compatible with various model architectures. Future work will focus on further reducing inference steps toward single-step real-time restoration without quality loss.
Summary updated