Skip to main content
QUICK REVIEW

[Paper Review] Deep Neural Networks as 0-1 Mixed Integer Linear Programs: A Feasibility Study

Matteo Fischetti, Jason Jo|arXiv (Cornell University)|Dec 17, 2017
Adversarial Robustness in Machine LearningComputer Science7 references58 citations
TL;DR

The paper formulates DNNs with ReLUs and pooling as 0-1 MILPs, proposes a bound-tightening technique, and evaluates their use for feature visualization and adversarial example generation, with computational results on MNIST-sized networks.

ABSTRACT

Deep Neural Networks (DNNs) are very popular these days, and are the subject of a very intense investigation. A DNN is made by layers of internal units (or neurons), each of which computes an affine combination of the output of the units in the previous layer, applies a nonlinear operator, and outputs the corresponding value (also known as activation). A commonly-used nonlinear operator is the so-called rectified linear unit (ReLU), whose output is just the maximum between its input value and zero. In this (and other similar cases like max pooling, where the max operation involves more than one input value), one can model the DNN as a 0-1 Mixed Integer Linear Program (0-1 MILP) where the continuous variables correspond to the output values of each unit, and a binary variable is associated with each ReLU to model its yes/no nature. In this paper we discuss the peculiarity of this kind of 0-1 MILP models, and describe an effective bound-tightening technique intended to ease its solution. We also present possible applications of the 0-1 MILP model arising in feature visualization and in the construction of adversarial examples. Preliminary computational results are reported, aimed at investigating (on small DNNs) the computational performance of a state-of-the-art MILP solver when applied to a known test case, namely, hand-written digit recognition.

Motivation & Objective

  • Motivate modeling deep neural networks with ReLU and pooling activations as 0-1 MILPs for exact optimization.
  • Develop and analyze a bound-tightening technique to reduce MILP solving time.
  • Explore practical applications of the MILP model in feature visualization and adversarial example construction.
  • Assess the computational feasibility of solving the 0-1 MILP for small DNNs and discuss limitations for larger networks.

Proposed method

  • Formulate each ReLU unit via linear constraints with a binary activation variable and indicator constraints to enforce x=ReLU(w^T y + b).
  • Introduce x^k, s^k variables for each layer to decouple positive/negative parts of ReLU input.
  • Incorporate pooling via linearization for average pooling and binary variables for max pooling.
  • Provide a bound-tightening preprocessing that, layer by layer, optimizes x^k and s^k to tighten upper bounds used in indicator constraints.
  • Use a linear objective combining layer outputs and activation indicators to obtain a solvable MILP formulation.
  • Demonstrate applications to feature visualization and adversarial example generation by adding problem-specific linear constraints (e.g., target activation relations, input modification bounds).

Experimental results

Research questions

  • RQ1Can a 0-1 MILP formulation accurately model a DNN with ReLU and pooling activations?
  • RQ2Does a bound-tightening mechanism significantly improve MILP solvability for DNNs?
  • RQ3How can the 0-1 MILP model be used for feature visualization of internal units?
  • RQ4Can the MILP formulation efficiently produce adversarial examples with controllable modifications to inputs?

Key findings

  • A 0-1 MILP model for DNNs with ReLUs and pooling is feasible and usable for exact optimization tasks.
  • A bound-tightening preprocessing markedly improves MILP solving performance compared to a basic model.
  • For small DNNs on MNIST, many instances can be solved to proven optimality within seconds, especially with tightened bounds.
  • Feature visualization via MILP can yield provably optimal input patterns maximizing unit activations, often without recognizable visual patterns.
  • The MILP framework can construct adversarial examples with controllable constraints, showing how few pixel changes can change classification under explicit objective/constraints.
  • In larger networks, solving to optimality becomes computationally challenging; a more heuristic approach may be needed for practical scale.

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.