S-CLIP: Semi-supervised Vision-Language Learning using Few Specialist Captions

Sangwoo Mo, Minkyu Kim, Kyungmin Lee, Jinwoo Shin

Vision-language models like CLIP have revolutionized how we bridge the gap between seeing and describing. However, while CLIP is a master of "natural" images found on the web, it often gets lost when faced with specialist domains like satellite imagery, medical scans, or even scientific diagrams. The standard solution—fine-tuning on domain-specific data—is hampered by a major bottleneck: high-quality image-caption pairs for these fields are incredibly expensive and time-consuming to produce.

In their paper "S-CLIP: Semi-supervised Vision-Language Learning using Few Specialist Captions," researchers from KAIST, the University of Michigan, and KRAFTON introduce a clever way to adapt these models using just a handful of labeled pairs and a large pool of unlabeled images.

TL;DR

S-CLIP is a semi-supervised framework that adapts vision-language models to specialized domains using very few image-text pairs. By combining Optimal Transport for caption-level pseudo-labeling and Partial Label Learning for keyword-level supervision, it matches the performance of fully supervised models while using three times less annotated data.

What Problem Does This Paper Address?

Adapting a model like CLIP to a new domain (e.g., remote sensing) usually requires thousands of image-text pairs. In many fields, you might have plenty of images but very few expert-written captions.

Standard semi-supervised learning often relies on pseudo-labeling: taking an unlabeled image, finding its "nearest neighbor" in the labeled set, and adopting that label. While this works for simple classification (where "dog" is always "dog"), it fails miserably for captions. Captions are diverse and unique; two visually similar satellite images might share a "tennis court" but differ entirely in their other details (e.g., surrounding buildings vs. a nearby forest). As shown in the figure below, naive pseudo-labeling can actually mislead the model and hurt performance.

Figure 1: Motivation. (a) Images and captions are from the remote sensing dataset, RSICD. Unlike class labels, captions vary widely across images, making the naive pseudo-labeling of assigning the nearest caption ineffective. (b) Zero-shot accuracy on the RSICD-CLS dataset. Bracket indicates the gap from CLIP fine-tuned on remote sensing datasets, called CLIP-FT. The original CLIP struggles in this specialized domain, and CLIP-FT gives a large gain. As discussed in (a), naive pseudo-labeling (Hard-PL) harms CLIP-FT, while our S-CLIP provides substantial improvement.

Methods

S-CLIP overcomes the "unique caption" problem by introducing two complementary pseudo-labeling strategies designed specifically for the language modality:

  1. Caption-level Pseudo-labeling via Optimal Transport (OT): Instead of picking just one nearest caption, S-CLIP assumes an unlabeled image's meaning is a combination of several labeled captions. It uses the Sinkhorn-Knopp algorithm to solve an optimal transport problem, finding a balanced mapping between a batch of unlabeled images and labeled captions. This prevents the model from "collapsing" (assigning the same few popular captions to everything) and makes it robust to distribution shifts.
  2. Keyword-level Pseudo-labeling via Partial Label Learning (PLL): Even if full captions don't match, visually similar images often share keywords. S-CLIP extracts a candidate set of keywords from the nearest labeled image's caption. It then uses a partial label loss, which tells the model: "the correct label is somewhere in this set of keywords." This helps the model understand local components and fine-grained phrases within an image.
Figure 2: Method overview. Conceptual illustration of our proposed S-CLIP, utilizing (a) caption- level and (b) keyword-level pseudo-labels. In (a), the pseudo-label is given by a probability distri- bution over the captions, obtained by solving an optimal transport problem between unlabeled and labeled images. In (b), the pseudo-label is given by the candidate set of keywords from the caption of the nearest labeled image, which is learned by the partial label learning algorithm.

Datasets

The authors evaluated S-CLIP across four distinct specialist domains:

  • Remote Sensing: RSICD, UCM, and Sydney for training; WHU-RS19, RSSCN7, and AID for zero-shot evaluation.
  • Fashion: Fashion200k, FashionGen, and Polyvore Outfits.
  • Scientific Figures: SciCap (scientific diagrams).
  • Comics: The Simpsons dataset (captions) combined with Simpsons Characters (unlabeled images).
  • General Domain: A "sports" subset of the COCO dataset to test generalizability.

Key Insights and Ideas

  • Soft is Better Than Hard: The "soft" assignments provided by Optimal Transport act as a powerful regularizer. By not forcing a single, potentially incorrect caption onto an unlabeled image, the model learns a more nuanced representation of the domain.
  • Global vs. Local: The two strategies are specialized. Caption-level labels help the model understand the global structure of language (great for image-text retrieval), while keyword-level labels help it master local phrases (great for zero-shot classification).
  • Robustness to Shift: S-CLIP remains effective even when the unlabeled images come from a different source than the labeled ones—a common real-world scenario where "in-distribution" data is scarce.

Key Results

  • Efficiency: On remote sensing benchmarks, S-CLIP matched the performance of a fully supervised CLIP model while using 3x fewer image-text pairs.
  • Accuracy Gains: In the remote sensing domain, S-CLIP improved zero-shot classification by 10.4% on the WHU-RS19 dataset and boosted image-to-text retrieval (R@5) on UCM by 4.4% compared to standard fine-tuning.
  • Domain Versatility: In the comics domain, using S-CLIP to leverage 30,000 unlabeled character images improved text-to-image retrieval by 33% relative to the baseline.

Limitations and Future Work

While S-CLIP is a major step forward, the authors note some areas for improvement:

  • Retrieval vs. Classification: The method is currently more effective at improving zero-shot classification than fine-grained image-text retrieval.
  • Keyword Extraction: The keyword strategy relies on exact matches from captions. Future work could incorporate synonyms or hierarchical word relationships (e.g., knowing that "oak" is a type of "tree") to make the candidate sets even more informative.
  • Batch Size Sensitivity: Like many contrastive methods, performance scales with batch size, and the current pseudo-labeling approach assumes a batch can sufficiently represent the domain's semantics.

S-CLIP demonstrates that we don't always need massive datasets to teach old models new tricks; sometimes, we just need a more sophisticated way to listen to the data we already have.

Summary updated

BibTeX
@inproceedings{mo2023s,
  author = {Sangwoo Mo and Minkyu Kim and Kyungmin Lee and Jinwoo Shin},
  title = {{S-CLIP: Semi-supervised Vision-Language Learning using Few Specialist Captions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=O1lYncfVOO},
}
Figure