Training Multi-Layer Transformers in Almost Linear Time
Its authors withdrew this paper, so there is no full text to read or summarize.
Abstract
The computational complexity of the self-attention mechanism in popular transformer architectures poses significant challenges for training and inference, and becomes the bottleneck for long inputs. Is it possible to significantly reduce the quadratic time complexity of computing the gradients in multi-layer transformer models? This paper proves that a novel fast approximation method can calculate the gradients in almost linear time $n^{1+o(1)}$ where $n$ is the input sequence length, while it maintains a polynomially small approximation error $1 / \mathrm{poly}(n)$ across the entire model. Our theory holds for general loss functions and when the multi-layer transformer model contains many practical sub-modules, such as residual connection, causal mask, and multi-head attention. We further validate our approach through numerical experiments, demonstrating both its high approximation fidelity and substantial speedups in practice. By improving the efficiency of gradient computation, we hope that this work will facilitate more effective training and deployment of long-context language models based on our theoretical results.
BibTeX
@misc{cao2026training,
author = {Yang Cao and Yingyu Liang and Zhizhou Sha and Zhenmei Shi and Zhao Song},
title = {{Training Multi-Layer Transformers in Almost Linear Time}},
year = {2026},
url = {https://openreview.net/forum?id=ymidNjoH4V},
howpublished = {OpenReview},
note = {Submitted to ICLR 2026},
}Ask Althea to put this paper to the test.
Loading related content...