NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-scale Context-aware Network with Transformer for Gait Recognition

Duowang Zhu, Xiaohu Huang, Xinggang Wang, Bo Yang, Botao He, Wenyu Liu, Bin Feng

This paper presents a novel approach to gait recognition—identifying individuals by the way they walk—using a Multi-scale Context-aware Network with Transformer (MCAT). By mimicking the human ability to adaptively focus on different temporal scales and introducing a mechanism to preserve spatial details, the authors achieve state-of-the-art results across major benchmarks.

TL;DR

MCAT is a gait recognition framework that adaptively fuses multi-scale temporal features (local and global) using Transformers while simultaneously employing a salient spatial feature learning module to counteract the "blurring" effects of temporal operations. It achieves top-tier performance on CASIA-B, OU-MVLP, and the challenging GREW dataset.

What Problem Does This Paper Address?

Gait recognition is notoriously difficult because the spatial differences between individuals' silhouettes are often subtle. Consequently, temporal modeling—how features change over time—is vital. However, current methods face two major hurdles:

  1. Rigid Aggregation: Most models use fixed methods (like simple summation or concatenation) to combine temporal information, lacking the flexibility to handle complex motions, self-occlusions, or viewpoint changes.
  2. Temporal Misalignment: Operations like temporal convolution and pooling often lead to "corrupted" spatial features. As shown in Figure 2, pixels at the same spatial location in different frames might correspond to different body parts or backgrounds, leading to blurred representations.
Temporal misalignment causes blurred features

The authors observe that humans naturally solve this by adaptively focusing on different time scales. For some subjects, a few frames are enough; for others, the entire sequence is needed (see Figure 1).

Fig. 1. Illustration that humans are capable of distinguishing gaits of different subjects by adaptively focusing on temporal fragments with different time scales. Color bar indicates the distribution of human attention. Darker color represents a higher level of attention paid to corresponding frames. Best viewed in color.

Methods

The MCAT architecture consists of three core components designed to work in tandem:

  1. Multi-scale Temporal Extraction (MSTE): This module generates features at three distinct levels: frame-level (preserving static appearance), short-term (capturing micro-motions via 1D convolutions), and long-term (capturing global periodicity via weighted frame summation).
  2. Adaptive Temporal Aggregation (ATA): This module fuses the multi-scale features hierarchically. It first uses a Local Relation Modeling block (a simple fully-connected layer) to correlate scales within each frame. Then, a Global Relation Modeling block—powered by a Transformer Encoder—enables long-range information exchange across the entire sequence.
  3. Salient Spatial Feature Learning (SSFL): To fix the misalignment problem, SSFL acts as a parallel "quality control" branch. It uses Multi-Head Self-Attention (MHSA) to generate global importance maps, selecting the most "salient" (clear and un-occluded) spatial parts across the sequence to supplement the temporal features.
Overview of the MCAT architecture

Datasets

The model was evaluated on three standard benchmarks:

  • CASIA-B: A popular dataset with 124 subjects, 11 camera views, and three walking conditions (normal, carrying a bag, wearing a coat).
  • OU-MVLP: A large-scale dataset containing over 10,000 subjects.
  • GREW: A challenging "in-the-wild" dataset with 26,345 subjects captured under uncontrolled conditions, representing a significant step toward real-world application.

Key Insights and Ideas

  • Bio-inspired Adaptation: The core "aha moment" is that temporal modeling shouldn't be one-size-fits-all. By using a Transformer to weigh multi-scale features, the network learns when to prioritize short-term micro-motions versus long-term rhythmic patterns.
  • Spatial-Temporal Complementarity: The authors treat motion learning (ATA) and spatial mining (SSFL) as complementary tasks. While ATA captures the "how" of the walk, SSFL ensures the "who" (the static appearance) isn't lost to temporal blurring.
  • Global Saliency: Instead of just picking the "best" single frame, SSFL uses multi-head attention to pick the best parts of multiple frames, effectively reconstructing a high-quality spatial representation from a noisy sequence.

Key Results

MCAT sets new state-of-the-art (SOTA) records:

  • CASIA-B: Achieved rank-1 accuracies of 98.7% (Normal), 96.2% (Bag), and 88.7% (Coat). Notably, it showed the lowest performance standard deviation across different camera views, proving its robustness to viewpoint changes.
  • OU-MVLP: Reached 97.5% rank-1 accuracy, outperforming previous methods like 3DLocal and GaitGL.
  • GREW: Achieved 50.6% rank-1 accuracy, a significant margin over existing temporal modeling methods like GaitPart (44.0%).

Limitations and Future Work

While MCAT performs exceptionally well, the authors note that the "in-the-wild" performance on GREW (50.6%) highlights the remaining difficulty of gait recognition in completely uncontrolled environments compared to lab settings. They suggest that the principle of learning spatial and temporal features in a supplementary manner could be extended to other action-related tasks, such as video-based person re-identification.

Summary updated

BibTeX
@inproceedings{zhu2021multi,
  author = {Duowang Zhu and Xiaohu Huang and Xinggang Wang and Bo Yang and Botao He and Wenyu Liu and Bin Feng},
  title = {{Multi-scale Context-aware Network with Transformer for Gait Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01267},
}
Figure