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

LP++:一种用于少样本 CLIP 的惊人强大的线性探针

LP++: A Surprisingly Strong Linear Probe for Few-Shot CLIP

ÉTS Montréal(蒙特利尔高等技术学院);Université de Montréal(蒙特利尔大学)

Yunshi Huang, Fereshteh Shakeri, Jose Dolz, Malik Boudiaf, Houda Bahig, Ismail Ben Ayed

AI总结:

本文提出 LP++,通过文本嵌入生成分类器权重并用块坐标 MM 优化少样本 CLIP 线性探针,在免调参、黑箱且速度快数个数量级的同时取得强劲性能。

摘要:

在近期大量涌现的少样本 CLIP 适配文献中,Linear Probe(LP,线性探针)常被报告为一种较弱的基线。这促使研究者投入大量精力构建复杂的提示学习或特征适配策略。在本文中,我们从凸优化角度提出并研究标准 LP 基线的一种推广:线性分类器权重是文本嵌入的可学习函数,并通过类别级乘子融合图像与文本知识。由于目标函数依赖两类变量,即类别视觉原型和可学习融合参数,我们提出一种计算高效的块坐标 Majorize-Minimize(MM,优化-最小化)下降算法。在我们称为 LP++ 的全批量 MM 优化器中,步长是隐式的,不同于标准梯度下降做法需要在验证集上大量搜索学习率。通过考察损失函数的数学性质(例如 Lipschitz 梯度连续性),我们构造了产生数据驱动学习率的优化函数,并推导损失极小值的近似,从而为变量提供基于数据的初始化。我们的图像-语言目标函数,连同这些非平凡的优化洞见与要素,出人意料地取得了极具竞争力的少样本 CLIP 性能。此外,LP++ 以黑箱方式运行,无需对优化超参数进行密集验证搜索,并且运行速度比最先进的少样本 CLIP 适配方法快数个数量级。代码位于:https://github.com/FereshteShakeri/FewShot-CLIP-Strong-Baseline.git。

英文摘要:

In a recent, strongly emergent literature on few-shot CLIP adaptation, Linear Probe (LP) has been often reported as a weak baseline. This has motivated intensive research building convoluted prompt learning or feature adaptation strategies. In this work, we propose and examine from convex-optimization perspectives a generalization of the standard LP baseline, in which the linear classifier weights are learnable functions of the text embedding, with class-wise multipliers blending image and text knowledge. As our objective function depends on two types of variables, i.e., the class visual prototypes and the learnable blending parameters, we propose a computationally efficient block coordinate Majorize-Minimize (MM) descent algorithm. In our full-batch MM optimizer, which we coin LP++, step sizes are implicit, unlike standard gradient descent practices where learning rates are intensively searched over validation sets. By examining the mathematical properties of our loss (e.g., Lipschitz gradient continuity), we build majorizing functions yielding data-driven learning rates and derive approximations of the loss's minima, which provide data-informed initialization of the variables. Our image-language objective function, along with these non-trivial optimization insights and ingredients, yields, surprisingly, highly competitive few-shot CLIP performances. Furthermore, LP++ operates in black-box, relaxes intensive validation searches for the optimization hyper-parameters, and runs orders-of-magnitudes faster than state-of-the-art few-shot CLIP adaptation methods. Our code is available at: \url{https://github.com/FereshteShakeri/FewShot-CLIP-Strong-Baseline.git}.

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

↑