Fast Tree-Field Integrators: From Low Displacement Rank to Topological Transformers

Krzysztof Choromanski, Arijit Sehanobish, Somnath Basu Roy Chowdhury, Han Lin, Avinava Dubey +2 more
6/22/2024
cs.LGcs.AI

No official code found. Best implementation: brcsomnath/FastTreeIntegrator (1 star, last commit 2024-08-06).

Abstract

We present a new class of fast polylog-linear algorithms based on the theory of structured matrices (in particular low displacement rank) for integrating tensor fields defined on weighted trees. Several applications of the resulting fast tree-field integrators (FTFIs) are presented, including (a) approximation of graph metrics with tree metrics, (b) graph classification, (c) modeling on meshes, and finally (d) Topological Transformers (TTs) (Choromanski et al., 2022) for images. For Topological Transformers, we propose new relative position encoding (RPE) masking mechanisms with as few as three extra learnable parameters per Transformer layer, leading to 1.0-1.5%+ accuracy gains. Importantly, most of FTFIs are exact methods, thus numerically equivalent to their brute-force counterparts. When applied to graphs with thousands of nodes, those exact algorithms provide 5.7-13x speedups. We also provide an extensive theoretical analysis of our methods.

View on arXivView PDF

Code Implementations(1)

10Python, Jupyter NotebookMar 24, 20242 years ago

Similar Papers

Cite this paper

@article{choromanski2024fast,
  title  = {Fast Tree-Field Integrators: From Low Displacement Rank to Topological Transformers},
  author = {Krzysztof Choromanski and Arijit Sehanobish and Somnath Basu Roy Chowdhury and Han Lin and Avinava Dubey and Tamas Sarlos and Snigdha Chaturvedi},
  year   = {2024},
  eprint = {2406.15881},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.15881},
  url    = {http://arxiv.org/abs/2406.15881v2},
  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.15881.svg)](https://codeofpaper.com/paper/2406.15881)

Discussion