隐藏轨迹不会说谎:修正测试时适应中的腐败漂移
Hidden Trajectories Don't Lie: Correcting Corruption Drift for Test-Time Adaptation
AI总结:
该研究针对测试时适应(TTA)的腐败漂移问题,提出Drift-TTA方法,通过对齐隐藏轨迹修正偏移,在CIFAR-100-C等数据集上显著提升了ViT、CLIP模型的准确率并降低了预期校准误差(ECE)。
摘要:
测试时适应(TTA)将预训练模型适配到部署过程中遇到的分布偏移。然而,大多数现有方法依赖于最终层的权重表示或模型输出概率分布衍生的信号。我们研究隐藏轨迹:深度神经网络产生的中间表示的有序序列。我们观察到,随着腐败程度增加,干净轨迹和腐败轨迹变得更可分离。我们提出Drift-TTA,它在冻结的骨干网络上添加零初始化低秩适配器,并训练它们使腐败的隐藏轨迹与来自更干净输入的轨迹对齐。该方法支持两种变体:使用干净目标训练的依赖源版本,以及从不同程度的腐败图像中学习的无源设置。我们开发了一种在线TTA方法,该方法在更新标量门以控制适应强度的同时冻结骨干网络和适配器。我们进一步将轨迹对齐建模为高斯观测模型下的最大后验(MAP)推理,并推导了基于KL的转移边界,该边界根据离线残差误差、残差维度以及离线和测试腐败之间的分布偏移来表征测试时轨迹的未对齐。我们在CIFAR-10-C、CIFAR-100-C和ImageNet-C上使用监督ViT和CLIP模型评估Drift-TTA。在腐败程度为5的CIFAR-100-C上,我们的无源在线方法在ViT-B/16上的准确率比无TTA提高13.3个百分点,在CLIP ViT-B/16上提高11.6个百分点,分别达到74.9%和47.4%。在相同设置下,先前的TTA基线在ViT上的预期校准误差(ECE)为18.00%,在CLIP上为14.70%,而我们的方法将其分别降低到9.53%和5.77%。这些结果表明,隐藏轨迹对齐为离线修正和轻量级测试时适应提供了有效信号。
英文摘要:
Test-time adaptation (TTA) adapts pretrained models to distribution shifts encountered during deployment. However, most existing methods rely on the weight representations of the final layer or signals derived from the model's output probability distribution. We study hidden trajectories: the ordered sequence of intermediate representations produced across a deep neural network. We observe that clean and corrupted trajectories become more separable as corruption severity increases. We introduce Drift-TTA, which adds zero-initialized low-rank adapters to a frozen backbone and trains them to align corrupted hidden trajectories with those from cleaner inputs. The approach supports two variants: a source-dependent version trained with clean targets, and a source-free setting that learns from corrupted images at different severities. We develop an online TTA approach that freezes the backbone and adapters while updating a scalar gate to control adaptation strength. We further cast trajectory alignment as MAP inference under a Gaussian observation model and derive a KL-based transfer bound characterizing test-time trajectory misalignment in terms of offline residual error, residual dimensionality, and distribution shift between offline and test corruptions. We evaluate Drift-TTA on CIFAR-10-C, CIFAR-100-C, and ImageNet-C using supervised ViTs and CLIP models. On CIFAR-100-C at severity 5, our source-free online approach improves accuracy over no TTA by 13.3 percentage points with ViT-B/16 and 11.6 percentage points with CLIP ViT-B/16, reaching 74.9% and 47.4%, respectively. Under the same setting, prior TTA baselines yield ECEs of 18.00% for ViT and 14.70% for CLIP, while our approach reduces them to 9.53% and 5.77%, respectively. These results demonstrate that hidden trajectory alignment provides an effective signal for both offline correction and lightweight online test-time adaptation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。