arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.07180cs.LG
收藏

基础模型群体鲁棒性的对比适配器

Contrastive Adapters for Foundation Model Group Robustness

Stanford University(斯坦福大学)

Michael Zhang, Christopher Ré

摘要:

虽然大型预训练基础模型(FM)已经显示出显著的zero-shot分类鲁棒性,以小样本水平的分布偏移,其鲁棒性的子群体或组偏移是相对不足的探索。我们研究这个问题,并发现,FM,如CLIP可能不强大的各种组移位。在9个鲁棒性基准测试中,zero-shot分类及其嵌入导致平均和最差组准确度之间的差距高达80.7个百分点(pp)。不幸的是,现有的提高鲁棒性的方法需要重新训练,这在大型基础模型上可能是非常昂贵的。我们还发现,提高模型推理的有效方法(例如,经由适配器、具有FM嵌入作为输入的轻量级网络)与zero-shot相比不能一致地改进并且有时会损害组鲁棒性(例如,在CelebA上增加50.1pp的准确性差距)。因此,我们开发了一种适配器训练策略,以有效地提高FM组的鲁棒性。我们的动机是,虽然同一类中的组在基础模型“嵌入空间”中嵌入得很远,导致鲁棒性差,但标准的适配器训练可能不会使这些点更接近。因此,我们提出了对比适应,它训练适配器与对比学习,使样本嵌入接近他们的地面实况类嵌入和其他样本嵌入在同一类。在9个基准测试中,我们的方法始终如一地提高了组的鲁棒性,将最差组的准确性提高了8.5到56.0 pp,而不是zero-shot。我们的方法也很有效,这样做没有任何FM微调,只有一组固定的冻结FM嵌入。在Waterbirds和CelebA等基准测试中,这导致了与重新训练整个模型的最先进方法相当的最差组准确性,同时只训练了$\leq$ 1%的模型参数。

英文摘要:

While large pretrained foundation models (FMs) have shown remarkable zero-shot classification robustness to dataset-level distribution shifts, their robustness to subpopulation or group shifts is relatively underexplored. We study this problem, and find that FMs such as CLIP may not be robust to various group shifts. Across 9 robustness benchmarks, zero-shot classification with their embeddings results in gaps of up to 80.7 percentage points (pp) between average and worst-group accuracy. Unfortunately, existing methods to improve robustness require retraining, which can be prohibitively expensive on large foundation models. We also find that efficient ways to improve model inference (e.g., via adapters, lightweight networks with FM embeddings as inputs) do not consistently improve and can sometimes hurt group robustness compared to zero-shot (e.g., increasing the accuracy gap by 50.1 pp on CelebA). We thus develop an adapter training strategy to effectively and efficiently improve FM group robustness. Our motivating observation is that while poor robustness results from groups in the same class being embedded far apart in the foundation model "embedding space," standard adapter training may not bring these points closer together. We thus propose contrastive adapting, which trains adapters with contrastive learning to bring sample embeddings close to both their ground-truth class embeddings and other sample embeddings in the same class. Across the 9 benchmarks, our approach consistently improves group robustness, raising worst-group accuracy by 8.5 to 56.0 pp over zero-shot. Our approach is also efficient, doing so without any FM finetuning and only a fixed set of frozen FM embeddings. On benchmarks such as Waterbirds and CelebA, this leads to worst-group accuracy comparable to state-of-the-art methods that retrain entire models, while only training $\leq$1% of the model parameters.

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

↑