Exploring Test-Time Adaptation for Object Detection in Continually Changing Environments

Shilei Cao, Yan Liu, Juepeng Zheng, Weijia Li, Runmin Dong, Haohuan Fu · DOI

Abstract

Continual Test-Time Adaptation (CTTA) is essential for deploying object detection models in dynamic, real-world environments where distribution shifts are non-stationary. Traditional TTA methods often suffer from error accumulation and catastrophic forgetting in these scenarios. This paper presents AMROD (Adaptive Monitoring and Restoration for Object Detection), a framework that integrates object-level contrastive learning, dynamic monitoring, and importance-aware parameter restoration. AMROD achieves a 3.2 mAP improvement over state-of-the-art baselines and a 20% increase in efficiency, demonstrating superior robustness in long-term environmental cycles.

Introduction

Deep learning models for object detection frequently encounter performance degradation when the operational environment differs from the training data. While Unsupervised Domain Adaptation (UDA) can bridge this gap, it requires access to source data, which is often unavailable due to privacy or bandwidth constraints. Test-Time Adaptation (TTA) offers a source-free alternative by adapting the model using only the incoming test stream. However, real-world environments are often non-stationary—for instance, an autonomous vehicle may encounter a sequence of fog, rain, and night conditions. This leads to two major hurdles in Continual TTA (CTTA): error accumulation from noisy pseudo-labels and catastrophic forgetting of foundational knowledge.

Methodology: The AMROD Framework

AMROD addresses the challenges of CTTA through three innovative modules integrated into a mean-teacher architecture.

Overview of the AMROD framework compared to existing methods. AMROD utilizes Adaptive Monitoring (AM) for dynamic thresholds and skipping, and Adaptive Randomized Restoration (ARR) for surgical parameter resets.

Object-level Contrastive Learning (OCL)

Standard contrastive learning typically operates on entire images. In contrast, OCL utilizes Region Proposal Network (RPN) crops to provide a self-supervised signal. By forcing the model to learn feature representations where different views of the same object are similar while distinct objects are separated, OCL reduces the model's dependence on potentially noisy pseudo-labels.

Adaptive Monitoring (AM)

To prevent learning from low-quality data during sudden distribution shifts, the AM module tracks the model's mean confidence scores. It implements dynamic skipping, pausing adaptation when scores indicate high instability. Additionally, it updates category-specific thresholds on the fly, recognizing that model confidence varies naturally across different object classes (e.g., cars vs. bicycles).

Adaptive Randomized Restoration (ARR)

Instead of the blunt "stochastic reset" used in prior methods, ARR employs the Fisher Information Matrix (FIM) to identify parameter importance. It selectively restores "inactive" or less critical parameters to their original source values with higher probability. This approach preserves essential source knowledge while effectively clearing out noisy updates accumulated during adaptation.

Experimental Results

AMROD was evaluated on four challenging tasks, including Cityscapes-C (corrupted urban scenes) and ACDC (adverse conditions).

Performance results on the Cityscapes-to-Cityscapes-C long-term task. AMROD achieves a 12.8 mAP gain over the source model and maintains stability across 10 rounds of environmental changes.

Accuracy and Stability

In long-term scenarios involving multiple cycles of changing weather (10 rounds), AMROD consistently outperformed baselines like CoTTA and SVDP. On the Cityscapes-C long-term task, AMROD achieved a 12.8 mAP gain over the non-adapted source model and a 3.2 mAP improvement over the previous state-of-the-art. Notably, while other models' performance degraded over time due to error accumulation, AMROD remained stable.

Efficiency Gains

The dynamic skipping mechanism proved highly effective, reducing the total number of adaptation iterations by 20%. This reduction in computational load makes AMROD significantly more suitable for real-time deployment on edge devices without sacrificing detection accuracy.

Conclusion

AMROD demonstrates that effective Continual Test-Time Adaptation requires moving beyond static thresholds and random parameter resets. By employing dynamic monitoring and importance-aware restoration, the framework achieves state-of-the-art performance and improved efficiency. Future work will explore the application of these principles to Vision Transformer backbones and broader tasks such as instance segmentation.

Summary updated

BibTeX
@article{cao2026exploring,
  author = {Shilei Cao and Yan Liu and Juepeng Zheng and Weijia Li and Runmin Dong and Haohuan Fu},
  title = {{Exploring Test-Time Adaptation for Object Detection in Continually Changing Environments}},
  journal = {Expert Systems with Applications},
  year = {2026},
  doi = {10.1016/j.eswa.2026.133055},
}
Figure