TL;DR
This paper introduces FOCUS, a novel input-adaptation framework that uses learned, pixel-level frequency priors to guide diffusion-driven image denoising during Test-Time Adaptation (TTA). By disentangling high and low frequencies via a lightweight network trained with a new data augmentation method (FrequencyMix), FOCUS preserves critical semantic details and successfully mitigates catastrophic forgetting in dense prediction tasks like semantic segmentation and depth estimation.
What Problem Does This Paper Address?
When deep learning models are deployed in real-world scenarios, they frequently encounter domain shifts—changes in environmental conditions like sudden weather variations, glare, or digital corruptions that differ from the training data. Test-Time Adaptation (TTA) attempts to solve this by adapting the model on the fly using unlabeled test data.
However, standard TTA methods face two major hurdles:
- Catastrophic Forgetting: Continually fine-tuning a model on a sequence of shifting test domains often causes it to overwrite its original knowledge, leading to severe performance drops over time.
- Coarse Input Adaptation: Alternative approaches try to adapt the input rather than the model by using generative diffusion models to "clean up" corrupted images. However, existing methods rely on rigid, image-level filters (like global low-pass filters) that destroy fine-grained spatial details (e.g., sharp object boundaries), making them unsuitable for dense prediction tasks like semantic segmentation and depth estimation.
Methods
FOCUS (Frequency-Optimized Conditioning in DiffUSion) addresses these limitations by introducing a spatially adaptive, frequency-aware input purification pipeline.
The core components include:
- Y-shaped Frequency Prediction Network (Y-FPN): A lightweight network (27.5M parameters) that processes a corrupted image to predict two distinct, pixel-wise filtering kernels. These kernels dynamically separate the image into spatially adaptive low-frequency (color, context) and high-frequency (edges, structural boundaries) priors.
- Frequency-Conditioned Diffusion Denoising: Instead of standard unconditioned denoising, the extracted low- and high-frequency priors are used to guide the reverse steps of a pretrained ImageNet diffusion model. This ensures that task-relevant semantic structures are preserved during restoration.
- FrequencyMix Data Augmentation: To train Y-FPN to be robust against arbitrary real-world noise without overfitting, the authors design FrequencyMix. This technique applies randomized frequency-dependent perturbations (low-frequency, high-frequency, and random amplitude peaks) to clean images, blending them to create highly diverse training samples.
FOCUS can operate completely standalone (modifying only the input image) or as a plug-and-play module that provides high-quality pseudo-labels to regularize existing model-tuning TTA methods.
Datasets
The authors evaluated FOCUS across three major dense prediction benchmarks, applying 15 distinct corruption types from ImageNet-C (at the highest severity level, 5):
- ADE20k / ADE20k-C: An indoor/outdoor semantic segmentation dataset. Y-FPN was trained on 25,574 images and evaluated on 2,000 images.
- Cityscapes / Cityscapes-C: A real-world urban driving dataset for semantic segmentation, utilizing 2,975 images for training and 500 for evaluation.
- NYU2k / NYU2k-C: An indoor scene dataset used to evaluate monocular depth estimation, containing 50,688 training images and 654 test images.
Key Insights and Ideas
- Pixel-Level Control is Crucial for Dense Prediction: Global, image-level frequency filtering fails because different regions of an image require different levels of restoration. Spatially adaptive, pixel-wise kernels preserve fine boundaries essential for segmentation masks and depth maps.
- Input Adaptation Bypasses Forgetting: Because FOCUS purifies the incoming data to match the source distribution rather than continuously altering the downstream task model's weights, it is inherently immune to catastrophic forgetting under continual domain shifts.
- The Power of Intermittent (Sparse) Supervision: The authors discovered that running full model adaptation on every single frame is unnecessary. Providing pseudo-labels from FOCUS-denoised images intermittently (e.g., every 25 or 50 frames) acts as a powerful regularizer, stabilizing the task model and preventing gradient explosion under severe corruptions.
Key Results
Mitigating Catastrophic Forgetting
In continual TTA settings on ADE20k-C, state-of-the-art methods like DUSA suffer from severe performance degradation over time (mIoU dropping precipitously from 27.8% to 9.4%). In contrast, FOCUS maintains a stable, high performance of 24.3% mIoU because it does not overfit to individual corruption types.
Quantitative Performance Gains
- Semantic Segmentation: On Cityscapes-C, FOCUS achieved the highest averaged performance (50.4% mIoU), significantly outperforming the previous diffusion-based input adaptation baseline, DDA (23.1% mIoU).
- Depth Estimation: On NYU2k-C, FOCUS achieved an Average Absolute Relative Error of 0.48, outperforming DDA (0.80) and the uncorrected baseline (0.71).
Limitations and Future Work
The primary bottleneck of FOCUS is its computational cost at inference time. Because it relies on iterative reverse diffusion steps (requiring 15 to 25 timesteps per frame), it has longer inference times (e.g., 17.72 seconds per frame) and higher GPU memory requirements than simple model-updating methods.
While the authors successfully mitigated this by demonstrating that intermittent (sparse) use of FOCUS still provides strong regularization benefits, future work will need to explore accelerating the diffusion denoising process—potentially through consistency models or single-step generative networks—to make the framework viable for real-time, edge-device applications like autonomous driving.
Summary updated