Local Connectivity-Based Density Estimation for Face Clustering

Junho Shin, Hyo-Jun Lee, Hyunseop Kim, Jong-Hyeon Baek, Daehyun Kim, Yeong Jun KohCVPR 2023

Abstract

Recent graph-based face clustering methods predict the connectivity of enormous edges, including false positive edges that link nodes with different classes. However, those false positive edges, which connect negative node pairs, have the risk of integration of different clusters when their connectivity is incorrectly estimated. This paper proposes a novel face clustering method to address this problem. The proposed clustering method employs density-based clustering, which maintains edges that have higher density. For this purpose, we propose a reliable density estimation algorithm based on local connectivity between K nearest neighbors (KNN). We effectively exclude negative pairs from the KNN graph based on the reliable density while maintaining sufficient positive pairs. Furthermore, we develop a pairwise connectivity estimation network to predict the connectivity of the selected edges. Experimental results demonstrate that the proposed clustering method significantly outperforms the state-of-the-art clustering methods on large-scale face clustering datasets and fashion image clustering datasets.

Introduction

Face clustering involves grouping millions of unlabeled face images into distinct identities. Most modern approaches represent these images as nodes in a K-Nearest Neighbor (KNN) graph, where edges connect images that look similar.

The primary challenge in this domain is the false positive edge. Because different people can look remarkably alike due to lighting, pose, or shared features, a KNN graph often contains edges that link two different individuals. If a clustering algorithm follows these "bad" edges, it merges two distinct identities into one—a mistake that is very difficult to undo. This is especially problematic at the boundaries of clusters where data is dense and identities start to overlap in feature space.

Methods

The proposed framework, LCE-PCENet, moves beyond simple feature similarity by employing a multi-stage pipeline that leverages local context.

Overview of the proposed LCE-PCENet clustering framework, showing the progression from KNN graph to final clusters.

1. LCENet (Local Connectivity Estimation Network)

Instead of just measuring the distance between two faces, LCENet uses a Transformer encoder to analyze the relationship between a node $x_i$ and all its $K$ neighbors $\mathcal{N}_i$. It predicts a "connectivity probability" $c_{ij}$—how likely it is that these neighbors actually belong to the same cluster as $x_i$.

2. Reliable Density Estimation

Traditional density-based methods calculate density based on raw similarity. This paper calculates density by weighting similarity with the connectivity scores from LCENet. This ensures that nodes on the edge of a cluster are assigned low density even if they have many "similar" neighbors from a different cluster.

3. Graph Reconstruction and PCENet

The graph is pruned to keep only the most reliable edges. Each node is connected to its most similar neighbor that has a higher density, directing edges toward the "center" of identities. For the remaining edges, a second Transformer-based network, PCENet (Pairwise Connectivity Estimation Network), performs a final validation. By comparing the entire neighborhoods of two nodes, PCENet makes a highly informed decision on whether to keep or cut the link.

Detailed architectures of (a) LCENet and (b) PCENet, highlighting the use of Multi-Head Attention and MLP layers.

Experimental Results

The researchers evaluated their method on three major benchmarks:

  • MS-Celeb-1M: A massive dataset refined to 5.8M images. LCE-PCENet achieved a Pairwise F-score ($F_P$) of 94.64 on the 584K subset, outperforming the previous best of 93.22.
  • IJB-B: A challenging face dataset where $F_P$ jumped from a previous SOTA of 84.4 to 93.0.
  • DeepFashion: Demonstrates that the clustering logic generalizes beyond human faces to other visual categories.

Despite the complexity of the two-network approach, the system is efficient, clustering 584K images in approximately 3.1 minutes on a single GPU.

Conclusion

LCE-PCENet demonstrates that "context is king" in face clustering. By using Transformers to aggregate neighbor features, the model learns the local topology of the data manifold. This allows it to distinguish between a dense cluster of one person and two distinct clusters that happen to be close together. Using density as a compass to select edges (pointing "uphill" toward the cluster center) effectively avoids the "bridge" edges that typically cause cluster merging errors.

Summary updated

BibTeX
@inproceedings{shin2023local,
  author = {Junho Shin and Hyo-Jun Lee and Hyunseop Kim and Jong-Hyeon Baek and Daehyun Kim and Yeong Jun Koh},
  title = {{Local Connectivity-Based Density Estimation for Face Clustering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=6wvkenErJl},
}
Figure