TL;DR
Continual pre-training (CPT) of CLIP on massive domain-specific datasets is computationally expensive and introduces redundant data. CHIPS (Curvature-aware Hybrid Influence in Projection Subspace) is a data-centric selection method that identifies the most valuable image-text pairs by calculating a lightweight, curvature-aware alignment score within CLIP's projection heads. It matches full-dataset adaptation performance using just 30% of the data while significantly mitigating catastrophic forgetting in the general domain.
What Problem Does This Paper Address?
Adapting vision-language models like CLIP to specialized "vertical" domains (such as medical imaging or biology) typically requires massive continual pre-training on millions of domain-specific image-text pairs. However, curating and training on datasets of this scale is incredibly costly, and unguided data scaling often introduces low-utility or redundant samples that hamper learning.
While data selection and data attribution methods (like TracIn or influence functions) exist to find the most impactful training samples, they fail when applied to CLIP. Traditional methods assume single-tower models with additive cross-entropy losses. CLIP breaks these assumptions due to:
- Cross-modal curvature: Dual encoders create complex, non-block-diagonal second-order interactions.
- Non-local gradients: The symmetric InfoNCE contrastive loss means a sample's gradient depends heavily on the composition of the entire batch/negative pool.
- Subspace dominance: Early distribution shifts during adaptation are primarily driven by the projection heads and temperature parameters, making full-parameter influence calculations wasteful.
Methods
The authors introduce CHIPS, a data selection framework tailored specifically to the geometry and loss formulation of CLIP.
CHIPS scores and ranks each candidate image-text pair based on three tightly coupled components:
- Curvature-aware Proxy Alignment: Instead of computing full-parameter gradients, CHIPS calculates a Newton-style alignment score restricted to CLIP's end-point subspace (the visual/textual projection heads and the learnable logit temperature). This score measures how much a one-step update on a sample reduces the target domain evaluation loss.
- InfoNCE-aware Curvature Estimator: To capture the cross-example coupling of contrastive learning, CHIPS blends self-curvature (positive pairs) with cross-second moments (negative pairs). To make this computationally tractable, the authors apply Johnson-Lindenstrauss (JL) sketching (specifically sparse random projection) to achieve near-linear time and memory complexity.
- Learnability & Domain Relevance Weights: The alignment score is multiplicatively modulated by two weights:
- Learnability ($w_L$): Prioritizes hard negative, decision-boundary samples over already-solved or saturated pairs.
- Domain Relevance ($w_R$): Softly weights samples based on their cosine similarity to the target evaluation set, acting as a gentle bias to prevent the model from drifting too far from general-domain knowledge.
Datasets
The method was trained and evaluated using large-scale datasets and extensive benchmarks:
- Training Pools: BIOMEDICA (24 million samples) and MedTrinity (18 million samples).
- Medical Evaluation Suite: 17 classification tasks spanning 8 medical specialties (including Ophthalmology, Radiology, Dermatology, Hematology, Pathology, Neuropathology, Histology, and Non-clinical Biology).
- General Domain Evaluation Suite: 31 diverse benchmarks (e.g., ImageNet variants, CIFAR-10/100, MNIST, MSCOCO, Flickr30k) used to measure general-domain capability retention.
Key Insights and Ideas
- The Power of the Subspace: Alignment and early adaptation dynamics reside almost entirely within CLIP's projection heads—specifically the text projection head ($W_t$). Restricting influence calculations to this subspace yields a Spearman correlation of 0.83 with full-parameter alignment while drastically reducing FLOPs.
- Negative Pairs Matter for Curvature: Ignoring the cross-mass induced by random negatives in InfoNCE loss leads to highly unstable sample rankings. Balancing positive attraction and negative repulsion ($\alpha \approx 0.6$) provides the most discriminative alignment direction.
- Soft Weighting Beats Hard Filtering: Instead of completely filtering out non-target data, softly re-weighting domain relevance allows the model to specialize in the target domain without completely sacrificing its zero-shot capabilities on general tasks.
Key Results
- Data Efficiency: On 17 medical benchmarks, CHIPS matched full-dataset CPT performance using only 30% of the data. Remarkably, using just 10% of the data, CHIPS outperformed a 50% random data subset.
- Retention of General Knowledge: Compared to the previous state-of-the-art selector (TracIn), CHIPS consistently minimized the performance drop on general-domain tasks across all data retention ratios.
- Cross-Architecture Transferability: Scores computed from a single pass on a MetaCLIP-B16 model successfully transferred to and improved diverse backbones (B32, L14, H14) and pre-training scales, allowing the data selection scores to be cached and reused.
- Computational Efficiency: CHIPS requires 3.1% fewer total FLOPs than TracIn, making it highly practical for large-scale data curation pipelines.
Limitations and Future Work
The primary limitation of CHIPS is its reliance on a representative, held-out target validation distribution ($D_{eval}$) to guide the alignment direction. If this evaluation set is biased or unavailable, the selection quality may degrade. The authors note that future work will focus on exploring unlabeled or shift-robust target signals to guide selection, as well as extending the framework beyond CLIP to other multimodal architectures.
Summary updated