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

具有任务向量的分层自适应网络用于测试时适应

Hierarchical Adaptive networks with Task vectors for Test-Time Adaptation

School of Computation, Information and Technology, Technical University of Munich(慕尼黑技术大学计算信息学院);Institute of Machine Learning in Biomedical Imaging, Helmholtz Munich, Germany(生物医学成像中的机器学习研究所,海德堡慕尼黑,德国);School of Biomedical Engineering and Imaging Sciences, King’s College London, UK(国王学院伦敦生物医学工程与成像科学学院,英国);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心(MCML));relAI – Konrad Zuse School of Excellence in Reliable AI(relAI – 卓越可靠AI Konrad Zuse 学院)

Sameer Ambekar, Marta Hasny, Laura Daza, Daniel M. Lang, Julia A. Schnabel

AI总结:

本文提出Hi-Vec网络,通过分层结构动态选择适应层,融合权重并采用门控机制提升测试时适应性能,验证了其在复杂分布偏移下的鲁棒性和有效性。

摘要:

测试时适应使预训练模型能够调整到输入数据流,解决源域与目标域之间的分布偏移问题。然而,标准方法依赖于单维线性分类层,往往无法处理多样且复杂的偏移。我们提出了具有任务向量的分层自适应网络(Hi-Vec),利用多层递增大小的结构实现动态测试时适应。通过将编码器的表示空间分解为这种分层组织的层,Hi-Vec以即插即用的方式允许现有方法适应不同复杂度的偏移。我们的贡献有三方面:首先,我们提出动态层选择,用于自动识别每个测试批次的最佳适应层;其次,我们提出一种机制,将动态层的权重合并到其他层,确保所有层接收到目标信息;第三,我们提出线性层协议,作为门控函数,防止因噪声批次的适应而产生错误微调。我们严格评估了Hi-Vec在挑战性场景和多个目标数据集上的性能,证明了其在推进最先进方法方面的能力。我们的结果表明,Hi-Vec提高了鲁棒性,解决了不确定性,并处理了有限的批次大小和增加的异常率。

英文摘要:

Test-time adaptation allows pretrained models to adjust to incoming data streams, addressing distribution shifts between source and target domains. However, standard methods rely on single-dimensional linear classification layers, which often fail to handle diverse and complex shifts. We propose Hierarchical Adaptive Networks with Task Vectors (Hi-Vec), which leverages multiple layers of increasing size for dynamic test-time adaptation. By decomposing the encoder's representation space into such hierarchically organized layers, Hi-Vec, in a plug-and-play manner, allows existing methods to adapt to shifts of varying complexity. Our contributions are threefold: First, we propose dynamic layer selection for automatic identification of the optimal layer for adaptation to each test batch. Second, we propose a mechanism that merges weights from the dynamic layer to other layers, ensuring all layers receive target information. Third, we propose linear layer agreement that acts as a gating function, preventing erroneous fine-tuning by adaptation on noisy batches. We rigorously evaluate the performance of Hi-Vec in challenging scenarios and on multiple target datasets, proving its strong capability to advance state-of-the-art methods. Our results show that Hi-Vec improves robustness, addresses uncertainty, and handles limited batch sizes and increased outlier rates.

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

↑