# DeepFace-EMD: Re-ranking Using Patch-wise Earth Mover's Distance Improves Out-Of-Distribution Face Identification

arXiv: https://arxiv.org/abs/2112.04016 · HTML: https://mlsanity.com/paper/2112.04016/

## Key facts

- Cited by 20 papers in the map (data through 14 Oct 2026).
- Builds on 29 of its 78 references that are in the map.
- First posted on arXiv 7 Dec 2021.

## Builds on (most cited first, 29 of 29)

- [FaceNet: A Unified Embedding for Face Recognition and Clustering](https://mlsanity.com/paper/1503.03832/) (2015)
- [Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distances](https://mlsanity.com/paper/1306.0895/) (2013)
- [Identity Mappings in Deep Residual Networks](https://mlsanity.com/paper/1603.05027/) (2016)
- [Adversarial examples in the physical world](https://mlsanity.com/paper/1607.02533/) (2016)
- [Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning](https://mlsanity.com/paper/1602.07261/) (2016)
- [CosFace: Large Margin Cosine Loss for Deep Face Recognition](https://mlsanity.com/paper/1801.09414/) (2018)
- [VGGFace2: A dataset for recognising faces across pose and age](https://mlsanity.com/paper/1710.08092/) (2017)
- [Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks](https://mlsanity.com/paper/1604.02878/) (2016)
- [Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Images](https://mlsanity.com/paper/1412.1897/) (2014)
- [SphereFace: Deep Hypersphere Embedding for Face Recognition](https://mlsanity.com/paper/1704.08063/) (2017)
- [Learning Face Representation from Scratch](https://mlsanity.com/paper/1411.7923/) (2014)
- [A Metric Learning Reality Check](https://mlsanity.com/paper/2003.08505/) (2020)
- [Cross-Age LFW: A Database for Studying Cross-Age Face Recognition in Unconstrained Environments](https://mlsanity.com/paper/1708.08197/) (2017)
- [On the Robustness of Vision Transformers to Adversarial Examples](https://mlsanity.com/paper/2104.02610/) (2021)
- [Towards Transferable Adversarial Attack against Deep Face Recognition](https://mlsanity.com/paper/2004.05790/) (2020)
- [A Pose-Sensitive Embedding for Person Re-Identification with Expanded Cross Neighborhood Re-Ranking](https://mlsanity.com/paper/1711.10378/) (2017)
- [Deeply learned face representations are sparse, selective, and robust](https://mlsanity.com/paper/1412.1265/) (2014)
- [Occlusion Robust Face Recognition Based on Mask Learning with PairwiseDifferential Siamese Network](https://mlsanity.com/paper/1908.06290/) (2019)
- [DeepEMD: Differentiable Earth Mover's Distance for Few-Shot Learning](https://mlsanity.com/paper/2003.06777/) (2020)
- [Masked Face Recognition for Secure Authentication](https://mlsanity.com/paper/2008.11104/) (2020)
- [Towards Interpretable Deep Metric Learning with Structural Matching](https://mlsanity.com/paper/2108.05889/) (2021)
- [Visualizing Deep Similarity Networks](https://mlsanity.com/paper/1901.00536/) (2019)
- [End2End Occluded Face Recognition by Masking Corrupted Features](https://mlsanity.com/paper/2108.09468/) (2021)
- [Faster Than Real-time Facial Alignment: A 3D Spatial Transformer Network Approach in Unconstrained Poses](https://mlsanity.com/paper/1707.05653/) (2017)
- [Robust LSTM-Autoencoders for Face De-Occlusion in the Wild](https://mlsanity.com/paper/1612.08534/) (2016)
- [Face Synthesis for Eyeglass-Robust Face Recognition](https://mlsanity.com/paper/1806.01196/) (2018)
- [MLFW: A Database for Face Recognition on Masked Faces](https://mlsanity.com/paper/2109.05804/) (2021)
- [Enhancing Convolutional Neural Networks for Face Recognition with Occlusion Maps and Batch Triplet Loss](https://mlsanity.com/paper/1707.07923/) (2017)
- [On Improving the Generalization of Face Recognition in the Presence of Occlusions](https://mlsanity.com/paper/2006.06787/) (2020)

## Built on by (most cited first, 20 of 20)

- [Visual correspondence-based explanations improve AI robustness and human-AI team accuracy](https://mlsanity.com/paper/2208.00780/) (2022)
- [How explainable are adversarially-robust CNNs?](https://mlsanity.com/paper/2205.13042/) (2022)
- [Dynamic Feature Pruning and Consolidation for Occluded Person Re-Identification](https://mlsanity.com/paper/2211.14742/) (2022)
- [Breaching FedMD: Image Recovery via Paired-Logits Inversion Attack](https://mlsanity.com/paper/2304.11436/) (2023)
- [Enhancing person re-identification via Uncertainty Feature Fusion Method and Auto-weighted Measure Combination](https://mlsanity.com/paper/2405.01101/) (2024)
- [EvalAttAI: A Holistic Approach to Evaluating Attribution Maps in Robust and Non-Robust Models](https://mlsanity.com/paper/2303.08866/) (2023)
- [Fast and Interpretable Face Identification for Out-Of-Distribution Data Using Vision Transformers](https://mlsanity.com/paper/2311.02803/) (2023)
- [PCNN: Probable-Class Nearest-Neighbor Explanations Improve Fine-Grained Image Classification Accuracy for AIs and Humans](https://mlsanity.com/paper/2308.13651/) (2023)
- [OTFace: Hard Samples Guided Optimal Transport Loss for Deep Face Representation](https://mlsanity.com/paper/2203.14461/) (2022)
- [TAB: Transformer Attention Bottlenecks enable User Intervention and Debugging in Vision-Language Models](https://mlsanity.com/paper/2412.18675/) (2024)
- [A Re-ranking Method using K-nearest Weighted Fusion for Person Re-identification](https://mlsanity.com/paper/2509.04050/) (2025)
- [Building Trustworthy AI for Materials Discovery: From Autonomous Laboratories to Z-scores](https://mlsanity.com/paper/2512.01080/) (2025)
- [A Survey of Face Recognition](https://mlsanity.com/paper/2212.13038/) (2022)
- [Prototype Learning for Explainable Brain Age Prediction](https://mlsanity.com/paper/2306.09858/) (2023)
- [Bidirectional Knowledge Reconfiguration for Lightweight Point Cloud Analysis](https://mlsanity.com/paper/2310.05125/) (2023)
- [Optimisation of federated learning settings under statistical heterogeneity variations](https://mlsanity.com/paper/2406.06340/) (2024)
- [MoDE: Mixture of Diffusion Experts for Any Occluded Face Recognition](https://mlsanity.com/paper/2505.04306/) (2025)
- [DetailSemNet: Elevating Signature Verification through Detail-Semantic Integration](https://mlsanity.com/paper/2511.16364/) (2025)
- [MGFace: Mask-Gated Face Matching via Conditional Similarity Routing](https://mlsanity.com/paper/2607.13187/) (2026)
- [Video-Based Palm-Vein Authentication under Challenging Conditions](https://mlsanity.com/paper/2609.02776/) (2026)

## Abstract (arXiv)

Face identification (FI) is ubiquitous and drives many high-stake decisions made by law enforcement. State-of-the-art FI approaches compare two images by taking the cosine similarity between their image embeddings. Yet, such an approach suffers from poor out-of-distribution (OOD) generalization to new types of images (e.g., when a query face is masked, cropped, or rotated) not included in the training set or the gallery. Here, we propose a re-ranking approach that compares two faces using the Earth Mover's Distance on the deep, spatial features of image patches. Our extra comparison stage explicitly examines image similarity at a fine-grained level (e.g., eyes to eyes) and is more robust to OOD perturbations and occlusions than traditional FI. Interestingly, without finetuning feature extractors, our method consistently improves the accuracy on all tested OOD queries: masked, cropped, rotated, and adversarial while obtaining similar results on in-distribution images.
