arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2412.03871v1 [cs.CV] 05 Dec 2024

CLIP-PING: Boosting Lightweight Vision-Language Models with Proximus Intrinsic Neighbors Guidance

Chu Myaet Thwal    Ye Lin Tun    Minh N. H. Nguyen Affiliation: Kyung Hee University Vietnam-Korea University of Information and Communication Technology Affiliation: {chumyaet, yelintun, johnhuh, cshong}@khu.ac.kr nhnminh@vku.udn.vn    Eui-Nam Huh    Choong Seon Hong thanks: Corresponding author.
Abstract

Beyond the success of Contrastive Language-Image Pre-training (CLIP), recent trends mark a shift toward exploring the applicability of lightweight vision-language models for resource-constrained scenarios. These models often deliver suboptimal performance when relying solely on a single image-text contrastive learning objective, spotlighting the need for more effective training mechanisms that guarantee robust cross-modal feature alignment. In this work, we propose CLIP-PING: Contrastive Language-Image Pre-training with Proximus Intrinsic Neighbors Guidance, a simple and efficient training paradigm designed to boost the performance of lightweight vision-language models with minimal computational overhead and lower data demands. CLIP-PING bootstraps unimodal features extracted from arbitrary pre-trained encoders to obtain intrinsic guidance of proximus neighbor samples, i.e., nearest-neighbor (NN) and cross nearest-neighbor (XNN). We find that extra contrastive supervision from these neighbors substantially boosts cross-modal alignment, enabling lightweight models to learn more generic features with rich semantic diversity. Extensive experiments reveal that CLIP-PING notably surpasses its peers in zero-shot generalization and cross-modal retrieval tasks. Specifically, a 5.5% gain on zero-shot ImageNet1K with 10.7% (I2T) and 5.7% (T2I) on Flickr30K, compared to the original CLIP when using ViT-XS image encoder trained on 3 million (image, text) pairs. Moreover, CLIP-PING showcases strong transferability under the linear evaluation protocol across several downstream tasks.

1 Introduction

Recent advances in multi-modal contrastive representation learning [55, 36, 1, 16, 34, 4] have unlocked the potential of vision-language foundation models to effectively learn visual concepts from natural language supervision. Leveraging the complementary strengths of visual and textual data, Contrastive Language-Image Pre-training (CLIP) [36] swiftly gained notable attention for its impressive zero-shot generalization capability and excellent transferability to a wide range of downstream tasks. Yet, despite these strides, the computational burden and data-hungry nature of CLIP pose significant challenges to replicate and build upon these groundbreaking results [25, 23, 24, 41, 30], consequently imposing a serious barrier to its widespread application in resource-constrained scenarios.

Refer to caption
Figure 1: Comparison on zero-shot classification and retrieval performance using the ViT-XS [8] image encoder, trained on COCO+CC3M [27, 38] dataset with 3 million (image, text) pairs.

So far, most studies focus on scaling up models and expanding data volumes to boost performance [42, 16]; however, these approaches come at the cost of applicability. This in turn demands substantial computational resources, leading to quadratic increases in training times across numerous high-powered devices, restricting accessibility to a limited group of researchers at large institutions and tech companies [24, 23]. As model sizes grow, hardware requirements also escalate, further narrowing the potential range of deployment for vision-language models. Additionally, obtaining large quantities of high-quality paired data is often costly and challenging, particularly in domains where data privacy and confidentiality are crucial [17]. Evidently, this general trend toward large-scale language-image pre-training has become intractable for many practitioners. On the other hand, standard small-scale language-image pre-training typically results in suboptimal performance, as it relies solely on a single image-text contrastive learning objective, overlooking additional supervision that can be further derived from the data itself. These challenges trigger our efforts to develop more effective training mechanisms that strike a balance between model size, computational efficiency, and data requirements while preserving robust cross-modal alignment in resource-constrained settings.

To this end, some studies have explored distillation strategies that enable lightweight vision-language models (i.e., students) to mimic the learning behavior of larger pre-trained models (i.e., teachers) [46, 48, 40, 3, 49, 26]. Inspired by this concept, we introduce CLIP-PING: Contrastive Language-Image Pre-training with Proximus Intrinsic Neighbors Guidance, aimed to boost the potential of lightweight models in resource-constrained scenarios. In contrast to prior works on CLIP distillation [46, 48, 3, 49], CLIP-PING leverages features extracted from off-the-shelf pre-trained encoders, storing them frozen in auxiliary feature banks to provide intrinsic guidance from proximus neighbors without the need for explicit distillation. To keep neighbor retrieval efficient, we maintain two representative support sets of frozen features—one for each modality—as manageable subsets of auxiliary feature banks. This enables lightweight student encoders to capture rich knowledge of resource-intensive teacher encoders without extra computational burden or architectural constraints during training.

Beyond the typical image-text contrastive objective, CLIP-PING incorporates widespread supervision from semantically similar or neighboring samples across modalities. Nearest-neighbor contrastive learning [14, 47, 10, 28] enables models to leverage supervision from similar samples within the data. DeCLIP [24] further explores nearest-neighbor retrieval across modalities for cross-supervision, based on the notion that one image may have multiple semantically related text descriptions. Building on these insights, CLIP-PING draws on two primary sources of contrastive supervision from teacher encoders to boost the performance of student encoders. First, it obtains intra-modal supervision through nearest-neighbor (NN) samples of frozen features within each modality, encouraging feature alignment of similar images or text descriptions within the same feature space. Second, it leverages cross nearest-neighbor (XNN) samples (also from the same modality) for inter-modal supervision, encouraging indirect alignment between semantically related pairs across modalities, by cross-referencing NN frozen features. For instance, as shown in Fig. 2, for an image IkI_{k}, its XNN is identified as the image associated with NN text description of its paired text TkT_{k}. This dual-source supervision of CLIP-PING enables student encoders to learn more generic features with rich semantic diversity, while minimizing resource demands.

Refer to caption
Figure 2: Example of nearest-neighbor (NN) and cross nearest-neighbor (XNN) samples for (Ik,Tk)(I_{k},T_{k}) pair from COCO [27].

Our experiments show that CLIP-PING achieves superior performance over its counterparts in zero-shot classification and cross-modal retrieval tasks. As illustrated in Fig. 1, using ViT-XS [8] pre-trained on the combined COCO+CC3M [27, 38] dataset enables CLIP-PING to reach 22.7% zero-shot top-1 accuracy on ImageNet1K [6], along with 49.7% I2T and 35.4% T2I retrieval R@1 on Flickr30K [51]. These results surpass the original CLIP [36] by 5.5%, 10.7%, and 5.7%, respectively, without extra computational costs. Notably, scaling up computational resources further enhances the performance. In particular, A-CLIP-PING, which incorporates active teacher encoders for stronger guidance, delivers additional boosts by 1.4%, 2.9%, and 1.8%, with computational demands comparable to CLIP-KD [48]. CLIP-PING also demonstrates strong transferability in downstream tasks under the linear evaluation protocol. Our contributions are summarized as follows:

  • We propose CLIP-PING, an efficient training mechanism, to boost the performance of lightweight vision-language models in resource-constrained scenarios.

  • We leverage extracted features from unimodal pre-trained encoders, providing intrinsic guidance through nearest-neighbor (NN) and cross nearest-neighbor (XNN). These features are frozen in auxiliary feature banks, enabling lightweight vision-language models to efficiently capture rich knowledge of pre-trained encoders without extra computational burden or architectural constraints.

  • We explore intra-modal supervision through NN samples to enhance feature alignment within the same modality. We also incorporate inter-modal supervision through XNN samples, encouraging indirect alignment between semantically similar pairs across modalities.

  • Our experiments show efficacy and versatility of CLIP-PING across several benchmarks, highlighting its potential for applicability in resource-constrained scenarios.

2 Background and motivation

In this section, we review the evolution of contrastive language-image pre-training, with a highlight on recent advances in efficient training strategies. We also discuss the motivations that led to the development of CLIP-PING.

2.1 Contrastive Language-Image Pre-training

Learning transferable visual representations directly from natural language supervision has become increasingly predominant in computer vision [54, 9, 2]. Early studies played on semantically dense captions to learn meaningful visual concepts over image-caption pairs [12, 13, 21, 7, 37]. Recent works leverage contrastive learning to align visual and textual representations in a shared latent space [16, 34, 55, 36]. Notably, Contrastive Language-Image Pre-training (CLIP) [36] has gained significant traction due to its breakthrough in zero-shot multi-modal and unimodal visual tasks, utilizing the extensive WIT-400M private dataset. While CLIP-like models benefit from large datasets containing millions or billions of (image, text) pairs on the Internet [33, 44, 52, 4, 53], they rely heavily on large-scale training and typically demands substantial storage and computational resources, limiting applicability, especially in scenarios with limited data or resources. Consequently, there is a growing need for effective training strategies that optimize the trade-off between performance and efficiency of CLIP-like models in resource-constrained settings.

2.2 Advances in efficient CLIP strategies

While early iterations of CLIP-like models consistently yield better performance, they come with significant computational demands, as well as increased costs for large-scale data collection, storage, and processing [23]. To address these challenges, recent efforts have focused on making these models more accessible for widespread use in resource-constrained settings, like mobile and edge devices [46, 40]. To this point, numerous studies have explored knowledge distillation as a key compression technique to enable efficient training of smaller models (i.e., students) under the supervision of larger pre-trained models (i.e., teachers) [11, 46, 48, 22, 43]. For instance, TinyCLIP [46] introduces cross-modal distillation through affinity mimicking and weight inheritance mechanisms, while CLIP-KD [48] exploits several distillation strategies, including relational, feature-based, gradient-based, and contrastive paradigms. Additionally, MobileCLIP [40] introduces dataset reinforcement strategy to multi-modal setup, integrating knowledge from an ensemble of strong CLIP models and a pre-trained image captioning model to enhance learning efficiency. These innovations mark a shift toward more efficient language-image pre-training, aimed at improving accessibility for real-world applications.

2.3 Research motivations

Conversely, it is crucial for TinyCLIP [46] to share the same architectural-style between teacher and student models, limiting its flexibility for use with diverse architectures that might be better suited for specific tasks, such as those of specialized, lightweight student models. Meanwhile, CLIP-KD [48] involves balancing multiple complex distillation strategies across high-dimensional, multi-modal representations, which may lead to substantial computational and memory demands, posing challenges for implementation in low-resource settings. Moreover, typical knowledge distillation frameworks require several forward passes through large pre-trained teacher models, which becomes infeasible when dealing with models containing billions or trillions of parameters. These limitations raise several open research questions: 1) How can teacher and student models be effectively aligned without architectural constraints? 2) Can contrastive losses be optimized for semantic alignment across modalities without explicit distillation? and 3) Is there an alternative to traditional knowledge distillation that can address these challenges, enabling more resource-efficient contrastive language-image pre-training?

