Interpretable Lightweight Transformer via Unrolling of Learned Graph Smoothness Priors

Tam Thuc Do, Parham Eftekhar, Seyed Alireza Hosseini, Gene Cheung, Philip Chou
6/6/2024
cs.LGcs.CVeess.IV

No official code found. Best implementation: XwaeK/ML_with_Graphs_Project (0 stars, last commit 2025-04-01).

Abstract

We build interpretable and lightweight transformer-like neural networks by unrolling iterative optimization algorithms that minimize graph smoothness priors -- the quadratic graph Laplacian regularizer (GLR) and the $\ell_1$-norm graph total variation (GTV) -- subject to an interpolation constraint. The crucial insight is that a normalized signal-dependent graph learning module amounts to a variant of the basic self-attention mechanism in conventional transformers. Unlike "black-box" transformers that require learning of large key, query and value matrices to compute scaled dot products as affinities and subsequent output embeddings, resulting in huge parameter sets, our unrolled networks employ shallow CNNs to learn low-dimensional features per node to establish pairwise Mahalanobis distances and construct sparse similarity graphs. At each layer, given a learned graph, the target interpolated signal is simply a low-pass filtered output derived from the minimization of an assumed graph smoothness prior, leading to a dramatic reduction in parameter count. Experiments for two image interpolation applications verify the restoration performance, parameter efficiency and robustness to covariate shift of our graph-based unrolled networks compared to conventional transformers.

View on arXivView PDF

Code Implementations(1)

Final project for the Machine Learning with Graphs course at Institut Polytechnique de Paris. Analysis and experimental reproduction of the paper: “Interpretable Lightweight Transformer via Unrolling of Learned Graph Smoothness Priors”. Includes a comparative study with a second related paper. Authors: Fabien Lagnieu & Kenneth Browder.

00TeX, BibTeX StyleMar 20, 20251 years ago

Similar Papers

Cite this paper

@article{do2024interpretable,
  title  = {Interpretable Lightweight Transformer via Unrolling of Learned Graph Smoothness Priors},
  author = {Tam Thuc Do and Parham Eftekhar and Seyed Alireza Hosseini and Gene Cheung and Philip Chou},
  year   = {2024},
  eprint = {2406.04090},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.04090},
  url    = {http://arxiv.org/abs/2406.04090v2},
  journal = {NEURIPS 2024 2024}
}

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

Discussion