Abstract
Test-time adaptation enables models to adapt to evolving domains. However, balancing the tradeoff between preserving knowledge and adapting to domain shifts remains challenging for model adaptation methods, since adapting to domain shifts can induce forgetting of task-relevant knowledge. To address this problem, we propose FOCUS, a novel frequency-based conditioning approach within a diffusion-driven input-adaptation framework. Utilising learned, spatially adaptive frequency priors, our approach conditions the reverse steps during diffusion-driven denoising to preserve task-relevant semantic information for dense prediction. FOCUS leverages a trained, lightweight, Y-shaped Frequency Prediction Network (Y-FPN) that disentangles high and low frequency information from noisy images. This minimizes the computational costs involved in implementing our approach in a diffusion-driven framework. We train Y-FPN with FrequencyMix, a novel data augmentation method that perturbs the images across diverse frequency bands, which improves the robustness of our approach to diverse corruptions. We demonstrate the effectiveness of FOCUS for semantic segmentation and monocular depth estimation across 15 corruption types and three datasets, achieving state-of-the-art averaged performance. In addition to improving standalone performance, FOCUS complements existing model adaptation methods since we can derive pseudo labels from FOCUS-denoised images for additional supervision. Even under limited, intermittent supervision with the pseudo labels derived from the FOCUS denoised images, we show that FOCUS mitigates catastrophic forgetting for recent model adaptation methods.
Introduction
Deep learning models are notoriously brittle when facing domain shift. A model trained on clear, sunny street photos often fails when it encounters heavy fog, motion blur, or digital noise. To address this, researchers use Test-Time Adaptation (TTA), where models fine-tune themselves on-the-fly. However, this often leads to catastrophic forgetting: as the model adapts to new noise, it loses the core knowledge required for its primary task, such as semantic segmentation or depth estimation.
While diffusion models can be used to "clean" input images, standard generative denoising often loses the fine semantic details—like sharp edges or specific color gradients—that dense prediction tasks rely on. FOCUS addresses this by explicitly conditioning the diffusion process with frequency-based priors to preserve task-relevant information.
Methods: Frequency-Optimized Conditioning
FOCUS is a frequency-conditioned diffusion-driven adaptation framework consisting of three main innovations:
- Y-FPN (Y-shaped Frequency Prediction Network): A lightweight, 27.5M parameter network that predicts pixel-wise kernels to disentangle high-frequency (edges, fine details) and low-frequency (color, global structure) components from noisy images.
- Frequency-Optimized Conditioning: Instead of unguided denoising, FOCUS uses priors from the Y-FPN to guide the reverse diffusion steps. This ensures the output retains the specific spatial and frequency information required by the task model.
- FrequencyMix: A novel data augmentation strategy used to train the Y-FPN. By perturbing images across diverse frequency bands, it ensures the network is robust to a wide variety of unseen real-world corruptions.
Crucially, FOCUS can act as a standalone pre-processor or be paired with existing TTA methods. In hybrid setups, the "cleaned" images generate stable pseudo-labels that prevent the task model from drifting or forgetting during fine-tuning.
Experimental Results
The researchers evaluated FOCUS across 15 corruption types (noise, blur, weather, and digital artifacts) using benchmarks such as ADE20k-C, Cityscapes-C, and NYU2k-C.
Key findings include:
- State-of-the-Art Accuracy: On ADE20k-C, FOCUS outperformed the previous state-of-the-art (DUSA) by a massive +14.9% mIoU. On Cityscapes-C, it improved over CoTTA by +3.7% mIoU.
- Stability in Continual Settings: In settings where models adapt to sequential corruptions, standard methods often see performance collapse. FOCUS remains stable, maintaining accurate segmentation maps even as environments shift from noise to blur to weather.
- Versatility: The method proved effective across both Transformer-based (Segformer) and CNN-based (DeepLabV3) architectures.
Discussion and Limitations
While FOCUS provides significant robustness gains, it faces challenges regarding computational cost. Because diffusion models are iterative, FOCUS requires roughly 17-19 seconds per frame, making it currently unsuitable for real-time applications like autonomous driving. Additionally, the hybrid setup requires significant GPU memory (~44GB).
Future work will explore faster diffusion samplers or distilling the FOCUS process into single-step "consistency models" to bring these stability improvements to real-time systems.
Summary updated