TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/TransMatcher: Deep Image Matching Through Transformers for...

TransMatcher: Deep Image Matching Through Transformers for Generalizable Person Re-identification

Shengcai Liao, Ling Shao

2021-05-30NeurIPS 2021 12Image ClassificationRepresentation LearningMetric LearningPerson Re-IdentificationGeneralizable Person Re-identification
PaperPDFCode(official)Code(official)

Abstract

Transformers have recently gained increasing attention in computer vision. However, existing studies mostly use Transformers for feature representation learning, e.g. for image classification and dense predictions, and the generalizability of Transformers is unknown. In this work, we further investigate the possibility of applying Transformers for image matching and metric learning given pairs of images. We find that the Vision Transformer (ViT) and the vanilla Transformer with decoders are not adequate for image matching due to their lack of image-to-image attention. Thus, we further design two naive solutions, i.e. query-gallery concatenation in ViT, and query-gallery cross-attention in the vanilla Transformer. The latter improves the performance, but it is still limited. This implies that the attention mechanism in Transformers is primarily designed for global feature aggregation, which is not naturally suitable for image matching. Accordingly, we propose a new simplified decoder, which drops the full attention implementation with the softmax weighting, keeping only the query-key similarity computation. Additionally, global max pooling and a multilayer perceptron (MLP) head are applied to decode the matching result. This way, the simplified decoder is computationally more efficient, while at the same time more effective for image matching. The proposed method, called TransMatcher, achieves state-of-the-art performance in generalizable person re-identification, with up to 6.1% and 5.7% performance gains in Rank-1 and mAP, respectively, on several popular datasets. Code is available at https://github.com/ShengcaiLiao/QAConv.

Results

TaskDatasetMetricValueModel
Person Re-IdentificationMSMT17ClonedPerson->Rank-151.6TransMatcher
Person Re-IdentificationMSMT17ClonedPerson->mAP20.8TransMatcher
Person Re-IdentificationMSMT17Market-1501->Rank147.3TransMatcher
Person Re-IdentificationMSMT17Market-1501->mAP18.4TransMatcher
Person Re-IdentificationMSMT17RandPerson->Rank-148.3TransMatcher
Person Re-IdentificationMSMT17RandPerson->mAP17.7TransMatcher
Person Re-IdentificationCUHK03-NP (detected)ClonedPerson->Rank-125.4TransMatcher
Person Re-IdentificationCUHK03-NP (detected)ClonedPerson->mAP24.4TransMatcher
Person Re-IdentificationCUHK03-NP (detected)MSMT17->Rank-123.7TransMatcher
Person Re-IdentificationCUHK03-NP (detected)MSMT17->mAP22.5TransMatcher
Person Re-IdentificationCUHK03-NP (detected)MSMT17-All->Rank-131.9TransMatcher
Person Re-IdentificationCUHK03-NP (detected)MSMT17-All->mAP30.7TransMatcher
Person Re-IdentificationCUHK03-NP (detected)Market-1501->Rank-122.2TransMatcher
Person Re-IdentificationCUHK03-NP (detected)Market-1501->mAP21.4TransMatcher
Person Re-IdentificationCUHK03-NP (detected)RandPerson->Rank-117.1TransMatcher
Person Re-IdentificationCUHK03-NP (detected)RandPerson->mAP16TransMatcher
Person Re-IdentificationMarket-1501ClonedPerson->Rank-184.8TransMatcher
Person Re-IdentificationMarket-1501ClonedPerson->mAP62.3TransMatcher
Person Re-IdentificationMarket-1501MSMT17->Rank-180.1TransMatcher
Person Re-IdentificationMarket-1501MSMT17->mAP52TransMatcher
Person Re-IdentificationMarket-1501MSMT17-All->Rank-182.6TransMatcher
Person Re-IdentificationMarket-1501MSMT17-All->mAP58.4TransMatcher
Person Re-IdentificationMarket-1501RandPerson->Rank-177.3TransMatcher
Person Re-IdentificationMarket-1501RandPerson->mAP49.1TransMatcher

Related Papers

Touch in the Wild: Learning Fine-Grained Manipulation with a Portable Visuo-Tactile Gripper2025-07-20Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17Spectral Bellman Method: Unifying Representation and Exploration in RL2025-07-17Boosting Team Modeling through Tempo-Relational Representation Learning2025-07-17