arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.01542cs.LG
收藏

通过 Agreement-on-the-Line 预测基础模型的性能

Predicting the Performance of Foundation Models via Agreement-on-the-Line

Carnegie Mellon University(卡内基梅隆大学);Bosch Center for AI(博世人工智能中心)

Rahul Saxena, Taeyoun Kim, Aman Mehra, Christina Baek, Zico Kolter, Aditi Raghunathan

AI总结:

本文研究标签稀缺时基础模型的 OOD 性能预测问题,发现随机线性头初始化及多模型集成可可靠产生 agreement-on-the-line,从而实现高精度无标签预测。

摘要:

在标签稀缺的场景中估计分布外(OOD)性能,对于安全部署基础模型至关重要。近期研究表明,神经网络集成会出现“agreement-on-the-line”现象,可利用该现象在无标签情况下可靠预测 OOD 性能。然而,经典神经网络是在分布内数据上从零开始训练许多个 epoch,而基础模型则是从经过大规模预训练的权重出发进行最少微调,这可能会降低观察到 agreement-on-the-line 所需的集成多样性。在本文中,我们证明,当从单个基础模型出发进行轻度微调并运行多次时,训练过程中随机性的选择(线性头初始化、数据顺序和数据子集划分)会导致所得集成中的 agreement-on-the-line 水平出现显著差异。令人惊讶的是,在视觉和语言基准测试中,只有随机头初始化能够在微调后的基础模型中可靠地引发 agreement-on-the-line。其次,我们证明,在不同数据集上预训练、但在同一任务上微调的多个基础模型所构成的集成,也可以表现出 agreement-on-the-line。总体而言,通过精心构建多样化集成,我们能够利用基于 agreement-on-the-line 的方法,以高精度预测基础模型的 OOD 性能。

英文摘要:

Estimating the out-of-distribution performance in regimes where labels are scarce is critical to safely deploy foundation models. Recently, it was shown that ensembles of neural networks observe the phenomena "agreement-on-the-line", which can be leveraged to reliably predict OOD performance without labels. However, in contrast to classical neural networks that are trained on in-distribution data from scratch for numerous epochs, foundation models undergo minimal finetuning from heavily pretrained weights, which may reduce the ensemble diversity needed to observe agreement-on-the-line. In our work, we demonstrate that when lightly finetuning multiple runs from a single foundation model, the choice of randomness during training (linear head initialization, data ordering, and data subsetting) can lead to drastically different levels of agreement-on-the-line in the resulting ensemble. Surprisingly, only random head initialization is able to reliably induce agreement-on-the-line in finetuned foundation models across vision and language benchmarks. Second, we demonstrate that ensembles of multiple foundation models pretrained on different datasets but finetuned on the same task can also show agreement-on-the-line. In total, by careful construction of a diverse ensemble, we can utilize agreement-on-the-line-based methods to predict the OOD performance of foundation models with high precision.

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

↑