GEQ: Gaussian Kernel Inspired Equilibrium Models

Mingjie Li, Yisen Wang, Zhouchen Lin

Introduction

Deep Equilibrium Models (DEQs) offer a mathematically interpretable alternative to standard deep neural networks by defining their output as the steady-state (equilibrium) of an optimization problem. However, these optimization-induced models (OptEqs) have historically lagged behind standard explicit networks like ResNets in performance.

GEQ (Gaussian kernel inspired Equilibrium Models) bridges this gap. By replacing standard linear feature extraction with nonlinear Gaussian kernels, GEQ creates a "double-infinite" architecture—effectively a weight-tied neural network with both infinite depth and infinite width. This upgrade allows GEQ to significantly outperform previous implicit models while remaining far more parameter-efficient than standard ResNets.

The Problem with Linear Kernels

Most modern Deep Neural Networks (DNNs) are "explicit" models that follow a fixed sequence of layers. While powerful, they are often criticized as "black boxes" designed through trial and error. "Implicit" models, like DEQs, define the network's output as the equilibrium of an optimization problem, offering better theoretical grounding.

Despite this advantage, OptEqs usually perform worse than standard deep networks. The authors identified a critical bottleneck: OptEqs rely on linear kernels to extract features. Linear kernels inherently struggle to capture the complex, nonlinear dependencies found in real-world image data, limiting the model's expressive power.

Methodology: The GEQ Architecture

To overcome the limitations of linear kernels, the authors introduce GEQ, which reformulates the underlying optimization problem using Gaussian kernels.

GEQ Architecture Flow

Key technical contributions of this approach include:

  • Nonlinear Reformulation: By replacing the linear similarity term in the OptEq objective function with a Gaussian kernel, the resulting fixed-point equation naturally incorporates a nonlinear "attentive" module.
  • The "Double-Infinite" Property: GEQ is theoretically equivalent to an OptEq with "infinite width." Since DEQs already possess "infinite depth" due to their weight-tied, iterative nature, GEQ represents a unique hybrid of both infinite regimes.
  • Patch Splitting: To handle high-resolution images efficiently, GEQ implements a patch-splitting technique similar to Vision Transformers. It calculates similarities across local patches rather than the entire image at once, allowing the model to focus on specific spatial regions.
  • Optimization: The model uses Anderson Acceleration to find the equilibrium state quickly and Phantom Gradients for efficient backpropagation during training.

Key Insights: Implicit Attention and Stability

One of the most striking discoveries in this paper is that the Gaussian kernel formulation mathematically induces a structure that acts like an attention mechanism. This implicit attention allows the model to "focus" on important parts of an image without needing an explicitly designed attention layer. Saliency maps demonstrate that GEQ focuses much more precisely on the actual object in an image compared to previous models, which often allocate attention to irrelevant background textures.

Furthermore, Gaussian kernels are inherently more stable than linear ones. The authors provide theoretical proofs showing that GEQ has a tighter generalization bound and better Lipschitz constants (a measure of how much the output changes relative to input perturbations) than previous models. This means GEQ demonstrates that better results don't necessarily require more layers or parameters—just a more expressive way to calculate feature relationships.

Key Results: Superior Accuracy and Efficiency

The researchers evaluated GEQ on several standard image classification benchmarks, including CIFAR-10, CIFAR-100, ImageNette, ImageNet-100, and the CIFAR-10 Corruption dataset (CIFAR-10-C).

ImageNet-100 Accuracy vs. Model Size
  • Beating Larger Models: On the large-scale ImageNet-100 dataset, a GEQ model with only 13M parameters reached 83.9% accuracy, surpassing a ResNet-50 (23M parameters) which scored 81.7%. GEQ achieved superior results with roughly half the parameters.
  • Superior Accuracy: On CIFAR-100, GEQ achieved 78.2% accuracy, outperforming the previous best implicit model (MOptEqs) at 75.6%.
  • Robustness to Noise: In corruption tests (CIFAR-10-C), GEQ showed significantly higher stability against 19 types of structured noise, blur, and weather effects compared to both ResNet and standard OptEqs.

Limitations and Future Work

While highly promising, GEQ has a few limitations. First, the authors acknowledge that while their theoretical generalization bounds prove GEQ is better than OptEqs, the bounds themselves are "not tight." Finding a more precise mathematical approximation remains an open challenge.

Second, like most implicit models, GEQ requires solving a fixed-point iteration for every forward pass. While parameter-efficient, this iterative nature can be computationally more demanding than a single forward pass through a standard CNN. Finally, while results on ImageNet-100 are excellent, the paper does not explore scaling GEQ to the full ImageNet-1k dataset or massive foundation-model scales.

Summary updated

BibTeX
@inproceedings{li2023geq,
  author = {Mingjie Li and Yisen Wang and Zhouchen Lin},
  title = {{GEQ: Gaussian Kernel Inspired Equilibrium Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=TBOfDCX4Gz},
}
Figure