[Paper Review] GiT: Graph Interactive Transformer for Vehicle Re-identification
This paper proposes GiT, a Graph Interactive Transformer for vehicle re-identification that jointly learns discriminative local features via a novel local correlation graph (LCG) and robust global features through self-attention in a stacked, interactive block architecture. The method achieves state-of-the-art performance on three large-scale benchmarks, with 97.22% R1 and 81.48% mAP on VeRi776 under the largest configuration.
Transformers are more and more popular in computer vision, which treat an image as a sequence of patches and learn robust global features from the sequence. However, pure transformers are not entirely suitable for vehicle re-identification because vehicle re-identification requires both robust global features and discriminative local features. For that, a graph interactive transformer (GiT) is proposed in this paper. In the macro view, a list of GiT blocks are stacked to build a vehicle re-identification model, in where graphs are to extract discriminative local features within patches and transformers are to extract robust global features among patches. In the micro view, graphs and transformers are in an interactive status, bringing effective cooperation between local and global features. Specifically, one current graph is embedded after the former level's graph and transformer, while the current transform is embedded after the current graph and the former level's transformer. In addition to the interaction between graphs and transforms, the graph is a newly-designed local correction graph, which learns discriminative local features within a patch by exploring nodes' relationships. Extensive experiments on three large-scale vehicle re-identification datasets demonstrate that our GiT method is superior to state-of-the-art vehicle re-identification approaches.
Motivation & Objective
- To address the limitation of pure CNNs and transformers in vehicle re-identification by jointly modeling local and global features.
- To overcome the lack of interaction between local and global feature learning in existing CNN-GNN or CNN-Transformer hybrids.
- To design a new local correlation graph (LCG) that captures discriminative local features within image patches by modeling node relationships.
- To develop a stacked, interactive architecture where graph and transformer modules cooperate across layers to enhance feature representation.
- To demonstrate generalization of the method beyond vehicle re-identification to person re-identification tasks.
Proposed method
- The GiT model stacks multiple GiT blocks, each integrating a local correlation graph (LCG) and a transformer layer in an interactive, cascaded manner.
- In each block, the current graph is embedded after the previous block’s graph and transformer, and the current transformer is embedded after the current graph and previous transformer, enabling cross-level feature interaction.
- The LCG module learns local features within each patch by modeling relationships among spatial nodes using learnable parameters and graph convolutional operations.
- The method uses multi-head self-attention in the transformer to capture long-range dependencies across patches, preserving spatial resolution through non-downsampling design.
- The model is trained with a joint triplet loss and cross-entropy loss to optimize both global and local feature discrimination.
- The architecture is scalable via depth (D) and number of attention heads (H), allowing ablation on model capacity.
Experimental results
Research questions
- RQ1How does the interaction between graph-based local feature learning and transformer-based global feature learning affect re-identification accuracy?
- RQ2What is the contribution of the proposed local correlation graph (LCG) module in capturing fine-grained vehicle details such as wheels and lights?
- RQ3How does the proposed GiT architecture compare to pure CNNs, pure transformers, and CNN-GNN hybrids in terms of performance and efficiency?
- RQ4To what extent can GiT generalize to other re-identification tasks, such as person re-identification?
- RQ5How do model depth (D) and number of attention heads (H) influence performance and parameter efficiency?
Key findings
- On the VeRi776 dataset, GiT-H12-D18 achieves 97.22% R1 and 81.48% mAP, outperforming all prior methods.
- The largest GiT configuration (H12-D18) achieves 97.22% R1 and 81.48% mAP on VeRi776, with 134.1M parameters, demonstrating strong performance with moderate complexity.
- On Market-1501, GiT achieves 95.7% R1 and 88.9% mAP, ranking first in mAP among all compared methods.
- On the larger MSMT17 dataset, GiT achieves 85.6% R1 and 64.8% mAP, outperforming all state-of-the-art methods in both metrics.
- The sensitivity analysis shows that increasing depth (D) has a more favorable impact on performance per parameter increase than increasing heads (H), with H=12 increasing parameters by 162.3% compared to H=3.
- GiT-Tiny (H3-D12) outperforms ViT-Base in both accuracy and FLOPs, demonstrating efficiency and effectiveness even at small scale.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.