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

Panda:基于负数据增强的测试时自适应方法

Panda: Test-Time Adaptation with Negative Data Augmentation

Ruxi Deng, Wenxuan Bao, Tianxin Wei, Jingrui He

AI总结:

针对现有测试时自适应方法计算开销高、无法缓解图像损坏下预测偏差的问题,提出基于负数据增强的Panda方法,可低成本抑制损坏特征、提升鲁棒性,能无缝集成到现有TTA框架并显著提升性能。

摘要:

预训练视觉语言模型(VLM)具备强大的零样本分类能力,但在常见图像损坏场景下其预测性能会显著下降。为提升鲁棒性,现有诸多测试时自适应(TTA)方法采用正数据增强(PDA),即对每个测试样本生成多视图以降低预测方差,但这类方法存在两大核心局限:一是单张图像需要执行多次增强操作,会引入极高的计算开销;二是无法缓解预测偏差问题——由于PDA直接在损坏输入上操作且通常不会移除损坏本身,模型在损坏场景下会不成比例地倾向预测特定类别。针对上述问题,我们提出基于负数据增强(NDA)的新型TTA方法Panda:与保留目标语义的正增强不同,Panda通过破坏语义内容生成负增强样本,它将图像切分为图像块,从共享图像块池中随机重组图像块,生成的负增强样本会保留损坏相关特征,同时丢弃与目标相关的信号;随后我们将原始图像特征减去这些负样本的平均特征,可在保留类别相关信息的同时有效抑制损坏相关成分,缓解分布偏移下的预测偏差。Panda支持批次内样本共享增强结果,仅需极低计算开销,还可无缝集成到现有TTA框架中大幅提升其鲁棒性。实验表明,Panda性能优于PDA类方法,各类主流TTA方法集成Panda后性能均得到显著提升,项目代码开源在https://github.com/ruxideng/Panda。

英文摘要:

Pretrained VLMs exhibit strong zero-shot classification capabilities, but their predictions degrade significantly under common image corruptions. To improve robustness, many test-time adaptation (TTA) methods adopt positive data augmentation (PDA), which generates multiple views of each test sample to reduce prediction variance. However, these methods suffer from two key limitations. First, it introduces considerable computational overhead due to the large number of augmentations required per image. Second, it fails to mitigate prediction bias, where the model tends to predict certain classes disproportionately under corruption, as PDA operates on corrupted inputs and typically does not remove the corruption itself. To address these challenges, we propose Panda, a novel TTA method based on negative data augmentation (NDA). Unlike positive augmentations that preserve object semantics, Panda generates negative augmentations by disrupting semantic content. It divides images into patches and randomly assembles them from a shared patch pool. These negatively augmented images retain corruption-specific features while discarding object-relevant signals. We then subtract the mean feature of these negative samples from the original image feature, effectively suppressing corruption-related components while preserving class-relevant information. This mitigates prediction bias under distribution shifts. Panda allows augmentation to be shared across samples within a batch, resulting in minimal computational overhead. Panda can be seamlessly integrated into existing test-time adaptation frameworks and substantially improve their robustness. Our experiments indicate that Panda delivers superior performance compared to PDA methods, and a wide range of TTA methods exhibit significantly enhanced performance when integrated with Panda. Our code is available at https://github.com/ruxideng/Panda .

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

↑