In Test-time Adaptation (TTA), given a source model, the goal is to adapt it to make better predictions for test instances from a different distribution than the source. Crucially, TTA assumes no access to the source data or even any additional labeled/unlabeled samples from the target distribution to finetune the source model. In this work, we consider TTA in a more pragmatic setting which we refer to as SITA (Single Image Test-time Adaptation). Here, when making a prediction, the model has access only to the given single test instance, rather than a batch of instances, as typically been considered in the literature. This is motivated by the realistic scenarios where inference is needed on-demand instead of delaying for an incoming batch or the inference is happening on an edge device (like mobile phone) where there is no scope for batching. The entire adaptation process in SITA should be extremely fast as it happens at inference time. To address this, we propose a novel approach AugBN that requires only a single forward pass. It can be used on any off-the-shelf trained model to test single instances for both classification and segmentation tasks. AugBN estimates normalization statistics of the unseen test distribution from the given test image using only one forward pass with label-preserving transformations. Since AugBN does not involve any back-propagation, it is significantly faster compared to recent test time adaptation methods. We further extend AugBN to make the algorithm hyperparameter-free. Rigorous experimentation show that our simple algorithm is able to achieve significant performance gains for a variety of datasets, tasks, and network architectures.
翻译:在测试时适应(TTA) 中, 给一个源模型, 目标是对它进行调整, 以便更好地预测来自不同于源的分布的测试实例。 关键是, TTA 假设无法访问源数据, 甚至是目标分布的任何额外的标签/ 无标签样本, 以微调源模型。 在这项工作中, 我们认为 TTA 在一个更务实的环境下, 我们称之为 SITA ( SingI 图像测试- 适应) 。 在这里, 当作出预测时, 该模型只能访问给定的单一测试实例, 而不是文献中通常考虑的一组实例。 驱动这个模型的动机是现实的假设: 需要按需要推断源数据, 而不是延迟发送批次的标签/ 无标签的样本。 在边缘设备( 如移动电话) 中, 我们将TTTA( TTA) 放在一个我们称之为 SITA( SITA)( Singrefort) ( SSITA)( Singerence- Test time) 。 为了解决这个问题, 我们提议一种新型的AGLA( ARC) 递增缩缩缩缩缩图, 它只能用来用来测试ASG( ASG) 分类和分路) 。