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

基于扩散的测试时自适应的两个简单原则

Two Simple Principles for Diffusion-Based Test-Time Adaptation

Kaiyu Song, Hanjiang Lai, Yan Pan, Kun Yue, Jian Yin

AI总结:

本文提出基于扩散的测试时自适应方法PDDA,通过语义相似性保持和最小修改两个原则,在多个数据集上无需训练即显著提升分类准确率。

摘要:

近年来,基于扩散的测试时自适应(TTA)取得了显著进展,其利用扩散模型将未知测试域中的图像映射到训练域。未知且多样的测试域使基于扩散的TTA成为一个不适定问题。在本文中,我们揭示了基于扩散方法设计技巧的两个简单原则。直观上,原则1指出语义相似性保持。我们应保持原始测试图像与生成测试图像之间的语义相似性。原则2建议最小修改。该原则使扩散能够在对测试图像进行最小修改的情况下将测试图像映射到训练域。特别地,遵循这两个原则,我们提出了简单而有效的原则引导的基于扩散的测试时自适应方法(PDDA)。具体而言,遵循原则1,我们提出了语义保持器,这是一种保持特征相似性的方法,其中语义保持器可以过滤测试域引入的损坏,从而更好地保持语义。遵循原则2,我们提出了修改保持器,在生成过程中引入正则化约束以最小化对测试图像的修改。同时,这两个原则之间存在隐藏冲突。我们进一步引入基于梯度的视角来统一两个原则产生的方向。在CIFAR-10C、CIFAR-100C、ImageNet-W和ImageNet-C上使用WideResNet-28-10、ResNet-50、Swin-T和ConvNext-T进行的大量实验表明,PDDA显著优于复杂的最新基线方法。具体而言,PDDA在ImageNet-C上无需任何训练过程即实现了2.4%的平均准确率提升。

英文摘要:

Recently, diffusion-based test-time adaptations (TTA) have shown great advances, which leverage a diffusion model to map the images in the unknown test domain to the training domain. The unseen and diverse test domains make diffusion-based TTA an ill-posed problem. In this paper, we unravel two simple principles of the design tricks for diffusion-based methods. Intuitively, \textit{Principle 1} says semantic similarity preserving. We should preserve the semantic similarity between the original and generated test images. \textit{Principle 2} suggests minimal modifications. This principle enables the diffusion to map the test images to the training domain with minimal modifications of the test images. In particular, following the two principles, we propose our simple yet effective principle-guided diffusion-based test-time adaptation method (PDDA). Concretely, following Principle 1, we propose a semantic keeper, the method to preserve feature similarity, where the semantic keeper could filter the corruption introduced from the test domain, thus better preserving the semantics. Following Principle 2, we propose a modification keeper, where we introduce a regularization constraint into the generative process to minimize modifications to the test image. Meanwhile, there is a hidden conflict between the two principles. We further introduce the gradient-based view to unify the direction generated from two principles. Extensive experiments on CIFAR-10C, CIFAR-100C, ImageNet-W, and ImageNet-C with WideResNet-28-10, ResNet-50, Swin-T, and ConvNext-T demonstrate that PDDA significantly performs better than the complex state-of-the-art baselines. Specifically, PDDA achieves 2.4\% average accuracy improvements in ImageNet-C without any training process.

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

↑