arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.08417cs.LGcs.CV
收藏

NeuCLIP: 通过神经归一化优化实现高效的大型CLIP训练

NeuCLIP: Efficient Large-Scale CLIP Training with Neural Normalizer Optimization

Texas A&M University(德克萨斯大学);National Taiwan University(台湾国立大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Xiyuan Wei, Chih-Jen Lin, Tianbao Yang

AI总结:

NeuCLIP通过神经归一化优化提升CLIP模型训练效率与性能

摘要:

准确估计对比损失中的归一化项(也称为分区函数)是训练对比语言-图像预训练(CLIP)模型的核心挑战。传统方法依赖于大批次进行近似,需要大量计算资源。为缓解这一问题,先前的工作引入了每样本归一化估计器,这些估计器以块状坐标方式在每个epoch中更新,以跟踪更新的编码器。然而,这种方案会引入与数据集大小与批次大小比值成比例的优化误差,限制了在大数据集或小批次情况下的效果。为克服这一限制,我们提出了NeuCLIP,一种基于两个关键思想的新颖且优雅的优化框架:(i) 通过凸分析将每个样本的对比损失重新公式化为带有辅助变量表示其对数归一化项的最小化问题;(ii) 通过变分分析将结果的n个辅助变量(n为数据集大小)的最小化转换为对紧凑神经网络的最小化,该网络预测对数归一化项。我们设计了一种交替优化算法,联合训练CLIP模型和辅助网络。通过为辅助网络设计定制架构和加速技术,NeuCLIP实现了更准确的归一化估计,从而在性能上优于先前方法。在覆盖数百万到数十亿样本的数据集上的大规模CLIP训练的广泛实验中,NeuCLIP均优于先前方法。代码可在https://github.com/Optimization-AI/NeuCLIP获取。

英文摘要:

Accurately estimating the normalization term (also known as the partition function) in the contrastive loss is a central challenge for training Contrastive Language-Image Pre-training (CLIP) models. Conventional methods rely on large batches for approximation, demanding substantial computational resources. To mitigate this issue, prior works introduced per-sample normalizer estimators, which are updated at each epoch in a blockwise coordinate manner to keep track of updated encoders. However, this scheme incurs optimization error that scales with the ratio of dataset size to batch size, limiting effectiveness for large datasets or small batches. To overcome this limitation, we propose NeuCLIP, a novel and elegant optimization framework based on two key ideas: (i) $\textbf{reformulating}$ the contrastive loss for each sample $\textbf{via convex analysis}$ into a minimization problem with an auxiliary variable representing its log-normalizer; and (ii) $\textbf{transforming}$ the resulting minimization over $n$ auxiliary variables (where $n$ is the dataset size) via $\textbf{variational analysis}$ into the minimization over a compact neural network that predicts the log-normalizers. We design an alternating optimization algorithm that jointly trains the CLIP model and the auxiliary network. By employing a tailored architecture and acceleration techniques for the auxiliary network, NeuCLIP achieves more accurate normalizer estimation, leading to improved performance compared with previous methods. Extensive experiments on large-scale CLIP training, spanning datasets from millions to billions of samples, demonstrate that NeuCLIP outperforms previous methods. Code is available at https://github.com/Optimization-AI/NeuCLIP.

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

↑