Distribution-Aware Continual Test-Time Adaptation for Semantic Segmentation

Jiayi Ni, Senqiao Yang, Ran Xu, Jiaming Liu, Xiaoqi Li, Wenyu Jiao, Zehui Chen, Yi Liu, Shanghang Zhang

TL;DR

Researchers have developed Distribution-Aware Tuning (DAT), a parameter-efficient method for adapting autonomous driving models to new environments (like fog or night) in real-time. By selectively updating only about 5-10% of a model's existing parameters based on pixel-level uncertainty, DAT effectively balances learning new domain knowledge with preserving core task performance, outperforming previous state-of-the-art methods.

What Problem Does This Paper Address?

Autonomous driving systems must operate in a "wild," ever-changing world. A model trained on sunny California streets might fail when it suddenly encounters a rainy night in London. Continual Test-Time Adaptation (CTTA) is the strategy of updating these models on-the-fly as they encounter new data, without having access to the original training set (due to privacy or storage constraints).

However, CTTA faces two major hurdles:

  1. Catastrophic Forgetting: As the model learns to see in the rain, it might "forget" how to see in the sun.
  2. Error Accumulation: Since the model adapts using its own (potentially noisy) predictions as "pseudo-labels," small mistakes can snowball into total model failure over time.

Existing methods often update the entire model, which is computationally expensive and prone to noise, or they add complex "adapters" that change the model's architecture.

Methods

The authors propose Distribution-Aware Tuning (DAT), which identifies and updates two distinct groups of parameters within the existing model:

  • Uncertainty-Driven Selection: The system uses a "Teacher-Student" framework. It calculates pixel-level uncertainty (using MC Dropout) to gauge how much the current environment differs from what the model knows.
  • Domain-Specific Parameters (DSP): These are parameters highly sensitive to pixels with large distribution shifts (high uncertainty). Updating these helps the model quickly "fit" the new environment, like fog or snow.
  • Task-Relevant Parameters (TRP): These are parameters sensitive to pixels with minor shifts (low uncertainty). Fine-tuning these helps the model maintain its core ability to recognize roads and sidewalks, preventing forgetting.
  • Parameter Accumulation Update (PAU): Instead of picking all parameters at once, the model gradually selects a tiny fraction (e.g., 0.1%) from each new frame. This "accumulation" continues until the model's uncertainty stabilizes, ensuring the selected parameter set is robust for the current domain.
The DAT framework uses uncertainty to split pixels into significant and minor shifts, then selects DSP and TRP parameters accordingly.

Datasets

The method was evaluated on two challenging benchmarks for semantic segmentation:

  • Cityscapes-to-ACDC: A model pre-trained on the sunny Cityscapes dataset is adapted to the ACDC dataset, which features four sequential adverse conditions: Fog → Night → Rain → Snow.
  • SHIFT: A large-scale synthetic driving dataset that simulates gradual transitions between environments (e.g., clear daytime to foggy nighttime).

Key Insights and Ideas

  • Less is More: Updating just ~10% of the model's parameters is more effective than updating 100%. This reduces the "noise" introduced by self-training and prevents the model from drifting too far from its original state.
  • Sensitivity Matters: Not all parameters are created equal. By separating parameters that handle "new" information (DSP) from those that handle "stable" information (TRP), the model can adapt and remember simultaneously.
  • No New Modules: Unlike other parameter-efficient methods that add "prompts" or "adapters," DAT works entirely within the model's original architecture, making it easier to deploy on existing hardware.

Key Results

DAT achieved significant performance gains over previous methods like CoTTA and TENT:

  • ACDC Benchmark: DAT reached a mean Intersection over Union (mIoU) of 60.8%, a +4.1% improvement over the non-adapted source model and a +2.2% lead over the previous best method (CoTTA).
  • Efficiency: As shown in Figure 4, the authors found that updating roughly 10% of parameters is the "sweet spot." Updating too few fails to capture the new domain, while updating too many leads to catastrophic forgetting.
Quantitative comparison on the ACDC dataset showing DAT's superior segmentation (e.g., better sidewalk/road distinction) compared to TENT and CoTTA.

Limitations and Future Work

The authors note that their current implementation relies on image augmentation within the teacher model to improve accuracy. While effective, this adds a layer of computational cost during the inference/adaptation phase. Future work will focus on reducing this overhead to make the system even more practical for real-time edge devices in autonomous vehicles.

Summary updated

BibTeX
@inproceedings{ni2024distribution,
  author = {Jiayi Ni and Senqiao Yang and Ran Xu and Jiaming Liu and Xiaoqi Li and Wenyu Jiao and Zehui Chen and Yi Liu and Shanghang Zhang},
  title = {{Distribution-Aware Continual Test-Time Adaptation for Semantic Segmentation}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10610045},
}
Figure