arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12128cs.LGcs.CV
收藏

面向动态在线数据流的全测试时自适应的分布对齐

Distribution Alignment for Fully Test-Time Adaptation with Dynamic Online Data Streams

Concordia University(康考迪亚大学);University of Toronto(多伦多大学);Beijing Jiaotong University(北京交通大学);Shanghai University(上海大学)

Ziqiang Wang, Zhixiang Chi, Yanan Wu, Li Gu, Zhi Liu, Konstantinos Plataniotis, Yang Wang

AI总结:

针对非独立同分布测试数据流中批次间标签偏移导致优化冲突的问题,提出反转自适应过程的分布对齐损失,并设计域偏移检测机制,在六个基准上超越现有方法。

摘要:

给定一个在源数据上训练的模型,测试时自适应(TTA)能够在与源域存在域偏移的测试数据流中进行自适应和推理。当前方法主要使用自训练损失为每个传入的测试数据批次优化模型。虽然这些方法在理想的测试数据流(批次独立同分布地采样自目标分布)中取得了可喜的结果,但在更实际的非独立同分布(非i.i.d.)测试数据流中表现不佳。非i.i.d.流中的数据批次彼此之间存在显著的标签偏移,这导致TTA过程中批次间的优化目标相互冲突。鉴于将源模型适应到不可预测的测试时分布的内在风险,我们反转了自适应过程,并提出了一种新的用于TTA的分布对齐损失。该损失引导测试时特征的分布回到源分布,确保与训练良好的源模型兼容,并消除了与冲突优化目标相关的陷阱。此外,我们设计了一种域偏移检测机制,以在连续域偏移场景中扩展我们提出的TTA方法的成功。我们的大量实验验证了我们方法的逻辑和有效性。在六个基准数据集上,我们在非i.i.d.场景中超越了现有方法,并在理想的i.i.d.假设下保持了竞争力的性能。

英文摘要:

Given a model trained on source data, Test-Time Adaptation (TTA) enables adaptation and inference in test data streams with domain shifts from the source. Current methods predominantly optimize the model for each incoming test data batch using self-training loss. While these methods yield commendable results in ideal test data streams, where batches are independently and identically sampled from the target distribution, they falter under more practical test data streams that are not independent and identically distributed (non-i.i.d.). The data batches in a non-i.i.d. stream display prominent label shifts relative to each other. It leads to conflicting optimization objectives among batches during the TTA process. Given the inherent risks of adapting the source model to unpredictable test-time distributions, we reverse the adaptation process and propose a novel Distribution Alignment loss for TTA. This loss guides the distributions of test-time features back towards the source distributions, which ensures compatibility with the well-trained source model and eliminates the pitfalls associated with conflicting optimization objectives. Moreover, we devise a domain shift detection mechanism to extend the success of our proposed TTA method in the continual domain shift scenarios. Our extensive experiments validate the logic and efficacy of our method. On six benchmark datasets, we surpass existing methods in non-i.i.d. scenarios and maintain competitive performance under the ideal i.i.d. assumption.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