SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.07963 · ICML · 2025

Customizing the Inductive Biases of Softmax Attention using Structured Matrices

Andrew Wilson, Sanae Lotfi, Andres Potapczynski, Yilun Kuang, Shikai Qiu, Noah Amsel, Bilinear Btt, Bilinear Mlr

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 4 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.07963.json · badge: /api/ran/2509.07963.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
YilunKuang/structured-attention canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
FunctionStatusWhere it lives
basic_plot Ran
ran; our contract draft was wrong, not the code
YilunKuang/structured-attention/in_context_regression/plot_utils.py
code served (permissive licence) · get_code("e472ab225b88777b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

# Build the metrics dict that the function expects
# The function accesses metrics[k] for each k in models
# It expects vs['mean'], vs['bootstrap_low'], vs['bootstrap_high']
# All should be array-like with len()

metrics = {
    'model_a': {
        'mean': np.array([0.8, 0.6, 0.4, 0.3, 0.2]),
        'bootstrap_low': np.array([0.75, 0.55, 0.35, 0.25, 0.15]),
        'bootstrap_high': np.array([0.85, 0.65, 0.45, 0.35, 0.25])
    },
    'model_b': {
        'mean': np.array([0.9, 0.7, 0.5, 0.4, 0.35]),
        'bootstrap_low': np.array([0.85, 0.65, 0.45, 0.35, 0.3]),
        'bootstrap_high': np.array([0.95, 0.75, 0.55, 0.45, 0.4])
    },
    'model_c': {
        'mean': np.array([0.7, 0.5, 0.35, 0.25, 0.18]),
        'bootstrap_low': np.array([0.65, 0.45, 0.3, 0.2, 0.13]),
        'bootstrap_high': np.array([0.75, 0.55, 0.4, 0.3, 0.23])
    }
}

ARGS = {
    'metrics': metrics,
    'models': ['model_a', 'model_b'],
    'trivial': 1.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YilunKuang/structured-attention/in_context_regression/models.py
code served (permissive licence) · get_code("d9639c68861b1f12")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TransformerModel. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from transformers import GPT2Model, GPT2Config

torch.manual_seed(0)

class Config:
    def __init__(self, family, n_dims, n_positions, n_embd, n_layer, n_head):
        self.family = family
        self.n_dims = n_dims
        self.n_positions = n_positions
        self.n_embd = n_embd
        self.n_layer = n_layer
        self.n_head = n_head

conf = Config(
    family='gpt2',
    n_dims=4,
    n_positions=3,
    n_embd=8,
    n_layer=2,
    n_head=2
)

ARGS = {
    'conf': conf
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TransformerModel — a TransformerModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TransformerModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_model_full_args Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YilunKuang/structured-attention/in_context_regression/models.py
code served (permissive licence) · get_code("e4331e222bcd1532")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TransformerModel. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from transformers import GPT2Model, GPT2Config

torch.manual_seed(0)

# Create a minimal StructGPTforICLRegression stand-in class
class StructGPTforICLRegression(nn.Module):
    def __init__(self, **kwargs):
        super().__init__()
        # Extract relevant config args
        n_embd = kwargs.get('n_embd', 128)
        n_layer = kwargs.get('n_layer', 2)
        n_head = kwargs.get('n_head', 4)
        n_positions = kwargs.get('n_positions', 64)
        
        # Create a simple GPT2-like backbone
        config = GPT2Config(
            n_positions=n_positions,
            n_embd=n_embd,
            n_layer=n_layer,
            n_head=n_head,
            resid_pdrop=0.0,
            embd_pdrop=0.0,
            attn_pdrop=0.0,
            use_cache=False
        )
        self.backbone = GPT2Model(config)
    
    def forward(self, inputs_embeds):
        output = self.backbone(inputs_embeds=inputs_embeds)
        return output

# Create minimal model_backbone for structgpt case
class MinimalBackbone(nn.Module):
    def __init__(self, n_embd=128, n_layer=2, n_head=4, n_positions=64):
        super().__init__()
        config = GPT2Config(
            n_positions=n_positions,
            n_embd=n_embd,
            n_layer=n_layer,
            n_head=n_head,
            resid_pdrop=0.0,
            embd_pdrop=0.0,
            attn_pdrop=0.0,
            use_cache=False
        )
        self.gpt2 = GPT2Model(config)
    
    def forward(self, inputs_embeds):
        return self.gpt2(inputs_embeds=inputs_embeds)

# Build the ARGS dictionary
ARGS = {
    'model_family': 'gpt2',
    'model_n_positions': 8,
    'model_n_dims': 4,
    'model_n_embd': 128,
    'model_n_layer': 2,
    'model_n_head': 4,
    'model_vocab_size': 50257,
    'model_backbone': MinimalBackbone(n_embd=128, n_layer=2, n_head=4, n_positions=16)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TransformerModel — a TransformerModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TransformerModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_muP_lr Ran
ran, honoured the contract we drafted
YilunKuang/structured-attention/src/muP.py
code served (permissive licence) · get_code("9de527edc2e83a42")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Analyze the function:
# - name: string parameter used in print statement
# - fan_out: numeric parameter used in computation
# - fan_in: numeric parameter used in division
# - base_width_factor: numeric parameter used in multiplication
# - lr: numeric parameter (learning rate)
# - opt_name: string parameter compared to 'AdamW'

ARGS = {
    'name': 'layer_0',
    'fan_out': 128,
    'fan_in': 64,
    'base_width_factor': 2.0,
    'lr': 0.001,
    'opt_name': 'AdamW'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
eval_step Ran
ran; our contract draft was wrong, not the code
YilunKuang/structured-attention/train_ICL.py
code served (permissive licence) · get_code("53782f15c39fa389")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, xs, ys):
        return self.linear(xs)

model = SimpleModel()

xs = torch.randn(2, 4)
ys = torch.randn(2, 3)

def loss_func(output, target):
    return torch.nn.functional.mse_loss(output, target)

ARGS = {
    "model": model,
    "xs": xs,
    "ys": ys,
    "loss_func": loss_func
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_data_sampler Ran
ran; our contract draft was wrong, not the code
YilunKuang/structured-attention/in_context_regression/samplers.py
code served (permissive licence) · get_code("bbce67230d64cc0f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned GaussianSampler. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'data_name': 'gaussian',
    'n_dims': 4,
    'bias': torch.zeros(4),
    'scale': torch.eye(4),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GaussianSampler — a GaussianSampler output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GaussianSampler output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_final_var Ran
ran, honoured the contract we drafted
YilunKuang/structured-attention/in_context_regression/curriculum.py
code served (permissive licence) · get_code("3c24ac252fef0868")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

ARGS = {
    "init_var": 0.1,
    "total_steps": 1000,
    "inc": 0.01,
    "n_steps": 100,
    "lim": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_lr_mult Ran
ran, honoured the contract we drafted
YilunKuang/structured-attention/src/lr_schedule.py
code served (permissive licence) · get_code("ffa291b28a675c06")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

ARGS = {
    "it": 500,
    "init_lr": 0.001,
    "min_lr": 0.0001,
    "warmup_iters": 100,
    "lr_decay_iters": 1000,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sample_transformation Ran
ran; our contract draft was wrong, not the code
YilunKuang/structured-attention/in_context_regression/samplers.py
code served (permissive licence) · get_code("7f92ad21604fa243")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# The function uses eigenvalues as a tensor that:
# - has len() called on it (so needs to be 1D)
# - is used in torch.diag()
# - is raised to power 2 and summed
# - is multiplied by a scalar

eigenvalues = torch.tensor([1.0, 2.0, 3.0, 4.0])

normalize = False

ARGS = {
    "eigenvalues": eigenvalues,
    "normalize": normalize,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_step Ran
ran; our contract draft was wrong, not the code
YilunKuang/structured-attention/train_ICL.py
code served (permissive licence) · get_code("6d19d7bf19c36fb9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, xs, ys):
        # Model takes xs and ys, returns output for loss computation
        return self.linear(xs)

class SimpleLoss(nn.Module):
    def __init__(self):
        super().__init__()
        self.mse = nn.MSELoss()
    
    def forward(self, output, ys):
        # Loss function takes output and ys
        return self.mse(output, ys)

model = SimpleModel()
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)
loss_func = SimpleLoss()

xs = torch.randn(2, 4)
ys = torch.randn(2, 3)

ARGS = {
    "model": model,
    "xs": xs,
    "ys": ys,
    "optimizer": optimizer,
    "loss_func": loss_func
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
btt_flop_count Not yet run
unverified (harvested, no recorded run)
YilunKuang/structured-attention/src/utils.py
code served (permissive licence) · get_code("26f5e4a132d63531")
How it ran

no invocation recorded.

generate_out_dir Not yet run
unverified (harvested, no recorded run)
YilunKuang/structured-attention/src/utils.py
code served (permissive licence) · get_code("2f7cc0b6631e5caa")
How it ran

no invocation recorded.

muPify Not yet run
unverified (harvested, no recorded run)
YilunKuang/structured-attention/src/muP.py
code served (permissive licence) · get_code("02d9b1c54bc79169")
How it ran

no invocation recorded.

sample_seeds Not yet run
unverified (harvested, no recorded run)
YilunKuang/structured-attention/train_ICL.py
code served (permissive licence) · get_code("4d49c710f74c99c4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_final_var 8 other papers
8 dated earlier
2306.04891 (2023-06)
In-Context Learning through the Bayesian Prism
2310.17086 (2023-10)
Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regression
2402.03170 (2024-02)
Is Mamba Capable of In-Context Learning?
and 5 more not named here
sample_transformation 3 other papers
3 dated earlier
2402.03170 (2024-02)
Is Mamba Capable of In-Context Learning?
2402.04248 (2024-02)
Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks
2404.18191 (2024-04)
Published at ICLR 2024 Workshop on Reliable and Responsible Foundation Models EXPLORING THE ROBUSTNESS OF IN-CONTEXT LEARNING WITH NOISY LABELS
sample_seeds 2 other papers
2 dated earlier
2310.17086 (2023-10)
Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regression
2402.04248 (2024-02)
Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks
basic_plot 1 other paper
1 dated earlier
2404.18191 (2024-04)
Published at ICLR 2024 Workshop on Reliable and Responsible Foundation Models EXPLORING THE ROBUSTNESS OF IN-CONTEXT LEARNING WITH NOISY LABELS
build_model 1 other paper
1 dated earlier
2404.18191 (2024-04)
Published at ICLR 2024 Workshop on Reliable and Responsible Foundation Models EXPLORING THE ROBUSTNESS OF IN-CONTEXT LEARNING WITH NOISY LABELS
get_data_sampler 1 other paper
1 dated earlier
2404.18191 (2024-04)
Published at ICLR 2024 Workshop on Reliable and Responsible Foundation Models EXPLORING THE ROBUSTNESS OF IN-CONTEXT LEARNING WITH NOISY LABELS

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The core component of attention is the scoring function, which transforms the inputs into lowdimensional 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 MLRbased 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.07963")
get_code_for_paper("2509.07963")
have("2509.07963")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.07963.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.07963.svg)](https://syntology.ai/paper/2509.07963)

Connect an agent — have() is free.