Image Clustering with External Guidance

Yunfan Li, Peng Hu, Dezhong Peng, Jiancheng Lv, Jianping Fan, Xi Peng

TL;DR

Text-Aided Clustering (TAC) is a novel paradigm that moves beyond mining internal data signals to leverage external textual knowledge (from WordNet) for image clustering. By aligning visual features with automatically retrieved discriminative nouns and employing cross-modal mutual distillation, TAC achieves new state-of-the-art performance on challenging benchmarks like ImageNet-1K without requiring ground-truth labels.

The Limits of Internal Signals

Image clustering—the task of grouping similar images without labels—is a fundamental challenge in machine learning. Traditionally, methods have evolved from simple "classic" algorithms based on data compactness (like k-means) to "deep" and "self-supervised" methods that mine internal signals through data augmentation.

However, these methods are inherently limited by the information present within the dataset itself. For example, visually similar dog breeds like a "Corgi" and a "Shiba Inu" are easily confused by visual-only models. The authors argue that we have been overlooking a goldmine of external knowledge: semantic descriptions that can provide the "missing link" to distinguish these categories. The challenge lies in how to construct a relevant text space and effectively collaborate image and text modalities when class names are unknown.

The evolution of clustering methods, culminating in externally guided clustering.

Introducing Text-Aided Clustering (TAC)

The authors propose Text-Aided Clustering (TAC), an externally guided clustering method that operates in two main stages:

  1. Text Counterpart Construction: Since ground-truth class names are unavailable, TAC first identifies "image semantic centers" using k-means on CLIP-extracted image embeddings. It then "reversely classifies" thousands of nouns from WordNet to these centers using a pre-trained CLIP model. By selecting the most discriminative nouns for each center, it builds a custom text space. Each image is then assigned a "soft" text counterpart—a weighted combination of these nouns based on visual similarity.
  2. Cross-modal Mutual Distillation: To fully integrate the two modalities, TAC trains two "cluster heads" (simple MLPs). It uses a neighborhood-based distillation strategy: an image's cluster assignment is encouraged to be consistent with the assignments of its text counterpart's nearest neighbors, and vice versa. This effectively "bootstraps" the clustering performance by sharing neighborhood structures across vision and language.
Overview of the TAC framework, showing text counterpart construction and mutual distillation.

Key Insights and Ideas

  • "Free" Semantic Information: Remarkably, just concatenating image features with retrieved text counterparts and running k-means—a baseline labeled as TAC (no train)—outperforms many sophisticated deep clustering methods. This suggests that the bottleneck in clustering isn't just the algorithm, but the lack of semantic guidance.
  • Labels Aren't Always Best: The authors found that manually annotated class names are sometimes less descriptive than the nouns TAC retrieves. For instance, zero-shot CLIP often fails to distinguish two different spaniel breeds because both share the generic word "Spaniel." TAC's retrieved nouns (e.g., "Brittany Spaniel" vs. "Clumber Spaniel") are highly specific and more discriminative, leading to successful separation.
  • Neighborhood Distillation: Instead of forcing a direct one-to-one mapping between an image and a text label, distilling information from neighbors allows the model to be much more robust to noise in both the retrieved text and the visual features.

State-of-the-Art Results

The researchers evaluated TAC on a comprehensive suite of eight datasets, ranging from classic benchmarks (STL-10, CIFAR-10/20, ImageNet-10) to highly challenging ones like DTD (textures) and UCF-101 (actions). TAC sets a new bar for unsupervised image clustering across the board:

  • ImageNet-Dogs: TAC achieves a clustering accuracy of 83.0%, a massive leap over the 38.1% achieved by standard k-means on CLIP features.
  • ImageNet-1K: On this massive dataset containing 1.28 million images across 1,000 classes, TAC reaches 58.2% accuracy, outperforming other state-of-the-art unsupervised methods like SIC and SCAN.

Limitations and Future Work

While powerful, TAC has a few areas for potential improvement:

  • Cluster Number Prior: Like most clustering methods, TAC still requires the user to specify the target number of clusters ($K$). In real-world scenarios, this isn't always known in advance.
  • Dependence on VLP Models: The performance is tied to the quality of the underlying vision-language model (like CLIP). Biases or blind spots in these pre-trained models could propagate to the clustering results.
  • Expanding Modalities: The authors suggest that future work could incorporate other forms of external guidance, such as object detection to locate specific semantic objects, or applying the paradigm to non-image data like point clouds and audio.

Summary updated

BibTeX
@inproceedings{li2024image,
  author = {Yunfan Li and Peng Hu and Dezhong Peng and Jiancheng Lv and Jianping Fan and Xi Peng},
  title = {{Image Clustering with External Guidance}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=JSYN891WnB},
}
Figure