Papers › Never Train from Scratch: Fair Comparison of Long-Sequence Models Requires Data-Driven Priors

Never Train from Scratch: Fair Comparison of Long-Sequence Models Requires Data-Driven Priors

4 Oct 2023arXiv:2310.02980archive 2025-07-28

Ido Amos, Jonathan Berant, Ankit Gupta

Modeling long-range dependencies across sequences is a longstanding goal in machine learning and has led to architectures, such as state space models, that dramatically outperform Transformers on long sequences. However, these impressive empirical gains have been by and large demonstrated on benchmarks (e.g. Long Range Arena), where models are randomly initialized and trained to predict a target label from an input sequence. In this work, we show that random initialization leads to gross overestimation of the differences between architectures and that pretraining with standard denoising objectives, using only the downstream task data, leads to dramatic gains across multiple architectures and to very small gaps between Transformers and state space models (SSMs). In stark contrast to prior works, we find vanilla Transformers to match the performance of S4 on Long Range Arena when properly pretrained, and we improve the best reported results of SSMs on the PathX-256 task by 20 absolute points. Subsequently, we analyze the utility of previously-proposed structured parameterizations for SSMs and show they become mostly redundant in the presence of data-driven initialization obtained through pretraining. Our work shows that, when evaluating different architectures on supervised tasks, incorporation of data-driven priors via pretraining is essential for reliable performance estimation, and can be done efficiently.

PaperPDFCodeCode 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="2310.02980")

Code

Syntology Ran 10 of 13 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · violated contract; 3 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

idoamos/not-from-scratch officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

13 samples harvested; 10 ran; 0 honoured the contract we drafted; 3 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.

2ran · violated contract
3ran · our draft was wrong
5ran
3unverified

Licence: 0 of the 13 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 idoamos/not-from-scratch. “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.

apply_rotary_pos_emb idoamos/not-from-scratch/local_attention/rotary.py official repository ran MIT (permissive) · 6d3d810524eb100b · report
default idoamos/not-from-scratch/local_attention/local_attention.py official repository ran · violated contract MIT (permissive) · b5307f70349f5c27 · report
dequantize idoamos/not-from-scratch/src/dataloaders/audio.py official repository ran fingerprinted MIT (permissive) · ce310b19a858070f · report
eval_decorator idoamos/not-from-scratch/local_attention/transformer.py official repository ran · our draft was wrong MIT (permissive) · c16aee9490eb8729 · report
exists idoamos/not-from-scratch/local_attention/local_attention.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
l2norm idoamos/not-from-scratch/local_attention/transformer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3eb58dae620046d3 · report
minmax_scale idoamos/not-from-scratch/src/dataloaders/audio.py official repository ran fingerprinted MIT (permissive) · 1b76e4737067023f · report
quantize idoamos/not-from-scratch/src/dataloaders/audio.py official repository ran MIT (permissive) · 1631cd936e9b1a90 · report
rotate_half idoamos/not-from-scratch/local_attention/rotary.py official repository ran fingerprinted MIT (permissive) · 1147383164fd3a66 · report
to idoamos/not-from-scratch/local_attention/local_attention.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · f092dd8a37a00a6e · report
deprecated idoamos/not-from-scratch/src/dataloaders/base.py official repository unverified MIT (permissive) · 25edc240223b76c0 · report
time_features idoamos/not-from-scratch/src/dataloaders/et.py official repository unverified MIT (permissive) · 9d0777602eda354e · report
time_features_from_frequency_str idoamos/not-from-scratch/src/dataloaders/et.py official repository unverified MIT (permissive) · f8544563682146e5 · report

Tasks

DenoisingState Space Models

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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