TL;DR
GaitKD is a novel knowledge distillation framework designed specifically for part-structured gait recognition models. By decoupling the distillation process into decision-level logit alignment and boundary-level embedding preservation, it allows lightweight student models to learn effectively from powerful, heterogeneous teacher models. This approach significantly narrows the accuracy gap between heavy and compact models without adding any inference overhead.
What Problem Does This Paper Address?
Gait recognition—identifying individuals by the unique way they walk—is a highly attractive biometric modality because it operates at a long range and requires no contact. However, achieving high accuracy in real-world conditions (where people change clothes, carry bags, or walk at different angles) typically requires massive, computationally expensive deep learning architectures like 3D CNNs or Transformers. These heavy models are difficult to deploy on edge devices or real-world surveillance systems.
While Knowledge Distillation (KD) is a standard way to transfer capability from a large "teacher" model to a compact "student" model, standard KD techniques fail when applied to modern gait recognition. Most state-of-the-art gait models are part-structured: they divide the human silhouette into horizontal parts and simultaneously output part-wise classification logits (for identity matching) and part-wise retrieval embeddings (for feature matching). Standard KD either focuses only on logits or tries to force the student to directly copy the teacher's exact embedding values. When the teacher and student have completely different architectures (heterogeneous pairs), this strict feature regression over-constrains the student, leading to sub-optimal performance.
Methods
The authors introduce GaitKD, a universal framework that standardizes and decouples knowledge transfer into two task-targeted components:
- Shared Part-wise Distillation Space: To handle cases where the teacher and student split the body into a different number of parts, GaitKD introduces a parameter-free alignment mechanism that restricts both models to a common, minimum part dimension.
- Decision-Level Distillation: This component aligns the softened part-wise class distributions using temperature-scaled Kullback-Leibler (KL) divergence. It transfers the teacher's understanding of inter-class decision relations (i.e., which identities look similar to one another).
- Boundary-Level Distillation: Instead of forcing the student to directly regress the teacher's exact feature values via Mean Squared Error (MSE), GaitKD uses an activation-boundary objective. It defines a boundary band around zero and penalizes the student only if its embedding coordinates violate the discriminative boundaries established by the teacher.
Crucially, GaitKD operates entirely on the final task outputs, meaning it requires no modifications to the internal backbones of either network and introduces zero additional computational cost during inference.
Datasets
The framework was rigorously evaluated on three distinct, large-scale gait recognition benchmarks:
- Gait3D: A large-scale, in-the-wild dataset featuring severe variations in viewpoint, background, and walking conditions.
- CCPG: A dataset specifically tailored to evaluate gait recognition performance under cloth-changing scenarios.
- SUSTech1K: An outdoor 3D LiDAR-based gait benchmark that introduces diverse real-world challenges such as occlusions, carrying objects, and nighttime conditions.
Key Insights and Ideas
- Retrieval Doesn't Need Exact Replication: Because gait recognition is ultimately a retrieval task, the exact coordinate values of an embedding matter far less than how well different identities are separated. Shifting from rigid feature regression to boundary preservation gives the student model the flexibility to optimize its own representation space while maintaining class discriminability.
- Logits and Embeddings are Complementary: Ablation studies revealed that logit-level alignment and boundary-level embedding preservation target entirely different aspects of the model. Combining them yields a compounding performance boost rather than redundant supervision.
- Multi-Teacher Synergy: GaitKD naturally scales to handle multiple teachers. By ensembling logit distributions and aggregating embedding boundaries from different model types (e.g., a Transformer-based teacher and a 3D CNN teacher), the student can inherit complementary strengths that a single teacher cannot provide.
Key Results
GaitKD consistently improved the performance of a strong, lightweight baseline model (GaitBase) across all benchmarks:
- Gait3D: The baseline GaitBase achieved a 61.5% Rank-1 accuracy. Distilling knowledge from a single
DeepGaitV2teacher raised this to 63.3%. Upgrading to a multi-teacher setup (DeepGaitV2+SwinGait) pushed the student to 65.8%, effectively closing 33.3% of the performance gap between the baseline and the heavy teachers. - CCPG: Under the challenging cloth-changing protocol, distilling from
DeepGaitV2boosted the student's mean accuracy from 88.2% to 91.9%. - SUSTech1K: Distillation from
SwinGaitimproved the student's Rank-1 accuracy from 77.0% to 78.1% and Rank-5 accuracy from 90.0% to 91.2%.
Limitations and Future Work
Not discussed in the paper.
Summary updated