Abstract: Andreas Stephan, Lukas Miklautz, Collin Leiber, Pedro Henrique Luz De Araujo, Dominik Répás, Claudia Plant, Benjamin Roth. Proceedings of the 9th Workshop on Representation Learning for NLP (RepL4NLP-2024).
2024.
TL;DR
TGAICC (Text-Guided Alternative Image Consensus Clustering) leverages Large Vision-Language Models (LVLMs) to discover multiple, distinct ways to group the same set of images based on user-specified interests. By converting visual data into prompted text descriptions and then aggregating those results through consensus clustering, the framework outperforms traditional image-only methods and provides human-readable explanations for its groupings.
What Problem Does This Paper Address?
Traditional image clustering algorithms typically aim to find a single "optimal" grouping. However, real-world data is multifaceted. Consider a dataset of playing cards: a user might want to cluster them by rank (Aces, Kings, etc.) or by suit (Hearts, Spades, etc.).
Existing "alternative clustering" methods often struggle to capture these specific semantic dimensions using raw image pixels or even generic embeddings like CLIP. Furthermore, these black-box methods rarely explain why an image was placed in a specific cluster. The authors address this by using text as an interpretable "bottleneck," allowing users to guide the clustering process with natural language prompts.
Methods
The proposed framework, TGAICC, follows a multi-step pipeline to transform user interest into diverse clusterings:
- Prompt Generation: Starting with a broad user interest (e.g., "I'm interested in ranks and suits"), the system uses GPT-4 to generate diverse paraphrases and concise versions of questions (e.g., "Which rank is shown?").
- Visual Question Answering (VQA): An LVLM (specifically LLaVA) answers these prompts for every image in the dataset, effectively "translating" relevant visual features into text.
- Initial Clustering: These text responses are converted into embeddings (using TF-IDF or SBERT) and clustered using k-means. This results in many "candidate" clusterings—one for each prompt.
- Grouping Clusterings: Because many prompts might target the same attribute (e.g., "What is the rank?" and "What number is on the card?"), the system uses hierarchical clustering based on Adjusted Mutual Information (AMI) to group similar candidate clusterings together.
- Consensus Aggregation: Finally, the system applies consensus clustering algorithms to each group. This merges the noisy, individual text-based clusterings into a single, robust "alternative" clustering for that specific attribute.
Datasets
The authors evaluated TGAICC on four benchmark datasets, each containing multiple ground-truth labeling schemes:
- Fruits-360: Images of fruit that can be clustered by type or color.
- Cards: Playing cards clusterable by rank or suit.
- GTSRB (Traffic Signs): Clusterable by sign type or color.
- NR-Objects: Synthetic objects clusterable by shape, material, or color.
Key Insights and Ideas
- Text as a Semantic Filter: By asking a specific question (e.g., "What is the color?"), the VQA model acts as a filter that discards irrelevant information (like shape), making the subsequent clustering much more targeted than using raw image features.
- Consensus Beats Single Prompts: LVLMs can be inconsistent. TGAICC handles this by generating multiple prompts for the same concept and using consensus clustering to "average out" the noise, leading to more stable results.
- Built-in Interpretability: Because the clusters are formed from text, the authors can generate "explanations" simply by identifying the most frequent words in a cluster. For example, a "suit" cluster might be explained by the high frequency of the word "hearts."
- The "Material" Challenge: Interestingly, the authors found that clustering by material (e.g., rubber vs. metal) was difficult for text-based models. VQA models often provided too much extraneous info (like shape) or struggled with the ambiguity of synthetic textures.
Key Results
TGAICC consistently outperformed both image-based baselines and simpler text-based approaches:
- Superior Accuracy: On average across all datasets, TGAICC achieved an ARI (Adjusted Rand Index) of 54.50, significantly higher than the best image-only baseline (ENRC at 39.69).
- Near-Perfect Shape Clustering: On the NR-Objects dataset, TGAICC achieved a perfect 100.00 ARI for shape clustering, whereas traditional methods hovered around 72-95.
- Robustness: The "Consensus-max" strategy proved highly effective at identifying and merging clusterings that captured the same underlying data facet.
Limitations and Future Work
- VQA Verbosity: The authors noted that VQA models sometimes provide too much information (e.g., mentioning color when asked about shape), which can leak unwanted features into the clustering process.
- Computational Cost: Running VQA for every image-prompt pair is computationally expensive compared to standard feature extraction.
- Prompt Sensitivity: While the system generates paraphrases, the initial "seed" prompt still heavily influences the discovery of alternative views. Future work could explore more automated ways to discover these views without any initial user guidance.
Summary updated