Papers › Character-Level Language Modeling with Deeper Self-Attention

Character-Level Language Modeling with Deeper Self-Attention

9 Aug 2018arXiv:1808.04444archive 2025-07-28

Rami Al-Rfou, Dokook Choe, Noah Constant, Mandy Guo, Llion Jones

LSTMs and other RNN variants have shown strong performance on character-level language modeling. These models are typically trained using truncated backpropagation through time, and it is common to assume that their success stems from their ability to remember long-term contexts. In this paper, we show that a deep (64-layer) transformer model with fixed context outperforms RNN variants by a large margin, achieving state of the art on two popular benchmarks: 1.13 bits per character on text8 and 1.06 on enwik8. To get good results at this depth, we show that it is important to add auxiliary losses, both at intermediate network layers and intermediate sequence positions.

PaperPDFCode

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/code-prediction-transformer mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context (arXiv:1901.02860; that paper's own run record: 67 ran (of which 37 constructed an object rather than computing a result; 49 with no instrument failure: 4 honoured, 1 violated, 44 with no contract checked; 18 where Syntology's instrument failed) · 76 unverified) and Code Prediction by Feeding Trees to Transformers (arXiv:2003.13848; 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

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

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Language Modelling Hutter Prize 64-layer Character Transformer Model Bit per Character (BPC) 1.06 #8 of 18 Archive leaderboard report
Language Modelling Hutter Prize 64-layer Character Transformer Model Number of params 235M #8 of 18 Archive leaderboard report
Language Modelling Hutter Prize 12-layer Character Transformer Model Bit per Character (BPC) 1.11 #11 of 18 Archive leaderboard report
Language Modelling Hutter Prize 12-layer Character Transformer Model Number of params 44M #11 of 18 Archive leaderboard report
Language Modelling Text8 64-layer Character Transformer Model Bit per Character (BPC) 1.13 #11 of 24 Archive leaderboard report
Language Modelling Text8 64-layer Character Transformer Model Number of params 235M #11 of 24 Archive leaderboard report
Language Modelling Text8 12-layer Character Transformer Model Bit per Character (BPC) 1.18 #13 of 24 Archive leaderboard report
Language Modelling Text8 12-layer Character Transformer Model Number of params 44M #13 of 24 Archive leaderboard report
Language Modelling enwik8 Transformer (64 layers) Bit per Character (BPC) 1.06 #25 of 42 Archive leaderboard report
Language Modelling enwik8 Transformer (64 layers) Number of params 235M #25 of 42 Archive leaderboard report
Language Modelling enwik8 64-layer Character Transformer Model Bit per Character (BPC) 1.11 #29 of 42 Archive leaderboard report
Language Modelling enwik8 64-layer Character Transformer Model Number of params 44M #29 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 EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel 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