ESMC: MLLM-Based Embedding Selection for Explainable Multiple Clustering

Xinyue Wang, Yuheng Jia, Hui Liu, Junhui Hou · DOI

Abstract

Embedding Selective Multiple Clustering (ESMC) is a novel framework that utilizes the internal hidden states of Multi-modal Large Language Models (MLLMs) to group images according to diverse user-defined criteria. Unlike traditional methods that rely on unstructured text outputs, ESMC extracts high-quality feature representations directly from specific token embeddings. This approach mitigates language bias and hallucinations while providing an explainable mechanism for multi-faceted data organization. Experimental results demonstrate that ESMC achieves state-of-the-art performance across multiple benchmark datasets, including Stanford Cars and CIFAR-10.

1. Introduction

In unsupervised learning, the goal is often to find a single optimal grouping for a dataset. However, real-world objects are multi-faceted. For instance, a dataset of automobiles can be meaningfully categorized by color, manufacturer, or body style—a task known as multiple clustering.

Examples of multiple clustering on the Stanford Cars dataset, grouped by color, brand, and body style.

Existing deep clustering methods often struggle to adapt to specific user requirements or rely on foundational models like CLIP and LLaVA. These models face two primary challenges: unstructured conversational outputs that are difficult to map to discrete labels, and a linguistic bias where the model prioritizes prior knowledge over visual evidence.

2. The ESMC Framework

The proposed ESMC framework addresses these challenges through a two-stage process that bypasses the final text generation layer of the MLLM.

The ESMC framework: (i) Input processing, (ii) Target embedding extraction from MLLM hidden states, and (iii) Clustering of specific features.

2.1 Target Embedding Extraction

Rather than interpreting the final text response, ESMC analyzes the hidden states of the language model. When a user provides a prompt such as "The color of the car is," the internal representation of the token "color" acts as a condensed, high-quality feature vector. The authors utilize a "Logit Lens" technique to identify the specific layers and token positions that most strongly correlate with the desired feature, effectively filtering out irrelevant visual information.

2.2 Lightweight Clustering Head

The extracted "target embeddings" are processed by a simple 2-layer Multi-Layer Perceptron (MLP). The model employs pseudo-label learning, initializing clusters via K-means and iteratively refining them. By treating samples closest to cluster centroids as labeled data, the system provides a robust supervision signal for the clustering head.

3. Experimental Evaluation

ESMC was evaluated on seven multi-clustering benchmarks, including Stanford Cars, Flower, CIFAR-10, and CMU Face. The method demonstrated significant improvements in Normalized Mutual Information (NMI) and Rand Index (RI).

  • CIFAR-10: Achieved an NMI of 0.8293 for object type, a substantial increase from the previous baseline of 0.5271.
  • Flower Species: Reached an NMI of 0.8923, outperforming existing methods by over 20%.
  • Efficiency: The clustering head is highly efficient; training for 100 epochs on the Stanford Cars dataset takes approximately 0.36 seconds on a single RTX 3090.

4. Discussion and Insights

A key insight of this work is that the internal representation of a prompt token serves as a specialized feature extractor. By extracting embeddings from intermediate layers, ESMC avoids the auto-regressive generation layers where "language bias" typically occurs. This makes the clustering process inherently more transparent and explainable, as the grouping is directly tied to specific semantic tokens.

While ESMC shows remarkable robustness to prompt phrasing, some limitations remain. Performance on the Fruit360 dataset was hampered by ambiguous visual cues where the MLLM's internal knowledge conflicted with ground truth labels. Future research may explore the applicability of this technique to other MLLM architectures beyond LLaVA.

5. Conclusion

ESMC represents a significant step forward in explainable multiple clustering. By leveraging the latent knowledge within MLLMs through targeted embedding selection, the framework provides a flexible and high-performance solution for multi-faceted data analysis.

Summary updated

BibTeX
@inproceedings{wang2026esmc,
  author = {Xinyue Wang and Yuheng Jia and Hui Liu and Junhui Hou},
  title = {{ESMC: MLLM-Based Embedding Selection for Explainable Multiple Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i31.39867},
}
Figure