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

解混测试时归一化统计量:应对标签时间相关性

Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal Correlation

EPFL(洛桑联邦理工学院);CHUV(洛桑大学医院)

Devavrat Tomar, Guillaume Vray, Jean-Philippe Thiran, Behzad Bozorgtabar

AI总结:

针对测试时自适应中忽略标签独立同分布假设导致BN统计量偏差的问题,提出UnMix-TNS方法,通过在线解混统计分量模拟i.i.d.场景,提升非i.i.d.及时间相关数据下的模型稳定性与性能。

摘要:

最近的测试时自适应方法严重依赖于对批归一化(BN)参数的细微调整。然而,一个关键假设常常被忽视:即测试批次相对于未知标签是独立同分布(i.i.d.)的。这一疏忽导致BN统计量出现偏差,并在非i.i.d.场景下削弱了模型的可靠性。为应对这一挑战,本文提出了一种名为“解混测试时归一化统计量”(UnMix-TNS)的新方法。我们的方法通过将测试批次中的每个实例与多个不同的统计分量混合,重新校准每个实例的统计量,从而在本质上模拟i.i.d.场景。该方法的核心在于一种独特的在线解混过程,该过程通过纳入来自新测试批次的最相似实例来持续更新这些统计分量。UnMix-TNS在设计上具有显著的通用性,可无缝集成到多种领先的测试时自适应方法和配备BN层的预训练架构中。实证评估证实了UnMix-TNS在各种场景下的鲁棒性——从单一域偏移到连续域偏移和混合域偏移,尤其在处理时间相关的测试数据和损坏的非i.i.d.真实世界数据流时表现出色。即使在非常小的批次大小或单个实例的情况下,这种适应性也能得以保持。我们的结果凸显了UnMix-TNS在多个基准上显著提升稳定性和性能的能力。我们的代码可在 https://github.com/devavratTomar/unmixtns 公开获取。

英文摘要:

Recent test-time adaptation methods heavily rely on nuanced adjustments of batch normalization (BN) parameters. However, one critical assumption often goes overlooked: that of independently and identically distributed (i.i.d.) test batches with respect to unknown labels. This oversight leads to skewed BN statistics and undermines the reliability of the model under non-i.i.d. scenarios. To tackle this challenge, this paper presents a novel method termed 'Un-Mixing Test-Time Normalization Statistics' (UnMix-TNS). Our method re-calibrates the statistics for each instance within a test batch by mixing it with multiple distinct statistics components, thus inherently simulating the i.i.d. scenario. The core of this method hinges on a distinctive online unmixing procedure that continuously updates these statistics components by incorporating the most similar instances from new test batches. Remarkably generic in its design, UnMix-TNS seamlessly integrates with a wide range of leading test-time adaptation methods and pre-trained architectures equipped with BN layers. Empirical evaluations corroborate the robustness of UnMix-TNS under varied scenarios-ranging from single to continual and mixed domain shifts, particularly excelling with temporally correlated test data and corrupted non-i.i.d. real-world streams. This adaptability is maintained even with very small batch sizes or single instances. Our results highlight UnMix-TNS's capacity to markedly enhance stability and performance across various benchmarks. Our code is publicly available at https://github.com/devavratTomar/unmixtns.

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

↑