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 条
  • [21] Guo C., 2022, arXiv
  • [22] Guo YH, 2018, Arxiv, DOI arXiv:1808.04752
  • [23] Deep Residual Learning for Image Recognition
    He, Kaiming
    Zhang, Xiangyu
    Ren, Shaoqing
    Sun, Jian
    [J]. 2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, : 770 - 778
  • [24] Henzinger TA, 2021, AAAI CONF ARTIF INTE, V35, P3787
  • [25] Safety Verification of Deep Neural Networks
    Huang, Xiaowei
    Kwiatkowska, Marta
    Wang, Sen
    Wu, Min
    [J]. COMPUTER AIDED VERIFICATION, CAV 2017, PT I, 2017, 10426 : 3 - 29
  • [26] ifigotin, 2021, Imagenetmini-1000
  • [27] Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference
    Jacob, Benoit
    Kligys, Skirmantas
    Chen, Bo
    Zhu, Menglong
    Tang, Matthew
    Howard, Andrew
    Adam, Hartwig
    Kalenichenko, Dmitry
    [J]. 2018 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2018, : 2704 - 2713
  • [28] Jones James A, 2005, P 20 IEEE ACM INT C, DOI 10.1145/1101908.1101949
  • [29] The Marabou Framework for Verification and Analysis of Deep Neural Networks
    Katz, Guy
    Huang, Derek A.
    Ibeling, Duligur
    Julian, Kyle
    Lazarus, Christopher
    Lim, Rachel
    Shah, Parth
    Thakoor, Shantanu
    Wu, Haoze
    Zeljic, Aleksandar
    Dill, David L.
    Kochenderfer, Mykel J.
    Barrett, Clark
    [J]. COMPUTER AIDED VERIFICATION, CAV 2019, PT I, 2019, 11561 : 443 - 452
  • [30] Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks
    Katz, Guy
    Barrett, Clark
    Dill, David L.
    Julian, Kyle
    Kochenderfer, Mykel J.
    [J]. COMPUTER AIDED VERIFICATION, CAV 2017, PT I, 2017, 10426 : 97 - 117