Abstract
Continual Test-Time Adaptation (TTA) allows deep learning models to adjust to distribution shifts during inference. However, high memory demands and long-term instability—characterized by catastrophic forgetting and error accumulation—limit its deployment on resource-constrained edge devices. This paper introduces EcoTTA, a framework designed to make TTA both lean and stable. By freezing the backbone network and adapting only lightweight "meta networks," EcoTTA reduces memory consumption by up to 86%. Furthermore, a novel self-distilled regularization objective prevents model drift, ensuring long-term reliability across changing environments.
Introduction: The Challenge of On-Device Adaptation
Deep neural networks frequently encounter domain shift, where real-world data (the target domain) differs from training data (the source domain). While Test-Time Adaptation (TTA) enables models to update themselves using unlabeled data during inference, it faces two critical hurdles:
- Memory Bottlenecks: Standard TTA methods require storing large intermediate "activations" for backpropagation, often exceeding the RAM capacity of edge devices like smartphones or IoT sensors.
- Long-term Instability: In continual TTA scenarios (e.g., varying weather conditions for autonomous driving), models often suffer from catastrophic forgetting of source knowledge and error accumulation from noisy unsupervised signals.
EcoTTA addresses these issues by decoupling the adaptation process from the massive backbone architecture, creating a system that is both memory-efficient and stable over time.
Methodology
1. Memory-Efficient Architecture
Unlike traditional methods that update the entire pre-trained model, EcoTTA freezes the original network entirely. The frozen encoder is divided into $K$ partitions, and tiny, trainable meta networks—consisting of a Batch Normalization layer and a small Convolution-BN-ReLU block—are inserted between them.
Because the backbone is frozen, the system does not need to store its massive intermediate activations for backpropagation. It only stores activations for the lightweight meta networks, drastically reducing the memory footprint.
2. Self-distilled Regularization
To prevent the model from drifting away from its original well-trained state, EcoTTA employs a self-distilled regularization loss. The system calculates the L1 distance between the output of each meta network and the output of the corresponding frozen original block. This acts as an internal knowledge distillation mechanism, where the frozen original model serves as a "teacher" that anchors the adapting "student" meta networks. This approach requires zero extra memory as the frozen model is already present in the architecture.
Experimental Evaluation
The researchers evaluated EcoTTA across several standard benchmarks for robustness and domain shift:
- CIFAR10-C & CIFAR100-C: Datasets with 15 types of digital corruptions (e.g., blur, noise, weather) at varying severities.
- ImageNet-C: A large-scale version of the corruption benchmark.
- Cityscapes-C: A semantic segmentation dataset modified with weather corruptions to test real-world applicability in street scenes.
Key Results and Insights
Massive Memory Savings
EcoTTA demonstrates significant efficiency gains over state-of-the-art methods. On a ResNet-50 backbone, it achieved an 86% reduction in memory usage compared to CoTTA. On WideResNet-40, it achieved an 80% reduction. The primary saving comes from reducing activation memory, which is the dominant bottleneck in on-device training.
Superior Accuracy and Stability
Despite its minimal memory footprint, EcoTTA achieved the lowest average error rates on CIFAR100-C (36.3%) compared to EATA (37.1%) and CoTTA (38.1%). In long-term adaptation tests (100 rounds), while standard methods like TENT saw error rates explode due to forgetting, EcoTTA remained perfectly stable.
Architectural Insights
The authors found that adapting shallower layers more densely leads to better performance than focusing solely on deeper layers. Additionally, keeping the original weights frozen provides a critical "source of truth" that prevents the model from spiraling into error accumulation during unsupervised adaptation.
Limitations and Future Work
EcoTTA requires a short offline "warm-up" phase to pre-train meta networks on source data before deployment. Additionally, performance is sensitive to the partition factor ($K$), though $K=4$ or $5$ proved robust across most tests. Future research may explore automated partitioning strategies or more complex meta-network architectures to further enhance adaptation capabilities.
Summary updated