SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.17171 · 2026

In-Context Learning in Linear vs. Quadratic Attention Models: An Empirical Study on Regression Tasks

Ayush Goel, Sarvagya Somvanshi, Arjun Kohli

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2602.17171.json · badge: /api/ran/2602.17171.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
Yushgoel/icl-benchmarking canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
count_parameters Ran
ran, honoured the contract we drafted
Yushgoel/icl-benchmarking/src/utils/helpers.py
pointer only (licence: NONE) · get_code("f6b944f50d3f15ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

eval_model Ran
ran; our contract draft was wrong, not the code
Yushgoel/icl-benchmarking/src/training/evaluator.py
pointer only (licence: NONE) · get_code("2ca88cb8c3b44083")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_data Ran
ran; our contract draft was wrong, not the code
Yushgoel/icl-benchmarking/src/utils/data_utils.py
pointer only (licence: NONE) · get_code("5b1e23ee078275d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

relu_squared_feature_map Ran
ran; our contract draft was wrong, not the code
Yushgoel/icl-benchmarking/src/models/linear_attention.py
pointer only (licence: NONE) · get_code("738683753c7911fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

to_serializable Ran
ran, honoured the contract we drafted
Yushgoel/icl-benchmarking/src/utils/helpers.py
pointer only (licence: NONE) · get_code("2132aecd6e4316eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train_step Ran
ran; our contract draft was wrong, not the code
Yushgoel/icl-benchmarking/src/training/trainer.py
pointer only (licence: NONE) · get_code("a9cac69a38c2e2f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train_model Not yet run
unverified (harvested, no recorded run)
Yushgoel/icl-benchmarking/src/training/trainer.py
pointer only (licence: NONE) · get_code("c3d650ad772ed1e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

train_multiseed Not yet run
unverified (harvested, no recorded run)
Yushgoel/icl-benchmarking/src/training/trainer.py
pointer only (licence: NONE) · get_code("bf5e5378b9f0cbdb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Yushgoel/icl-benchmarking when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 7 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
count_parameters 180 other papers
169 dated earlier, 1 the same month, 10 later · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here

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-22.

Repositories linked to this paper

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

Abstract

Recent work has demonstrated that transformers and linear attention models can perform in-context learning (ICL) on simple function classes, such as linear regression. In this paper, we empirically study how these two attention mechanisms differ in their ICL behavior on the canonical linearregression task of Garg et al. [3]. We evaluate learning quality (MSE), convergence, and generalization behavior of each architecture. We also analyze how increasing model depth affects ICL performance. Our results illustrate both the similarities and limitations of linear attention relative to quadratic attention in this setting.

For agents

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

get_harvested_code_for_paper("2602.17171")
get_code_for_paper("2602.17171")
have("2602.17171")

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

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

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

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

Connect an agent — have() is free.