Principled Weight Initialisation for Input-Convex Neural Networks

Pieter-Jan Hoedt, Günter Klambauer

TL;DR

Researchers have developed a new weight initialization strategy specifically for Input-Convex Neural Networks (ICNNs). By generalizing signal propagation theory to handle non-negative weights, they have eliminated the slow convergence and poor generalization that previously plagued these models, even proving that ICNNs can perform well without the skip-connections traditionally thought to be mandatory.

What Problem Does This Paper Address?

Input-Convex Neural Networks are a specialized class of models where the output is a convex function of the input. This property is incredibly useful for tasks like energy-based modeling, optimal transport, and finding "level sets" in data (e.g., finding different molecules with the exact same toxicity).

To guarantee this convexity, ICNNs must use non-decreasing convex activation functions (like ReLU) and non-negative weight matrices. However, this creates a major mathematical headache: standard initialization techniques (like He or Glorot initialization) assume that weights are centered around zero. When you force weights to be positive, the signal "explodes" or shifts as it moves through the layers. This leads to highly correlated features and pre-activations that drift far from zero, making the network nearly impossible to train efficiently.

Methods

The authors tackle this by revisiting Signal Propagation Theory. Traditionally, this theory tracks how the mean and variance of data change as they pass through a network, assuming zero-mean weights. The authors generalized this framework to account for weights with a non-zero mean ($\mu_w \neq 0$).

Key components of their approach include:

  • Covariance Tracking: Unlike standard networks, ICNNs with positive weights naturally cause features to become highly correlated. The authors derived new fixed-point equations that explicitly manage this correlation ($\rho$) to prevent signal collapse.
  • Bias as a Counterweight: Since the weights are positive and would naturally pull the signal's mean away from zero, the authors use the bias parameters to "center" the pre-activations back to a zero mean.
  • Log-Normal Sampling: Instead of using Gaussian distributions (which include negative numbers), they propose sampling initial weights from a log-normal distribution. This ensures all weights are strictly non-negative while still hitting the precise mean and variance targets required by their theory.

Datasets

The authors evaluated their method across several domains:

  • Computer Vision: Permuted versions of MNIST, CIFAR10, and CIFAR100.
  • Drug Discovery: The Tox21 challenge dataset, which involves predicting 12 different toxic effects of small molecules. Molecules were represented using 512-dimensional Continuous and Data-Driven Descriptors (CDDDs).

Key Insights and Ideas

  • Skip-Connections are Optional: ICNNs usually rely on skip-connections from the input to every layer to maintain representational power. The authors found that with their principled initialization, these connections are often unnecessary. This suggests that skip-connections were previously acting as a "band-aid" for poor signal propagation rather than being a fundamental requirement for convexity.
  • The Correlation Compromise: The authors discovered that features in ICNNs must have some non-zero correlation to function. They identified a "sweet spot" (correlation $\rho = 0.5$) that balances feature diversity with stable signal flow.
  • Visualizing the Fix: As seen in Figure 1, standard ICNNs suffer from massive distribution shifts and extreme feature correlation (the deep red blocks). The new initialization ("ICNN + init") restores a healthy distribution and manageable correlation levels.
Figure 1: Illustration of the effects due to good signal propagation in hidden layers. Blue and red connections depict negative and positive weights, respectively. The top row shows histograms of pre-activations in each hidden layer. The bottom row displays the feature correlation matrices for these layers. Small visualisations on the left depict the input distribution.

Key Results

  • Training Speed: On MNIST and CIFAR, ICNNs using the new initialization converged significantly faster, matching the learning curves of standard non-convex networks. Without it, ICNNs often got "stuck" at high loss levels (see Figure 2).
  • Generalization: On the CIFAR10 test set, the principled initialization allowed ICNNs to outperform other ICNN variants and nearly match the accuracy of unconstrained, non-convex models.
  • Real-World Impact: In the Tox21 toxicity prediction task, the new method significantly outperformed standard ICNN initializations ($p < 10^{-12}$) and matched the performance of traditional non-convex baselines.
Figure 2: Training loss curves of ICNN variants with the same architecture on the MNIST, CIFAR10 and CIFAR100 datasets. ”ICNN“ input-convex network with default initialisation. ”ICNN + skip“: same settings, but with skip connections. ”ICNN + init“ our principled initialisation for ICNNs w/o skip connections. ”non-convex“: a regular non-convex network. Each curve represents the median performance over ten runs and shaded regions indicate the inter-quartile range. The inset figures provide a view of the loss curves zoomed in. Note that ICNN losses do decrease before the plateau.

Limitations and Future Work

  • Gaussian Assumption: The derivation assumes that pre-activations follow a Gaussian distribution. While this is a standard simplification in the field, the authors note it doesn't perfectly match the observed data in ICNNs.
  • Convolutional Complexity: While the paper provides a theoretical derivation for convolutional layers, the authors admit that empirical results for ICNN-CNNs are still a work in progress due to the complex covariance structures in image data.
  • Backward Pass: The current initialization focuses primarily on the forward pass. Incorporating a more rigorous analysis of the backward pass (gradients) into the initialization strategy is a suggested next step.

Summary updated

BibTeX
@inproceedings{hoedt2023principled,
  author = {Pieter-Jan Hoedt and Günter Klambauer},
  title = {{Principled Weight Initialisation for Input-Convex Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=pWZ97hUQtQ},
}
Figure