[论文解读] Feature Alignment and Uniformity for Test Time Adaptation
本文提出了一种测试时自适应方法,将自适应过程重新定义为通过对齐与均匀性进行特征修正。该方法引入了测试时自知识蒸馏(Test Time Self-Distillation)以实现特征均匀性,以及记忆化空间局部聚类(Memorized Spatial Local Clustering)以实现特征对齐,在域泛化和医学图像分割基准上实现了最先进性能,相较于ERM和现有TTA方法表现出一致的性能提升。
Test time adaptation (TTA) aims to adapt deep neural networks when receiving out of distribution test domain samples. In this setting, the model can only access online unlabeled test samples and pre-trained models on the training domains. We first address TTA as a feature revision problem due to the domain gap between source domains and target domains. After that, we follow the two measurements alignment and uniformity to discuss the test time feature revision. For test time feature uniformity, we propose a test time self-distillation strategy to guarantee the consistency of uniformity between representations of the current batch and all the previous batches. For test time feature alignment, we propose a memorized spatial local clustering strategy to align the representations among the neighborhood samples for the upcoming batch. To deal with the common noisy label problem, we propound the entropy and consistency filters to select and drop the possible noisy labels. To prove the scalability and efficacy of our method, we conduct experiments on four domain generalization benchmarks and four medical image segmentation tasks with various backbones. Experiment results show that our method not only improves baseline stably but also outperforms existing state-of-the-art test time adaptation methods. Code is available at \href{https://github.com/SakurajimaMaiii/TSD}{https://github.com/SakurajimaMaiii/TSD}.
研究动机与目标
- 通过将测试时自适应重新定义为特征表示修正问题,以应对域偏移问题。
- 在无法访问训练数据或标签的情况下,提升模型在分布外测试数据上的鲁棒性。
- 在测试时自适应过程中,同时优化特征对齐与均匀性。
- 开发一种可扩展、参数高效的自适应方法,适用于多种主干网络和任务。
- 在域泛化和医学图像分割基准上验证方法的有效性。
提出的方法
- 提出测试时自知识蒸馏(TSD),通过使用历史特征和logits的记忆库,将模型预测与基于原型的分类器对齐,以强制实现特征均匀性。
- 引入记忆化空间局部聚类,通过将邻近样本分组并利用伪标签对齐其表示,以增强特征对齐。
- 使用记忆库存储并更新跨批次的特征表示和logits,以实现均匀性方面的时序一致性。
- 利用熵和一致性过滤器检测并丢弃自适应过程中的噪声伪标签。
- 仅更新批归一化仿射参数,实现方法应用,将GPU内存使用减少2 GB,同时在PACS数据集上保持89%的准确率。
- 将方法适配至医学图像分割任务,采用DeepLabv3+与MobileNetV2作为主干网络,以Dice分数作为评估指标。
实验结果
研究问题
- RQ1测试时自适应能否被有效重构为聚焦于对齐与均匀性的特征表示修正问题?
- RQ2在无真实标签的情况下,如何在在线小批量中维持特征均匀性?
- RQ3通过记忆化特征实现的空间局部聚类能否提升潜在空间中相似类别样本的特征对齐?
- RQ4该方法在多样化基准上与SOTA TTA和SFDA方法相比表现如何?
- RQ5该方法能否在低样本、跨域医学图像分割任务中有效应用?
主要发现
- 在四个医学图像分割任务上,该方法分别相较ERM基线提升3.9%、4.44%、3.57%和12.72%。
- 在PACS数据集上,该方法仅通过更新批归一化层即达到89%准确率,与完整微调的89.4%准确率相当,同时将GPU内存使用减少2 GB。
- 在所有四个医学分割任务上,该方法均优于ERM和Tent,尤其在RIM-ONE-r3数据集上提升最大,达12.72%。
- 测试时自知识蒸馏通过自知识蒸馏将当前小批量预测与历史原型分布对齐,确保了均匀性的一致性。
- 记忆化空间局部聚类通过利用空间邻近性与伪标签一致性,有效对齐了同类别样本的特征。
- 该方法在多种主干网络和任务上均表现出可扩展性与有效性,展示了在真实部署场景中强大的泛化能力与鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。