Input Convex Neural Networks

Brandon Amos, Lei Xu, J. Zico Kolter

Introduction

This paper introduces Input Convex Neural Networks (ICNNs), a novel architecture designed to guarantee that the network's output is a convex function of a specified subset of its inputs. This unique mathematical property allows researchers to perform inference by globally and efficiently optimizing over the input space. By bridging the expressive power of deep learning with the reliability of convex optimization, ICNNs open new doors for complex tasks like structured prediction, data imputation, and continuous reinforcement learning.

The Challenge: Optimization Over Inputs

In traditional deep learning, models are typically used for a "forward pass": an input $x$ is provided, and the network outputs a prediction $y$. However, in many complex domains—such as structured prediction (e.g., predicting the 3D shape of a molecule) or reinforcement learning (e.g., finding the optimal continuous torque for a robotic joint)—the goal is to find the "best" $y$ that minimizes a learned energy or cost function.

The primary challenge is that the relationship between inputs and outputs in standard deep networks is highly non-convex. Attempting to find the optimal input via optimization often results in getting trapped in local minima. Previous approaches either relied on overly simplistic models that lacked expressive power or used deep models but settled for approximate, sub-optimal solutions. ICNNs provide a "middle ground": a deep, highly expressive architecture that remains mathematically tractable to optimize.

Architectural Innovations

The authors propose two primary network variants:

  1. Fully Input Convex Neural Networks (FICNN): The output is convex with respect to all inputs.
  2. Partially Input Convex Neural Networks (PICNN): The output is convex with respect to a subset of inputs ($y$) but can be non-convex with respect to others ($x$). This is particularly useful for "contextual" problems where $x$ represents observed data and $y$ is the variable to be optimized.
Partially Input Convex Neural Network (PICNN) architecture

The "Secret Sauce" for Convexity

To mathematically guarantee convexity, the architecture enforces two strict constraints:

  • Non-negative weights: All weights connecting hidden layers to subsequent hidden layers must be non-negative.
  • Convex, non-decreasing activations: The network utilizes activation functions like ReLU, which naturally satisfy these properties.

To prevent these constraints from severely limiting the network's representational power, the authors introduce passthrough layers. These layers connect the input directly to every hidden layer, allowing the network to retain significant expressivity despite the strict weight constraints.

Inference and Learning

Because the network is convex with respect to the target inputs, inference can be treated as a reliable optimization problem. The authors developed a specialized Bundle Entropy Method for inference, which is faster and more stable than standard gradient descent.

For training, rather than simply backpropagating through the network layers, the authors use Argmin Differentiation. They backpropagate through the optimization process itself using implicit differentiation of the KKT conditions. This allows the network to learn an energy landscape where the global minimum perfectly aligns with the target value.

Empirical Performance

The authors evaluated ICNNs across three distinct domains, demonstrating that constrained networks can still achieve state-of-the-art expressivity:

  • Multi-Label Classification: On the BibTeX dataset (1836 features, 159 labels), the PICNN achieved a Macro-F1 score of 0.415, significantly outperforming a standard feedforward baseline (0.396) and remaining competitive with specialized Energy Networks.
  • Image Completion: Using the Olivetti faces dataset, the ICNN (optimized via the Bundle Entropy method) achieved a Mean Squared Error of 833.0, outperforming standard gradient descent (872.0) and even a non-convex version of the same network (850.9).
  • Continuous Control (RL): Evaluated on the OpenAI Gym suite using the MuJoCo physics engine, ICNNs demonstrated remarkable performance. They generalize "Normalized Advantage Functions" (NAF) by allowing the energy function to take any convex shape, rather than just a simple quadratic.
Reinforcement Learning performance across MuJoCo tasks

As shown in the results, ICNNs outperformed state-of-the-art algorithms like DDPG on several tasks. For instance, on the HalfCheetah task, the ICNN achieved a reward of 3822.99, compared to DDPG's 2909.77.

Limitations and Future Work

While ICNNs offer a powerful new paradigm, they come with notable trade-offs:

  • Computational Overhead: Although convex optimization is efficient, it remains computationally more expensive than a single forward pass in a standard neural network. This may limit applicability in real-time systems with extremely high-dimensional inputs.
  • Weight Constraints: Enforcing non-negative weights requires clipping or projection during the learning phase, which can complicate optimization and slow down training.
  • Scaling: While successful on medium-sized control tasks and images, scaling ICNNs to massive-scale structured prediction or very high-resolution image generation remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{amos2017input,
  author = {Brandon Amos and Lei Xu and J. Zico Kolter},
  title = {{Input Convex Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=HJ-EC5b_WH},
}
Figure