Contrastive Learning for Lifted Networks

Christopher Zach, Virginia Estellers

Introduction

Standard Deep Neural Networks (DNNs) are primarily trained using back-propagation (BP). Despite its success, BP faces several limitations, including sequential dependency between layers, susceptibility to vanishing gradients, and biological implausibility. "Lifted networks" offer a potential solution by treating activations as independent variables in an energy-minimization problem, allowing for massive layer-wise parallelism. However, previous training methods for these networks often suffered from a "linearity bias," where non-linear units like ReLUs defaulted to simple linear behavior, severely capping model performance.

Methods: Contrastive Energy Minimization

This paper introduces a contrastive learning objective designed to overcome the linearity trap in lifted networks. The authors define a "free energy" function $E(z; x)$, where $z$ represents activations and $x$ is the input. Training involves minimizing a contrastive loss $J_1$, defined as the difference between the "clamped energy" (where the output layer is fixed to the correct label $y$) and the "free energy" (where the network settles based only on input $x$).

A significant theoretical contribution is the proof that as the feedback weight $\gamma$ approaches zero, the gradient of this contrastive loss converges to the standard back-propagation gradient. This bridges the gap between biologically inspired energy-based models and high-performance gradient descent.

Experimental Results

The proposed contrastive approach was evaluated on standard benchmarks including MNIST, Fashion-MNIST, and grayscale CIFAR-10.

Accuracy and the Linearity Trap

As shown in the MNIST results, the contrastive lifted network (97.6% test accuracy) nearly matches standard back-propagation (97.7%), while significantly outperforming previous lifted network methods (86.3%).

Table 1: Performance comparison on MNIST. The "linear activations" columns highlight how the contrastive objective prevents the network from falling into the linearity trap seen in standard lifted models.

Crucially, the "linear activations" metric reveals that in standard lifted networks, nearly 99.9% of activations remain in the linear regime. In contrast, the proposed method maintains linear activation rates between 30-50%, similar to standard DNNs, indicating that the model is effectively utilizing its non-linearities to learn complex features.

Visualizing Learned Features

The quality of the learned representations is further evidenced by the first-layer filters. While standard lifted training results in noisy, unstructured filters, the contrastive objective produces clear, Gabor-like patterns that are characteristic of successful deep learning models.

Figure 1: Comparison of first-layer filters. Contrastive training yields structured Gabor-like filters (left/middle), whereas standard lifted training results in noisy, unstructured patterns (right).

Conclusion

By reconciling the training and inference phases through a contrastive loss, this work demonstrates that lifted networks can achieve performance parity with back-propagation without sacrificing their inherent parallelism. This approach effectively solves the linearity bias problem and provides a robust framework for future research into energy-based neural architectures.

Summary updated

BibTeX
@inproceedings{zach2019contrastive,
  author = {Christopher Zach and Virginia Estellers},
  title = {{Contrastive Learning for Lifted Networks}},
  booktitle = {BMVC},
  year = {2019},
}
Figure