QNNREPAIR: Quantized Neural Network Repair

被引:0
作者
Song, Xidan [1 ]
Sun, Youcheng [1 ]
Mustafa, Mustafa A. [1 ,2 ]
Cordeiro, Lucas C. [1 ,3 ]
机构
[1] Univ Manchester, Dept Comp Sci, Manchester, Lancs, England
[2] Katholieke Univ Leuven, COSIC, Leuven, Belgium
[3] Univ Fed Amazonas, Manaus, Amazonas, Brazil
来源
SOFTWARE ENGINEERING AND FORMAL METHODS, SEFM 2023 | 2023年 / 14323卷
基金
英国科研创新办公室; 英国工程与自然科学研究理事会;
关键词
neural network repair; quantization; fault localization; constraints solving; VERIFICATION; SOFTWARE;
D O I
10.1007/978-3-031-47115-5_18
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present QNNRepair, the first method in the literature for repairing quantized neural networks (QNNs). QNNRepair aims to improve the accuracy of a neural network model after quantization. It accepts the full-precision and weight-quantized neural networks, together with a repair dataset of passing and failing tests. At first, QNNRepair applies a software fault localization method to identify the neurons that cause performance degradation during neural network quantization. Then, it formulates the repair problem into a MILP, solving neuron weight parameters, which corrects the QNN's performance on failing tests while not compromising its performance on passing tests. We evaluate QNNRepair with widely used neural network architectures such as MobileNetV2, ResNet, and VGGNet on popular datasets, including high-resolution images. We also compare QNNRepair with the state-of-the-art data-free quantization method SQuant [22]. According to the experiment results, we conclude that QNNRepair is effective in improving the quantized model's performance in most cases. Its repaired models have 24% higher accuracy than SQuant's in the independent validation set, especially for the ImageNet dataset.
引用
收藏
页码:320 / 339
页数:20
相关论文
共 61 条
  • [1] On the accuracy of spectrum-based fault localization
    Abreu, Rui
    Zoeteweij, Peter
    van Gemund, Arjan J. C.
    [J]. TAIC PART 2007 - TESTING: ACADEMIC AND INDUSTRIAL CONFERENCE - PRACTICE AND RESEARCH TECHNIQUES, PROCEEDINGS: CO-LOCATED WITH MUTATION 2007, 2007, : 89 - +
  • [2] Agarwal P., 2014, ACM SIGSOFT Software Engineering Notes, V39, P1, DOI [DOI 10.1145/2659118.2659125, 10.1145/2659118.2659125]
  • [3] Amir G, 2021, LECT NOTES COMPUT SC, V12652, P203, DOI 10.1007/978-3-030-72013-1_11
  • [4] Bak S, 2021, Arxiv, DOI arXiv:2109.00498
  • [5] DeepCorrect: Correcting DNN Models Against Image Distortions
    Borkar, Tejas S.
    Karam, Lina J.
    [J]. IEEE TRANSACTIONS ON IMAGE PROCESSING, 2019, 28 (12) : 6022 - 6034
  • [6] Bressert E., 2012, SciPy and NumPy: an overview for developers
  • [7] Choi J, 2018, Arxiv, DOI arXiv:1805.06085
  • [8] Dallmeier V., 2005, P 6 INT S AUT AN DRI, P99
  • [9] David R., 2021, Proc. Mach. Learn. Syst.
  • [10] Z3: An efficient SMT solver
    de Moura, Leonardo
    Bjorner, Nikolaj
    [J]. TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, 2008, 4963 : 337 - 340