Papers › Compressive Transformers for Long-Range Sequence Modelling

Compressive Transformers for Long-Range Sequence Modelling

13 Nov 2019ICLR 2020 1arXiv:1911.05507archive 2025-07-28

Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Timothy P. Lillicrap

We present the Compressive Transformer, an attentive sequence model which compresses past memories for long-range sequence learning. We find the Compressive Transformer obtains state-of-the-art language modelling results in the WikiText-103 and Enwik8 benchmarks, achieving 17.1 ppl and 0.97 bpc respectively. We also find it can model high-frequency speech effectively and can be used as a memory mechanism for RL, demonstrated on an object matching task. To promote the domain of long-range sequence learning, we propose a new open-vocabulary language modelling benchmark derived from books, PG-19.

PaperPDFConference PDFCodeCode 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="1911.05507")

Code

Syntology Ran 3 of 11 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · violated contract; 1 ran · our draft was wrong.

By repository: community (archive-listed): 11 samples from 2 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

deepmind/pg19 mentioned on GitHubApache-2.0 report
google-deepmind/pg19 mentioned on GitHubApache-2.0 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

11 samples harvested; 3 ran; 0 honoured the contract we drafted; 8 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
1ran · our draft was wrong
8unverified

Licence: 0 of the 11 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

cast_tuple lucidrains/compressive-transformer-pytorch/compressive_transformer_pytorch/compressive_transformer_pytorch.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 369eced62e96d690 · report
default lucidrains/compressive-transformer-pytorch/compressive_transformer_pytorch/compressive_transformer_pytorch.py community (archive-listed) ran · violated contract MIT (permissive) · a1bda7590dd9a4d2 · report
to lucidrains/compressive-transformer-pytorch/compressive_transformer_pytorch/compressive_transformer_pytorch.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 7417c98099ec4e15 · report
compression_layer ViktorStagge/CompressiveTransformer/ct/model/layers/compression.py community (archive-listed) unverified MIT (permissive) · 9935f8b67694d72e · report
content_based_attention ViktorStagge/CompressiveTransformer/ct/model/layers/attention.py community (archive-listed) unverified MIT (permissive) · 185debb5bed29c85 · report
content_based_attention_numpy ViktorStagge/CompressiveTransformer/ct/model/layers/attention.py community (archive-listed) unverified MIT (permissive) · ba5b86960e25b0d6 · report
cosine_similarity ViktorStagge/CompressiveTransformer/ct/model/utils.py community (archive-listed) unverified MIT (permissive) · 3e55a982471a2ac4 · report
euclidean_norm ViktorStagge/CompressiveTransformer/ct/model/utils.py community (archive-listed) unverified MIT (permissive) · da8e90a779ce9bc4 · report
get_optimizer ViktorStagge/CompressiveTransformer/ct/model/optimizers.py community (archive-listed) unverified MIT (permissive) · 2386968d2b386e18 · report
treebank ViktorStagge/CompressiveTransformer/ct/load/treebank.py community (archive-listed) unverified MIT (permissive) · 0a1ea081d7a22055 · report
wma ViktorStagge/CompressiveTransformer/ct/load/wma.py community (archive-listed) unverified MIT (permissive) · ff138d8d7172a07a · report

Tasks

Language Modelling

Datasets

Introduced by this paper, per the archive.

PG-19

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Language Modelling Hutter Prize Compressive Transformer Bit per Character (BPC) 0.97 #2 of 18 Archive leaderboard report
Language Modelling WikiText-103 Compressive Transformer (18L, M=1024) Test perplexity 17.1 #20 of 89 Archive leaderboard report
Language Modelling WikiText-103 Compressive Transformer (18L, M=1024) Validation perplexity 16.0 #20 of 89 Archive leaderboard report
Language Modelling enwik8 Compressive Transformer (24 layers) Bit per Character (BPC) 0.97 #8 of 42 Archive leaderboard report
Language Modelling enwik8 Compressive Transformer (24 layers) Number of params 277M #8 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

Introduced by this paper: Compressed Memory, Compressive Transformer

AdamAdaptive Input RepresentationsAdaptive SoftmaxAttentionCompressed MemoryCompressive TransformerCosine AnnealingDense ConnectionsDropoutGradient ClippingLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionReLUResidual ConnectionSoftmaxTransformer-XLVariational Dropout

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