Hierarchical Semantic Alignment for Image Clustering

Xingyu Zhu, Beier Zhu, Yunfan Li, Junfeng Fang, Shuo Wang, Kesen Zhao, Hanwang ZhangarXiv 2025 · DOI

Abstract

Image clustering aims to group unlabeled images into semantically meaningful categories. While recent methods leverage external textual priors (like nouns) to guide clustering, they often suffer from semantic ambiguity and a lack of fine-grained detail. This paper introduces CAE (hierarChical semAntic alignmEnt), a training-free framework that utilizes a hierarchical approach—combining high-level nouns with descriptive captions—to achieve state-of-the-art clustering performance without the need for expensive fine-tuning.

Introduction

Traditional image clustering relies on internal visual features. The emergence of Vision-Language Models (VLMs) like CLIP has enabled the use of external textual knowledge to improve these groupings. However, relying solely on nouns introduces significant noise due to polysemy and coarse categorization. CAE addresses these challenges by aligning images with a hierarchical semantic space constructed from both broad categories and detailed descriptions.

The Challenge of Semantic Ambiguity

A primary hurdle in text-guided clustering is the inherent ambiguity of single nouns. As illustrated in Figure 1, a word like "crane" can represent both a wading bird and a piece of construction equipment. Similarly, "tank" might refer to a military vehicle or a storage container. Coarse-grained nouns also fail to distinguish between similar sub-categories, such as different breeds of dogs or types of trucks.

Ambiguity in noun-based image clustering where single words like 'crane' or 'tank' refer to distinct semantic categories.

These ambiguities distort the semantic representations used for clustering, leading to overlapping groups and reduced accuracy.

Methodology: The CAE Framework

CAE is a two-step, training-free pipeline designed to resolve these ambiguities through hierarchical alignment and adaptive fusion.

The CAE pipeline: Semantic Space Construction using Optimal Transport followed by Adaptive Semantics Fusion of image, noun, and description embeddings.

1. Semantic Space Construction

The model first identifies a relevant subset of nouns (from WordNet) and captions (from Flickr) by measuring their similarity to the dataset's initial cluster centers. To align images with this text, CAE employs Optimal Transport (OT) via the Sinkhorn-Knopp algorithm. Unlike standard softmax-based weighting, which can lead to "representation collapse" on a few popular words, OT ensures a balanced and diverse mapping of images to their most appropriate semantic counterparts.

2. Adaptive Semantics Fusion

For every image, the system generates three distinct representations: the original visual feature, a noun-based semantic feature, and a caption-based semantic feature. These are fused using a residual attention mechanism. The model calculates a "semantic prototype" and dynamically weights each modality based on its alignment with that prototype. This allows the system to prioritize high-level categories (nouns) when they are clear, or fine-grained details (captions) when the category is ambiguous.

Experimental Results

The CAE method was evaluated across eight benchmarks, ranging from small-scale datasets like CIFAR-10 to the massive ImageNet-1K.

  • ImageNet-1K Performance: CAE achieved a top-1 accuracy of 53.1%, marking a 4.2% improvement over the previous state-of-the-art training-free method (TAC).
  • Robustness: On the STL-10 dataset, the model reached an Adjusted Rand Index (ARI) of 96.7%, rivaling complex training-based architectures.
  • Zero-Shot Superiority: CAE consistently outperformed zero-shot CLIP, demonstrating that unsupervised alignment with external text is more effective than relying on predefined class names.

Conclusion

CAE demonstrates that hierarchical semantic alignment is a powerful tool for unsupervised image clustering. By leveraging the complementary strengths of nouns and captions through Optimal Transport and adaptive fusion, the method effectively resolves semantic ambiguity. Furthermore, its training-free nature makes it a highly efficient solution for large-scale applications, setting a new benchmark for the field.

Summary updated

BibTeX
@misc{zhu2025hierarchical,
  author = {Xingyu Zhu and Beier Zhu and Yunfan Li and Junfeng Fang and Shuo Wang and Kesen Zhao and Hanwang Zhang},
  title = {{Hierarchical Semantic Alignment for Image Clustering}},
  year = {2025},
  eprint = {2512.00904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.00904},
}
Figure