Abstract
GaitLLM treats human walking patterns as a "new foreign language," leveraging the massive sequence-modeling power of pre-trained Large Language Models (LLMs) to identify individuals. By converting gait silhouettes into discrete "gait sentences" and processing them through a frozen LLM, the framework achieves state-of-the-art accuracy on major benchmarks while training only 4.3% of its total parameters.
Introduction
Gait recognition—identifying people by how they walk—is notoriously difficult because walking patterns are affected by external factors like clothing, carrying bags, and camera viewpoints. While static features like body shape are easily obscured, the dynamic sequence of movement is more robust.
The challenge lies in capturing these subtle, long-range temporal dependencies. Current methods rely on complex, expert-designed architectures that are often overfitted to specific datasets. GaitLLM addresses this by "borrowing" the sophisticated sequence-modeling capabilities of LLMs that have already learned the structure of natural language. The core insight is that a gait sequence is structured like a sentence: individual movements are "words," and a full stride is a "thought."
The GaitLLM Framework
The architecture consists of five modules, notably keeping the heavy hitters (the Gait Encoder and the LLM) frozen to preserve their pre-trained knowledge. This allows the model to leverage a 543M parameter system while only updating about 20M parameters.
Gait-to-Language (G2L) Module
This module acts as the "translator" between visual features and linguistic tokens. It consists of two primary components:
- Spatial Tokenizer: Uses a transformer block to compress spatial patches of a gait silhouette into a single, optimized token.
- Temporal Tokenizer: Since walking has redundant frames, it uses a Peak Tokens Finder (PTF) to identify the most informative moments and a Motion Clip Assembler (MCA) to merge redundant data into a concise "gait sentence."
Sequence Modeling and Fusion
The "gait sentence" is fed into an off-the-shelf LLM (like Qwen-0.5B). The LLM treats these tokens as a new language, capturing complex relationships between different phases of a stride. The Language-to-Gait (L2G) Module then maps the LLM’s high-level semantic output back into the gait feature space. Finally, the LLM-refined features are fused with traditional gait features and passed to a recognition head for final identification.
Experimental Evaluation
The model was evaluated on four major public gait datasets: Gait3D & GREW (large-scale, "in-the-wild"), CCPG (clothing changes), and SUSTech1K (challenging attributes like umbrellas and night-time walking).
Key Results
GaitLLM achieved State-of-the-Art (SOTA) results across the board:
- Gait3D: Improved Rank-1 accuracy by 6.7% and mAP by 3.8% compared to the DeepGaitV2 baseline.
- GREW: Achieved a Rank-1 accuracy of 80.3%, outperforming previous specialized models.
- Robustness: On the SUSTech1K dataset, the model showed significant gains in difficult scenarios, such as a 6.3% increase in accuracy for subjects wearing different clothing and a 2.7% increase for those carrying umbrellas.
While the LLM adds computational overhead (dropping inference speed from 75.3 FPS to 31.5 FPS), it remains fast enough for many real-world applications.
Conclusion
GaitLLM demonstrates that LLMs can serve as powerful, plug-and-play temporal extractors for non-linguistic tasks like gait recognition. By summarizing redundant video data into "peak tokens," the framework effectively bridges the gap between visual movement and semantic sequence modeling. Future work may explore task-specific fine-tuning of the LLM or moving beyond silhouettes to raw RGB data.
Summary updated