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

Ido Amos, Jonathan Berant, Ankit Gupta
10/1/2023

No official code found. Best implementation: IdoAmos/not-from-scratch (33 stars, MIT, last commit 2024-10-22).

Abstract

This paper is an extended abstract of our ICLR 2024 Outstanding Paper Award work. Modeling long-range dependencies across sequences is a longstanding goal in machine learning. While state space models reportedly outperform Transformers on benchmarks like Long Range Arena, we show that random initialization significantly overestimates architectural differences. Pretraining with standard denoising objectives on downstream task data leads to dramatic gains across architectures and minimal performance gaps between Transformers and state space models (SSMs). We demonstrate that properly pretrained vanilla Transformers match S4 performance on Long Range Arena and improve SSM results on PathX-256 by 20 absolute points. Our analysis shows previously-proposed structured parameterizations for SSMs become largely redundant with pretraining. When evaluating architectures on supervised tasks, incorporating data-driven priors via pretraining is essential for reliable performance estimation.

View on arXivView PDF

Code Implementations(1)

MIT
333Python, Jupyter NotebookNov 12, 20231 years agoMIT

Cite this paper

@article{amos2023never,
  title  = {Never Train from Scratch: Fair Comparison of Long-Sequence Models Requires Data-Driven Priors},
  author = {Ido Amos and Jonathan Berant and Ankit Gupta},
  year   = {2023},
  eprint = {2310.02980},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.02980},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.02980.svg)](https://codeofpaper.com/paper/2310.02980)

Discussion