Introduction
Standard Multilayer Perceptrons (MLPs) are designed to output unconstrained vectors. However, many machine learning tasks require predicting structured matrices, specifically Symmetric Positive Definite (SPD) matrices like covariance matrices. Standard MLPs cannot guarantee that their outputs will satisfy the necessary mathematical properties of being symmetric with positive eigenvalues. This limitation is particularly evident in Variational Autoencoders (VAEs), which typically resort to diagonal covariance assumptions for latent variables to maintain tractability, thereby ignoring complex dependencies and feature interactions.
The Matrix Multilayer Perceptron (mMLP)
The authors propose the Matrix Multilayer Perceptron (mMLP), a novel architecture that inherently respects the geometry of SPD matrices. Unlike "shallow" approaches that apply constraints only at the output layer, the mMLP ensures that data remains in the form of SPD matrices throughout all hidden layers. This is achieved using positive-definite kernels, such as the Mercer sigmoid kernel, as activation functions. The authors found that propagating the SPD constraint through every layer of the network captures complex dependencies much better than a shallow approach.
Non-Euclidean Loss and Backpropagation
To train the mMLP, the authors move beyond standard Euclidean metrics like Mean Squared Error, which are ill-suited for the Riemannian geometry of SPD manifolds. Instead, they utilize the von Neumann divergence (also known as quantum relative entropy). They also derive a custom backpropagation routine using matrix $\alpha$-derivatives to push gradients through these complex matrix functions. When learning matrices, the choice of divergence is critical; the von Neumann divergence significantly outperformed both standard Euclidean loss and the popular LogDet (Stein) divergence.
Application to Variational Autoencoders
The mMLP allows for a significant relaxation of the standard VAE's diagonal covariance assumption. By replacing standard MLPs with mMLPs, the authors can implement VAEs with dense (full) covariance matrices. Furthermore, they explore replacing the Gaussian distribution with a multivariate power exponential (mPE) distribution to further increase generative flexibility. This approach addresses the persistent fear in VAE literature that making the generative network too flexible will cause posterior collapse; instead, the authors demonstrate that dense covariance and non-Gaussian flexibility actually improve model performance.
Experimental Results
The mMLP was evaluated on both synthetic regression tasks and the Frey Face dataset.
Synthetic Regression
In supervised regression tasks, the mMLP using von Neumann loss ($\ell_{QRE}$) achieved vastly superior error rates compared to a standard MLP using quadratic loss. As shown in Table 2, the error rates for $\ell_{QRE}$ were orders of magnitude lower than those for standard quadratic or Stein divergences across various metrics, such as $E_{quad}$ and $E_{Stein}$.
VAE Performance on Frey Face
Experiments on the Frey Face dataset (using the first 10 Principal Components) demonstrated that models with full covariance matrices ($\mathcal{N}_f\mathcal{N}_f$) outperformed standard diagonal models ($\mathcal{N}_d\mathcal{N}_d$). The most flexible variant, utilizing the mPE distribution with dense covariance for the generative network, achieved the highest log-likelihood scores while maintaining high KL divergence, proving the latent space was actively and effectively utilized.
Conclusion and Future Work
The mMLP successfully captures complex dependencies by propagating SPD constraints through the network. While the current implementation faces scalability challenges due to $\mathcal{O}(d^3)$ complexity and high memory usage from Kronecker products, future work involving sparse block matrices and tensor products may alleviate these bottlenecks. The results prove that increasing generative flexibility in VAEs through dense covariance structures can improve performance while maintaining healthy latent representations.
Summary updated