A Re-Ranking Method Using K-Nearest Weighted Fusion for Person Re-Identification

Quang-Huy Che, Le-Chuong Nguyen, Gia-Nghia Tran, Dinh-Duy Phan, Vinh-Tiep Nguyen

Abstract

Person Re-identification (ReID) remains a challenging task due to "view bias," where occlusions, lighting variations, and camera angles obscure identifying features. While multi-view representations offer a solution, they typically require extensive labeling or high computational costs. This paper presents K-nearest Weighted Fusion (KWF), a lightweight, unsupervised re-ranking method that synthesizes multi-view features from a candidate's neighbors. By aggregating these features during post-processing, KWF achieves significant accuracy improvements—most notably a 22% boost in Rank@1 on occluded datasets—while maintaining a minimal memory footprint of approximately 1.1GB.

Introduction

The primary objective of Person Re-identification (ReID) is to match individuals across a network of non-overlapping cameras. Despite advancements in deep learning, systems often struggle with "view bias." A single image (single-view) may fail to capture essential features if the subject is partially blocked by an object, cast in shadow, or positioned at an unfavorable angle.

To combat this, researchers have looked toward multi-view features, which combine information from different perspectives to create a more robust identity signature. However, traditional multi-view methods often necessitate additional data labels or computationally intensive fine-tuning. KWF addresses this by leveraging the existing feature space of a pre-trained model to perform multi-view synthesis in an unsupervised manner during the re-ranking stage.

Methodology: K-nearest Weighted Fusion

The KWF method is implemented as a two-stage hierarchical pipeline designed to be integrated into existing ReID workflows without requiring model retraining.

Stage 1: Initial Ranking

A standard pre-trained backbone (such as ResNet-50) extracts features from the query and gallery images. An initial ranking is produced based on the cosine distance between the query feature and the gallery features.

Stage 2: KWF Re-ranking

For the top $M$ candidates identified in the first stage, the system performs a feature fusion process:

  1. Neighbor Identification: For each candidate, the system identifies its $K$ nearest neighbors within the gallery. The core insight is that in a well-trained feature space, the nearest neighbors of a candidate are likely the same individual captured from different camera views.
  2. Camera Exclusion: To ensure the synthesized feature is truly "multi-view," the method excludes neighbors captured by the same camera as the query. This prevents the fusion from simply reinforcing the same biased view.
  3. Weighted Fusion: The identified neighbors' features are fused into a single multi-view representation. The authors evaluated three weighting strategies:
  4. Uniform: A simple arithmetic average of neighbor features.
  5. Inverse Distance Power: Assigns higher weights to closer (more similar) neighbors.
  6. Exponential Decay: Uses an exponential function to determine weights.

Experimental results indicated that Inverse Distance Power ($p=2$) provided the best balance, prioritizing confident matches while still incorporating auxiliary information from more distant neighbors.

Experimental Results

The KWF method was evaluated on three benchmark datasets: Market-1501, MSMT17, and Occluded-DukeMTMC. The results demonstrate that KWF is particularly effective in challenging, real-world scenarios.

Accuracy Gains

The most significant improvements were observed on the Occluded-DukeMTMC dataset, where Rank@1 accuracy jumped from 48.7% to 70.7%, a total increase of 22.0%. On the large-scale MSMT17 dataset, Rank@1 increased by 9.8% (from 74.1% to 83.9%). On the standard Market-1501 dataset, the method achieved a high Rank@1 of 96.2%.

Computational Efficiency

One of the primary advantages of KWF is its efficiency compared to other re-ranking techniques like Graph Neural Networks (GNNs) or $k$-reciprocal re-ranking.

  • Memory Usage: KWF requires only ~1.1GB of GPU memory, whereas competing methods often require between 5GB and 21GB.
  • Processing Time: On the Market-1501 dataset, the evaluation time was approximately 8.5 seconds, making it suitable for large-scale systems or edge devices where hardware resources are limited.

Discussion and Limitations

While KWF provides substantial boosts to Rank@1 accuracy, the improvements in mean Average Precision (mAP) are more modest compared to some state-of-the-art re-rankers. This suggests that while KWF is excellent at pushing the correct match to the very top of the list, it may not be as effective at retrieving all instances of the identity across the entire gallery.

Furthermore, because KWF is an unsupervised post-processing step, its performance is inherently tied to the quality of the initial feature extractor. If the Stage 1 model is unable to cluster similar identities effectively, the KWF stage will aggregate "noisy" neighbors, potentially diluting the feature representation rather than enhancing it.

Conclusion

K-nearest Weighted Fusion (KWF) offers a highly efficient solution to the view bias problem in Person Re-identification. By treating a candidate's neighbors as surrogate multi-view data, KWF achieves massive performance gains on occluded and large-scale datasets without the need for additional labels or heavy computational overhead. Future work may involve adaptive strategies to dynamically adjust the number of neighbors ($K$) or fusion weights based on the confidence of the initial match.

Summary updated

BibTeX
@inproceedings{che2025re,
  author = {Quang-Huy Che and Le-Chuong Nguyen and Gia-Nghia Tran and Dinh-Duy Phan and Vinh-Tiep Nguyen},
  title = {{A Re-Ranking Method Using K-Nearest Weighted Fusion for Person Re-Identification}},
  booktitle = {ICPRAM},
  year = {2025},
  doi = {10.5220/0013176100003905},
}
Figure