3 CLIP-PING Method

Refer to caption
Figure 3: Overview of the CLIP-PING pipeline. Unimodal feature extraction is performed prior to the multi-modal training, with extracted features stored frozen in auxiliary feature banks. Each feature support set is a representative of the corresponding auxiliary feature bank.

In response to the above questions, we propose an efficient training strategy that enhances lightweight CLIP-like vision-language models using Proximus Intrinsic Neighbors Guidance (PING), sourced from off-the-shelf, pre-trained encoders. Unlike previous approaches, CLIP-PING uniquely combines intra-modal and inter-modal supervision of frozen neighbor samples from pre-trained encoders via auxiliary feature banks. This enables lightweight models to draw upon rich semantic knowledge of pre-trained unimodal encoders in a computationally efficient manner, without architectural constraints or explicit distillation. In this section, we outline the CLIP-PING framework and describe its main components. The overall CLIP-PING pipeline is structured in two stages: unimodal feature extraction and multi-modal training, as illustrated in Fig. 3.

3.1 Unimodal Feature Extraction

Feature extractors.

Off-the-shelf encoders, pre-trained on large amounts of unimodal data, possess a rich semantic understanding of their respective modalities, providing a strong foundation for generating meaningful feature representations that can effectively guide lightweight models in multi-modal training. As an initial step of CLIP-PING, we leverage these pre-trained encoders — denoted as I\mathcal{F}_{I}^{*} and T\mathcal{F}_{T}^{*} — as our image and text feature extractors (i.e., teachers). Given a dataset of (image, text) pairs, 𝒟={(Ik,Tk)}k=1|𝒟|\mathcal{D}=\{(I_{k},T_{k})\}_{k=1}^{|\mathcal{D}|}, we compute feature representations of teacher encoders for each modality prior to the multi-modal training stage. Specifically, for each Ik,Tk𝒟I_{k},T_{k}\in\mathcal{D}, we obtain image features z~kI=I(Ik)\tilde{z}_{k}^{I}=\mathcal{F}_{I}^{*}(I_{k}) and text features z~kT=T(Tk)\tilde{z}_{k}^{T}=\mathcal{F}_{T}^{*}(T_{k}). To minimize computational requirements, we process each modality separately on a single GPU, ensuring that only one large-scale encoder is loaded into memory at a time. This preliminary feature extraction process enables efficient use of features generated by high-capacity teacher encoders, containing billions of parameters.

Auxiliary feature banks.

Once features are extracted from teacher encoders, they are frozen in reusable, auxiliary feature banks, i.e., I={z~kI}k=1|𝒟|\mathcal{B}_{I}^{*}=\{\tilde{z}_{k}^{I}\}_{k=1}^{|\mathcal{D}|} for image and T={z~kT}k=1|𝒟|\mathcal{B}_{T}^{*}=\{\tilde{z}_{k}^{T}\}_{k=1}^{|\mathcal{D}|} for text. These feature banks allow frozen features to be accessed efficiently for neighbor retrieval, ensuring intrinsic guidance from the pre-trained teacher encoders during the student training. This one-time unimodal feature extraction significantly streamlines the multi-modal training process, enabling computational efficiency, making CLIP-PING a resource-efficient solution for boosting the performance of lightweight vision-language models.

3.2 Multi-modal Training

Standard CLIP objective.

Following CLIP [36], we consider a dual-encoder architecture, comprising an image encoder I\mathcal{E}_{I} and a text encoder T\mathcal{E}_{T}, to jointly learn meaningful feature representations across modalities. For a batch of NN (image, text) pairs, i.e., {(Ik,Tk)}k=1N\{(I_{k},T_{k})\}_{k=1}^{N}, image and text features, zkI=I(Ik)z_{k}^{I}=\mathcal{E}_{I}(I_{k}) and zkT=T(Tk)z_{k}^{T}=\mathcal{E}_{T}(T_{k}), are obtained through each encoder branch. The objective is to learn the shared feature space, where corresponding images and texts are semantically aligned. To this end, we employ the standard CLIP objective [36] that ensures NN positive pairs to closely aligned while N2NN^{2}-N irrelevant pairs remain apart. Mathematically, this can be formalized as a symmetric function based on the InfoNCE [31, 55] loss, consisting of:

ITCLIP=1Nk=1Nlogexp(𝒮(zkI,zkT)/τ)j=1Nexp(𝒮(zkI,zjT)/τ),\mathcal{L}_{I\rightarrow T}^{\text{CLIP}}=-\frac{1}{N}\sum_{k=1}^{N}\log\frac{\exp(\mathcal{S}(z_{k}^{I},z_{k}^{T})/\tau)}{\sum_{j=1}^{N}\exp(\mathcal{S}(z_{k}^{I},z_{j}^{T})/\tau)}, (1)

and

TICLIP=1Nk=1Nlogexp(𝒮(zkT,zkI)/τ)j=1Nexp(𝒮(zkT,zjI)/τ),\mathcal{L}_{T\rightarrow I}^{\text{CLIP}}=-\frac{1}{N}\sum_{k=1}^{N}\log\frac{\exp(\mathcal{S}(z_{k}^{T},z_{k}^{I})/\tau)}{\sum_{j=1}^{N}\exp(\mathcal{S}(z_{k}^{T},z_{j}^{I})/\tau)}, (2)

where ITCLIP\mathcal{L}_{I\rightarrow T}^{\text{CLIP}} aligns image feature zkIz_{k}^{I} with its corresponding text feature zkTz_{k}^{T} by maximizing the similarity in-between, while TICLIP\mathcal{L}_{T\rightarrow I}^{\text{CLIP}} mirrors this. The similarity 𝒮(,)\mathcal{S}(\cdot,\cdot) is typically measured by the dot product between features, scaled by a learnable temperature parameter τ\tau. In summary, the overall image-text contrastive loss, CLIP\mathcal{L}^{\text{CLIP}}, is formulated as:

CLIP=12(ITCLIP+TICLIP).\mathcal{L}^{\text{CLIP}}=\frac{1}{2}(\mathcal{L}_{I\rightarrow T}^{\text{CLIP}}+\mathcal{L}_{T\rightarrow I}^{\text{CLIP}}). (3)

Intra-modal contrastive supervision through nearest-neighbors.

We leverage frozen features from each auxiliary feature bank (either image or text) to encourage each sample to be in close proximity with its semantically similar or nearest-neighbor (NN) samples within the feature bank. To achieve this, we maintain two support sets, 𝒬II\mathcal{Q}_{I}\subset\mathcal{B}_{I}^{*} and 𝒬TT\mathcal{Q}_{T}\subset\mathcal{B}_{T}^{*}, capturing representative subsets of frozen features from auxiliary feature banks. Specifically, image feature support set is 𝒬I={z~kI}k=1|𝒬I|\mathcal{Q}_{I}=\{\tilde{z}_{k}^{I}\}_{k=1}^{|\mathcal{Q}_{I}|}, and text feature support set is 𝒬T={z~kT}k=1|𝒬T|\mathcal{Q}_{T}=\{\tilde{z}_{k}^{T}\}_{k=1}^{|\mathcal{Q}_{T}|}. The underlying concept of NN retrieval is shown in Fig. 4, i.e., NN(z~):=argminq𝒬z~q2\text{NN}(\tilde{z}):=\underset{q\in\mathcal{Q}}{\mathrm{argmin}}||\tilde{z}-q||_{2} for each modality. Mathematically, intra-modal contrastive supervision through NN samples can be formalized as:

NNII=1Nk=1Nlogexp(𝒮(NN(z~kI),zkI)/τ)j=1Nexp(𝒮(NN(z~kI),zjI)/τ),\mathcal{L}_{\text{NN}_{I}\rightarrow I}=-\frac{1}{N}\sum_{k=1}^{N}\log\frac{\exp(\mathcal{S}(\text{NN}(\tilde{z}_{k}^{I}),z_{k}^{I})/\tau)}{\sum_{j=1}^{N}\exp(\mathcal{S}(\text{NN}(\tilde{z}_{k}^{I}),z_{j}^{I})/\tau)}, (4)

and

NNTT=1Nk=1Nlogexp(𝒮(NN(z~kT),zkT)/τ)j=1Nexp(𝒮(NN(z~kT),zjT)/τ),\mathcal{L}_{\text{NN}_{T}\rightarrow T}=-\frac{1}{N}\sum_{k=1}^{N}\log\frac{\exp(\mathcal{S}(\text{NN}(\tilde{z}_{k}^{T}),z_{k}^{T})/\tau)}{\sum_{j=1}^{N}\exp(\mathcal{S}(\text{NN}(\tilde{z}_{k}^{T}),z_{j}^{T})/\tau)}, (5)

where both losses are symmetric. Thus, supervision from image NN is defined by:

INN=12(NNII+INNI).\mathcal{L}_{I}^{\text{NN}}=\frac{1}{2}(\mathcal{L}_{\text{NN}_{I}\rightarrow I}+\mathcal{L}_{I\rightarrow\text{NN}_{I}}). (6)

Likewise, supervision from text NN is defined by:

TNN=12(NNTT+TNNT).\mathcal{L}_{T}^{\text{NN}}=\frac{1}{2}(\mathcal{L}_{\text{NN}_{T}\rightarrow T}+\mathcal{L}_{T\rightarrow\text{NN}_{T}}). (7)

The overall objective for intra-modal contrastive supervision through frozen NN samples, NNPING\mathcal{L}_{\text{NN}}^{\text{PING}}, is formulated as:

NNPING=INN+TNN.\mathcal{L}_{\text{NN}}^{\text{PING}}=\mathcal{L}_{I}^{\text{NN}}+\mathcal{L}_{T}^{\text{NN}}. (8)

By incorporating intra-modal contrastive supervision in this way, CLIP-PING enables student encoders to capture rich semantic features of teacher encoders, which improves the robustness and strengthens alignment within each modality.

Refer to caption
Figure 4: Illustrative example for nearest-neighbor (NN) and cross nearest-neighbor (XNN) retrieval.

Inter-modal contrastive supervision through cross nearest-neighbors.

