Homogeneous Linear Inequality Constraints for Neural Network Activations

Thomas Frerix, Matthias Nießner, Daniel Cremers
2/5/2019
cs.LGstat.ML

Official code: tfrerix/constrained-nets (8 stars, Python, MIT, last commit 2021-04-08).

Abstract

We propose a method to impose homogeneous linear inequality constraints of the form $Ax\leq 0$ on neural network activations. The proposed method allows a data-driven training approach to be combined with modeling prior knowledge about the task.

Show full abstract

One way to achieve this task is by means of a projection step at test time after unconstrained training. However, this is an expensive operation. By directly incorporating the constraints into the architecture, we can significantly speed-up inference at test time; for instance, our experiments show a speed-up of up to two orders of magnitude over a projection method. Our algorithm computes a suitable parameterization of the feasible set at initialization and uses standard variants of stochastic gradient descent to find solutions to the constrained network. Thus, the modeling constraints are always satisfied during training. Crucially, our approach avoids to solve an optimization problem at each training step or to manually trade-off data and constraint fidelity with additional hyperparameters. We consider constrained generative modeling as an important application domain and experimentally demonstrate the proposed method by constraining a variational autoencoder.

View on arXivView PDF

Code Implementations(1)

MIT

Impose homogeneous linear inequality constraints on neural network activations

81Python, ShellApr 18, 20205 years agoMIT

Similar Papers

Cite this paper

@article{frerix2019homogeneous,
  title  = {Homogeneous Linear Inequality Constraints for Neural Network Activations},
  author = {Thomas Frerix and Matthias Nießner and Daniel Cremers},
  year   = {2019},
  eprint = {1902.01785},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.01785}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.01785.svg)](https://codeofpaper.com/paper/1902.01785)

Discussion