GaitKD: A Universal Decoupled Distillation Framework for Efficient Gait Recognition

Yuqi Li, Qian Zhou, Huiran Duan, Jingjie Wang, Shunli Zhang, Chuanguang Yang, Guoying Zhao, Yingli TianarXiv 2026 · arXiv

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:

  1. 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.
  2. 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).
  3. 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.

Fig. 1. Overview of GaitKD for heterogeneous gait distillation. Given an input gait sequence, both a frozen teacher and an efficient student extract part- structured gait representations. To enable distillation across heterogeneous models, their part-wise outputs are aligned in a shared part-wise space through a gait part alignment module. On top of this shared space, GaitKD performs two complementary knowledge transfers: decision-level distillation, which aligns part-wise class distributions to transfer decision relations, and boundary-level distillation, which preserves teacher-induced discriminative boundaries in the embedding space instead of directly regressing feature values. The two objectives are optimized jointly with the student base task loss during training. At inference time, only the student is used, with no additional overhead. For clarity, the base task supervision (e.g., identification and metric learning losses) is omitted from the figure.

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 DeepGaitV2 teacher 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 DeepGaitV2 boosted the student's mean accuracy from 88.2% to 91.9%.
  • SUSTech1K: Distillation from SwinGait improved the student's Rank-1 accuracy from 77.0% to 78.1% and Rank-5 accuracy from 90.0% to 91.2%.
Fig. 2. Computational profiles of different gait recognition models. Back- bone FLOPs versus rank-1 accuracy on Gait3D, with bubble size indicating parameter count.

Limitations and Future Work

Not discussed in the paper.

Summary updated

Abstract

Gait recognition is an attractive biometric modality for long-range and contact-free identification, but high-performing gait models often rely on deep and computationally expensive architectures that are difficult to deploy in practice. Knowledge distillation (KD) offers a natural way to transfer knowledge from a powerful teacher to an efficient student; however, standard KD is often less effective for part-structured gait models, where supervision is formed from both part-wise classification logits and part-wise retrieval embeddings. In this paper, we propose GaitKD, a distillation framework that decouples gait knowledge transfer into two complementary components: decision-level distillation and boundary-level distillation. Specifically, GaitKD aligns the teacher and student through part-calibrated logit distillation to transfer inter-class decision relations, while preserving the teacher-induced partitioning of the embedding space through an activation-boundary objective instead of direct feature regression. With a simple aligned part-wise design, GaitKD supports heterogeneous teacher-student gait models without introducing additional inference cost. Experimental results across multiple gait recognition benchmarks and teacher-student configurations show consistent improvements over strong gait baselines. Our study demonstrates that the two transfer components are complementary, and boundary-preserving distillation provides more stable performance than direct feature regression. Source code is available at https://github.com/liyiersan/GaitKD/
BibTeX
@misc{li2026gaitkd,
  author = {Yuqi Li and Qian Zhou and Huiran Duan and Jingjie Wang and Shunli Zhang and Chuanguang Yang and Guoying Zhao and Yingli Tian},
  title = {{GaitKD: A Universal Decoupled Distillation Framework for Efficient Gait Recognition}},
  year = {2026},
  eprint = {2604.26255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.26255},
}

Loading related content...

Figure