KeyPoint Relative Position Encoding for Face Recognition

Minchul Kim, Yiyang Su, Feng Liu, Anil Jain, Xiaoming Liu
3/1/2024
56 citations
transformer-attention

Official code: mk-minchul/kprpe (22 stars, last commit 2024-06-10).

Abstract

In this paper, we address the challenge of making ViT models more robust to unseen affine transformations. Such robustness becomes useful in various recognition tasks such as face recognition when image alignment failures occur.

Show full abstract

We propose a novel method called KP-RPE, which leverages key points (e.g. facial landmarks) to make ViT more resilient to scale, translation, and pose variations. We begin with the observation that Relative Position Encoding (RPE) is a good way to bring affine transform generalization to ViTs. RPE, however, can only inject the model with prior knowledge that nearby pixels are more important than far pixels. Keypoint RPE (KP-RPE) is an extension of this principle, where the significance of pixels is not solely dictated by their proximity but also by their relative positions to specific keypoints within the image. By anchoring the significance of pixels around keypoints, the model can more effectively retain spatial relationships, even when those relationships are disrupted by affine transformations. We show the merit of KP-RPE inface and gait recognition. The experimental results demonstrate the effectiveness in improving face recognition performance from low-quality images, particularly where alignment is prone to failure. Code and pre-trained models are available.

View on arXivView PDF

Code Implementations(1)

mk-minchul/kprpeOfficial100%
221Mar 21, 20242 years ago

Similar Papers

Cite this paper

@article{kim2024keypoint,
  title  = {KeyPoint Relative Position Encoding for Face Recognition},
  author = {Minchul Kim and Yiyang Su and Feng Liu and Anil Jain and Xiaoming Liu},
  year   = {2024},
  eprint = {2403.14852},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.14852},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.14852.svg)](https://codeofpaper.com/paper/2403.14852)

Discussion