English

Transformers as Unrolled Inference in Probabilistic Laplacian Eigenmaps: An Interpretation and Potential Improvements

Machine Learning 2025-07-29 v1 Machine Learning

Abstract

We propose a probabilistic interpretation of transformers as unrolled inference steps assuming a probabilistic Laplacian Eigenmaps model from the ProbDR framework. Our derivation shows that at initialisation, transformers perform "linear" dimensionality reduction. We also show that within the transformer block, a graph Laplacian term arises from our arguments, rather than an attention matrix (which we interpret as an adjacency matrix). We demonstrate that simply subtracting the identity from the attention matrix (and thereby taking a graph diffusion step) improves validation performance on a language model and a simple vision transformer.

Keywords

Cite

@article{arxiv.2507.21040,
  title  = {Transformers as Unrolled Inference in Probabilistic Laplacian Eigenmaps: An Interpretation and Potential Improvements},
  author = {Aditya Ravuri and Neil D. Lawrence},
  journal= {arXiv preprint arXiv:2507.21040},
  year   = {2025}
}

Comments

Initial version

R2 v1 2026-07-01T04:22:29.837Z