Papers › Improving Neural Language Models with a Continuous Cache

Improving Neural Language Models with a Continuous Cache

13 Dec 2016arXiv:1612.04426archive 2025-07-28

Edouard Grave, Armand Joulin, Nicolas Usunier

We propose an extension to neural network language models to adapt their prediction to the recent history. Our model is a simplified version of memory augmented networks, which stores past hidden activations as memory and accesses them through a dot product with the current hidden activation. This mechanism is very efficient and scales to very large memory sizes. We also draw a link between the use of external memory in neural network and cache models used with count based language models. We demonstrate on several language model datasets that our approach performs significantly better than recent memory augmented networks.

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

14 repositories listed; official and paper-mentioned ones first.

Asteur/RERITES-AvgWeightDescentLSTM-PoetryGeneration mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Regularizing and Optimizing LSTM Language Models (arXiv:1708.02182; that paper's own run record: 6 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 2 honoured, 0 violated, 0 with no contract checked; 4 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
AtheMathmo/lookahead-lstm mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Analysis of Neural Language Modeling at Multiple Scales (arXiv:1803.08240; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 13 with no instrument failure: 2 honoured, 0 violated, 11 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified); nothing checks that they implement this paper's method. report
SachinIchake/KALM mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Analysis of Neural Language Modeling at Multiple Scales (arXiv:1803.08240; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 13 with no instrument failure: 2 honoured, 0 violated, 11 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified); nothing checks that they implement this paper's method. report
ari-holtzman/genlm mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Analysis of Neural Language Modeling at Multiple Scales (arXiv:1803.08240; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 13 with no instrument failure: 2 honoured, 0 violated, 11 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified); nothing checks that they implement this paper's method. report
arvieFrydenlund/awd-lstm-lm mentioned on GitHubpytorchBSD-3-ClauseSyntology: not harvested report
jb33k/awd-lstm-lm-ThinkNet mentioned on GitHubpytorchBSD-3-ClauseSyntology: not harvested report
jhave/RERITES-AvgWeightDescentLSTM-PoetryGeneration mentioned on GitHubpytorchSyntology: not harvested report
llppff/ptb-lstmorqrnn-pytorch mentioned on GitHubpytorchBSD-3-ClauseSyntology: not harvested report
philippwirth/awd-lstm-test mentioned on GitHubpytorchBSD-3-ClauseSyntology: not harvested report
philippwirth/treelangrnn mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Analysis of Neural Language Modeling at Multiple Scales (arXiv:1803.08240; that paper's own run record: 14 ran (of which 0 constructed an object rather than computing a result; 13 with no instrument failure: 2 honoured, 0 violated, 11 with no contract checked; 1 where Syntology's instrument failed) · 4 unverified); nothing checks that they implement this paper's method. report
salesforce/awd-lstm-lm mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Compositional Demographic Word Embeddings (arXiv:2010.02986; that paper's own run record: 4 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 2 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
soyoung97/awd-lstm-gru mentioned on GitHubpytorchBSD-3-ClauseSyntology: not harvested report
uclanlp/NamedEntityLanguageModel mentioned on GitHubpytorchBSD-3-ClauseSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Building Language Models for Text with Named Entities (arXiv:1805.04836; that paper's own run record: 0 ran · 1 unverified); nothing checks that they implement this paper's method. report
dmlc/gluon-nlp mxnetApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to GluonCV and GluonNLP: Deep Learning in Computer Vision and Natural Language Processing (arXiv:1907.04433; that paper's own run record: 1 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; 0 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 WikiText-103 Neural cache model (size = 2,000) Test perplexity 40.8 #80 of 89 Archive leaderboard report
Language Modelling WikiText-103 Neural cache model (size = 100) Test perplexity 44.8 #81 of 89 Archive leaderboard report
Language Modelling WikiText-103 LSTM Test perplexity 48.7 #85 of 89 Archive leaderboard report
Language Modelling WikiText-2 Grave et al. (2016) - LSTM + continuous cache pointer Test perplexity 68.9 #33 of 38 Archive leaderboard report
Language Modelling WikiText-2 Grave et al. (2016) - LSTM Test perplexity 99.3 #37 of 38 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: Neural Cache

AdaGradDropoutGradient ClippingLSTMNeural CacheSigmoid ActivationTanh Activation

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