Input Convex Neural Networks

Brandon Amos, Lei Xu, J. Zico Kolter

Abstract

This paper introduces Input Convex Neural Networks (ICNNs), a novel architecture where the network's output is guaranteed to be a convex function of its inputs. By baking convexity directly into the model, the authors turn the typically "black box" process of neural network inference into an efficient, globally solvable optimization problem. This approach opens new possibilities for structured prediction, data imputation, and reinforcement learning, where finding the optimal input relative to a learned cost function is critical.

Introduction

In standard deep learning, a network typically maps an input $x$ to an output $y$ via a single forward pass. However, many complex tasks require "inference via optimization." For example, in structured prediction or continuous reinforcement learning, we seek to find the "best" $y$ that minimizes an energy or cost function $f(x, y)$. In standard networks, $f(x, y)$ is highly non-convex with respect to $y$, making global optimization difficult and often requiring expensive sampling or gradient descent prone to local optima.

ICNNs address this by constraining the network architecture such that $f(x, y)$ is always convex in $y$. This ensures that finding the optimal $y$ is a simple, globally solvable convex optimization problem while maintaining the expressive power needed to learn complex patterns.

Methods and Architecture

The authors propose two primary architectures to enforce convexity:

  1. Fully Input Convex Neural Networks (FICNN): The output is convex with respect to all inputs. This is achieved by enforcing non-negative weights between hidden layers and using convex, non-decreasing activation functions (like ReLU). To maintain representational power despite these constraints, "passthrough" connections are added from the input to every hidden layer.
  2. Partially Input Convex Neural Networks (PICNN): These are convex with respect to only a subset of inputs ($y$), while remaining non-convex with respect to others ($x$). This is ideal for tasks where $x$ provides a fixed context (e.g., an image) and $y$ is the value to be optimized (e.g., an action or label).
The architecture of a Partially Input Convex Neural Network (PICNN), highlighting the weights and passthrough connections that maintain convexity with respect to input y.

Optimization and Learning

To train and utilize these networks, the authors developed specialized techniques:

  • Bundle Entropy Method: A specialized optimization algorithm used during inference to solve for the optimal input $y$ more stably and faster than standard gradient descent.
  • Argmin Differentiation: The networks are trained using implicit differentiation via KKT conditions. This allows gradients to backpropagate through the optimization layer, enabling end-to-end learning of the energy landscape.

Experimental Results

The authors evaluated ICNNs across three distinct domains: multi-label classification, image completion, and continuous control reinforcement learning.

Multi-label Prediction and Image Completion

On the BibTeX multi-label dataset, the PICNN outperformed standard feedforward networks and remained competitive with Structured Prediction Energy Networks (SPENs). In image completion tasks using the Olivetti Faces dataset, ICNNs utilizing the Bundle Entropy Method achieved a lower Mean Squared Error (833.0) compared to standard sum-product networks (942) and ICNNs using simple gradient descent (872.0).

Reinforcement Learning

In the MuJoCo suite of continuous control tasks, ICNNs were used as Q-functions. They outperformed state-of-the-art baselines like Deep Deterministic Policy Gradient (DDPG) and Normalized Advantage Functions (NAF) on several benchmarks. Notably, in the HalfCheetah and HumanoidStandup environments, ICNNs achieved significantly higher rewards, demonstrating the benefit of global optimization in continuous action spaces.

Performance comparison of ICNN against DDPG and NAF baselines across various MuJoCo reinforcement learning tasks.

Conclusion and Future Work

ICNNs demonstrate that convexity does not necessitate simplicity. Through the use of passthrough layers and non-linearities, these networks capture intricate energy landscapes while remaining globally optimizable. While the iterative optimization loop introduces some computational overhead compared to a single forward pass, the ability to treat inference as a differentiable, globally solvable layer bridges a significant gap between classical optimization and modern deep learning. Future work includes refining optimization speed and exploring more complex structured output spaces.

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