Skip to main content
QUICK REVIEW

[Paper Review] Verification of Neural Networks: Enhancing Scalability through Pruning

Dario Guidotti, Francesco Leofante|arXiv (Cornell University)|Mar 17, 2020
Adversarial Robustness in Machine LearningComputer Science18 references6 citations
TL;DR

This paper proposes a training pipeline that uses neuron and weight pruning to enhance the scalability of formal verification for deep neural networks. By reducing network complexity while preserving accuracy and robustness, the approach enables state-of-the-art verification tools like Marabou, ERAN, and MIPVerify to verify previously intractable networks within a 10-minute timeout, with neuron pruning proving significantly more effective than weight pruning.

ABSTRACT

Verification of deep neural networks has witnessed a recent surge of interest, fueled by success stories in diverse domains and by abreast concerns about safety and security in envisaged applications. Complexity and sheer size of such networks are challenging for automated formal verification techniques which, on the other hand, could ease the adoption of deep networks in safety- and security-critical contexts. In this paper we focus on enabling state-of-the-art verification tools to deal with neural networks of some practical interest. We propose a new training pipeline based on network pruning with the goal of striking a balance between maintaining accuracy and robustness while making the resulting networks amenable to formal analysis. The results of our experiments with a portfolio of pruning algorithms and verification tools show that our approach is successful for the kind of networks we consider and for some combinations of pruning and verification techniques, thus bringing deep neural networks closer to the reach of formally-grounded methods.

Motivation & Objective

  • To address the scalability challenge in formal verification of deep neural networks (DNNs), which limits their deployment in safety- and security-critical applications.
  • To investigate whether network pruning can reduce the complexity of DNNs in a way that makes them amenable to formal verification without sacrificing accuracy or robustness.
  • To evaluate the effectiveness of neuron pruning and weight pruning in improving verification performance across a portfolio of verification tools.
  • To establish a practical training pipeline that integrates pruning techniques to produce networks suitable for formal analysis.

Proposed method

  • The authors introduce a training pipeline that applies neuron pruning and weight pruning to fully-connected DNNs trained on MNIST and Fashion-MNIST datasets.
  • Neuron pruning removes entire neurons and their connections, while weight pruning zeros out individual weights below a threshold, both aiming to create sparser, simpler networks.
  • The method integrates pruning with a modified training process to maintain model accuracy and robustness post-pruning.
  • Verification is performed using a portfolio of tools: Marabou (SMT-based), ERAN (MILP and over-approximation), and MIPVerify (MILP compilation), all checking robustness against adversarial perturbations.
  • The approach evaluates the impact of pruning on verification time and success rate, comparing baseline, sparse, and pruned networks under identical verification queries.
  • Performance analysis includes logging Gurobi’s MILP solving behavior to correlate sparsity with reduction in integer variables and constraints.

Experimental results

Research questions

  • RQ1Can network pruning techniques improve the scalability of formal verification tools for deep neural networks?
  • RQ2How do neuron pruning and weight pruning compare in their ability to reduce verification complexity?
  • RQ3To what extent can pruned networks maintain accuracy and robustness while becoming verifiable within practical time limits?
  • RQ4Do different verification tools (e.g., SMT-based vs. MILP-based) respond differently to pruning-induced sparsity?
  • RQ5Can the reduction in integer variables and constraints due to pruning be directly linked to improved verification performance?

Key findings

  • Without pruning, verification of fully-connected DNNs with ~50K connections and 896 neurons consistently timed out within 10 CPU minutes.
  • Neuron pruning significantly outperformed weight pruning, enabling all verification tools to verify all network instances within the timeout for certain pruning parameters.
  • Weight pruning only improved verification performance for high pruning magnitudes (e.g., 90% of weights removed), and only ERAN (complete and incomplete) benefited substantially.
  • ERAN-incomplete showed faster verification on weight-pruned networks than on neuron-pruned ones, with speed-up directly proportional to the number of pruned weights.
  • MIPVerify and ERAN leveraged zero-weight connections to simplify MILP problems, reducing the number of integer variables to less than 1/4 of the original in neuron-pruned and sparse networks.
  • Log analysis confirmed that neuron pruning reduced the number of integer variables in Gurobi’s MILP problems by over 75% compared to weight-pruned networks, explaining the performance gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.