Personalized Clustering via Targeted Representation Learning

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

Abstract

Traditional clustering algorithms often fail to capture the specific semantic orientation desired by a user, instead defaulting to dominant statistical patterns. We present Personalized Clustering (PCL), a framework designed to align data grouping with user-defined criteria. By employing an active learning strategy that queries users on informative "hard-to-cluster" pairs and optimizing a constrained contrastive loss, PCL effectively learns targeted representations. Experimental results demonstrate that PCL significantly outperforms unsupervised methods on personalized tasks, achieving high accuracy with minimal user feedback.

Introduction

Clustering is a fundamental unsupervised learning task aimed at discovering natural groupings within unlabeled data. However, real-world datasets are often multi-faceted, allowing for multiple valid interpretations. For instance, a collection of images featuring animals at famous landmarks could be clustered by species or by geographic location. Standard deep clustering methods typically converge on a single "natural" grouping based on low-level visual features, which may not align with a user's specific needs.

Illustration of personalized clustering where data can be grouped by different semantic criteria (e.g., animals vs. landmarks).

Existing constrained clustering techniques attempt to address this by incorporating "must-link" and "cannot-link" constraints. However, these methods often rely on randomly sampled constraints, which are inefficient and frequently redundant. PCL addresses these limitations by strategically selecting the most informative pairs to query, allowing the model to pivot toward a user's preferred semantic orientation.

Methodology

The PCL framework is built upon three core components: targeted representation learning, an active query strategy, and a constrained contrastive loss.

The PCL framework: Targeted representation learning through active user queries and constrained contrastive loss.

Targeted Representation Learning

The model utilizes a deep neural network enhanced with a cross-instance attention module. This architecture enables the network to dynamically weigh features based on the specific clustering task, facilitating the learning of representations that are sensitive to the user's criteria.

Active Query Strategy

To maximize the utility of human feedback, PCL identifies pairs that are most likely to resolve model ambiguity. The strategy focuses on:

  • Uncertainty: Selecting pairs where the model's current confidence (measured by cosine similarity) is near zero.
  • Hard Negatives: Identifying pairs where the current clustering strongly contradicts patterns established by prior feedback.

Constrained Contrastive Loss

PCL adapts the InfoNCE loss to incorporate pairwise constraints. Must-link pairs are pulled together with increased weight, while cannot-link pairs are pushed apart. This process "warps" the embedding space to reflect the user's mental model, ensuring that the learned features are optimized for the targeted clustering task.

Experiments and Results

The researchers evaluated PCL on benchmark datasets (CIFAR-10, CIFAR-100, and ImageNet-10) modified to include both "Default" and "Personalized" orientations.

Performance on Personalized Tasks

On the CIFAR10-2 personalized task, PCL achieved an Accuracy (ACC) of 0.873 and a Normalized Mutual Information (NMI) of 0.453. In comparison, state-of-the-art unsupervised methods like GCC struggled, scoring only 0.620 ACC and 0.035 NMI. This highlights the inability of standard unsupervised models to adapt to non-dominant data patterns without targeted guidance.

Query Efficiency

A key finding is the efficiency of the active query strategy. PCL reaches high performance levels significantly faster than random sampling methods. The model can achieve robust results with as little as 0.0004% of all possible pairs labeled, demonstrating that the quality of constraints is more critical than the quantity.

Conclusion

PCL offers a robust solution for personalized data organization by integrating active learning with deep representation learning. By focusing on informative user feedback, the model can successfully navigate multi-faceted datasets to find the specific groupings a user desires. Future work will explore the robustness of PCL against noisy human oracles and its application to non-visual data modalities such as text and financial records.

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