We explore cross nearest-neighbor (XNN) samples within each modality, by cross-referencing frozen NN features to obtain more diverse supervisory signals from the dataset. As illustrated in Fig. 4, for a frozen image feature z~kI\tilde{z}_{k}^{I}, its XNN is identified as the image sample associated with NN of frozen text feature z~kT\tilde{z}_{k}^{T}, i.e., XNN(z~kI):=z~iI𝒬I\text{XNN}(\tilde{z}_{k}^{I}):=\tilde{z}_{i}^{I}\in\mathcal{Q}_{I}, where z~iT=NN(z~kT)\tilde{z}_{i}^{T}=\text{NN}(\tilde{z}_{k}^{T}) for ii-th pair (z~iI,z~iT)(\tilde{z}_{i}^{I},\tilde{z}_{i}^{T}). Likewise, for a frozen text feature z~kT\tilde{z}_{k}^{T}, XNN(z~kT):=z~iT𝒬T\text{XNN}(\tilde{z}_{k}^{T}):=\tilde{z}_{i}^{T}\in\mathcal{Q}_{T}, where z~iI=NN(z~kI)\tilde{z}_{i}^{I}=\text{NN}(\tilde{z}_{k}^{I}) for ii-th pair (z~iI,z~iT)(\tilde{z}_{i}^{I},\tilde{z}_{i}^{T}). Mathematically, inter-modal contrastive supervision through XNN samples can be formalized as:

XNNII=1Nk=1Nlogexp(𝒮(XNN(z~kI),zkI)/τ)j=1Nexp(𝒮(XNN(z~kI),zjI)/τ),\mathcal{L}_{\text{XNN}_{I}\rightarrow I}=-\frac{1}{N}\sum_{k=1}^{N}\log\frac{\exp(\mathcal{S}(\text{XNN}(\tilde{z}_{k}^{I}),z_{k}^{I})/\tau)}{\sum_{j=1}^{N}\exp(\mathcal{S}(\text{XNN}(\tilde{z}_{k}^{I}),z_{j}^{I})/\tau)}, (9)

and

XNNTT=1Nk=1Nlogexp(𝒮(XNN(z~kT),zkT)/τ)j=1Nexp(𝒮(XNN(z~kT),zjT)/τ),\mathcal{L}_{\text{XNN}_{T}\rightarrow T}=-\frac{1}{N}\sum_{k=1}^{N}\log\frac{\exp(\mathcal{S}(\text{XNN}(\tilde{z}_{k}^{T}),z_{k}^{T})/\tau)}{\sum_{j=1}^{N}\exp(\mathcal{S}(\text{XNN}(\tilde{z}_{k}^{T}),z_{j}^{T})/\tau)}, (10)

where both losses are symmetric. Thus, supervision from image XNN is defined by:

IXNN=12(XNNII+IXNNI).\mathcal{L}_{I}^{\text{XNN}}=\frac{1}{2}(\mathcal{L}_{\text{XNN}_{I}\rightarrow I}+\mathcal{L}_{I\rightarrow\text{XNN}_{I}}). (11)

Likewise, supervision from text XNN is defined by:

TXNN=12(XNNTT+TXNNT).\mathcal{L}_{T}^{\text{XNN}}=\frac{1}{2}(\mathcal{L}_{\text{XNN}_{T}\rightarrow T}+\mathcal{L}_{T\rightarrow\text{XNN}_{T}}). (12)

The overall objective for inter-modal contrastive supervision through frozen XNN samples, XNNPING\mathcal{L}_{\text{XNN}}^{\text{PING}}, is formulated as:

XNNPING=IXNN+TXNN.\mathcal{L}_{\text{XNN}}^{\text{PING}}=\mathcal{L}_{I}^{\text{XNN}}+\mathcal{L}_{T}^{\text{XNN}}. (13)

By incorporating inter-modal contrastive supervision in this way, CLIP-PING encourages indirect alignment for semantically similar pairs of frozen features, enabling student encoders to capture richer latent features across modalities.

Supervision with PING objective.

Together, the intra-modal and inter-modal supervision enables the learning of more generic features with enriched semantic diversity. The overall PING objective can be summarized as:

PING=(1α)NNPING+αXNNPING.\mathcal{L}^{\text{PING}}=(1-\alpha)\cdot\mathcal{L}_{\text{NN}}^{\text{PING}}+\alpha\cdot\mathcal{L}_{\text{XNN}}^{\text{PING}}. (14)

Here, α\alpha is a tunable hyperparameter to control the weight, balancing between intra-modal and inter-modal guidance.

Final CLIP-PING Objective.

By integrating CLIP objective with PING supervision, we leverage the strengths of cross-modal contrastive alignment with rich, diverse supervision introduced by intrinsic neighbors (i.e., NN and XNN). Thus, the final CLIP-PING objective, CLIP-PING\mathcal{L}^{\text{CLIP-PING}}, is:

CLIP-PING=(1λ)CLIP+λPING,\mathcal{L}^{\text{CLIP-PING}}=(1-\lambda)\cdot\mathcal{L}^{\text{CLIP}}+\lambda\cdot\mathcal{L}^{\text{PING}}, (15)

where λ\lambda is a tunable hyperparameter that controls the contribution of PING\mathcal{L}^{\text{PING}} relative to the standard CLIP loss, CLIP\mathcal{L}^{\text{CLIP}}. This combined CLIP-PING objective effectively boosts lightweight models by leveraging knowledge from pre-trained encoders, while significantly reducing computational requirements, thus making CLIP-PING ideal for multi-modal training in resource-constrained settings.

4 Experiments

In this section, we provide implementation details and present extensive evaluation results that demonstrate the effectiveness of CLIP-PING across several benchmarks.

4.1 Implementation Details

We implement our experiments using PyTorch [32] and the Timm [45] library. Experiments using the dataset of 600K (image, text) pairs are run on a single NVIDIA RTX A6000 GPU with 48GB memory, while experiments using the dataset of 3M (image, text) pairs are conducted on a single NVIDIA A100 GPU with 40GB memory.

Training datasets.

We use the COCO [27] dataset, which contains 600K (image, text) pairs, i.e., 118K images, each with 5 text descriptions. We also explore another training set, where we combine COCO [27] with the Conceptual Captions 3M (CC3M) [38]. Due to download issues, we only obtained 2.3M pairs from CC3M, bringing the total size of the combined dataset to about 3M (image, text) pairs. As our primary focus is on resource-constrained scenarios, we intentionally avoid using larger Internet-scale datasets, commonly employed in several recent works, to prioritize computational efficiency and reduce storage demands.

Unimodal feature extractors.

By default, we use ResNet-v2-50 [19, 15] for image features and BERT-Base [18] (with BertTokenizer and a maximum context length of 55) for text, both initialized with pre-trained weights available on HuggingFace (i.e., timm/resnetv2_50x1_bit.goog_in21k_ft_in1k and google-bert/bert-base-uncased). Feature representations are extracted without data augmentation and stored in pickle format for efficient access during training.

Architectures.

We consider MobileBERTTINY [39] (with MobileBertTokenizer and a maximum context length of 55) as our text encoder and explore three variations of image encoders, each representing different architectural paradigms: ViT-XS [8] (a smaller transformer-based model), ConvNeXt-Pico [29] (a compact convolutional network), and MNv4-Hybrid-M [35] (a hybrid variant of MobileNetv4 model). Specifications of encoders are listed in Table 1. Unless otherwise stated, we use ViT-XS and MobileBERTTINY as the default pair for ablations and analysis. Each encoder is paired with a projection head, a two-layer MLP with GELU non-linearity for the first layer.

Image Encoder Type #Params
Text Encoder
Transformer
#Params
Total
#Params
ViT-XS [8] ViT 8.3M MobileBERTTINY [39] 14.2M 22.5M
ConvNeXt-Pico [29] CNN 8.9M 23.1M
MNv4-Hybrid-M [35] Hybrid 11.7M 25.9M
Table 1: Specifications of image and text encoders.

Baselines.

We compare CLIP-PING against the original CLIP [36] and CLIP-KD [48], which combines feature distillation (FD), interactive contrastive learning (ICL), and contrastive relational distillation (CRD). For experiments with COCO [27], we include additional comparisons with traditional CLIP distillation (CLIP-D), and an efficient CLIP distillation using auxiliary feature banks (CLIP-F).

Training details.

All lightweight models are trained from scratch for 35 epochs, applying a cosine learning rate scheduler with a linear warm-up over the first 5 epochs. Training batch size is 1024 and AdamW optimizer with a weight decay of 1e-5 is used. Initial learning rates of image and text encoders are 3e-3 and 1e-3, respectively. Input images are resized to 224×224224\times 224, with RandomResizedCrop as the sole data augmentation during training. We use gradient checkpointing and automatic mixed precision to improve memory efficiency and accelerate training. The learnable temperature τ\tau is initialized at 0.07, and the projection dimension is 256. By default, we set the supervision loss weight values as α=0.25\alpha=0.25 and λ=0.6\lambda=0.6. Our support set is implemented as a first-in-first-out (FIFO) queue, with a size of 32,768. More details are provided in the supplementary material.

4.2 Evaluation results

Downstream tasks, datasets, and metrics.

Models are evaluated across several downstream tasks, including cross-modal retrieval, zero-shot classification, and linear evaluation to assess the efficacy of CLIP-PING. For cross-modal retrieval, we use the CC3M [38] validation set, i.e., 13K (image, text) pairs, and the COCO [27] validation set, i.e., 5K images, each with 5 text descriptions. Additionally, we use the Flickr30K [51] test set, i.e., 1K images, each with 5 text descriptions, for zero-shot cross-modal retrieval. Retrieval performance is measured with Recall@K metrics, i.e., R@1 for image-to-text (I2T) and text-to-image (T2I). For zero-shot classification, evaluations are conducted on STL-10 [5], CIFAR-10, CIFAR-100 [20], Stanford 40 Actions [50], and ImageNet1K [6], while linear evaluation is performed on STL-10, CIFAR-10, CIFAR-100, and ImageNet1K. We follow the prompt engineering of CLIP, with specific settings for the Stanford 40 Actions dataset provided in the supplementary material. Top-1 accuracy (Acc) is used as the primary metric for classification tasks, and we report the average across all datasets as “Avg”.

