Abstract
Traditional clustering algorithms often struggle to align with specific user interests, typically providing either a single partitioning of data or multiple unorganized structures. We present Multi-MaP, a novel framework for personalized visual multiple clustering. By leveraging the joint vision-text latent space of CLIP and the semantic knowledge of Large Language Models (LLMs) like GPT-4, Multi-MaP allows users to specify their clustering perspective via simple keywords. Our method introduces a multi-modal proxy learning process featuring reference-word and concept-level constraints to optimize text proxies. Experimental results across seven benchmark datasets demonstrate that Multi-MaP consistently outperforms state-of-the-art methods in both accuracy and efficiency.
1. Introduction
Clustering is a cornerstone of unsupervised learning, yet it faces a significant "one-size-fits-all" limitation. Real-world datasets often contain multiple valid structures; for instance, a collection of fruit images can be grouped by species, color, or ripeness. While "multiple clustering" techniques aim to uncover these diverse patterns, they often fail to provide a mechanism for users to select the specific perspective relevant to their needs. Identifying the desired clustering from a set of generated results typically requires a substantial manual understanding of each output.
Historically, aligning a user's brief keyword of interest with high-dimensional visual features required extensive manual labeling or complex feature engineering. With the advent of multi-modal models like CLIP and LLMs, we can now bridge this semantic gap. This paper introduces Multi-MaP, a method that transforms a user's keyword into a precise clustering guide through proxy learning.
2. The Multi-MaP Framework
Multi-MaP operates by learning a specialized "proxy" embedding within the CLIP latent space that corresponds to the user's specified interest. Instead of training a model from scratch, it utilizes the pre-trained knowledge of CLIP and GPT-4.
2.1 Personalized Prompting and Proxy Learning
When a user inputs a keyword (e.g., "color"), Multi-MaP initializes a prompt template: "a fruit with the color of "*, where the asterisk represents a learnable proxy word embedding. The goal is to optimize this embedding so that it captures the specific visual nuances associated with the keyword across the unlabeled target dataset.
2.2 LLM-Guided Semantic Anchoring
To prevent the learned proxy from drifting into semantically meaningless regions of the embedding space—a common risk when optimizing in continuous space—Multi-MaP utilizes GPT-4 to generate "reference words." For the keyword "color," GPT-4 might suggest "red," "yellow," or "green." These words serve as discrete semantic anchors that ground the learning process.
2.3 Dual Constraints
The optimization process is governed by two primary constraints designed to learn the optimal text proxy:
- Concept-level Constraint: This ensures the learned proxy remains close to the general semantic category of the user's keyword (e.g., the word "color").
- Reference-word Constraint: For each image in the dataset, the model identifies the most relevant GPT-generated reference word and encourages the proxy embedding to align with that specific anchor.
Additionally, the framework can incorporate Contrastive Concepts. If a user desires clustering based on "color" but specifically wants to ignore "species," the species-related features can be treated as negative constraints, pushing the embeddings away from irrelevant features.
3. Experimental Evaluation
We evaluated Multi-MaP on seven diverse datasets commonly used in multiple clustering research: ALOI (color/shape), Card (suit/order), CMUface (emotion/identity/pose/glasses), Fruit & Fruit360 (color/species), Stanford Cars (color/type), and Flowers (color/species).
3.1 Performance and Efficiency
Multi-MaP consistently outperformed five state-of-the-art baselines, including AugDMC and iMClusts. Notably, on the Fruit dataset, the model achieved a perfect 1.0 Normalized Mutual Information (NMI) for species-based clustering.
A key advantage of Multi-MaP is its efficiency. By keeping the CLIP encoders frozen and only learning a small proxy vector, the method avoids the heavy computational cost of training deep autoencoders or performing extensive data augmentation. This allows for rapid adaptation to new user interests.
3.2 Comparison with Zero-Shot CLIP
Interestingly, Multi-MaP often exceeds the performance of "zero-shot" CLIP classification (where CLIP is simply asked to classify images into categories). This indicates that the proxy learning process discovers more granular and dataset-specific visual features than a generic, one-off text query can provide.
4. Conclusion and Future Work
Multi-MaP represents a significant step toward personalized unsupervised learning. By using LLMs to guide the exploration of multi-modal latent spaces, we provide users with an intuitive way to interact with clustering algorithms using natural language. While the current framework relies on semantically meaningful labels to act as anchors, future research will focus on extending this to datasets with abstract identifiers and exploring how to handle more complex, overlapping user interests.
Summary updated