SapiensID: Foundation for Human Recognition
Minchul Kim, Dingqiang Ye, Yiyang Su, Feng Liu, Xiaoming Liu
TL;DR
SapiensID tackles the problem of unifying face and body recognition under wide pose, scale, and visibility variations by introducing Retina Patch (RP), Masked Recognition Model (MRM), and Semantic Attention Head (SAH), trained on the large and diverse WebBody4M dataset. RP enables ROI-aware, region-consistent patch tokenization for Vision Transformers, while MRM accommodates variable token counts through masking with attention scaling and a variable masking rate. SAH provides pose-invariant representations by pooling features around key body parts, aided by predicted keypoints, and the WebBody4M data enables broad generalization across short-term and long-term ReID tasks, including Cross Pose-Scale ReID. The combination yields state-of-the-art results on ReID benchmarks, strong cross-modality capabilities, and a new baseline for holistic human recognition in unconstrained environments, with implications for scalable, privacy-conscious deployments.
Abstract
Existing human recognition systems often rely on separate, specialized models for face and body analysis, limiting their effectiveness in real-world scenarios where pose, visibility, and context vary widely. This paper introduces SapiensID, a unified model that bridges this gap, achieving robust performance across diverse settings. SapiensID introduces (i) Retina Patch (RP), a dynamic patch generation scheme that adapts to subject scale and ensures consistent tokenization of regions of interest, (ii) a masked recognition model (MRM) that learns from variable token length, and (iii) Semantic Attention Head (SAH), an module that learns pose-invariant representations by pooling features around key body parts. To facilitate training, we introduce WebBody4M, a large-scale dataset capturing diverse poses and scale variations. Extensive experiments demonstrate that SapiensID achieves state-of-the-art results on various body ReID benchmarks, outperforming specialized models in both short-term and long-term scenarios while remaining competitive with dedicated face recognition systems. Furthermore, SapiensID establishes a strong baseline for the newly introduced challenge of Cross Pose-Scale ReID, demonstrating its ability to generalize to complex, real-world conditions.
