paper-with-me

홈 › Papers

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

2025-11-11 · Xiyuan Wei, Chih-Jen Lin, Tianbao Yang arxiv

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.

📄 PDF Abstract BibTeX arXiv:2511.08417

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

High-Performance Large-Scale Image Recognition Without Normalization

2021-02-11 · Andrew Brock, Soham De, Samuel L. Smith, Karen Simonyan

Batch normalization is a key component of most image classification models, but it has many undesirable properties stemming from its dependence on the batch size and interactions between examples. Although recent work ha…

image-classificationImage ClassificationVocal Bursts Intensity Prediction

On the accuracy of self-normalized log-linear models

2015-06-12 · NeurIPS 2015 12 · Jacob Andreas, Maxim Rabinovich, Dan Klein, Michael. I. Jordan

Calculation of the log-normalizer is a major computational obstacle in applications of log-linear models with large output spaces. The problem of fast normalizer computation has therefore attracted significant attention …

Generalization Bounds

Do Normalization Layers in a Deep ConvNet Really Need to Be Distinct?

2018-11-19 · Ping Luo, Zhanglin Peng, Jiamin Ren, Ruimao Zhang

Yes, they do. This work investigates a perspective for deep learning: whether different normalization layers in a ConvNet require different normalizers. This is the first step towards understanding this phenomenon. We al…

Is Batch Norm unique? An empirical investigation and prescription to emulate the best properties of common normalizers without batch dependence

2020-10-21 · Vinay Rao, Jascha Sohl-Dickstein

We perform an extensive empirical study of the statistical properties of Batch Norm and other common normalizers. This includes an examination of the correlation between representations of minibatches, gradient norms, an…

Removing Batch Normalization Boosts Adversarial Training

2022-07-04 · Haotao Wang, Aston Zhang, Shuai Zheng, Xingjian Shi 외

Adversarial training (AT) defends deep neural networks against adversarial attacks. One challenge that limits its practical application is the performance degradation on clean samples. A major bottleneck identified by pr…

Adversarial Robustness