Saved in:
Bibliographic Details
Main Authors: Ravuri, Aditya, Lawrence, Neil D.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.21040
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909709487833088
author Ravuri, Aditya
Lawrence, Neil D.
author_facet Ravuri, Aditya
Lawrence, Neil D.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_21040
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Transformers as Unrolled Inference in Probabilistic Laplacian Eigenmaps: An Interpretation and Potential Improvements
Ravuri, Aditya
Lawrence, Neil D.
Machine Learning
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.
title Transformers as Unrolled Inference in Probabilistic Laplacian Eigenmaps: An Interpretation and Potential Improvements
topic Machine Learning
url https://arxiv.org/abs/2507.21040