arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02851cs.CVcs.LGstat.ML
收藏

增强组合泛化能力:组合特征对齐方法

Enhancing Compositional Generalization via Compositional Feature Alignment

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);William and Mary(威廉玛丽学院)

Haoxiang Wang, Haozhe Si, Huajie Shao, Han Zhao

AI总结:

针对多域多类场景下模型组合泛化能力不足的问题,提出组合特征对齐(CFA)两阶段微调方法,通过正交线性头与冻结微调,在CG-Bench上提升CLIP和DINOv2的泛化性能。

摘要:

机器学习模型的实际应用常常面临数据分布偏移问题,即训练数据分布与测试数据分布之间存在差异。在常见的多域多类设置中,随着类别和域的数量增加,为每个域-类组合收集训练数据变得不可行。这一挑战自然引发了对具有组合泛化(CG)能力的模型的追求,即模型能够泛化到未见过的域-类组合。为了深入探究CG挑战,我们开发了CG-Bench,一套从现有真实世界图像数据集衍生的CG基准,并观察到在基础模型(如CLIP和DINOv2)上普遍采用的预训练-微调范式难以应对这一挑战。为解决此问题,我们提出了组合特征对齐(CFA),一种简单的两阶段微调技术:i)在预训练编码器上针对类和域标签学习两个正交线性头,ii)在冻结新学习头的情况下微调编码器。我们从理论和实证两方面证明CFA鼓励预训练模型的组合特征学习。我们进一步在CG-Bench上对CLIP和DINOv2这两种强大的预训练视觉基础模型进行了广泛实验。实验结果表明,CFA在组合泛化方面优于常见的微调技术,证实了CFA在组合特征学习中的有效性。

英文摘要:

Real-world applications of machine learning models often confront data distribution shifts, wherein discrepancies exist between the training and test data distributions. In the common multi-domain multi-class setup, as the number of classes and domains scales up, it becomes infeasible to gather training data for every domain-class combination. This challenge naturally leads the quest for models with Compositional Generalization (CG) ability, where models can generalize to unseen domain-class combinations. To delve into the CG challenge, we develop CG-Bench, a suite of CG benchmarks derived from existing real-world image datasets, and observe that the prevalent pretraining-finetuning paradigm on foundational models, such as CLIP and DINOv2, struggles with the challenge. To address this challenge, we propose Compositional Feature Alignment (CFA), a simple two-stage finetuning technique that i) learns two orthogonal linear heads on a pretrained encoder with respect to class and domain labels, and ii) fine-tunes the encoder with the newly learned head frozen. We theoretically and empirically justify that CFA encourages compositional feature learning of pretrained models. We further conduct extensive experiments on CG-Bench for CLIP and DINOv2, two powerful pretrained vision foundation models. Experiment results show that CFA outperforms common finetuning techniques in compositional generalization, corroborating CFA's efficacy in compositional feature learning.

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

↑