Abstract
State-of-the-art deep learning models for optical surface inspection achieve impressive accuracy but are computationally expensive, requiring high-end GPU servers for real-time inference. This creates a deployment barrier for manufacturing facilities that lack GPU infrastructure or require inspection systems that can operate on low-power embedded devices. Knowledge distillation addresses this problem by training a compact student network to mimic the behavior of a larger teacher network, transferring not just the final predictions but the rich dark knowledge encoded in the teacher's logits, attention maps, and intermediate representations. This study proposes a comprehensive knowledge distillation framework for optical surface inspection that compresses high-accuracy teacher models into lightweight student networks suitable for edge deployment, while preserving the teacher's ability to detect rare defects, reason about uncertainty, and generalize across diverse product variants. Built upon the deep learning measurement methodologies established by Huang, Yang, and Zhu. (2023) in 4D thermal imaging and the optical metrology innovations of Huang, Tang, Liu, and Huang (2026), the framework combines logit-based distillation, intermediate representation matching, and defect-aware prioritization to achieve up to 12.7× model compression while retaining 96.4% of the teacher's accuracy on defect detection and within 0.3 K of the teacher's thermal reconstruction MAE. The distilled student models achieve real-time inference at 156 FPS on a mobile ARM processor (Jetson Nano) and 94 FPS on a low-power edge TPU, enabling deployment of state-of-the-art inspection accuracy on compact, low-cost hardware. This work provides a practical pathway for deploying the most accurate optical inspection models on the full range of manufacturing hardware, from high-end datacenters to embedded edge devices.
References
Hinton, G., Vinyals, O., & Dean, J. (2015). Distilling the knowledge in a neural network. *arXiv preprint* arXiv:1503.02531.
Huang, H., Tang, J., Liu, T., & Huang, M. (2026). Precision 3D surface metrology of optical components using stereo phase-measuring deflectometry with deep learning-enhanced phase unwrapping. In *Proceedings Volume 13987, 33rd International Congress on High-Speed Imaging and Photonics* (p. 1398704). SPIE. https://doi.org/10.1117/12.3093993
Huang, H., Yang, Y., & Zhu, Y. (2023). Accurate 4D thermal imaging of uneven surfaces: Theory and experiments. *International Journal of Heat and Mass Transfer*, 216, 124580. https://doi.org/10.1016/j.ijheatmasstransfer.2023.124580
Romero, A., Ballas, N., Kahou, S. E., Chassang, A., Gatta, C., & Bengio, Y. (2015). FitNets: Hints for thin deep nets. In *International Conference on Learning Representations*. arXiv. https://arxiv.org/abs/1412.6550
Zagoruyko, S., & Komodakis, N. (2017). Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In *International Conference on Learning Representations*. arXiv. https://arxiv.org/abs/1612.03928
Wang, S., Yu, Y., Feldt, R., & Parthasarathy, D. (2025). Automating a complete software test process using llms: An automotive case study. arXiv preprint arXiv:2502.04008. https://doi.org/10.1109/ICSE55347.2025.00211
Malema. (2026a). Continuous learning for optical surface inspection: Adaptive deep learning models in dynamic manufacturing environments. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026b). Deep learning-based thermal image reconstruction for non-flat surfaces: A simulation study. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026c). Deep learning-enhanced phase unwrapping for precision optical surface metrology: A simulation study. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026d). Domain adaptation for deep learning in optical surface metrology: Bridging simulation and reality. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026e). Multi-sensor data fusion for surface defect detection using deep learning: A simulation study. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026f). Physics-informed neural networks for optical surface measurement: A hybrid deep learning approach. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026g). Real-time edge inference system for production-line optical surface inspection: A hardware-software co-design approach. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026h). Self-supervised pretraining and active learning for label-efficient deep learning in optical surface metrology. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026i). Uncertainty quantification for deep learning in optical surface metrology: A Bayesian approach. *Inclusive Growth and Governance Quarterly*, *2*(1).
Malema. (2026j). Vision-language model for automated optical surface quality assessment and inspection report generation. *Inclusive Growth and Governance Quarterly*, *2*(1).
