Quantized Distillation: Optimizing Driver Activity Recognition Models for Resource-Constrained Environments

Calvin Tanama, Kunyu Peng, Zdravko Marinov, Rainer Stiefelhagen, Alina Roitberg · DOI

Abstract

Modern Advanced Driver Assistance Systems (ADAS) require real-time driver activity recognition to enhance safety and interaction. However, high-performing video classification models like Inflated 3D ConvNets (I3D) are too computationally expensive for in-vehicle hardware. This paper presents Quantized Distillation (QD), a framework that integrates knowledge distillation with quantization-aware training. By training a lightweight 3D MobileNet student to mimic a heavy I3D teacher while simultaneously adapting to 8-bit integer constraints, the proposed method produces a model that is 3.5x smaller and 1.4x faster than a standard MobileNet, while recovering significant accuracy lost during compression.

Introduction

Understanding driver behavior—from phone usage to seatbelt fastening—is vital for autonomous and semi-autonomous vehicles. While state-of-the-art models achieve high accuracy, their millions of parameters and operations exceed the strict power and compute budgets of embedded automotive systems. Swapping these for lightweight architectures like 3D MobileNet often results in a prohibitive accuracy drop (up to 20%). This research addresses the challenge of minimizing the computational footprint of already-efficient models without sacrificing the predictive power of heavyweight networks.

Proposed Method: Quantized Distillation

The authors propose a unified training pipeline that merges two optimization paradigms: Knowledge Distillation (KD) and Quantization-Aware Training (QAT).

The Quantized Distillation training pipeline showing the interaction between teacher and student models.

In this framework, a pre-trained I3D teacher provides "soft labels" (logits) to a 3D MobileNet student. This distillation process allows the student to learn complex class relationships that hard ground-truth labels might miss. Simultaneously, the student undergoes Quantization-Aware Training. Instead of post-training quantization, which often degrades performance, QAT simulates 8-bit (INT8) precision during the forward pass. To handle the non-differentiable nature of quantization, a Straight-Through Estimator (STE) is employed to approximate gradients during backpropagation. The synergy of these techniques allows the student to adapt its weights specifically for low-precision execution while guided by the teacher's high-precision knowledge.

Experimental Evaluation

The framework was evaluated using the Drive&Act dataset, a benchmark for fine-grained in-vehicle activities. Models were pre-trained on Kinetics datasets before fine-tuning. Performance was measured on an AMD EPYC 32-Core CPU to simulate the constraints of edge inference.

Key Results

The results demonstrate that Quantized Distillation significantly shifts the Pareto front of the accuracy-efficiency trade-off.

Accuracy vs. CPU Time comparison across different model architectures and optimization strategies.

As shown in the comparison, the baseline 3D MobileNet achieves only 39.77% test accuracy. Applying standard quantization further reduces this performance. However, the QD-optimized 3D MobileNet achieves 48.17% test accuracy—an 8.4% absolute improvement over the baseline—while reducing the model size to just 1.03 MB and inference time to 76.79 ms. This represents a model that is roughly 3.5x smaller and 1.4x faster than the original speed-focused baseline.

Discussion and Limitations

A notable finding is the non-uniform impact of compression across different activity classes. While overall accuracy improved, certain tasks like "closing door outside" saw massive gains (+55.56%), whereas others like "closing bottle" or "putting on jacket" dropped to zero. This suggests that extreme quantization can unpredictably bias a model's sensitivity to specific spatio-temporal features.

Furthermore, while QD narrows the gap, a ~10% accuracy difference remains between the ultra-lightweight student and the massive I3D teacher (59.67%). Future work will explore alternative backbones and multimodal sensor fusion to further bridge this gap for safety-critical applications.

Conclusion

Quantized Distillation proves that "off-the-shelf" lightweight models can be pushed significantly further in terms of efficiency. By interleaving distillation and quantization, developers can deploy models that are both faster and more accurate than standard compressed baselines, making sophisticated driver monitoring feasible on low-power automotive hardware.

Summary updated

BibTeX
@inproceedings{tanama2023quantized,
  author = {Calvin Tanama and Kunyu Peng and Zdravko Marinov and Rainer Stiefelhagen and Alina Roitberg},
  title = {{Quantized Distillation: Optimizing Driver Activity Recognition Models for Resource-Constrained Environments}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2023},
  doi = {10.1109/iros55552.2023.10342203},
}
Figure