Learning Visual Prompt for Gait Recognition

Kang Ma, Ying Fu, Chunshui Cao, Saihui Hou, Yongzhen Huang, Dezhi Zheng

Introduction

Gait recognition—identifying individuals by their unique walking patterns—is a powerful biometric tool for long-range identification. However, its practical application faces a significant "lab vs. reality" gap. While models perform exceptionally well in controlled laboratory settings, their accuracy often plummets in "in-the-wild" scenarios characterized by varying viewpoints, diverse clothing, carrying objects, and occlusions.

Traditional gait recognition models often rely on fixed convolutional patterns that lack the flexibility to adapt to these environmental distractors. Furthermore, many existing architectures struggle with length generalization, failing to maintain performance when processing walking sequences significantly longer than those seen during training. To address these challenges, the authors propose VPNet (Visual Prompt Network), a unified framework that introduces the concept of "prompting" to the domain of gait recognition.

Methodology

VPNet introduces three primary architectural innovations designed to enhance flexibility and robustness:

  1. Forward Cycle Temporal Shift (FTS): To capture motion patterns without the heavy parameter cost of 3D convolutions, VPNet utilizes a "plug-and-play" FTS module. This module cyclically shifts feature map segments along the temporal dimension, aligning with the forward-moving nature of human gait.
  2. Part-based Prompt Pool: Inspired by Large Language Models (LLMs), the authors developed a library of learnable "key-value" pairs. The model queries this pool to retrieve "templates" that match specific input conditions, such as a particular camera angle or attire. These prompts provide the network with task-relevant context dynamically.
  3. Dynamic Transformer: To ensure robust performance across varying sequence lengths, the framework employs a transformer head equipped with a Dynamic Context Window Mask. This mechanism allows the model to prioritize local motion patterns while maintaining a global understanding of the gait sequence.
Overview of the VPNet architecture, highlighting the Forward Cycle Temporal Shift (FTS), Part-based Prompt Pool, and the Dynamic Transformer head.

Experimental Results

The performance of VPNet was evaluated on four major benchmarks: Gait3D and GREW (unconstrained "in-the-wild" datasets), and OUMVLP and CASIA-B (controlled laboratory datasets).

VPNet established new state-of-the-art (SOTA) benchmarks across all tested datasets. Notably, on the challenging Gait3D dataset, it achieved a 75.4% Rank-1 accuracy, representing a 9.1% improvement over previous leading methods. On the GREW dataset, accuracy reached 80.0%, a substantial leap from the 68.5% achieved by GaitGCI. In laboratory settings like CASIA-B, the model demonstrated exceptional robustness to clothing changes, achieving 90.0% accuracy in the "Clothing" (CL) sub-category.

Comparison of VPNet (Ours) against existing gait recognition methods across multiple benchmarks, showing superior performance in both controlled and in-the-wild scenarios.

Discussion and Conclusion

The success of VPNet highlights several key insights:

  • Prompting as Contextual Adaptation: Treating gait recognition as a conditional task allows the network to leverage specialized knowledge from the prompt pool, effectively acting as a "cheat sheet" for environmental variations.
  • Physical Alignment: The use of Forward Cycle Temporal Shift demonstrates the benefit of aligning architectural design with the physical reality of human movement.
  • Temporal Focus: The Dynamic Transformer suggests that local temporal relationships are often more critical for gait identification than long-range global dependencies, which can introduce noise in long sequences.

While highly effective, the authors note that the current prompt pool is trained from scratch. Future work involving large-scale gait pre-training could further enhance the model's capabilities. Despite the added architectural complexity of the prompt pool and transformer head, VPNet proves that dynamic, context-aware prompting is a vital step toward robust, real-world biometric systems.

Summary updated

BibTeX
@inproceedings{ma2024learning,
  author = {Kang Ma and Ying Fu and Chunshui Cao and Saihui Hou and Yongzhen Huang and Dezhi Zheng},
  title = {{Learning Visual Prompt for Gait Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00063},
}
Figure