Method Memory COCO [27] Flickr30K [51]
(MiB) \downarrow I2T@1 T2I@1 I2T@1 T2I@1
Model: ViT-XS [8] + MobileBERTTINY [39]
CLIP 11074 20.4 14.3 19.1 14.7
CLIP-D 25032 23.5 16.0 26.4 18.2
CLIP-F 11192 21.2 14.4 23.9 16.5
CLIP-KD 25036 21.4 15.6 22.4 16.1
CLIP-PING (ours) 11580 24.7 18.4 28.1 20.2
A-CLIP-PING (ours) 25370 27.6 20.8 30.3 22.3
Model: ConvNeXt-Pico [29] + MobileBERTTINY [39]
CLIP 16126 21.3 15.9 21.5 16.4
CLIP-D 28456 26.3 18.8 28.1 20.1
CLIP-F 16130 24.2 17.1 25.2 17.6
CLIP-KD 28460 24.7 18.7 24.6 18.7
CLIP-PING (ours) 16874 27.3 20.3 29.6 20.8
A-CLIP-PING (ours) 28792 30.0 22.2 31.9 23.8
Model: MNv4-Hybrid-M [35] + MobileBERTTINY [39]
CLIP 16696 21.7 15.9 21.1 16.9
CLIP-D 31772 27.0 19.8 25.3 20.2
CLIP-F 16696 24.1 18.0 22.7 17.3
CLIP-KD 31780 26.4 19.9 24.2 18.3
CLIP-PING (ours) 17050 27.8 21.1 29.9 21.5
A-CLIP-PING (ours) 32110 31.9 24.1 32.8 24.9
Table 2: Cross-modal retrieval performance for models trained on COCO [27]. The best results are marked in bold. Memory usage is recorded on a single NVIDIA RTX A6000 GPU.
Method STL-10 CIFAR-10 CIFAR-100 IN-1K Avg
Pre-training Dataset: COCO [27] (600K)
CLIP 80.6 66.3 39.8 - 62.2
CLIP-D 83.2 68.0 45.8 - 65.7
CLIP-F 82.4 67.6 43.0 - 64.3
CLIP-KD 81.7 66.7 42.4 - 63.6
CLIP-PING (ours) 84.9 69.6 45.9 - 66.8
A-CLIP-PING (ours) 87.9 75.3 50.3 - 71.2
Pre-training Dataset: COCO + CC3M [27, 38] (3M)
CLIP 90.2 75.2 50.5 46.5 65.6
CLIP-KD 91.7 75.2 52.9 50.2 67.5
CLIP-PING (ours) 94.1 80.4 58.1 55.7 72.1
A-CLIP-PING (ours) 95.6 86.7 67.2 58.4 77.0
Table 3: Comparison on linear evaluation performance. The best results are marked in bold. ViT-XS [8] is the image encoder.

Cross-modal retrieval.

Tables 2 and 4 show performance comparison on cross-modal retrieval task, highlighting CLIP-PING’s consistent improvements across all three lightweight vision-language models. Table 2 summarizes results for models trained on COCO [27], and Tab. 4 provides results for the combined dataset. Notably, CLIP-PING demonstrates robustness across various architectures. The computational overhead of CLIP-PING is minimal compared to explicit distillation methods like CLIP-D and CLIP-KD [48], while remaining as efficient as the original CLIP [49]. Essentially, CLIP-PING achieves competitive performance without the resource-intensive processes required by distillation-based methods. This efficiency likely stems from the way CLIP-PING leverages frozen pre-trained features, which reduces the need for repeated calculations typically associated with training. We also observed that increasing computational resources further enhances performance. Specifically, we find that Active CLIP-PING (A-CLIP-PING) with active teacher encoders for stronger guidance during training, replacing the feature extraction stage, delivers additional performance boosts, for instance, 2.9% and 1.8% improvements on zero-shot Flickr30K [51] retrieval for ViT-XS [8] image encoder trained on COCO+CC3M [27, 38] dataset with computational demands remain comparable to CLIP-KD [48].

Method Memory CC3M [38] COCO [27] Flickr30K [51]
(MiB) \downarrow I2T@1 T2I@1 I2T@1 T2I@1 I2T@1 T2I@1
Model: ViT-XS [8] + MobileBERTTINY [39]
CLIP 11379 23.6 23.9 32.6 22.6 39.0 29.7
CLIP-KD 25305 26.3 26.1 35.1 24.3 44.2 32.6
CLIP-PING (ours) 11885 26.4 26.8 35.0 25.5 49.7 35.4
A-CLIP-PING (ours) 25639 27.9 28.4 37.9 27.0 52.6 37.2
Model: ConvNeXt-Pico [29] + MobileBERTTINY [39]
CLIP 16299 23.1 23.8 35.2 24.8 45.1 33.1
CLIP-KD 28633 28.0 28.3 39.8 28.9 52.1 38.6
CLIP-PING (ours) 18615 28.6 28.9 37.8 27.0 52.7 38.4
A-CLIP-PING (ours) 28965 29.6 29.4 40.0 29.3 54.4 40.6
Model: MNv4-Hybrid-M [35] + MobileBERTTINY [39]
CLIP 15747 23.9 24.3 33.7 24.2 42.0 32.8
CLIP-KD 30831 27.5 27.6 38.6 27.1 49.8 36.1
CLIP-PING (ours) 16101 28.1 28.3 39.4 28.6 52.0 40.2
A-CLIP-PING (ours) 31161 30.5 30.2 41.5 31.3 54.7 41.6
Table 4: Cross-modal retrieval performance for models trained on COCO+CC3M [27, 38]. The best results are marked in bold. Memory usage is recorded on a single NVIDIA A100 GPU.
Method STL-10 CIFAR-10 CIFAR-100 SA-40 IN-1K Avg
Pre-training Dataset: COCO [27] (600K)
CLIP 66.7 25.1 7.7 32.2 - 32.9
CLIP-D 71.4 41.8 12.1 38.3 - 40.9
CLIP-F 69.2 40.2 11.7 36.1 - 39.3
CLIP-KD 64.9 26.3 7.5 32.2 - 32.7
CLIP-PING (ours) 71.4 41.6 13.0 38.6 - 41.2
A-CLIP-PING (ours) 75.1 50.1 17.3 41.2 - 45.9
Pre-training Dataset: COCO + CC3M [27, 38] (3M)
CLIP 82.7 59.5 24.6 52.3 17.2 47.3
CLIP-KD 83.9 64.8 25.7 57.3 18.6 50.1
CLIP-PING (ours) 87.1 71.9 31.3 61.1 22.7 54.8
A-CLIP-PING (ours) 89.4 76.9 42.0 63.7 24.1 59.2
Table 5: Comparison on zero-shot classification performance. The best results are marked in bold. ViT-XS [8] is the image encoder.

Linear evaluation.

We train a linear classifier for 30 epochs with a batch size of 512. The Adam optimizer is used, with a cosine learning rate scheduler and an initial learning rate of 1e-2. As shown in Tab. 3, CLIP-PING outperforms other methods by a notable gap, illustrating an improvement of 4.6% over CLIP-KD [48] for average when evaluating the ViT-XS [8] image encoder trained on COCO+CC3M [27, 38]. Moreover, the A-CLIP-PING variant delivers an additional 4.9% performance boost.

α\alpha Flickr30K [51] ZS
I2T@1 T2I@1 Avg
0 26.4 18.9 38.0
0.25 28.1 20.2 41.2
0.5 27.4 19.2 40.0
0.75 24.9 18.4 36.7
1 20.6 16.5 35.1
(a) The α\alpha effect.
λ\lambda Flickr30K [51] ZS
I2T@1 T2I@1 Avg
0.2 23.3 16.9 35.5
0.4 24.9 18.7 39.0
0.6 28.1 20.2 41.2
0.8 24.5 17.2 40.8
(b) The λ\lambda effect.
Table 6: Influence of loss weights α\alpha and λ\lambda on retrieval performance for Flickr30K [51] and average zero-shot top-1 accuracy across four datasets using ViT-XS [8] pre-trained on COCO [27] dataset. The best results are marked in bold.

Zero-shot classification.

As shown in Tab. 5, CLIP-PING consistently outperforms competing methods in zero-shot image classification across all datasets. Specifically, it achieves an average performance improvement of 4.7% over CLIP-KD [48] with the ViT-XS [8] image encoder trained on COCO+CC3M [27, 38] dataset. The A-CLIP-PING variant provides additional 4.4% performance boost.

4.3 Ablation studies

Influence of α\alpha.

As shown in Tab. 6(a), we explore the effect of supervision loss weight α\alpha in Eq. 14. As α\alpha increases, emphasizing more weight on XNN supervision, the performance gradually declines. However, the drop in performance saturates at α=0.25\alpha=0.25, suggesting that CLIP-PING benefits both from NN and XNN supervision. This indicates that both forms of supervision contribute positively, with α=0.25\alpha=0.25 being the optimal choice to balance them.

Influence of λ\lambda.

As shown in Tab. 6(b), we examine the effect of loss weight λ\lambda in Eq. 15. Performance gradually improves with increasing λ\lambda up to 0.6, after which it plateaus, indicating that intrinsic neighbors guidance boosts training while CLIP-PING continues to benefit from foundational cross-modal contrastive alignment.

|Q||Q| Flickr30K [51] ZS
I2T@1 T2I@1 Avg
8192 25.4 18.9 39.3
16384 27.0 19.7 40.2
32768 28.1 20.2 41.2
65536 25.2 20.0 40.9
98304 24.3 19.1 40.4
(a) Support set size.
kk Flickr30K [51] ZS
I2T@1 T2I@1 Avg
1 28.1 20.2 41.2
2 25.5 19.2 40.6
4 26.2 19.3 38.2
8 24.6 18.7 39.5
16 26.7 18.1 38.7
(b) Top-kk neighbors.
Table 7: Impact of support set size |Q||Q| and top-kk neighbors on retrieval performance for Flickr30K [51] and average zero-shot top-1 accuracy across four datasets, using ViT-XS [8] pre-trained on COCO [27] dataset. The bast results are marked in bold.
Method Flickr30K [51] ZS
I2T@1 T2I@1 Avg
CLIP-D 25.5 16.8 39.1
CLIP-F 20.0 15.8 37.3
CLIP-KD 21.8 15.3 33.5
CLIP-PING 25.1 17.9 39.2
A-CLIP-PING 27.8 19.4 40.7
(a) The ViT-B/16 [8] effect.
Super- vision Flickr30K [51] ZS
I2T@1 T2I@1 Avg
both 28.1 20.2 41.2
txt only 22.0 16.8 34.6
img only 23.6 17.7 38.8
(b) Supervision source.
Table 8: Ablation on feature extractor and supervision source on retrieval performance for Flickr30K [51] and average zero-shot top-1 accuracy across four datasets using ViT-XS [8] pre-trained on COCO [27] dataset. The best results are marked in bold.

