NFormer: Robust Person Re-identification with Neighbor Transformer

Haochen Wang, Jiayi Shen, Yongtuo Liu, Yan Gao, Efstratios Gavves
4/20/2022
cs.CVcs.AI
transformer-attention

Official code: haochenheheda/NFormer (75 stars, Python, MIT, last commit 2022-06-09).

Abstract

Person re-identification aims to retrieve persons in highly varying settings across different cameras and scenarios, in which robust and discriminative representation learning is crucial. Most research considers learning representations from single images, ignoring any potential interactions between them.

Show full abstract

However, due to the high intra-identity variations, ignoring such interactions typically leads to outlier features. To tackle this issue, we propose a Neighbor Transformer Network, or NFormer, which explicitly models interactions across all input images, thus suppressing outlier features and leading to more robust representations overall. As modelling interactions between enormous amount of images is a massive task with lots of distractors, NFormer introduces two novel modules, the Landmark Agent Attention, and the Reciprocal Neighbor Softmax. Specifically, the Landmark Agent Attention efficiently models the relation map between images by a low-rank factorization with a few landmarks in feature space. Moreover, the Reciprocal Neighbor Softmax achieves sparse attention to relevant -- rather than all -- neighbors only, which alleviates interference of irrelevant representations and further relieves the computational burden. In experiments on four large-scale datasets, NFormer achieves a new state-of-the-art. The code is released at \url{https://github.com/haochenheheda/NFormer}.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of NFormer: Robust Person Re-identification with Neighbor Transformer

759Python, ShellMar 16, 20224 years agoMIT

Similar Papers

Cite this paper

@article{wang2022nformer,
  title  = {NFormer: Robust Person Re-identification with Neighbor Transformer},
  author = {Haochen Wang and Jiayi Shen and Yongtuo Liu and Yan Gao and Efstratios Gavves},
  year   = {2022},
  eprint = {2204.09331},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.09331}
}

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/2204.09331.svg)](https://codeofpaper.com/paper/2204.09331)

Discussion