CoTeMIC: Compositional Text Supervision for Multiple Image Clustering

Jiaquan Wang, Zhuoming Li, Yan Lyu, Walid Gomaa, Yuheng JiaarXiv 2026

TL;DR

Unlabeled images can be grouped in many valid ways—like sorting flowers by species or by color—a task known as multiple image clustering. Existing Vision-Language Model (VLM) approaches struggle here because attributes like color and shape are hopelessly tangled together inside image embeddings. CoTeMIC solves this by generating synthetic, compositional text pairs to train a "semantic filter" purely in language space, then seamlessly adapting it to untangle visual features and cluster images according to whatever criterion you choose.

What Problem Does This Paper Address?

Imagine dumping a box of flower photos onto a table. If someone asks you to group them, do you sort by species (roses vs. carnations) or by color (red vs. white)? Both are right; it just depends on your goal.

Standard clustering algorithms usually latch onto whichever visual feature shouts the loudest, giving you only one partition of the data. You could ask a Multimodal Large Language Model (MLLM) to inspect every single image for a specific attribute, but on large datasets, the compute bill gets painful fast.

A cheaper, faster alternative is using pretrained VLMs like CLIP, where images and text live in a shared mathematical space. Current VLM-based clustering methods generate text references (like "red", "blue", "yellow") and project images toward them. The catch? VLM embeddings are notoriously entangled. Even when explicitly told to cluster by color, existing VLM methods will still think a yellow primula is more similar to a white primula than to a yellow dandelion, simply because the "species" signal overpowers the "color" signal.

Figure 2. Illustration of semantic selectivity in similarity estima- tion. Under the color criterion, the yellow primula serves as the anchor, the yellow dandelion as the positive sample (same color, different species), and the white primula as the negative sample (different color, same species). CRL, like CLIP, assigns a higher similarity to the negative sample than to the positive sample. In contrast, CoTeMIC yields the desired similarity ordering, where color semantics dominate the similarity estimation, exhibiting im- proved criterion selectivity.

The authors ask: instead of using text merely as passive reference points, can we use the compositional nature of language as active supervision to slice away irrelevant attributes?

Methods

CoTeMIC (Compositional Text Supervision for Multiple Image Clustering) freezes the underlying VLM (e.g., CLIP) and trains three lightweight modules sequentially, without needing a single labeled image:

Overview of CoTeMIC's three-stage pipeline: learning a text router, adapting images to it, and predicting final clusters.
  1. Criterion-Selective Text Router (The Novel Core): An LLM generates lists of attributes for each criterion (colors, species, etc.) and combines them into Full–Target text pairs. If the target criterion is color, a Full description mixes everything ("A rose with red blossoms"), while the Target isolates the goal ("The blossoms are red"). A 2-layer MLP (the Text Router) is trained via contrastive learning (with a dash of Gaussian noise for robustness) to pull the Full and Target embeddings together while pushing other colors apart. In doing so, the router learns how to mathematically strip away "rose-ness" and keep only "red-ness."
  2. Consistency-Guided Image Adapter: Because of the well-known "modality gap" between VLM text and image spaces, you can't just plug raw image embeddings straight into a text-trained router. The authors freeze the router and train a residual MLP (Image Adapter) in front of it. It uses two losses: an image consistency loss ensuring two augmented views of an image route to the same place, and a second-moment matching loss that anchors batch-level statistics to the unadapted images so the representations don't drift into nonsense.
  3. Criterion-Specific Clustering Head: Finally, a linear layer predicts cluster assignments. Alongside standard entropy-based confidence and cluster-balance losses, it uses a clever text-guided neighborhood consistency loss, encouraging images that respond similarly to the routed text prototypes to share cluster assignments.

Datasets

CoTeMIC is evaluated across seven datasets spanning 16 total clustering criteria:

  • Standard Benchmarks: Clevr4-10k (shape, color, count, texture), Fruit (species, color), Fruit360 (species, color), CMUFace (pose, glasses), Cards (number, suit), and CIFAR-10 (object type, environment).
  • New Benchmark: Flowers, newly constructed by the authors from the existing Flowers102 dataset to evaluate clustering by flower species and color.

Key Insights and Ideas

  • Language is free disentanglement supervision: Collecting images that systematically vary one attribute while holding others constant is hard. Doing it in text takes seconds. Pairing "Full" multi-attribute sentences with "Target" single-attribute sentences beats training on full descriptions alone or target descriptions alone across every tested benchmark.
  • Consistency without guardrails causes drift: In the ablation studies, training the image adapter solely to make augmented image views match ($\mathcal{L}_{\text{IC}}$) actually tanked accuracy from 62.50% down to 44.97%. Adding second-moment matching ($\mathcal{L}_{\text{MM}}$) to preserve the batch's covariance structure rescued it, jumping performance up to 66.33%.
  • True semantic selectivity: When measuring the distance ratio between target attributes vs. non-target attributes, CoTeMIC radically reshapes the embedding space—for example, achieving a selectivity ratio of 23.60 on CMUFace (Glasses), compared to 1.04 for raw CLIP and 4.19 for the strongest VLM baseline (CRL).

Key Results

CoTeMIC achieves state-of-the-art performance across almost the entire board, beating traditional, VLM-based, and heavy MLLM-based methods:

  • Overall Dominance: Across all 16 criteria, CoTeMIC achieves a mean Normalized Mutual Information (NMI) of 68.90% (nearly 10 points higher than the next best VLM method, CRL, at 59.45%) and a mean Rand Index (RI) of 90.27% (vs. CRL's 86.30%).
  • Standout Gains: On Fruit360 (Species), CoTeMIC hits 69.31% NMI, crushing CRL by 31.88%. On Clevr4-10k, it sweeps all four criteria, beating the strongest baselines by an average of 7.09% NMI.
  • Backbone Agnostic: Swapping CLIP out for ALIGN or SigLIP yields the exact same story—CoTeMIC boosts mean clustering accuracy over CRL by 10.86% (CLIP), 8.75% (ALIGN), and 8.94% (SigLIP), alongside visibly tighter, cleaner t-SNE cluster boundaries.

Limitations and Future Work

Not discussed in the paper. (Note: Looking at the methodology, one practical consideration is that Full–Target text pairs are built by enumerating all possible combinations of attributes across criteria—which works great for 2–4 criteria, though scaling to dozens of simultaneous criteria could cause a combinatorial explosion in text pairs).

Summary updated

BibTeX
@misc{wang2026cotemic,
  author = {Jiaquan Wang and Zhuoming Li and Yan Lyu and Walid Gomaa and Yuheng Jia},
  title = {{CoTeMIC: Compositional Text Supervision for Multiple Image Clustering}},
  year = {2026},
  eprint = {2611.38510},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38510},
}
Figure