Impact of support set size.

Table 7(a) presents the results of varying the support set size |Q||Q|. As the support set grows, it increases the chance of retrieving a closer NN within the dataset. However, increasing the support set size beyond 32,768 does not yield additional performance gains.

Impact of Top-kk neighbors.

In Tab. 7(b), we explore the impact of selecting one random neighbor from the top-kk NN instead of the closest neighbor. We find that increasing kk beyond 1 slightly degrades performance, suggesting that the nearest-neighbor strategy offers clearer guidance, while other neighbors may introduce noise.

Impact of unimodal feature extractor.

In Tab. 8(a), we employ ViT-B/16 [8], pre-trained on ImageNet [6] (i.e., vit_base_patch16_224) as our image teacher or feature extractor and analyze its effect on performance. Notably, our CLIP-PING variants still outperform other methods.

Impact of supervision modality.

In Tab. 8(b), we analyze the effect of supervision sources: both image and text supervision (default), with only text supervision (w/o INN\mathcal{L}_{I}^{\text{NN}} and IXNN\mathcal{L}_{I}^{\text{XNN}} in Eqs. 8 and 13), and with only image supervision (w/o TNN\mathcal{L}_{T}^{\text{NN}} and TXNN\mathcal{L}_{T}^{\text{XNN}} in Eqs. 8 and 13). We observed that CLIP-PING benefits equally from both supervision.

5 Conclusion

In this work, we proposed CLIP-PING: Contrastive Language-Image Pre-training with Proximus Intrinsic Neighbors Guidance, an efficient training paradigm, to boost the performance of lightweight vision-language models. By leveraging off-the-shelf pre-trained encoders and incorporating intra-modal and inter-modal supervision through frozen nearest neighbor samples, CLIP-PING significantly improves the representation learning capabilities of lightweight models, while reducing the computational and data demands. Extensive experiments demonstrate the effectiveness of CLIP-PING in zero-shot classification and cross-modal retrieval tasks, achieving competitive performance even with limited resources. Additionally, CLIP-PING exhibits strong transferability under linear evaluation protocol across several downstream tasks, making it a promising solution for efficient training of lightweight vision-language models in resource-constrained scenarios.

6 Additional Implementation Details

Unimodal feature extractors.

Table 9 presents the specifications of pre-trained unimodal feature extractors used in our experiments, along with feature extraction time, memory usage, and feature bank size for each training dataset. Each process was conducted with a batch size of 2048, on a single NVIDIA RTX A6000 GPU with 48GB memory. The extracted features are stored in individual pickle files for efficient access during the training of CLIP-F and CLIP-PING. During training, when there is a dimension difference between frozen features and those of lightweight encoders, a linear adapter is applied to the frozen features to match their dimensions.

Feature Extractor Memory (MiB)
COCO [27]
(600K)
COCO + CC3M
[27, 38] (3M)
Image Encoder Type #Params
Feat.
dim
Size
(GB)
Time
(hours)
Size
(GB)
Time
(hours)
ResNet-v2-50 [19, 15] CNN 23.5M 2048 43734 4.6 0.12 22.1 0.56
ViT-B/16 [8] ViT 85.8M 768 21952 1.7 0.38 8.5 1.85
Text Encoder: Transformer 109.5M 768 7644 1.7 0.13 8.5 0.60
BERT-Base [18]
Table 9: Specifications of unimodal feature extractors.

Baselines.

For CLIP [36], we employ the standard image-text contrastive loss, i.e., Eq. (3). CLIP-D and CLIP-F integrate a distillation loss [40] into the standard contrastive loss with loss weight set to λ=0.75\lambda=0.75, as denoted by:

CLIP-Distill\displaystyle\mathcal{L}^{\text{CLIP-Distill}} =(1λ)CLIP+λDistill,\displaystyle=(1-\lambda)\cdot\mathcal{L}^{\text{CLIP}}+\lambda\cdot\mathcal{L}^{\text{Distill}}, (16)
Distill\displaystyle\mathcal{L}^{\text{Distill}} =12(DistillI2T+DistillT2I),\displaystyle=\frac{1}{2}(\mathcal{L}_{\text{Distill}}^{\text{I2T}}+\mathcal{L}_{\text{Distill}}^{\text{T2I}}), (17)

where DistillI2T\mathcal{L}_{\text{Distill}}^{\text{I2T}} and DistillT2I\mathcal{L}_{\text{Distill}}^{\text{T2I}} are KL-divergence losses. In CLIP-F, pre-computed frozen features, similar to those used in CLIP-PING, are utilized. For CLIP-KD [48], we implement the objective function as specified in its original paper:

CLIP-KD\displaystyle\mathcal{L}^{\text{CLIP-KD}} =CLIP+λKD,\displaystyle=\mathcal{L}^{\text{CLIP}}+\lambda\cdot\mathcal{L}^{\text{KD}}, (18)

where KD\mathcal{L}^{\text{KD}} is the combination FD+CRD+ICL\mathcal{L}^{\text{FD}}+\mathcal{L}^{\text{CRD}}+\mathcal{L}^{\text{ICL}}: Feature Distillation (FD), Contrastive Relational Distillation (CRD) and Interactive Contrastive Learning (ICL), with loss weights set to λFD=2000\lambda_{FD}=2000, and λCRD=λICL=1\lambda_{CRD}=\lambda_{ICL}=1.

Additional baseline.

Following the official repository, we implemented DeCLIP [24] and trained it on the COCO [27] dataset. Since DeCLIP requires encoding each (image, text) pair twice and relies heavily on data augmentation, it incurs significantly higher computational costs. To manage GPU memory constraints, we reduced the batch size by half, from 1024 to 512. Additionally, due to training instability, we adjusted the learning rates to 1.5e-3 for the image encoder and 2.5e-4 for the text encoder. Training DeCLIP with the MNv4-Hybrid-M [35] image encoder on the COCO [27] (600K) dataset for 35 epochs required approximately 24 hours on a single NVIDIA RTX A6000 GPU—2.4×\times longer than CLIP-PING and 1.5×\times longer than A-CLIP-PING. Given the prolonged training duration and suboptimal performance on cross-modal retrieval tasks, we limited our experiments with DeCLIP. Notably, while DeCLIP is designed to learn visual representations through the use of broader and scalable supervision in data-efficient settings, its performance with lightweight models in our evaluations fell short of CLIP-PING. Table 10 summarizes the results, highlighting the superior performance and efficiency of CLIP-PING over DeCLIP.

Method Memory (MiB)\downarrow Time (hours)\downarrow COCO [27] Flickr30K [51] ZS Avg
I2T@1 T2I@1 I2T@1 T2I@1
Model: ViT-XS [8] + MoblileBERTTINY [39]
DeCLIP512 27080 0.52 7.8 6.5 9.0 7.1 36.7
CLIP-PING (ours) 11580 0.19 24.7 18.4 28.1 20.2 41.2
Model: ConvNeXt-Pico [29] + MoblileBERTTINY [39]
DeCLIP512 31362 0.63 8.7 7.8 7.2 7.1 38.2
CLIP-PING (ours) 16874 0.25 27.3 20.3 29.6 20.8 41.8
Model: MNv4-Hybrid-M [35] + MoblileBERTTINY [39]
DeCLIP512 31320 0.68 11.2 9.8 10.3 8.7 39.0
CLIP-PING (ours) 17050 0.28 27.8 21.1 29.9 21.5 42.3
Table 10: Comparison with DeCLIP [24] on cross-modal retrieval tasks and average zero-shot top-1 accuracy across four datasets. DeCLIP is trained with a batch size of 512. The best results are marked in bold. Memory usage and wall-clock time for training one epoch are measured on a single NVIDIA RTX A6000 GPU.

Training efficiency.

Table 11 reports memory usage and wall-clock times for training one epoch with a batch size of 1024. Each epoch comprises 577 iterations for the COCO [27] (600K) dataset and 2,799 iterations for the COCO + CC3M [27, 38] (3M) dataset. While CLIP-KD [48] is approximately 1.3×\times to 1.8×\times slower than standard CLIP training, CLIP-PING maintains a comparable efficiency. Additionally, A-CLIP-PING strikes a compelling balance between computational cost and performance gains.

Algorithm of CLIP-PING.

We provide a detailed algorithm of CLIP-PING in Algorithm 1.

