LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel

Zhe Feng, Sen Lian, Changwei Wang, Muyang Zhang, Tianlong Tan +3 more
4/22/2026
cs.CVcs.AI

No official code found. Best implementation: Phoenix8215/LaplacianFormer (10 stars, last commit 2026-04-23).

Abstract

The quadratic complexity of softmax attention presents a major obstacle for scaling Transformers to high-resolution vision tasks. Existing linear attention variants often replace the softmax with Gaussian kernels to reduce complexity, but such approximations lack theoretical grounding and tend to oversuppress mid-range token interactions. We propose LaplacianFormer, a Transformer variant that employs a Laplacian kernel as a principled alternative to softmax, motivated by empirical observations and theoretical analysis. To address expressiveness degradation under low-rank approximations, we introduce a provably injective feature map that retains fine-grained token information. For efficient computation, we adopt a Nyström approximation of the kernel matrix and solve the resulting system using Newton--Schulz iteration, avoiding costly matrix inversion and SVD. We further develop custom CUDA implementations for both the kernel and solver, enabling high-throughput forward and backward passes suitable for edge deployment. Experiments on ImageNet show that LaplacianFormer achieves strong performance-efficiency trade-offs while improving attention expressiveness.

View on arXivView PDF

Code Implementations(1)

[ICLR2026] LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel

101C++, CudaApr 23, 20266 months ago

Similar Papers

Cite this paper

@article{feng2026laplacianformerrethinking,
  title  = {LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel},
  author = {Zhe Feng and Sen Lian and Changwei Wang and Muyang Zhang and Tianlong Tan and Rongtao Xu and Weiliang Meng and Xiaopeng Zhang},
  year   = {2026},
  eprint = {2604.20368},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.20368v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.20368.svg)](https://codeofpaper.com/paper/2604.20368)

Discussion