Papers › Adaptive Attention Span in Transformers

Adaptive Attention Span in Transformers

19 May 2019ACL 2019 7arXiv:1905.07799archive 2025-07-28

Sainbayar Sukhbaatar, Edouard Grave, Piotr Bojanowski, Armand Joulin

We propose a novel self-attention mechanism that can learn its optimal attention span. This allows us to extend significantly the maximum context size used in Transformer, while maintaining control over their memory footprint and computational time. We show the effectiveness of our approach on the task of character level language modeling, where we achieve state-of-the-art performances on text8 and enwiki8 by using a maximum context of 8k characters.

PaperPDFConference PDFCode

In Syntology View this paper on Syntology, its page in Syntology's graph. That page lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

facebookresearch/adaptive-span officialmentioned in papermentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
JoeRoussy/adaptive-attention-in-cv mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Stand-Alone Self-Attention in Vision Models (arXiv:1906.05909; that paper's own run record: 2 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
jerrodparker20/adaptive-transformers-in-rl mentioned on GitHubpytorchSyntology: not harvested report
lancopku/Explicit-Sparse-Transformer mentioned on GitHubtfSyntology: not harvested report
ofirpress/sandwich_transformer mentioned on GitHubpytorchNOASSERTIONSyntology: not harvested report
prajjwal1/adaptive_transformer mentioned on GitHubpytorchSyntology: not harvested report
prajjwal1/fluence mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Adaptively Sparse Transformers (arXiv:1909.00015; that paper's own run record: 3 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
pwc-1/Paper-9 mindsporeSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to RandAugment: Practical automated data augmentation with a reduced search space (arXiv:1909.13719; that paper's own run record: 58 ran (of which 1 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 1 violated, 6 with no contract checked; 51 where Syntology's instrument failed) · 7 unverified); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Language ModelingLanguage Modelling

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Language Modelling Text8 24L Transformer + 8K adaptive span Bit per Character (BPC) 1.07 #4 of 24 Archive leaderboard report
Language Modelling Text8 24L Transformer + 8K adaptive span Number of params 209M #4 of 24 Archive leaderboard report
Language Modelling Text8 12L Transformer + 8K adaptive span Bit per Character (BPC) 1.11 #8 of 24 Archive leaderboard report
Language Modelling Text8 12L Transformer + 8K adaptive span Number of params 38M #8 of 24 Archive leaderboard report
Language Modelling enwik8 Transformer (24 layers, 8k adaptive span) Bit per Character (BPC) 0.98 #11 of 42 Archive leaderboard report
Language Modelling enwik8 Transformer (24 layers, 8k adaptive span) Number of params 209M #11 of 42 Archive leaderboard report
Language Modelling enwik8 Transformer (12 layers, 8k adaptive span) Bit per Character (BPC) 1.02 #20 of 42 Archive leaderboard report
Language Modelling enwik8 Transformer (12 layers, 8k adaptive span) Number of params 39M #20 of 42 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAdaptive MaskingAdaptive Span TransformerAttentionAttention DropoutBPEDense ConnectionsDropoutEmbedding DropoutL1 RegularizationLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerReLUResidual ConnectionSoftmaxTransformer

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