Homocentric Hypersphere Feature Embedding for Person Re-identification

Wangmeng Xiang, Jianqiang Huang, Xianbiao Qi, Xiansheng Hua, Lei Zhang

Introduction

Person Re-identification (ReID) aims to identify the same individual across multiple non-overlapping camera views. This task is notoriously challenging due to significant variations in lighting, pose, and viewpoint. Traditional deep learning approaches often suffer from a "measure inconsistency" gap: they are trained using Euclidean distances or inner products but evaluated using cosine similarity. This paper proposes a Homocentric Hypersphere Embedding to bridge this gap by aligning training objectives directly with deployment metrics.

Methodology: Homocentric Hypersphere Embedding

The core innovation is the projection of feature vectors and class weights onto two concentric hyperspheres sharing the same origin. This geometric arrangement decouples feature magnitude from orientation, forcing the network to learn discriminative angular representations.

Overview of the Homocentric Hypersphere Embedding pipeline, illustrating the transition from CNN feature extraction to angular feature distribution.

As illustrated in the pipeline above, the model processes input images through a CNN to produce embedded features. These features are then mapped onto the hypersphere structure for optimization, ensuring that the direction of the feature vector—the most discriminative component in ReID—is the primary focus of learning.

Geometric Formulation

In this framework, feature vectors ($\hat{x}$) are normalized to a unit hypersphere (radius 1). Simultaneously, the class weight vectors ($\hat{w}$), which represent class centers, are projected onto a second hypersphere with a radius defined by a scaling factor $\alpha$.

Geometric representation of the homocentric hypersphere, showing the unit sphere for features and the sphere of radius $\alpha$ for class weights.

This homocentric setup ensures that the classification boundaries are defined purely by the angles ($\theta$) between features and weights, mirroring the cosine similarity used during inference. By setting the bias term to zero and normalizing weights and features, the softmax function is reformulated to depend solely on the cosine of the angle between the feature and the class center.

Joint Angular Loss (JAL)

To effectively train the model within this space, the authors introduce the Joint Angular Loss (JAL). JAL integrates two complementary components:

  1. Angular Classification Loss: Provides global class boundaries by optimizing the angle between features and class centers.
  2. Angular Triplet Loss: Unlike standard triplet loss, this version optimizes the angular distance between anchor, positive, and negative samples, ensuring local discriminative power and reducing intra-class variance.

Furthermore, Orthogonal Regularization is applied to the embedding layer's weight matrix. This encourages class centers to be as spread out as possible, reducing redundancy and preventing the network from collapsing different identities into similar feature dimensions.

Experimental Results

The proposed method was evaluated on gold-standard benchmarks, including Market1501, CUHK03, and DukeMTMC-ReID. The version incorporating orthogonal regularization (JAL$_o$) achieved state-of-the-art performance at the time of publication:

  • Market1501: 91.28% Rank-1 accuracy and 78.56% mAP (Mean Average Precision).
  • CUHK03 (Labeled): 88.80% Rank-1 accuracy, significantly outperforming previous baselines like TriNet.
  • DukeMTMC-ReID: 82.54% Rank-1 accuracy.

Ablation studies confirmed that the angular losses consistently outperform their Euclidean counterparts. Combining global classification and local triplet constraints provides a consistent 3-4% boost in mAP, proving their complementary nature.

Conclusion

The Homocentric Hypersphere Feature Embedding offers a robust solution to the measure inconsistency problem in Person ReID. By focusing optimization on the angular distribution of features, the method achieves superior retrieval accuracy and sets a new standard for metric learning in computer vision tasks.

Summary updated

Abstract

Person re-identification (Person ReID) is a challenging task due to the large variations in camera viewpoint, lighting, resolution, and human pose. Recently, with the advancement of deep learning technologies, the performance of Person ReID has been improved swiftly. Feature extraction and feature matching are two crucial components in the training and deployment stages of Person ReID. However, many existing Person ReID methods have measure inconsistency between the training stage and the deployment stage, and they couple magnitude and orientation information of feature vectors in feature representation. Meanwhile, traditional triplet loss methods focus on samples within a mini-batch and lack knowledge of global feature distribution. To address these issues, we propose a novel homocentric hypersphere embedding scheme to decouple magnitude and orientation information for both feature and weight vectors, and reformulate classification loss and triplet loss to their angular versions and combine them into an angular discriminative loss. We evaluate our proposed method extensively on the widely used Person ReID benchmarks, including Market1501, CUHK03 and DukeMTMC-ReID. Our method demonstrates leading performance on all datasets.
BibTeX
@inproceedings{xiang2019homocentric,
  author = {Wangmeng Xiang and Jianqiang Huang and Xianbiao Qi and Xiansheng Hua and Lei Zhang},
  title = {{Homocentric Hypersphere Feature Embedding for Person Re-identification}},
  booktitle = {ICIP},
  year = {2019},
  doi = {10.1109/icip.2019.8803735},
}
Figure