Algorithm 1 CLIP-PING
0:  pre-trained encoders I\mathcal{F}_{I}^{*} and T\mathcal{F}_{T}^{*}, dataset 𝒟={(Ik,Tk)}k=1|𝒟|\mathcal{D}=\{(I_{k},T_{k})\}_{k=1}^{|\mathcal{D}|}, loss weights (α,λ)(\alpha,\lambda), batch size NN
0:  lightweight vision-language model (ICLOSE(\mathcal{E}_{I}, OPENT)\mathcal{E}_{T}) *****/*** Unimodal Feature Extraction ***/*****
1:Initialize: auxiliary feature banks I\mathcal{B}_{I}^{*} and T\mathcal{B}_{T}^{*}
2:for kk in range(|D||D|) do
3:   Iz~kI\mathcal{B}_{I}^{*}\leftarrow\tilde{z}_{k}^{I}, where z~kI=I(Ik)\tilde{z}_{k}^{I}=\mathcal{F}_{I}^{*}(I_{k}) # extract image features and store them frozen in image auxiliary feature bank
4:   Tz~kT\mathcal{B}_{T}^{*}\leftarrow\tilde{z}_{k}^{T}, where z~kT=T(Tk)\tilde{z}_{k}^{T}=\mathcal{F}_{T}^{*}(T_{k}) # extract text features and store them frozen in text auxiliary feature bank
5:end for*****/*** Multi-modal Training ***/*****
6:Initialize: lightweight vision-language model (ICLOSE(\mathcal{E}_{I}, OPENT)\mathcal{E}_{T}), support sets 𝒬II\mathcal{Q}_{I}\subset\mathcal{B}_{I}^{*} and 𝒬TT\mathcal{Q}_{T}\subset\mathcal{B}_{T}^{*}
7:while training do
8:   for kk in range(NN) do
9:    zkI=I(Ik)z_{k}^{I}=\mathcal{E}_{I}(I_{k}),  z~kII(Ik)\tilde{z}_{k}^{I}\leftarrow\mathcal{B}_{I}^{*}(I_{k}) # extract image features and get corresponding frozen features
10:    zkT=T(Tk)z_{k}^{T}=\mathcal{E}_{T}(T_{k}),  z~kTT(Tk)\tilde{z}_{k}^{T}\leftarrow\mathcal{B}_{T}^{*}(T_{k}) # extract text features and get corresponding frozen features
11:    NN(z~kI):=argminq𝒬Iz~kIq2\text{NN}(\tilde{z}_{k}^{I}):=\underset{q\in\mathcal{Q}_{I}}{\mathrm{argmin}}||\tilde{z}_{k}^{I}-q||_{2},  XNN(z~kI):=z~iI𝒬I\text{XNN}(\tilde{z}_{k}^{I}):=\tilde{z}_{i}^{I}\in\mathcal{Q}_{I}, where z~iT=NN(z~kT)\tilde{z}_{i}^{T}=\text{NN}(\tilde{z}_{k}^{T}) # get image NN and XNN
12:    NN(z~kT):=argminq𝒬Tz~kTq2\text{NN}(\tilde{z}_{k}^{T}):=\underset{q\in\mathcal{Q}_{T}}{\mathrm{argmin}}||\tilde{z}_{k}^{T}-q||_{2},  XNN(z~kT):=z~iT𝒬T\text{XNN}(\tilde{z}_{k}^{T}):=\tilde{z}_{i}^{T}\in\mathcal{Q}_{T}, where z~iI=NN(z~kI)\tilde{z}_{i}^{I}=\text{NN}(\tilde{z}_{k}^{I}) # get text NN and XNN
13:    CLIP=12[ITCLIP(zkI,zkT)+TICLIP(zkT,zkI)]\mathcal{L}^{\text{CLIP}}=\frac{1}{2}[\mathcal{L}_{I\rightarrow T}^{\text{CLIP}}(z_{k}^{I},z_{k}^{T})+\mathcal{L}_{T\rightarrow I}^{\text{CLIP}}(z_{k}^{T},z_{k}^{I})] # CLIP loss by Eqs. (1), (2), (3)
14:    INN=12[NNII(NN(z~kI),zkI)+INNI(zkI,NN(z~kI))]\mathcal{L}_{I}^{\text{NN}}=\frac{1}{2}[\mathcal{L}_{\text{NN}_{I}\rightarrow I}(\text{NN}(\tilde{z}_{k}^{I}),z_{k}^{I})+\mathcal{L}_{I\rightarrow\text{NN}_{I}}(z_{k}^{I},\text{NN}(\tilde{z}_{k}^{I}))] # image NN supervision loss by Eqs. (4), (6)
15:    TNN=12[NNTT(NN(z~kT),zkT)+TNNT(zkT,NN(z~kT))]\mathcal{L}_{T}^{\text{NN}}=\frac{1}{2}[\mathcal{L}_{\text{NN}_{T}\rightarrow T}(\text{NN}(\tilde{z}_{k}^{T}),z_{k}^{T})+\mathcal{L}_{T\rightarrow\text{NN}_{T}}(z_{k}^{T},\text{NN}(\tilde{z}_{k}^{T}))] # text NN supervision loss by Eqs. (5), (7)
16:    NNPING=INN+TNN\mathcal{L}_{\text{NN}}^{\text{PING}}=\mathcal{L}_{I}^{\text{NN}}+\mathcal{L}_{T}^{\text{NN}} # intra-model contrastive supervision through NN samples by Eq. (8)
17:    IXNN=12[XNNII(XNN(z~kI),zkI)+IXNNI(zkI,XNN(z~kI))]\mathcal{L}_{I}^{\text{XNN}}=\frac{1}{2}[\mathcal{L}_{\text{XNN}_{I}\rightarrow I}(\text{XNN}(\tilde{z}_{k}^{I}),z_{k}^{I})+\mathcal{L}_{I\rightarrow\text{XNN}_{I}}(z_{k}^{I},\text{XNN}(\tilde{z}_{k}^{I}))] # image XNN supervision loss by Eqs. (9), (11)
18:    TXNN=12[XNNTT(XNN(z~kT),zkT)+TXNNT(zkT,XNN(z~kT)]\mathcal{L}_{T}^{\text{XNN}}=\frac{1}{2}[\mathcal{L}_{\text{XNN}_{T}\rightarrow T}(\text{XNN}(\tilde{z}_{k}^{T}),z_{k}^{T})+\mathcal{L}_{T\rightarrow\text{XNN}_{T}}(z_{k}^{T},\text{XNN}(\tilde{z}_{k}^{T})] # text XNN supervision loss by Eqs. (10), (12)
19:    XNNPING=IXNN+TXNN\mathcal{L}_{\text{XNN}}^{\text{PING}}=\mathcal{L}_{I}^{\text{XNN}}+\mathcal{L}_{T}^{\text{XNN}} # inter-model contrastive supervision through XNN samples by Eq. (13)
20:    PING=(1α)NNPING+αXNNPING\mathcal{L}^{\text{PING}}=(1-\alpha)\cdot\mathcal{L}_{\text{NN}}^{\text{PING}}+\alpha\cdot\mathcal{L}_{\text{XNN}}^{\text{PING}} # overall PING supervision loss by Eq. (14)
21:    CLIP-PING=(1λ)CLIP+λPING\mathcal{L}^{\text{CLIP-PING}}=(1-\lambda)\cdot\mathcal{L}^{\text{CLIP}}+\lambda\cdot\mathcal{L}^{\text{PING}} # final CLIP-PING loss by Eq. (15)
22:    FIFO_UPDATE (𝒬I,z~kI)(\mathcal{Q}_{I},\tilde{z}_{k}^{I}) and FIFO_UPDATE (𝒬T,z~kT)(\mathcal{Q}_{T},\tilde{z}_{k}^{T})
23:    UPDATE (I,CLIP-PING)(\mathcal{E}_{I},\mathcal{L}^{\text{CLIP-PING}}) and UPDATE (T,CLIP-PING)(\mathcal{E}_{T},\mathcal{L}^{\text{CLIP-PING}})
24:   end for
25:end while
26:return lightweight vision-language model (ICLOSE(\mathcal{E}_{I}, OPENT)\mathcal{E}_{T})

7 Additional Results

Linear evaluation.

In Tabs. 12 and 14, we compare linear evaluation performance across several downstream tasks, using ConvNeXt-Pico [29] and MNv4-Hybrid-M [35] image encoders. The reported values represent the average accuracy over the last 5 epochs of a total 30-epoch training process. This comparison highlights the relative strengths of CLIP-PING with different encoder architectures, emphasizing its competitive performance and strong transferability.

Method COCO (600K) COCO + CC3M (3M)
Memory
(MiB)\downarrow
Time
(hours)\downarrow
Memory
(MiB)\downarrow
Time
(hours)\downarrow
CLIP 11074 0.19 11379 0.86
CLIP-KD 25036 0.35 25305 1.18
CLIP-PING 11580 0.19 11885 0.88
A-CLIP-PING 25370 0.35 25639 1.15
(a) With ViT-XS [8] image encoder.
Method COCO (600K) COCO + CC3M (3M)
Memory
(MiB)\downarrow
Time
(hours)\downarrow
Memory
(MiB)\downarrow
Time
(hours)\downarrow
CLIP 16126 0.24 16299 1.08
CLIP-KD 28460 0.41 28633 1.42
CLIP-PING 16874 0.25 18615 1.13
A-CLIP-PING 28792 0.41 28965 1.39
(b) With ConvNeXt-Pico [29] image encoder.
Method COCO (600K) COCO + CC3M (3M)
Memory
(MiB)\downarrow
Time
(hours)\downarrow
Memory
(MiB)\downarrow
Time
(hours)\downarrow
CLIP 16696 0.28 15747 1.21
CLIP-KD 31780 0.44 30831 1.54
CLIP-PING 17050 0.28 16101 1.24
A-CLIP-PING 32110 0.44 31161 1.52
(c) With MNv4-Hybrid-M [35] image encoder.
Table 11: Comparison on memory usage and training duration per epoch. Experiments for the COCO [27] dataset are run on a single NVIDIA RTX A6000 GPU, while those for the COCO + CC3M [27, 38] dataset are run on a single NVIDIA A100 GPU.
Method STL-10 CIFAR-10 CIFAR-100 IN-1K Avg
Pre-training Dataset: COCO [27] (600K)
CLIP 83.5 69.5 43.2 - 65.4
CLIP-D 86.3 70.5 44.1 - 67.0
CLIP-F 85.4 67.5 43.0 - 65.3
CLIP-KD 85.4 71.7 46.5 - 67.9
CLIP-PING (ours) 86.1 70.5 44.8 - 67.1
A-CLIP-PING (ours) 89.8 77.9 54.2 - 74.0
Pre-training Dataset: COCO + CC3M [27, 38] (3M)
CLIP 92.5 73.3 48.9 50.8 66.4
CLIP-KD 93.8 77.8 55.1 56.9 70.9
CLIP-PING (ours) 94.7 78.2 55.8 59.8 72.1
A-CLIP-PING (ours) 96.1 87.8 68.7 62.5 78.8
Table 12: Comparison on linear evaluation performance. The best results are marked in bold. ConvNeXt-Pico [29] is the image encoder.
Method STL-10 CIFAR-10 CIFAR-100 SA-40 IN-1K Avg
Pre-training Dataset: COCO [27] (600K)
CLIP 69.7 35.5 9.4 34.6 - 37.3
CLIP-D 73.6 40.7 12.0 41.4 - 41.9
CLIP-F 70.0 35.4 10.8 39.0 - 38.8
CLIP-KD 71.1 35.5 9.2 36.5 - 38.1
CLIP-PING (ours) 71.3 41.6 12.9 41.2 - 41.8
A-CLIP-PING (ours) 77.0 57.2 18.4 44.0 - 49.2
Pre-training Dataset: COCO + CC3M [27, 38] (3M)
CLIP 85.9 52.9 17.4 58.7 18.6 46.7
CLIP-KD 88.4 62.8 22.9 60.2 20.7 51.0
CLIP-PING (ours) 89.0 63.9 27.6 64.0 25.1 53.9
A-CLIP-PING (ours) 91.2 75.3 41.6 66.2 27.1 60.3
Table 13: Comparison on zero-shot classification performance. The best results are marked in bold. ConvNeXt-Pico [29] is the image encoder.
Method STL-10 CIFAR-10 CIFAR-100 IN-1K Avg
Pre-training Dataset: COCO [27] (600K)
CLIP 80.4 49.0 20.4 - 49.9
CLIP-D 82.9 53.1 24.8 - 53.6
CLIP-F 80.3 50.0 21.7 - 50.7
CLIP-KD 82.5 53.2 24.5 - 53.4
CLIP-PING (ours) 84.1 55.4 27.9 - 55.8
A-CLIP-PING (ours) 85.9 66.7 40.6 - 64.4
Pre-training Dataset: COCO + CC3M [27, 38] (3M)
CLIP 79.9 50.3 23.5 49.6 50.8
CLIP-KD 86.2 58.8 32.5 54.5 58.0
CLIP-PING (ours) 90.6 58.1 36.4 61.8 61.7
A-CLIP-PING (ours) 92.9 69.2 43.4 64.4 67.5
Table 14: Comparison on linear evaluation performance. The best results are marked in bold. MNv4-Hybrid-M [35] is the image encoder.
Method STL-10 CIFAR-10 CIFAR-100 SA-40 IN-1K Avg
Pre-training Dataset: COCO [27] (600K)
CLIP 69.4 24.6 6.1 35.7 - 34.0
CLIP-D 73.4 39.5 11.1 42.9 - 41.7
CLIP-F 70.1 37.8 8.7 39.6 - 39.1
CLIP-KD 70.4 26.4 5.8 36.9 - 34.9
CLIP-PING (ours) 73.2 42.1 12.0 41.7 - 42.3
A-CLIP-PING (ours) 79.7 58.5 19.8 47.4 - 51.4
Pre-training Dataset: COCO + CC3M [27, 38] (3M)
CLIP 85.1 52.3 20.4 58.1 18.3 46.8
CLIP-KD 88.3 63.4 24.8 61.1 20.6 51.6
CLIP-PING (ours) 89.1 72.9 34.1 66.6 26.2 57.8
A-CLIP-PING (ours) 92.7 81.0 46.8 68.5 28.6 63.5
Table 15: Comparison on zero-shot classification performance. The best results are marked in bold. MNv4-Hybrid-M [35] is the image encoder.

Zero-shot classification.

In Tabs. 13 and 15, we compare zero-shot image classification performance across several downstream tasks, using ConvNeXt-Pico [29] and MNv4-Hybrid-M [35] image encoders. This comparison highlights CLIP-PING’s competitive performance relative to other methods, demonstrating its ability to effectively transfer knowledge across tasks with diverse encoder architectures. For the Stanford 40 Actions (SA-40) [50] dataset, we use the prompt templates "a photo of a person {label}" and "a photo of people {label}", while the prompts in the original CLIP paper [36] are used for other datasets.

Impact of projection dimension.

In Tab. 16, we vary the projection dimension in powers of 2, from 128 to 2048. Our analysis reveals that a projection dimension of 256 consistently achieves the best trade-off between performance and computational efficiency across all three model pairs. This indicates that smaller projection dimensions, such as 128, may limit the model’s ability to capture rich semantic representations, while larger dimensions, such as 2048, introduce unnecessary computational overhead without substantial performance gains. Consequently, we select 256 as the optimal projection dimension, balancing both performance and resource efficiency.

Random support set.

We further explore the impact of support set update strategies by comparing the default first-in-first-out (FIFO) with a random update strategy. We find that the FIFO approach consistently outperforms random updates. Detailed results are presented in Tab. 17.

dd Flickr30K [51] ZS
I2T@1 T2I@1 Avg
128 26.3 19.1 39.7
256 28.1 20.2 41.2
512 28.5 20.8 39.2
1024 25.3 19.5 40.8
2048 25.9 20.2 39.4
(a) With ViT-XS [8] image encoder.
dd Flickr30K [51] ZS
I2T@1 T2I@1 Avg
128 28.1 20.7 40.6
256 29.6 20.8 41.8
512 28.2 20.8 41.8
1024 27.2 22.2 43.2
2048 27.6 21.3 44.1
(b) With ConvNeXt-Pico [29] image encoder.
dd Flickr30K [51] ZS
I2T@1 T2I@1 Avg
128 27.4 21.0 40.3
256 29.9 21.5 42.3
512 28.4 20.9 42.2
1024 28.8 21.1 41.5
2048 28.7 21.6 41.9
(c) With MNv4-Hybrid-M [35] image encoder.
Table 16: Impact of projection dimension (dd) on retrieval performance for Flickr30K [51] and average zero-shot top-1 classification accuracy across four datasets, using the image encoders pre-trained on COCO [27] dataset. The best results are marked in bold.
Support Set Update Flickr30K [51] ZS
I2T@1 T2I@1 Avg
FIFO 28.1 20.2 41.2
Random 27.1 19.1 39.6
(a) With ViT-XS [8] image encoder.
Support Set Update Flickr30K [51] ZS
I2T@1 T2I@1 Avg
FIFO 29.6 20.8 41.8
Random 26.6 20.9 41.4
(b) With ConvNeXt-Pico [29] image encoder.
Support Set Update Flickr30K [51] ZS
I2T@1 T2I@1 Avg
FIFO 29.9 21.5 42.3
Random 25.7 19.8 40.4
(c) With MNv4-Hybrid-M [35] image encoder.
Table 17: Impact of support set update strategy on retrieval performance for Flickr30K [51] and average zero-shot top-1 classification accuracy across four datasets, using the image encoders pre-trained on COCO [27] dataset. The best results are marked in bold.

Impact of supervision modality.

In Tab. 18, we investigate the impact of different supervision sources on performance using ConvNeXt-Pico [29] and MNv4-Hybrid-M [35] image encoders. The analysis includes three setups: (1) the default configuration with both image and text supervision, (2) with only text supervision (w/o INN\mathcal{L}_{I}^{\text{NN}} and IXNN\mathcal{L}_{I}^{\text{XNN}} in Eqs. (8) and (13)), and (3) with only image supervision (w/o TNN\mathcal{L}_{T}^{\text{NN}} and TXNN\mathcal{L}_{T}^{\text{XNN}} in Eqs. (8) and (13)). We find that CLIP-PING benefits equally from both sources of supervision.

Super- vision Flickr30K [51] ZS
I2T@1 T2I@1 Avg
both 29.6 20.8 41.8
txt only 19.1 15.8 40.5
img only 25.6 18.4 42.2
(a) With ConvNeXt-Pico [29].
Super- vision Flickr30K [51] ZS
I2T@1 T2I@1 Avg
both 29.9 21.5 42.3
txt only 21.2 17.2 37.5
img only 25.4 18.4 39.4
(b) With MNv4-Hybrid-M [35].
Table 18: Ablation on supervision sources for retrieval performance on Flickr30K [51] and average zero-shot top-1 accuracy across four datasets, using the image encoders pre-trained on COCO [27] dataset. The best results are marked in bold.

Impact of unimodal feature extractor.

In Tabs. 20 and 19, we employ ViT-B/16 [8], pre-trained on ImageNet [6] (i.e., vit_base_patch16_224) as our image teacher or feature extractor and analyze its effect on performance. This analysis reveals that CLIP-PING variants consistently outperform competing methods. Table 19 summarizes results for models trained on COCO [27] and Tab. 20 provides results for the combined dataset.

Method Flickr30K [51] ZS
I2T@1 T2I@1 Avg
CLIP-D 25.1 19.1 42.6
CLIP-F 24.9 17.4 41.6
CLIP-KD 28.0 21.2 40.4
CLIP-PING 27.9 20.0 41.5
A-CLIP-PING 29.4 21.9 45.6
(a) With ConvNeXt-Pico [29].
Method Flickr30K [51] ZS
I2T@1 T2I@1 Avg
CLIP-D 22.6 17.4 38.2
CLIP-F 19.6 14.2 33.4
CLIP-KD 27.2 21.0 39.0
CLIP-PING 27.3 20.5 39.3
A-CLIP-PING 30.8 22.5 42.8
(b) With MNv4-Hybrid-M [35].
Table 19: Effect of ViT-B/16 [8] on retrieval performance for Flickr30K [51] and average zero-shot top-1 accuracy across four datasets, using image encoders pre-trained on COCO [27] dataset. The best results are marked in bold.
Method Memory (MiB)\downarrow Flickr30K [51] ZS Avg
I2T@1 T2I@1
CLIP-KD 17087 46.1 34.1 52.7
CLIP-PING 11689 46.5 34.5 54.1
A-CLIP-PING 17273 48.6 35.8 55.6
(a) With ViT-XS [8] image encoder.
Method Memory (MiB)\downarrow Flickr30K [51] ZS Avg
I2T@1 T2I@1
CLIP-KD 21375 53.1 39.4 54.9
CLIP-PING 18459 52.7 38.1 54.9
A-CLIP-PING 21563 54.6 39.6 57.3
(b) With ConvNeXt-Pico [29] image encoder.
Method Memory (MiB)\downarrow Flickr30K [51] ZS Avg
I2T@1 T2I@1
CLIP-KD 21609 52.2 40.1 55.7
CLIP-PING 18299 51.4 40.7 56.2
A-CLIP-PING 22371 53.8 41.8 60.0
(c) With MNv4-Hybrid-M [35] image encoder.
Table 20: Effect of ViT-B/16 [8] on retrieval performance for Flickr30K [51] and average zero-shot top-1 accuracy across five datasets, using image encoders pre-trained on COCO + CC3M [27, 38] dataset. The best results are marked in bold. Memory usage is recorded on a single NVIDIA A100 GPU.

8 Discussion on Limitations and Future Work

The absence of explicit distillation in CLIP-PING may limit its ability to directly leverage real-time knowledge from larger pre-trained models. To fill this gap, we introduced A-CLIP-PING, a variant that integrates teacher-student learning into the framework. A-CLIP-PING achieves a compelling balance between computational efficiency and performance gains, making the choice between CLIP-PING and A-CLIP-PING dependent on the specific trade-offs required by different applications. Our findings show that CLIP-PING excels in resource-constrained settings, offering an effective solution for efficient multi-modal learning. However, its scalability for large-scale pre-training on excessively large multi-modal datasets remains unexplored due to computational limitations. Our study aims to provide valuable insights and encourage further exploration into lightweight and efficient vision-language models. Future research could extend CLIP-PING to additional modalities beyond image and text, as well as fine-tune it for diverse on-device tasks to further unlock its potential.

References
  • [1] Hangbo Bao, Wenhui Wang, Li Dong, Qiang Liu, Owais Khan Mohammed, Kriti Aggarwal, Subhojit Som, Songhao Piao, and Furu Wei. Vlmo: Unified vision-language pre-training with mixture-of-modality-experts. Advances in Neural Information Processing Systems, 35:32897–32912, 2022.
  • [2] Fei-Long Chen, Du-Zhen Zhang, Ming-Lun Han, Xiu-Yi Chen, Jing Shi, Shuang Xu, and Bo Xu. Vlp: A survey on vision-language pre-training. Machine Intelligence Research, 20(1):38–56, 2023.
  • [3] Yifan Chen, Xiaozhen Qiao, Zhe Sun, and Xuelong Li. Comkd-clip: Comprehensive knowledge distillation for contrastive language-image pre-traning model. arXiv preprint arXiv:2408.04145, 2024.
  • [4] Mehdi Cherti, Romain Beaumont, Ross Wightman, Mitchell Wortsman, Gabriel Ilharco, Cade Gordon, Christoph Schuhmann, Ludwig Schmidt, and Jenia Jitsev. Reproducible scaling laws for contrastive language-image learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2818–2829, 2023.
  • [5] Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 215–223. JMLR Workshop and Conference Proceedings, 2011.
  • [6] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009.
  • [7] Karan Desai and Justin Johnson. Virtex: Learning visual representations from textual annotations. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11162–11173, 2021.
  • [8] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021.
  • [9] Yifan Du, Zikang Liu, Junyi Li, and Wayne Xin Zhao. A survey of vision-language pre-trained models. arXiv preprint arXiv:2202.10936, 2022.
  • [10] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. With a little help from my friends: Nearest-neighbor contrastive learning of visual representations. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9588–9597, 2021.
  • [11] Zhiyuan Fang, Jianfeng Wang, Xiaowei Hu, Lijuan Wang, Yezhou Yang, and Zicheng Liu. Compressing visual-linguistic model via knowledge distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1428–1438, 2021.
  • [12] Lluis Gomez, Yash Patel, Marçal Rusinol, Dimosthenis Karatzas, and CV Jawahar. Self-supervised learning of visual features through embedding images into text topic spaces. In Proceedings of the ieee conference on computer vision and pattern recognition, pages 4230–4239, 2017.
  • [13] Albert Gordo and Diane Larlus. Beyond instance-level image retrieval: Leveraging captions to learn a global visual representation for semantic retrieval. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6589–6598, 2017.
  • [14] Tengda Han, Weidi Xie, and Andrew Zisserman. Self-supervised co-training for video representation learning. Advances in neural information processing systems, 33:5679–5690, 2020.
  • [15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In Computer Vision–ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11–14, 2016, Proceedings, Part IV 14, pages 630–645. Springer, 2016.
  • [16] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc Le, Yun-Hsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. In International conference on machine learning, pages 4904–4916. PMLR, 2021.
  • [17] Indunil Karunarathna, P Gunasena, T Hapuarachchi, and S Gunathilake. The crucial role of data collection in research: Techniques, challenges, and best practices. Uva Clinical Research, pages 1–24, 2024.
  • [18] Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of naacL-HLT, page 2. Minneapolis, Minnesota, 2019.
  • [19] Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, and Neil Houlsby. Big transfer (bit): General visual representation learning. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part V 16, pages 491–507. Springer, 2020.
  • [20] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
  • [21] Ang Li, Allan Jabri, Armand Joulin, and Laurens Van Der Maaten. Learning visual n-grams from web data. In Proceedings of the IEEE International Conference on Computer Vision, pages 4183–4192, 2017.
  • [22] Xuanlin Li, Yunhao Fang, Minghua Liu, Zhan Ling, Zhuowen Tu, and Hao Su. Distilling large vision-language model with out-of-distribution generalizability. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2492–2503, 2023a.
  • [23] Xianhang Li, Zeyu Wang, and Cihang Xie. An inverse scaling law for clip training. Advances in Neural Information Processing Systems, 36, 2024.
  • [24] Yangguang Li, Feng Liang, Lichen Zhao, Yufeng Cui, Wanli Ouyang, Jing Shao, Fengwei Yu, and Junjie Yan. Supervision exists everywhere: A data efficient contrastive language-image pre-training paradigm. In International Conference on Learning Representations, 2022.
  • [25] Yanghao Li, Haoqi Fan, Ronghang Hu, Christoph Feichtenhofer, and Kaiming He. Scaling language-image pre-training via masking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23390–23400, 2023b.
  • [26] Chen Liang, Jiahui Yu, Ming-Hsuan Yang, Matthew Brown, Yin Cui, Tuo Zhao, Boqing Gong, and Tianyi Zhou. Module-wise adaptive distillation for multimodality foundation models. Advances in Neural Information Processing Systems, 36, 2024.
  • [27] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Computer Vision–ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pages 740–755. Springer, 2014.
  • [28] Yuchen Liu, Yaoming Wang, Yabo Chen, Wenrui Dai, Chenglin Li, Junni Zou, and Hongkai Xiong. Promoting semantic connectivity: Dual nearest neighbors contrastive learning for unsupervised domain generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3510–3519, 2023.
  • [29] Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convnet for the 2020s. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11976–11986, 2022.
  • [30] Norman Mu, Alexander Kirillov, David Wagner, and Saining Xie. Slip: Self-supervision meets language-image pre-training. In European conference on computer vision, pages 529–544. Springer, 2022.
  • [31] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
  • [32] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
  • [33] Hieu Pham, Zihang Dai, Golnaz Ghiasi, Kenji Kawaguchi, Hanxiao Liu, Adams Wei Yu, Jiahui Yu, Yi-Ting Chen, Minh-Thang Luong, Yonghui Wu, et al. Combined scaling for zero-shot transfer learning. Neurocomputing, 555:126658, 2023.
  • [34] Di Qi, Lin Su, Jia Song, Edward Cui, Taroon Bharti, and Arun Sacheti. Imagebert: Cross-modal pre-training with large-scale weak-supervised image-text data. arXiv preprint arXiv:2001.07966, 2020.
  • [35] Danfeng Qin, Chas Leichner, Manolis Delakis, Marco Fornoni, Shixin Luo, Fan Yang, Weijun Wang, Colby Banbury, Chengxi Ye, Berkin Akin, et al. Mobilenetv4-universal models for the mobile ecosystem. arXiv preprint arXiv:2404.10518, 2024.
  • [36] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021.
  • [37] Mert Bulent Sariyildiz, Julien Perez, and Diane Larlus. Learning visual representations with caption annotations. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part VIII 16, pages 153–170. Springer, 2020.
  • [38] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556–2565, 2018.
  • [39] Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. MobileBERT: a compact task-agnostic BERT for resource-limited devices. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2158–2170, Online, 2020. Association for Computational Linguistics.
  • [40] Pavan Kumar Anasosalu Vasu, Hadi Pouransari, Fartash Faghri, Raviteja Vemulapalli, and Oncel Tuzel. Mobileclip: Fast image-text models through multi-modal reinforced training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15963–15974, 2024.
  • [41] Alex Jinpeng Wang, Kevin Qinghong Lin, David Junhao Zhang, Stan Weixian Lei, and Mike Zheng Shou. Too large; data reduction for vision-language pre-training. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3147–3157, 2023a.
  • [42] Wenhui Wang, Hangbo Bao, Li Dong, Johan Bjorck, Zhiliang Peng, Qiang Liu, Kriti Aggarwal, Owais Khan Mohammed, Saksham Singhal, Subhojit Som, et al. Image as a foreign language: Beit pretraining for vision and vision-language tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19175–19186, 2023b.
  • [43] Zhecan Wang, Noel Codella, Yen-Chun Chen, Luowei Zhou, Xiyang Dai, Bin Xiao, Jianwei Yang, Haoxuan You, Kai-Wei Chang, Shih-fu Chang, et al. Multimodal adaptive distillation for leveraging unimodal encoders for vision-language tasks. arXiv preprint arXiv:2204.10496, 2022a.
  • [44] Zirui Wang, Jiahui Yu, Adams Wei Yu, Zihang Dai, Yulia Tsvetkov, and Yuan Cao. SimVLM: Simple visual language model pretraining with weak supervision. In International Conference on Learning Representations, 2022b.
  • [45] Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019.
  • [46] Kan Wu, Houwen Peng, Zhenghong Zhou, Bin Xiao, Mengchen Liu, Lu Yuan, Hong Xuan, Michael Valenzuela, Xi Stephen Chen, Xinggang Wang, et al. Tinyclip: Clip distillation via affinity mimicking and weight inheritance. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 21970–21980, 2023.
  • [47] Zhirong Wu, Alexei A Efros, and Stella X Yu. Improving generalization via scalable neighborhood component analysis. In Proceedings of the european conference on computer vision (ECCV), pages 685–701, 2018.
  • [48] Chuanguang Yang, Zhulin An, Libo Huang, Junyu Bi, Xinqiang Yu, Han Yang, Boyu Diao, and Yongjun Xu. Clip-kd: An empirical study of clip model distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15952–15962, 2024a.
  • [49] Kaicheng Yang, Tiancheng Gu, Xiang An, Haiqiang Jiang, Xiangzi Dai, Ziyong Feng, Weidong Cai, and Jiankang Deng. Clip-cid: Efficient clip distillation via cluster-instance discrimination. arXiv preprint arXiv:2408.09441, 2024b.
  • [50] Bangpeng Yao, Xiaoye Jiang, Aditya Khosla, Andy Lai Lin, Leonidas Guibas, and Li Fei-Fei. Human action recognition by learning bases of action attributes and parts. In 2011 International conference on computer vision, pages 1331–1338. IEEE, 2011.
  • [51] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014.
  • [52] Lu Yuan, Dongdong Chen, Yi-Ling Chen, Noel Codella, Xiyang Dai, Jianfeng Gao, Houdong Hu, Xuedong Huang, Boxin Li, Chunyuan Li, et al. Florence: A new foundation model for computer vision. arXiv preprint arXiv:2111.11432, 2021.
  • [53] Xiaohua Zhai, Xiao Wang, Basil Mustafa, Andreas Steiner, Daniel Keysers, Alexander Kolesnikov, and Lucas Beyer. Lit: Zero-shot transfer with locked-image text tuning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 18123–18133, 2022.
  • [54] Jingyi Zhang, Jiaxing Huang, Sheng Jin, and Shijian Lu. Vision-language models for vision tasks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.
  • [55] Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. In Machine Learning for Healthcare Conference, pages 2–25. PMLR, 2022.