On-demand Test-time Adaptation for Edge Devices
Xiao Ma, Young D. Kwon, Dong Ma
TL;DR
OD-TTA tackles the inefficiency of continual test-time adaptation by triggering adaptation only when domain shift is detected. It combines three innovations: a lightweight domain shift detector using EMA entropy, a source-domain selection mechanism based on BN statistics to start adaptation from a close domain, and a decoupled BN update scheme that updates statistics and affine parameters with different batch sizes to reduce memory footprint. Empirical results on CIFAR-10-C, ImageNet-C, and SHIFT show that OD-TTA yields competitive or superior accuracy while lowering energy consumption and memory usage, including support for BN-based models at batch size 1. The approach demonstrates a practical path to make TTA viable on resource-constrained edge devices, with strong potential for deployment on embedded AI systems.
Abstract
Continual Test-time adaptation (CTTA) continuously adapts the deployed model on every incoming batch of data. While achieving optimal accuracy, existing CTTA approaches present poor real-world applicability on resource-constrained edge devices, due to the substantial memory overhead and energy consumption. In this work, we first introduce a novel paradigm -- on-demand TTA -- which triggers adaptation only when a significant domain shift is detected. Then, we present OD-TTA, an on-demand TTA framework for accurate and efficient adaptation on edge devices. OD-TTA comprises three innovative techniques: 1) a lightweight domain shift detection mechanism to activate TTA only when it is needed, drastically reducing the overall computation overhead, 2) a source domain selection module that chooses an appropriate source model for adaptation, ensuring high and robust accuracy, 3) a decoupled Batch Normalization (BN) update scheme to enable memory-efficient adaptation with small batch sizes. Extensive experiments show that OD-TTA achieves comparable and even better performance while reducing the energy and computation overhead remarkably, making TTA a practical reality.
