Face Clustering: Representation and Pairwise Constraints

Yichun Shi, Charles Otto, Anil K. Jain

Introduction

Face clustering is a critical task in forensic investigations and large-scale photo organization, where massive collections of unlabeled face images must be grouped by identity. Traditional clustering methods like $k$-means often fail in real-world "in the wild" scenarios due to three primary challenges: the number of identities ($K$) is typically unknown, datasets are highly unbalanced, and images exhibit extreme variations in pose, lighting, and resolution.

The ConPaC Framework

To address these hurdles, this paper introduces ConPaC (Conditional Pairwise Clustering), a structured prediction approach that formulates clustering within a Conditional Random Field (CRF) framework.

The end-to-end pipeline of the ConPaC system, from image collection to final clusters.

Deep Representation

The system first extracts robust features using a Deep Residual Network (ResNet) trained on large-scale datasets like CASIA-Webface and VGG-Face. This produces a 2048-dimensional vector for each face, providing a more resilient foundation for similarity measurement than previous architectures.

Clustering via Structured Prediction

Unlike centroid-based methods, ConPaC directly estimates the adjacency matrix of the image collection. The core of the algorithm is a CRF that models the probability of connections between pairs of images.

A factor graph representing the CRF structure used to enforce pairwise and triplet constraints.

A key innovation is the enforcement of triplet consistency. By incorporating constraints that ensure transitivity (if A=B and B=C, then A=C), the model effectively filters noise from raw similarity scores. Inference is performed using Loopy Belief Propagation (LBP) to find the most likely adjacency matrix. For scalability, a $k$-NN variant restricts the graph to the top $k$ neighbors per face, achieving linear-logarithmic complexity.

Experimental Evaluation

The authors evaluated ConPaC on the standard LFW benchmark and the more challenging IJB-B dataset, which contains extreme poses and "un-detectable" faces.

  • Superior Accuracy: On LFW, ConPaC achieved a Pairwise F-measure of 0.965, significantly outperforming $k$-means (0.346) and Approximate Rank-Order clustering (0.861).
  • Robustness to Scale: The $k$-NN variant maintained high performance even when faced with 1 million distractor images, demonstrating its utility for forensic "needle in a haystack" searches.
  • Handling Unbalanced Data: ConPaC successfully recovered clusters of varying sizes, a common failure point for spectral clustering methods that favor equal-sized partitions.

Conclusion and Future Work

ConPaC demonstrates that focusing on pairwise adjacency and enforcing transitivity allows for robust clustering without prior knowledge of the number of clusters. While the algorithm is highly effective, its performance remains tied to the quality of the underlying feature representation. Future research will explore more sophisticated unary potentials to further improve initial similarity estimates in highly unconstrained environments.

Summary updated

BibTeX
@article{shi2018face,
  author = {Yichun Shi and Charles Otto and Anil K. Jain},
  title = {{Face Clustering: Representation and Pairwise Constraints}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2018},
  url = {https://openreview.net/forum?id=R687DZZ70L},
}
Figure