Papers › Customizing the Inductive Biases of Softmax Attention using Structured Matrices

Customizing the Inductive Biases of Softmax Attention using Structured Matrices

9 Sep 2025ICMLarXiv:2509.07963added by Syntology

Yilun Kuang, Noah Amsel, Sanae Lotfi, Shikai Qiu, Andres Potapczynski, Andrew Gordon Wilson

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The core component of attention is the scoring function, which transforms the inputs into low-dimensional queries and keys and takes the dot product of each pair. While the low-dimensional projection improves efficiency, it causes information loss for certain tasks that have intrinsically high-dimensional inputs. Additionally, attention uses the same scoring function for all input pairs, without imposing a distance-dependent compute bias for neighboring tokens in the sequence. In this work, we address these shortcomings by proposing new scoring functions based on computationally efficient structured matrices with high ranks, including Block Tensor-Train (BTT) and contiguous Multi-Level Low Rank (MLR) matrices. On in-context regression tasks with high-dimensional inputs, our proposed scoring functions outperform standard attention for any fixed compute budget. On language modeling, a task that exhibits locality patterns, our MLR-based attention method achieves improved scaling laws compared to both standard attention and variants of sliding window attention. Additionally, we show that both BTT and MLR fall under a broader family of efficient structured matrices capable of encoding either full-rank or distance-dependent compute biases, thereby addressing significant shortcomings of standard attention. Finally, we show that MLR attention has promising results for long-range time-series forecasting.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2509.07963")

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

YilunKuang/structured-attention found in paper text by SyntologyApache-2.0 report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 0 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from YilunKuang/structured-attention. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basic_plot YilunKuang/structured-attention/in_context_regression/plot_utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e472ab225b88777b · report
btt_flop_count YilunKuang/structured-attention/src/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 26f5e4a132d63531 · report
build_model YilunKuang/structured-attention/in_context_regression/models.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d9639c68861b1f12 · report
build_model_full_args YilunKuang/structured-attention/in_context_regression/models.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e4331e222bcd1532 · report
compute_muP_lr YilunKuang/structured-attention/src/muP.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9de527edc2e83a42 · report
eval_step YilunKuang/structured-attention/train_ICL.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 53782f15c39fa389 · report
generate_out_dir YilunKuang/structured-attention/src/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 2f7cc0b6631e5caa · report
get_data_sampler YilunKuang/structured-attention/in_context_regression/samplers.py found in paper text by Syntology unverified Apache-2.0 (permissive) · bbce67230d64cc0f · report
get_final_var YilunKuang/structured-attention/in_context_regression/curriculum.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3c24ac252fef0868 · report
get_lr_mult YilunKuang/structured-attention/src/lr_schedule.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ffa291b28a675c06 · report
muPify YilunKuang/structured-attention/src/muP.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 02d9b1c54bc79169 · report
sample_seeds YilunKuang/structured-attention/train_ICL.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4d49c710f74c99c4 · report
sample_transformation YilunKuang/structured-attention/in_context_regression/samplers.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7f92ad21604fa243 · report
train_step YilunKuang/structured-attention/train_ICL.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6d19d7bf19c36fb9 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2509.07963, was issued in September 2025, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections