Personalized Clustering via Targeted Representation Learning

Xiwen Geng, Suyun Zhao, Yixin Yu, Borui Peng, Pan Du, Hong Chen, Cuiping Li, Mengdie Wang

Introduction

Traditional clustering algorithms typically seek "natural" groupings within data by identifying the most dominant patterns. However, real-world data is often multi-faceted, and a single "default" clustering may not align with a specific user's needs. For instance, a dataset containing images of animals near landmarks could be grouped by species or by architectural style, depending on the context.

Figure 1: Multi-faceted data can be clustered using different criteria (e.g., by animal or by landmark) depending on user intent.

Existing constrained clustering methods attempt to address this by incorporating human-provided "must-link" or "cannot-link" pairs. However, these methods often struggle with efficiency, as random sampling of pairs rarely captures the user's specific intent effectively. This paper introduces Personalized Clustering via Targeted Representation Learning (PCL), a framework designed to efficiently steer a model's feature learning toward a user-defined goal.

Methodology

The PCL framework employs an active query strategy to identify the most informative data pairs, which are then used to refine the model's internal representations through a specialized training loop.

Figure 2: The PCL framework: Active queries guide the model to learn targeted features through a constrained contrastive loss.

The system is built on three core pillars:

  1. Active Query Strategy: Rather than random sampling, PCL targets "Uncertain Pairs" (where model similarity is near zero) and "Hard Negatives" (pairs the model incorrectly deems similar). This dynamic approach shifts from broad exploration to fine-tuning cluster boundaries as training progresses.
  2. Targeted Representation Learning: A Cross-Instance Attention module allows the network to focus on specific features that align with user feedback while ignoring irrelevant noise (e.g., focusing on the Eiffel Tower while ignoring a dog in the foreground).
  3. Constrained Contrastive Loss: By modifying the standard InfoNCE loss, the model treats must-link pairs as strong positives and uses cannot-link pairs to ensure the feature space explicitly separates categories defined by the user.

Experimental Results

The researchers evaluated PCL against several state-of-the-art (SOTA) methods on image benchmarks including CIFAR-10, CIFAR-100, and ImageNet. To test personalization, "Personalized" versions of these datasets were created where the target clusters were intentionally designed to be the opposite of what a standard unsupervised model would typically find.

Key findings include:

  • Superior Performance: On the CIFAR100-4 personalized task, PCL achieved 59.7% accuracy, significantly outperforming unsupervised methods like GCC (50.8%) and SPICE (50.4%).
  • Query Efficiency: PCL demonstrated higher efficiency than other constrained methods (e.g., DCC or ADC), successfully rectifying the model's feature extraction with minimal human feedback—as little as 0.0004% of possible pairs.
  • Ablation Insights: The Cross-Attention module proved critical; its removal led to a substantial drop in Normalized Mutual Information (NMI) from 0.234 to 0.127 on CIFAR100-4, confirming that targeted attention is vital for personalization.

Conclusion and Future Work

PCL demonstrates that active learning can serve as a "compass" for orientation in multi-faceted data spaces. By focusing on the hardest pairs, the model learns which feature dimensions the user prioritizes. While the current method relies on an accurate human oracle, future research may explore the use of Large Language Models (LLMs) to provide constraints or investigate how the framework handles highly ambiguous data with overlapping valid orientations.

Summary updated

BibTeX
@inproceedings{geng2025personalized,
  author = {Xiwen Geng and Suyun Zhao and Yixin Yu and Borui Peng and Pan Du and Hong Chen and Cuiping Li and Mengdie Wang},
  title = {{Personalized Clustering via Targeted Representation Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i16.33845},
}
Figure