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

GeneralizeFormer:跨测试时分布偏移的层自适应模型生成

GeneralizeFormer: Layer-Adaptive Model Generation across Test-Time Distribution Shifts

University of Amsterdam(阿姆斯特丹大学);TU Munich(慕尼黑工业大学);United Imaging Healthcare, Co., Ltd.(联影医疗科技股份有限公司)

Sameer Ambekar, Zehao Xiao, Xiantong Zhen, Cees G. M. Snoek

AI总结:

针对测试时域泛化问题,提出GeneralizeFormer轻量级元学习Transformer,推理时动态生成分层参数适配目标批次,固定卷积参数仅生成批归一化层与分类器参数,实验证明其在多目标分布场景有效且避免遗忘源特征。

摘要:

我们研究测试时域泛化问题,即模型在多个源域上训练,并在训练期间从未见过的目标域上进行调整。与微调模型或在线调整分类器参数的常见方法不同,我们提出通过轻量级元学习Transformer在推理时动态生成多层参数,我们称之为GeneralizeFormer(泛化变换器)。分层参数针对每个目标批次生成,无需微调或在线调整。通过这种方式,我们的方法在具有多个目标分布的动态场景中更有效,还能避免遗忘有价值的源分布特征。此外,通过考虑分层梯度,该方法能自适应各种分布偏移。为降低计算和时间成本,我们固定卷积参数,仅生成批量归一化层和线性分类器的参数。在六个广泛使用的域泛化数据集上的实验表明,所提方法能有效处理各种分布偏移、在动态场景中泛化并避免遗忘。

英文摘要:

We consider the problem of test-time domain generalization, where a model is trained on several source domains and adjusted on target domains never seen during training. Different from the common methods that fine-tune the model or adjust the classifier parameters online, we propose to generate multiple layer parameters on the fly during inference by a lightweight meta-learned transformer, which we call \textit{GeneralizeFormer}. The layer-wise parameters are generated per target batch without fine-tuning or online adjustment. By doing so, our method is more effective in dynamic scenarios with multiple target distributions and also avoids forgetting valuable source distribution characteristics. Moreover, by considering layer-wise gradients, the proposed method adapts itself to various distribution shifts. To reduce the computational and time cost, we fix the convolutional parameters while only generating parameters of the Batch Normalization layers and the linear classifier. Experiments on six widely used domain generalization datasets demonstrate the benefits and abilities of the proposed method to efficiently handle various distribution shifts, generalize in dynamic scenarios, and avoid forgetting.

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

↑