[Paper Review] An Integer Programming Approach to Deep Neural Networks with Binary Activation Functions
This paper proposes a mixed-integer linear programming (MILP) formulation for training deep neural networks with binary activation functions (BDNN), enabling global optimality via classical integer solvers. The heuristic variant outperforms standard ReLU-based DNNs on the Breast Cancer Wisconsin dataset, achieving 97.1% accuracy over 10 random splits, while exact solutions remain computationally expensive for large datasets.
We study deep neural networks with binary activation functions (BDNN), i.e. the activation function only has two states. We show that the BDNN can be reformulated as a mixed-integer linear program which can be solved to global optimality by classical integer programming solvers. Additionally, a heuristic solution algorithm is presented and we study the model under data uncertainty, applying a two-stage robust optimization approach. We implemented our methods on random and real datasets and show that the heuristic version of the BDNN outperforms classical deep neural networks on the Breast Cancer Wisconsin dataset while performing worse on random data.
Motivation & Objective
- To address the challenge of training deep neural networks with non-differentiable binary activation functions using exact optimization methods.
- To enable global optimality in BDNN training by reformulating the problem as a mixed-integer linear program (MILP).
- To develop a heuristic algorithm for scalable inference in BDNNs when exact solutions are computationally prohibitive.
- To enhance robustness against adversarial attacks using a two-stage robust optimization approach within the MILP framework.
- To evaluate the performance of BDNNs on both synthetic and real-world datasets, comparing them to standard ReLU-based DNNs.
Proposed method
- The BDNN is reformulated as a mixed-integer linear program (MILP), where binary activations are modeled using binary variables and big-M constraints.
- The formulation includes learnable thresholds λk for each layer’s binary activation, allowing end-to-end optimization of both weights and thresholds.
- A heuristic algorithm is proposed to compute local optimal solutions by iteratively fixing binary variables and solving the relaxed MILP.
- A two-stage robust optimization model is applied to protect BDNNs against adversarial perturbations, with uncertainty in input data modeled via robust counterparts.
- The robust formulation is solved using a column-and-constraint generation algorithm, though convergence is slow for larger instances.
- All models are implemented and tested on random data and the Breast Cancer Wisconsin dataset, with performance compared to standard ReLU-based DNNs.
Experimental results
Research questions
- RQ1Can binary deep neural networks with learnable thresholds be exactly trained using mixed-integer programming?
- RQ2How does the performance of the exact MILP-based BDNN compare to standard ReLU-based DNNs on real-world datasets?
- RQ3Can a heuristic algorithm for BDNNs achieve better accuracy than standard DNNs while remaining computationally feasible?
- RQ4To what extent can a two-stage robust optimization approach improve adversarial robustness in BDNNs?
- RQ5How sensitive are BDNNs to data distribution and hyperparameter choices, particularly in terms of stability and generalization?
Key findings
- The heuristic BDNN achieved a best-case accuracy of 97.1% on the Breast Cancer Wisconsin dataset over 10 random data splits, outperforming the standard DNN, which had a maximum of 91.4%.
- On the same dataset, the heuristic BDNN with d₁=25 achieved 95.0% accuracy in a single run, surpassing the DNN’s 91.4%.
- The exact BDNN solver found optimal solutions with 0.0% optimality gap on the BCW dataset, but required significantly more runtime than the heuristic.
- For random datasets, both exact and heuristic BDNNs showed lower and more unstable accuracy than the DNN, indicating poor generalization on synthetic data.
- The runtime of both exact and heuristic BDNN methods increased linearly with the number of data points, making them infeasible for large-scale datasets with millions of samples.
- The robust BDNN formulation did not terminate within 24 hours for instances with d₁=20 and 20 data points, indicating scalability issues for robust two-stage problems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.