Asymptotics of MAP Inference in Deep Networks

Parthe Pandit, Mojtaba Sahraee-Ardakan, Sundeep Rangan, Alyson Fletcher

Abstract

This work provides a rigorous mathematical framework to analyze Maximum a Priori (MAP) inference in deep neural networks using Multi-Layer Vector Approximate Message Passing (ML-VAMP). We demonstrate that in the large system limit, the performance of MAP inference can be exactly predicted via State Evolution (SE) equations. This bridges the gap between the empirical success of deep generative priors and our theoretical understanding of their performance in high-dimensional inverse problems.

Introduction

Deep neural networks have emerged as powerful "generative priors" for solving complex inverse problems, such as image reconstruction from noisy or incomplete data. The standard approach to these problems is Maximum a Priori (MAP) inference, which seeks the input and hidden states of a network that best explain the observed measurements.

Despite its widespread use and ease of implementation via optimizers like Adam, MAP inference in deep networks is notoriously difficult to analyze. The highly non-convex nature of these networks means that theoretical guarantees are often limited to broad scaling laws rather than the exact performance metrics required for engineering precision. This paper addresses this gap by providing a deterministic characterization of MAP inference performance.

The ML-VAMP Framework

The authors utilize the Multi-Layer Vector Approximate Message Passing (ML-VAMP) algorithm as a principled alternative to standard gradient-based optimization. Their theoretical contribution is two-fold:

1. The ADMM Connection

The researchers prove that the iterations of MAP ML-VAMP are equivalent to a variant of the Alternating Direction Method of Multipliers (ADMM). This connection is significant because it provides a solid optimization foundation for the algorithm, ensuring that if ML-VAMP converges, it reaches a critical point of the MAP objective function. This transforms ML-VAMP from a heuristic message-passing technique into a mathematically grounded optimization tool.

2. State Evolution (SE)

The core of the analysis lies in the derivation of State Evolution equations. In the "Large System Limit"—where the number of neurons and inputs grows toward infinity—these scalar equations track the correlation between the estimates and the true values at every layer and iteration. This allows for an exact characterization of the mean squared error (MSE) as a function of the network architecture, noise levels, and parameters, without needing to run full-scale simulations.

Experimental Validation

The theoretical findings were validated through two primary experimental setups:

  • Synthetic Random Networks: A controlled environment featuring a network with 20 inputs and two hidden layers (100 and 500 units) using ReLU activations and Gaussian weight matrices. This setup was used to compare theoretical SE predictions against actual algorithmic performance.
  • MNIST Inpainting: The method was applied to a practical "inpainting" task using the MNIST dataset. A Variational Autoencoder (VAE) served as the generative prior to reconstruct handwritten digits where the middle rows (10-20) had been erased.
MNIST inpainting results comparing original, erased, and reconstructed digits.

Results and Discussion

Predictive Accuracy of State Evolution

In synthetic simulations, the actual MSE of the ML-VAMP algorithm matched the State Evolution predictions with remarkable precision. As the system size increased, the empirical results converged to the theoretical SE curve, confirming that the performance of MAP inference in high dimensions is deterministic and predictable.

Comparison of MSE for MAP-Adam and ML-VAMP (simulated vs. State Evolution) across varying measurement counts.

Comparative Performance

ML-VAMP achieved reconstruction errors comparable to, and occasionally better than, the popular Adam optimizer. While both methods reached similar local minima in the MNIST inpainting task, ML-VAMP offers the unique advantage of being theoretically analyzable. The State Evolution equations are computationally inexpensive compared to full simulations, providing a way to "preview" network performance before deployment.

Conclusion and Future Work

While this framework provides a major step forward, several challenges remain. The current proof relies on the assumption of large random (Gaussian) weight matrices, whereas real-world networks use highly structured, pre-trained weights. Generalizing this theory to structured weights is a key open challenge. Additionally, the authors noted that ML-VAMP can be unstable, requiring "damping" techniques to ensure convergence. Future research will focus on making the algorithm more robust and scaling the analysis to modern, deeper architectures like Transformers and Diffusion-based priors.

Summary updated

BibTeX
@inproceedings{pandit2019asymptotics,
  author = {Parthe Pandit and Mojtaba Sahraee-Ardakan and Sundeep Rangan and Alyson Fletcher},
  title = {{Asymptotics of MAP Inference in Deep Networks}},
  booktitle = {ISIT},
  year = {2019},
  url = {https://openreview.net/forum?id=1vQpjCVYIi},
}
Figure