[Paper Review] Compressive Transformers for Long-Range Sequence Modelling
The Compressive Transformer extends Transformer memory with compressed past activations, achieving state-of-the-art perplexity/bpc on Enwik8 and WikiText-103 and proposing PG-19 as a long-range LM benchmark.
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.
Motivation & Objective
- Motivate long-range sequence modelling by mimicking lossy human memory compression.
- Propose a memory-augmented Transformer that compresses past activations into a compressed memory.
- Demonstrate state-of-the-art performance on character- and word-level language modelling benchmarks.
- Show applicability to high-frequency speech modelling and reinforcement learning memory tasks.
- Introduce PG-19, a book-scale open-vocabulary language modelling benchmark.
Proposed method
- Extend Transformer with a memory of past activations (memory) and a second, compressed memory (compressed memories).
- At each layer, attend over both current memory and compressed memory via multi-head attention.
- Compress the oldest stored memories using a compression function f_c to form new compressed memories.
- Train a compression objective (e.g., attention reconstruction or auto-encoding) alongside the task objective (attention-based language modelling).
- Analyze temporal range and attention usage to show extended context with comparable compute.
- Experiment across Enwik8, WikiText-103, speech, and reinforcement learning, plus the PG-19 benchmark.
Experimental results
Research questions
- RQ1Can compressive memories extend the effective temporal range of Transformer-based models without prohibitive compute?
- RQ2How do different compression functions and auxiliary losses affect performance on long-range language modelling?
- RQ3What performance gains arise on character- and word-level benchmarks when memory is augmented with compression?
- RQ4Is the approach applicable to speech modelling and reinforcement learning memory tasks?
- RQ5Does PG-19 provide a meaningful long-range benchmark for future models?
Key findings
- Achieves 0.97 bits-per-character on Enwik8 with 24-layer Compressive Transformer, improving over prior state-of-the-art.
- Attains 17.1 perplexity on WikiText-103 (18L TXL baseline 18.3; 18L Compressive Transformer 17.1).
- On PG-19, Compressive Transformer achieves 33.6 perplexity (valid) vs. 36.3 for TransformerXL (36L).
- Shows the model better models rare words (notable gains in infrequent word buckets).
- Demonstrates competitive speech modelling and successful use as a memory component in an IMPALA RL agent for a memory-based task.
- Offers PG-19 as a long-range language modelling benchmark with open vocabulary and book-level scale.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.