QGait: Toward Accurate Quantization for Gait Recognition
Senmao Tian, Haoyu Gao, Gangyi Hong, Shuyun Wang, JingJie Wang, Xin Yu, Shunli Zhang
TL;DR
Gait recognition faces efficiency constraints for edge deployment, and naive quantization can degrade performance on binarized silhouette inputs. The authors propose QGait, which combines a differentiable soft quantizer with a two-stage training strategy and Inter-class Distance-guided Calibration (IDC) to preserve inter-class separation under low-bit quantization. Empirical results across Gait3D, GREW, and OUMVLP demonstrate that 8-bit quantization can match full-precision accuracy while 4-bit quantization benefits from IDC and staged training, enabling substantial speedups with minimal loss. This work enables practical, high-accuracy gait recognition on resource-constrained devices and offers a general framework for quantization-aware appearance-based biometric systems.
Abstract
Existing deep learning methods have made significant progress in gait recognition. Quantization can facilitate the application of gait models as a model-agnostic general compression technique. Typically, appearance-based models binarize inputs into silhouette sequences. However, mainstream quantization methods prioritize minimizing task loss over quantization error, which is detrimental to gait recognition with binarized inputs. To address this, we propose a differentiable soft quantizer, which better simulates the gradient of the round function during backpropagation. This enables the network to learn from subtle input perturbations. However, our theoretical analysis and empirical studies reveal that directly applying the soft quantizer can hinder network convergence. We addressed this issue by adopting a two-stage training strategy, introducing a soft quantizer during the fine-tuning phase. However, in the first stage of training, we observed a significant change in the output distribution of different samples in the feature space compared to the full-precision network. It is this change that led to a loss in performance. Based on this, we propose an Inter-class Distance-guided Calibration (IDC) strategy to preserve the relative distance between the embeddings of samples with different labels. Extensive experiments validate the effectiveness of our approach, demonstrating state-of-the-art accuracy across various settings and datasets.
