PersonMAE: Person Re-Identification Pre-Training with Masked AutoEncoders

Hezhen Hu, Xiaoyi Dong, Jianmin Bao, Dongdong Chen, Lu Yuan, Houqiang Li

Abstract

Pre-training is playing an increasingly important role in learning generic feature representation for Person Re-identification (ReID). We argue that a high-quality ReID representation should have three properties, namely, multi-level awareness, occlusion robustness, and cross-region invariance. To this end, we propose a simple yet effective pre-training framework, namely PersonMAE, which involves two core designs into masked autoencoders to better serve the task of Person Re-ID. 1) PersonMAE generates two regions from the given image with RegionA as the input and RegionB as the prediction target. RegionA is corrupted with block-wise masking to mimic common occlusion in ReID and its remaining visible parts are fed into the encoder. 2) Then PersonMAE aims to predict the whole RegionB at both pixel level and semantic feature level. It encourages its pre-trained feature representations with the three properties mentioned above. These properties make PersonMAE compatible with downstream Person ReID tasks, leading to state-of-the-art performance on four downstream ReID tasks, i.e., supervised (holistic and occluded setting), and unsupervised (UDA and USL setting). Notably, on the commonly adopted supervised setting, PersonMAE with ViT-B backbone achieves 79.8% and 69.5% mAP on the MSMT17 and OccDuke datasets, surpassing the previous state-of-the-art by a large margin of +8.0 mAP, and +5.3 mAP, respectively.

Introduction

Person Re-Identification (ReID) is a cornerstone of modern surveillance and search, yet it remains a challenging task due to real-world environmental factors. Pedestrians are frequently partially obscured by obstacles like vehicles or vegetation, and automated person detectors often produce misaligned or jittery crops. While self-supervised pre-training has advanced the field, standard techniques like Contrastive Learning often prioritize global context over the fine-grained details—such as the specific texture of a bag strap or the color of a hat—necessary for distinguishing between similar-looking individuals.

Challenges in Person Re-ID: fine-grained attribute recognition (left) and handling various occlusions (right).

Methodology: The PersonMAE Framework

PersonMAE addresses these limitations by pivoting from standard "inner prediction" (reconstructing an image from itself) to a novel "outer prediction" strategy. The framework is built on four key pillars:

  1. Cross-Region Generation: The system crops two overlapping but distinct regions from a single pedestrian image: RegionA (input) and RegionB (target). This forces the model to learn spatial invariance, recognizing the same identity despite shifts in camera cropping.
  2. Heavy Block-wise Masking: To simulate real-world occlusion, the model masks 75% of RegionA using a block-wise strategy. This mimics scenarios where a person is partially hidden behind a pillar or vehicle.
  3. Multi-Level Decoding: PersonMAE employs parallel decoders to capture both low-level and high-level information. A Pixel Decoder reconstructs raw pixels for color and texture, while a Feature Decoder predicts semantic features by matching the output of a slowly updated Momentum Encoder.
  4. Cross-Region Positional Injection: To bridge the gap between the two regions, the model injects positional information that explicitly defines the spatial relationship between RegionA and RegionB.

Key Insights and Ideas

The Power of Hallucination

By masking the vast majority of the input, the model is forced to "hallucinate" the missing parts of the person. This creates a robust representation capable of identifying an individual even when only a small fragment, such as a shoulder or a hat, is visible.

Example of car occlusion, a common challenge that PersonMAE is designed to overcome through its masking and reconstruction strategy.

Multi-Level Awareness

Learning simultaneously at the pixel and semantic levels provides the "multi-level awareness" required for high-precision ReID. While pixel-level learning captures fine details, semantic-level learning ensures the model doesn't get lost in low-level noise, allowing it to distinguish between two people wearing very similar blue coats.

Experimental Results

PersonMAE was pre-trained on the LUPerson dataset (4.18 million unlabeled images) and evaluated across several benchmarks, including Market1501, MSMT17, and OccDuke.

  • Supervised ReID: On MSMT17, PersonMAE achieved 79.8% mAP, an +8.0% increase over the previous state-of-the-art (SOTA) method, PASS.
  • Occluded ReID: On the OccDuke dataset, it reached 69.5% mAP, a +5.3% improvement, validating its robustness to hidden body parts.
  • Data Efficiency: The model demonstrated remarkable efficiency, outperforming previous SOTA methods even when trained on only 25% of the pre-training data.

Conclusion

PersonMAE demonstrates that by specifically tailoring Masked AutoEncoders to the spatial and occlusion challenges of Person Re-ID, we can achieve significant leaps in performance. By forcing the model to reason across different regions and through heavy occlusion, it learns a more resilient and detailed representation of human identity. Future work will explore more sophisticated, body-part-aware masking strategies and extend this logic to video-based ReID tasks.

Summary updated

Abstract

Pre-training is playing an increasingly important role in learning generic feature representation for Person Re-identification (ReID). We argue that a high-quality ReID representation should have three properties, namely, multi-level awareness, occlusion robustness, and cross-region invariance. To this end, we propose a simple yet effective pre-training framework, namely PersonMAE, which involves two core designs into masked autoencoders to better serve the task of Person Re-ID. 1) PersonMAE generates two regions from the given image with RegionA as the input and \textit{RegionB} as the prediction target. RegionA is corrupted with block-wise masking to mimic common occlusion in ReID and its remaining visible parts are fed into the encoder. 2) Then PersonMAE aims to predict the whole RegionB at both pixel level and semantic feature level. It encourages its pre-trained feature representations with the three properties mentioned above. These properties make PersonMAE compatible with downstream Person ReID tasks, leading to state-of-the-art performance on four downstream ReID tasks, i.e., supervised (holistic and occluded setting), and unsupervised (UDA and USL setting). Notably, on the commonly adopted supervised setting, PersonMAE with ViT-B backbone achieves 79.8% and 69.5% mAP on the MSMT17 and OccDuke datasets, surpassing the previous state-of-the-art by a large margin of +8.0 mAP, and +5.3 mAP, respectively.
BibTeX
@article{hu2024personmae,
  author = {Hezhen Hu and Xiaoyi Dong and Jianmin Bao and Dongdong Chen and Lu Yuan and Dong Chen and Houqiang Li},
  title = {{PersonMAE: Person Re-Identification Pre-Training with Masked AutoEncoders}},
  journal = {IEEE Trans. Multimedia},
  year = {2024},
  doi = {10.1109/tmm.2024.3405649},
}
Figure