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

对比学习的最优样本复杂度

Optimal Sample Complexity of Contrastive Learning

Princeton University(普林斯顿大学);Northwestern University(西北大学);Institute for Advanced Study(高等研究院);Weizmann Institute of Science(魏茨曼科学研究所);George Mason University(乔治梅森大学)

Noga Alon, Dmitrii Avdiukhin, Dor Elboim, Orr Fischer, Grigory Yaroslavtsev

AI总结:

本文研究对比学习的样本复杂度,在任意分布和多种距离度量下给出紧界,证明学习 $n$ 点 $d$ 维 $\ell_p$-距离表示需要并仅需 $\tilde Θ(\min(nd,n^2))$ 个带标签元组,并表明 VC/Natarajan 维数理论界对深度学习实验具有预测力。

摘要:

对比学习是一种非常成功的技术,用于从带标签的元组中学习数据表示,这些元组指定了元组内的距离关系。我们研究了对比学习的样本复杂度,即获得高泛化精度所需的最少带标签元组数量。我们在多种设定下给出了样本复杂度的紧界,重点关注任意距离函数、一般的 $\ell_p$-距离以及树度量。我们的主要结果是在整数 $p$ 下学习 $\ell_p$-距离的(几乎)最优样本复杂度界。对于任意 $p \ge 1$,我们证明 $\tilde Θ(\min(nd,n^2))$ 个带标签元组对于学习 $n$ 点数据集的 $d$ 维表示是必要且充分的。我们的结果适用于输入样本的任意分布,并且基于对相关问题给出相应的 Vapnik-Chervonenkis/Natarajan 维数界。我们进一步表明,通过 VC/Natarajan 维数得到的样本复杂度理论界可以对实验结果具有很强的预测能力,这与关于统计学习理论与深度学习实践之间存在巨大差距的普遍看法形成对比。

英文摘要:

Contrastive learning is a highly successful technique for learning representations of data from labeled tuples, specifying the distance relations within the tuple. We study the sample complexity of contrastive learning, i.e. the minimum number of labeled tuples sufficient for getting high generalization accuracy. We give tight bounds on the sample complexity in a variety of settings, focusing on arbitrary distance functions, both general $\ell_p$-distances, and tree metrics. Our main result is an (almost) optimal bound on the sample complexity of learning $\ell_p$-distances for integer $p$. For any $p \ge 1$ we show that $\tilde Θ(\min(nd,n^2))$ labeled tuples are necessary and sufficient for learning $d$-dimensional representations of $n$-point datasets. Our results hold for an arbitrary distribution of the input samples and are based on giving the corresponding bounds on the Vapnik-Chervonenkis/Natarajan dimension of the associated problems. We further show that the theoretical bounds on sample complexity obtained via VC/Natarajan dimension can have strong predictive power for experimental results, in contrast with the folklore belief about a substantial gap between the statistical learning theory and the practice of deep learning.

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

↑