In Test-time Adaptation (TTA), given a model trained on some source data, the goal is to adapt it to make better predictions for test instances from a different distribution. 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 each prediction, the model has access only to the given single test instance, rather than a batch of instances, as has typically been considered in the literature. This is motivated by the realistic scenarios where inference is needed in an on-demand fashion that may not be delayed to "batch-ify" incoming requests 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 for the SITA setting that requires only forward propagation. The approach can adapt any off-the-shelf trained model to individual test instances for both classification and segmentation tasks. AugBN estimates normalisation 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 other recent methods. To the best of our knowledge, this is the first work that addresses this hard adaptation problem using only a single test image. Despite being very simple, our framework is able to achieve significant performance gains compared to directly applying the source model on the target instances, as reflected in our extensive experiments and ablation studies.
翻译:在测试时适应模型(TTA)中,根据对某种源数据进行培训的模型,目标是对模型进行调整,以便对不同分布的测试实例作出更好的预测。 关键是, TTA 假设无法访问源数据, 甚至是目标分布中任何额外的标签/ 无标签样本, 以微调源模型。 在这项工作中, 我们认为TTA是在一个更务实的环境下, 我们称之为SITA( 单图像测试- 适应 ) 。 这里, 每做一次预测时, 该模型只能访问给定的单一测试实例, 而不是文献中通常考虑的一组实例。 其动机是现实的假设: 需要按需要按需推断源数据, 无法延迟访问源数据, 以“ 批次” 收到请求或推断在边缘设备( 如手机) 发生, 我们称之为SITA( SINTA) 。 整个适应过程应该非常快, 因为它在发回溯源时间出现问题。 为了解决这个问题, 我们提议在SITARC 设置的模型中采用新办法, 只需要进行一次前向前传播。 。 方法, 将任何正常的测试框架 测试任务 将任何正常的 测试任务 测试到 测试到任何正常的系统 测试到任何常规 测试任务 都 测试到 进行到 测试到 测试到 测试到 。