重新审视Mixout:一条被忽视的稳健微调路径
Robust and Efficient Finetuning of Vision Foundation Models via Implicit Ensembling
AI总结:
本文重新审视Mixout正则化器,提出GMixout方法,通过动态锚点和重采样频率控制,在保持域内准确率的同时提升分布偏移下的稳健性,超越现有基线。
摘要:
微调视觉基础模型通常能提高域内准确率,但代价是在分布偏移下的稳健性下降。我们通过单次运行、权重共享的隐式集成的视角,重新审视Mixout——一种随机正则化器,它间歇性地将微调后的权重替换为其预训练参考值。这一视角揭示了控制稳健性的三个关键杠杆:掩码锚点、重采样频率和掩码稀疏性。在此分析的指导下,我们提出了GMixout,它(i)将固定锚点替换为在训练过程中自适应的指数移动平均快照,并且(ii)通过显式的重采样频率超参数来调节掩码周期。我们的稀疏核实现仅更新一小部分参数,且无推理时开销,从而能够在消费级GPU上进行训练。在涵盖协变量偏移、损坏和类别不平衡的基准测试中,包括ImageNet / ImageNet-LT、DomainNet、iWildCam和CIFAR100-C,GMixout在域内准确率上持续超越零样本性能,同时在分布偏移下超越了Model Soups和强参数高效微调基线。
英文摘要:
Robust finetuning of foundation models seeks to improve out-of-distribution (OOD) generalization during in-distribution (ID) adaptation. We revisit Mixout, a stochastic regularizer that intermittently replaces finetuned parameters with a reference anchor, and study its effectiveness for robust finetuning of vision foundation models. We reinterpret Mixout as a single-run, weight-sharing implicit ensemble and analyze its expected OOD error through a bias-variance-covariance-locality (BVCL) lens. This perspective reveals three key factors that govern the ID-OOD trade-off: the choice of masking anchor, the mask resampling frequency, and mask sparsity. Guided by this analysis, we propose GMixout, which generalizes Mixout in three ways. First, it explicitly controls the masking period through a resampling-frequency hyperparameter. Second, it replaces the fixed pretrained anchor with an exponential moving average snapshot that adapts throughout training. Third, it uses sparse kernels to update only a small subset of parameters at each iteration, introducing no inference-time overhead and enabling large-model finetuning on consumer-grade GPUs. Experiments across five vision benchmarks show that GMixout consistently outperforms Mixout, Model Soups, and strong parameter-efficient finetuning baselines under both covariate shift and class imbalance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。