mlsanityData to 7 Oct 2026

Where to Add PDE Diffusion in Transformers

arXiv 2510.03272 ↗First posted 27 Sep 2025cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformers enable powerful content-based global routing via self-attention, but they lack an explicit local geometric prior along the sequence axis. As a result, the placement of locality-inducing modules in hybrid architectures has largely been empirical. We study a simple deterministic PDE diffusion layer implemented as one explicit Euler step of one-dimensional heat smoothing using a discrete Neumann Laplacian under a spectral stability constraint, and ask a structural question: where should diffusion be inserted relative to attention? Our central claim is that diffusion and attention generally do not commute, so inserting the same local operator before versus after attention leads to qualitatively different behaviors. We develop a three-layer operator-theoretic framework that (1) establishes unconditional guarantees for the diffusion subsystem, including spectral non-expansiveness and monotone Dirichlet-energy dissipation when the diffusion step size is smaller than one half, (2) derives compositional perturbation bounds linking insertion effects to representation roughness and downstream amplification, and (3) uses diffusion-attention non-commutativity as a diagnostic for structural double-mixing conflicts. Guided by theory, we evaluate seven insertion positions on the Long Range Arena benchmark. Early diffusion acts as effective pre-regularization, improving average accuracy by 4.1 percentage points when applied after embedding, while post-attention diffusion degrades performance by 2.5 percentage points, consistent with the predicted conflict. A multi-scale diffusion variant yields consistent gains under the same global stability constraint. Our analysis provides a general template for reasoning about local-global compositions in sequence models by separating provable guarantees, compositional bounds, and mechanistic diagnostics.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 27 references that are in the map. First posted on arXiv 27 Sep 2025.

Builds on

23 of 27 references.

References · 23

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2016Layer Normalizationcited by 5,579
  8. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  9. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  10. 2020Longformer: The Long-Document Transformercited by 3,362
  11. 2020Fourier Neural Operator for Parametric Partial Differential Equationscited by 2,806
  12. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
11 more
  1. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  2. 2020Reformer: The Efficient Transformercited by 1,658
  3. 2018Spectral Normalization for Generative Adversarial Networkscited by 1,618
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2020Efficient Transformers: A Surveycited by 784
  6. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  7. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  8. 2017Stable Architectures for Deep Neural Networkscited by 340
  9. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  10. 2018Deep Neural Networks Motivated by Partial Differential Equationscited by 187
  11. 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161

Built on by

Not cited yet.