p-Laplacian Transformer

Tuan Nguyen, Tam Nguyen, Vinh Nguyen, Tan M. Nguyen
11/6/2023
cs.LGcs.CLstat.ML

Official code: HAAIL/GLoG-CSUnet (4 stars, MIT, last commit 2025-06-03). 1 more implementation below.

Abstract

$p$-Laplacian regularization, rooted in graph and image signal processing, introduces a parameter $p$ to control the regularization effect on these data. Smaller values of $p$ promote sparsity and interpretability, while larger values encourage smoother solutions. In this paper, we first show that the self-attention mechanism obtains the minimal Laplacian regularization ($p=2$) and encourages the smoothness in the architecture. However, the smoothness is not suitable for the heterophilic structure of self-attention in transformers where attention weights between tokens that are in close proximity and non-close ones are assigned indistinguishably. From that insight, we then propose a novel class of transformers, namely the $p$-Laplacian Transformer (p-LaT), which leverages $p$-Laplacian regularization framework to harness the heterophilic features within self-attention layers. In particular, low $p$ values will effectively assign higher attention weights to tokens that are in close proximity to the current token being processed. We empirically demonstrate the advantages of p-LaT over the baseline transformers on a wide range of benchmark datasets.

View on arXivView PDF

Code Implementations(2)

MIT

Gabor and Laplacian of Gaussian Convolutional Swin Network ( GLoG-CSUnet), a novel architecture enhancing Transformer- based models by incorporating learnable radiomics features

42PythonSep 10, 20241 years agoMIT
MIT

[MICCAI 2023] Laplacian-Former: Overcoming the Limitations of Vision Transformers in Local Texture Detection

183PythonJul 20, 20233 years agoMIT
deeplearningefficient-transformerfrequencylaplacian-pyramidsegmentation+3 more

Similar Papers

Cite this paper

@article{nguyen2023plaplacian,
  title  = {p-Laplacian Transformer},
  author = {Tuan Nguyen and Tam Nguyen and Vinh Nguyen and Tan M. Nguyen},
  year   = {2023},
  eprint = {2311.03235},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.03235v1}
}

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/2311.03235.svg)](https://codeofpaper.com/paper/2311.03235)

Discussion