Vedant Puri
https://vpuri3.github.io/
15
Large training cost is amortized over several evaluations
Model learns to predict \(\boldsymbol{u}\) over a distribution of \(\boldsymbol{\mu}\)
16
Message-passing on a dynamic all-to-all graph.
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
Quadratic (\(\mathcal{O}(N^2)\)) cost limits scalability
17
Over \(20~\text{s}\) per gradient step on a mesh of 1m poins!
Goal: enable transformer models on large meshes.
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
\([1]\)
18
Solution operator requires global communication.
Forward operator is implemented with sparse, structured communication.
Need principled strategy for reducing communication cost.
[1] Math StackExchange — “Interpolation in Finite Element Method”
[1]
19
Smoothness implies redundancy in communication.
19
Smoothness implies redundancy in communication.
Method: club matching points to one cluster and communicate together.
20
\(M\) learned queries
21
\(\mathcal{O}(2MN) \ll \mathcal{O}(N^2)\)
\(\text{rank}(W_\text{encode}\cdot W_\text{decode}) \leq M\)
\(>200\times\) speedup
\(\text{(} M \text{ tokens)}\)
\(\text{Latent}\)
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
\([1]\)
22
Pipe
Darcy
Elasticity
LPBF
DrivAerML
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
[2] Jaegle et al. — "PercieverIO: A General Architecture for Structured Inputs & Outputs", ICLR 2022
[3] Hao et al., — "GNOT: A General Neural Operator Transformer for Operator Learning", PMLR 2023
[4] Wang et al. —"Latent Neural Operator", NeurIPS 2024
[5] We et al. — "Transolver: A Fast Transformer Solver for PDEs on General Geometries", ICML 2024
23
24
25
Largest experiment on a single GPU!
26
[1]
[1] Ashton et al. — “DrivAerML: High-Fidelity CFD Dataset for Road-Car Aerodynamics” (arXiv:2408.11969, 2024)
27
Pathfinder
Listops
Image classification
Text sentiment analysis
[7]
[8]
[1]
[5]Choromanski et al. — "Rethinking Attention with Performers", ICLR 2021
[6] Tay, Y. et al. — “Long Range Arena: A Benchmark for Efficient Transformers” (arXiv 2020)
[7] Centric Consulting — “Sentiment Analysis: Way Beyond Polarity” (blog)
[8] Krizhevsky — CIFAR dataset homepage
[6]
Accuracy \((\%)\) (higher is better)
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
[2] Katharopoulos et al. — "Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention", ICML 2020
[3] Wang et al. — "Linformer: Self-attention with linear complexity", arXiv:2006.04768 2020
[4] Qin et al. — "The devil in linear transformer", arXiv:2210.10340 2022
Key idea: Modulate token-mixing with conditioning tokens
Cross FLARE
32
\(\mathcal{O}(2MN + MC) \) complexity
Token mixing mediated through \(S\in\mathbb{R}^{D\times D}\)
FEATURES
DEMONSTRATIONS
Hyper-graph attention
Relation to linearized attention
Laser Powder Bed Fusion (LPBF)
Dataset of 20k LPBF calculations
Goal: develop fast surrogate model to predict warpage during build
Governing equations
End results could be deployed as a valuable design tool for metal AM.
28
[1]
[2]
[1] Nature Scientific Data — High-resolution dataset (2025)
[2] TechXplore — “Synergetic optimization reduces residual warpage in LPBF” (2022)
29
30
Complexity scales with latents (\(M\)): \(\mathcal{O}(2MN)\)
Accuracy increases with \(M\)
Method: progressively increase latents (\(M\)) through training.
Challenge: Minimize loss spikes, training instabilities.
Token mixing [1] (\(\mathcal{O}(N^2)\))
Conditioning [1] (\(\mathcal{O}(N\cdot C)\))
Token mixing
Token mixing
Conditioning
31
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
Key idea: Modulate token-mixing with conditioning tokens
Cross FLARE
32
\(\mathcal{O}(2MN + MC) \) complexity
All previous key/value \(\{k_\tau, v_\tau \}_{\tau \leq t}\) must be cached on the GPU.
Major memory and latency bottleneck!
33
[1] Vaswani et al. — “Attention Is All You Need”, NeurIPS 2017
Training algorithm (causal masking)
Inference algorithm (recurrence relation)
Dot-products need to be recomputed for every \(q_t\).
\(\mathcal{O}(N^2)\) complexity.
Linear time auto-regressive attention.
Fixed memory footprint (only store \(\mathcal{O}(M)\) cache).
Flexible latent capacity.
Advantages
Required components
Fused GPU kernels for training and inference.
Bespoke training algorithm for causal FLARE.
Extensive benchmarking and evaluation.
34
Inference algorithm (recurrence rule)
Linear transformers replace the softmax kernel with a feature map \(\phi(\cdot)\) such that
This factorization allows causal attention to be computed recurrently:
https://manifestai.com/articles/linear-transformers-are-faster/