arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00880cs.LG
收藏

面向嵌入式部署的基于VAE的分布外检测器压缩

Compressing VAE-Based Out-of-Distribution Detectors for Embedded Deployment

College of Computing and Data Science(计算与数据科学学院);Nanyang Technological University(南洋理工大学)

Aditya Bansal, Michael Yuhas, Arvind Easwaran

AI总结:

本文研究在嵌入式系统上压缩基于VAE的分布外检测器,提出结合量化、剪枝和知识蒸馏的设计方法,在Jetson Nano上将GPU和CPU推理时间分别降低20%和28%且AUROC保持在基线5%以内。

摘要:

分布外(OOD)检测器可以通过识别机器学习模型训练分布之外的样本来防止潜在的不安全行为,从而在嵌入式信息物理系统中充当安全监视器。然而,OOD检测器通常使用深度神经网络实现,这使得在具有内存和功耗约束的嵌入式系统上难以满足实时截止时间要求。我们考虑基于变分自编码器(VAE)的OOD检测器类别,其中OOD检测在潜在空间中执行,并应用量化、剪枝和知识蒸馏。这些技术已经在其他深度模型上得到了探索,但尚无工作考虑它们对潜在空间OOD检测的综合影响。虽然这些技术会增加VAE的测试损失,但这并不对应OOD检测性能的成比例下降,我们利用这一点开发出能够在嵌入式CPU和GPU上进行实时推理的精简OOD检测器。我们提出了一种结合全部三种压缩技术的设计方法,在保持给定OOD检测器AUROC的同时显著降低内存占用和执行时间。我们在Jetson Nano上使用两个现有的OOD检测器演示了该方法,将GPU和CPU推理时间分别减少了20%和28%,同时保持AUROC在基线的5%以内。

英文摘要:

Out-of-distribution (OOD) detectors can act as safety monitors in embedded cyber-physical systems by identifying samples outside a machine learning model's training distribution to prevent potentially unsafe actions. However, OOD detectors are often implemented using deep neural networks, which makes it difficult to meet real-time deadlines on embedded systems with memory and power constraints. We consider the class of variational autoencoder (VAE) based OOD detectors where OOD detection is performed in latent space, and apply quantization, pruning, and knowledge distillation. These techniques have been explored for other deep models, but no work has considered their combined effect on latent space OOD detection. While these techniques increase the VAE's test loss, this does not correspond to a proportional decrease in OOD detection performance and we leverage this to develop lean OOD detectors capable of real-time inference on embedded CPUs and GPUs. We propose a design methodology that combines all three compression techniques and yields a significant decrease in memory and execution time while maintaining AUROC for a given OOD detector. We demonstrate this methodology with two existing OOD detectors on a Jetson Nano and reduce GPU and CPU inference time by 20% and 28% respectively while keeping AUROC within 5% of the baseline.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