{"title":"Unified Anomaly Detection methods on Edge Device using Knowledge Distillation and Quantization","authors":"Sushovan Jena, Arya Pulkit, Kajal Singh, Anoushka Banerjee, Sharad Joshi, Ananth Ganesh, Dinesh Singh, Arnav Bhavsar","doi":"arxiv-2407.02968","DOIUrl":null,"url":null,"abstract":"With the rapid advances in deep learning and smart manufacturing in Industry\n4.0, there is an imperative for high-throughput, high-performance, and fully\nintegrated visual inspection systems. Most anomaly detection approaches using\ndefect detection datasets, such as MVTec AD, employ one-class models that\nrequire fitting separate models for each class. On the contrary, unified models\neliminate the need for fitting separate models for each class and significantly\nreduce cost and memory requirements. Thus, in this work, we experiment with\nconsidering a unified multi-class setup. Our experimental study shows that\nmulti-class models perform at par with one-class models for the standard MVTec\nAD dataset. Hence, this indicates that there may not be a need to learn\nseparate object/class-wise models when the object classes are significantly\ndifferent from each other, as is the case of the dataset considered.\nFurthermore, we have deployed three different unified lightweight architectures\non the CPU and an edge device (NVIDIA Jetson Xavier NX). We analyze the\nquantized multi-class anomaly detection models in terms of latency and memory\nrequirements for deployment on the edge device while comparing\nquantization-aware training (QAT) and post-training quantization (PTQ) for\nperformance at different precision widths. In addition, we explored two\ndifferent methods of calibration required in post-training scenarios and show\nthat one of them performs notably better, highlighting its importance for\nunsupervised tasks. Due to quantization, the performance drop in PTQ is further\ncompensated by QAT, which yields at par performance with the original 32-bit\nFloating point in two of the models considered.","PeriodicalId":501168,"journal":{"name":"arXiv - CS - Emerging Technologies","volume":"22 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Emerging Technologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.02968","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
With the rapid advances in deep learning and smart manufacturing in Industry
4.0, there is an imperative for high-throughput, high-performance, and fully
integrated visual inspection systems. Most anomaly detection approaches using
defect detection datasets, such as MVTec AD, employ one-class models that
require fitting separate models for each class. On the contrary, unified models
eliminate the need for fitting separate models for each class and significantly
reduce cost and memory requirements. Thus, in this work, we experiment with
considering a unified multi-class setup. Our experimental study shows that
multi-class models perform at par with one-class models for the standard MVTec
AD dataset. Hence, this indicates that there may not be a need to learn
separate object/class-wise models when the object classes are significantly
different from each other, as is the case of the dataset considered.
Furthermore, we have deployed three different unified lightweight architectures
on the CPU and an edge device (NVIDIA Jetson Xavier NX). We analyze the
quantized multi-class anomaly detection models in terms of latency and memory
requirements for deployment on the edge device while comparing
quantization-aware training (QAT) and post-training quantization (PTQ) for
performance at different precision widths. In addition, we explored two
different methods of calibration required in post-training scenarios and show
that one of them performs notably better, highlighting its importance for
unsupervised tasks. Due to quantization, the performance drop in PTQ is further
compensated by QAT, which yields at par performance with the original 32-bit
Floating point in two of the models considered.