Skip to main content
QUICK REVIEW

[论文解读] Domain Generalization using Pretrained Models without Fine-tuning

Ziyue Li, Kan Ren|arXiv (Cornell University)|Mar 9, 2022
Domain Adaptation and Few-Shot LearningComputer Science被引用 18
一句话总结

本文提出 SEDGE,一种领域泛化框架,通过在不微调固定预训练模型的前提下,训练线性标签空间适配器和一种特异性感知的集成网络,以动态选择每个测试样本的最优模型。SEDGE 在五个基准测试中达到最先进性能,与微调基线相比,可训练参数减少约 99%,训练时间减少约 99.5%。

ABSTRACT

Fine-tuning pretrained models is a common practice in domain generalization (DG) tasks. However, fine-tuning is usually computationally expensive due to the ever-growing size of pretrained models. More importantly, it may cause over-fitting on source domain and compromise their generalization ability as shown in recent works. Generally, pretrained models possess some level of generalization ability and can achieve decent performance regarding specific domains and samples. However, the generalization performance of pretrained models could vary significantly over different test domains even samples, which raises challenges for us to best leverage pretrained models in DG tasks. In this paper, we propose a novel domain generalization paradigm to better leverage various pretrained models, named specialized ensemble learning for domain generalization (SEDGE). It first trains a linear label space adapter upon fixed pretrained models, which transforms the outputs of the pretrained model to the label space of the target domain. Then, an ensemble network aware of model specialty is proposed to dynamically dispatch proper pretrained models to predict each test sample. Experimental studies on several benchmarks show that SEDGE achieves significant performance improvements comparing to strong baselines including state-of-the-art method in DG tasks and reduces the trainable parameters by ~99% and the training time by ~99.5%.

研究动机与目标

  • 为解决在领域泛化中微调预训练模型的局限性,包括计算成本高和分布外泛化能力可能下降的问题。
  • 探索在合理利用下,固定预训练模型是否能超越微调模型,特别是在未见目标领域中。
  • 通过根据每个输入的特异性动态选择最合适的模型,开发一种利用模型特异性——即在不同领域和样本上差异化的泛化能力——的方法。
  • 在与现有领域泛化方法相比,显著降低训练成本的同时保持或提升性能。

提出的方法

  • 在固定预训练模型之上训练一个线性标签空间适配器,将其输出投影到目标领域的标签空间中。
  • 引入一个轻量级、可训练的集成网络,根据输入样本特征学习为不同预训练模型分配动态权重。
  • 利用集成网络基于其在该样本上的预测泛化性能,选择并组合最专业的模型用于每个测试样本。
  • 仅在源领域上训练适配器和集成网络,冻结所有预训练模型权重,以避免微调。
  • 利用模型池多样性——使用在 ImageNet 和其他数据集上预训练的模型——以增强在多样化目标领域中的泛化能力。
  • 采用特异性感知的集成策略,通过基于模型在特定领域和特定样本上的优势进行选择,优于随机或平均集成。

实验结果

研究问题

  • RQ1在不进行微调的情况下,仅对固定预训练模型应用标签空间适配器,是否足以在未见领域实现强泛化?
  • RQ2基于模型在每个样本上泛化能力的特异性感知集成策略,是否显著优于随机或平均集成?
  • RQ3一个由多样化、固定预训练模型组成的模型池,是否能实现优于微调模型的泛化性能,尤其是在训练成本最小化的情况下?
  • RQ4所提方法的性能如何随预训练模型池的规模和多样性而变化?

主要发现

  • SEDGE 在五个基准数据集上达到最先进性能,Model Pool-A 上平均准确率为 69.4%,Model Pool-B 上为 74.1%,优于包括 SWAD 在内的强基线方法。
  • 仅使用标签空间适配器的最佳单个预训练模型仅在 OfficeHome 上优于 SWAD,表明单个模型不足以实现鲁棒的领域泛化。
  • 固定模型的随机集成甚至表现不如单个模型,证明了智能、特异性感知选择机制的必要性。
  • 与基于微调的方法相比,SEDGE 将可训练参数数量减少了约 99%,训练时间减少了约 99.5%。
  • SEDGE 中的模型分配机制在不同领域间自适应调整,不同模型在不同目标领域中获得更高权重,证实了动态、特异性感知的调度机制。
  • 使用更大、更多样化的模型池(Model Pool-B)带来了显著的性能提升,表明该方法具有良好的可扩展性和灵活性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。