Elamur Research

Improving language models by retrieving from trillions of tokens

Paper · 2021 · Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann et al.

Summary

How much text must a language system compress into its parameters before it can make useful predictions? Increasing parameter count had become a dependable route to better performance, but it also increased the computation needed to train and run the system. “Improving language models by retrieving from trillions of tokens” investigates a complementary approach: keep a comparatively compact predictor and let it consult a much larger collection of text. The resulting architecture, Retro, combines a Transformer with an external retrieval database. Its central contribution is making this combination work for ordinary, continuing text prediction at a scale far beyond the retrieval collections considered in the earlier work discussed by the authors.

Retro divides its input into chunks containing 64 tokens. Once a chunk is available, a fixed BERT representation supplies a search key. The search returns similar text chunks together with the passages that followed them in their original documents. A separate encoder processes those passages, and chunked cross-attention introduces their information into subsequent predictions. This arrangement preserves the rule that a prediction may depend only on information available before the predicted token. It also spreads retrieval costs across a chunk instead of performing a database search for every token.

The experiments draw on multilingual MassiveText, whose total collection exceeds 5 trillion tokens. The ordinary training retrieval collection contains 600B tokens, while the evaluation collection contains 1.75T. Across the investigated parameter range, described as 150M to 7B, retrieval continues to improve prediction instead of becoming irrelevant as the main network grows. Increasing the searchable collection also helps. The largest Retro system, reported as 7. With 5B parameters, it outperforms Jurassic-1 and Gopher on most evaluated subsets of the Pile, though the discussion of results notes exceptions. The paper also demonstrates a way to add retrieval to an existing Transformer by training newly introduced components while freezing its original weights.

An important part of the contribution concerns what these gains mean. A large text collection can contain passages resembling evaluation material even after document-level deduplication. Retro is particularly able to exploit such overlap because it can directly access related wording. The authors therefore measure performance after filtering evaluation chunks by their shared substrings with retrieved training passages. Retrieval still helps under restrictive overlap filters and on selected Wikipedia articles written after the training collection was assembled. These findings support a benefit beyond reproducing evaluation passages, while also showing that copying contributes to some especially strong benchmark results.

The paper consequently makes a bounded argument for retrieval-augmented generation, rather than claiming that external text solves every weakness of language prediction. Retro can improve prediction by combining learned behavior with searchable examples, and it can accommodate additional retrieval data at evaluation time. Its question-answering adaptation is competitive with several earlier approaches but falls behind FiD. Its qualitative samples illustrate more accurate continuations, yet do not establish a general guarantee against factual errors. External memory provides a useful additional scaling dimension, with its own storage requirements, selection errors, contamination risks, and opportunities for inspection.

Interesting ideas

Separate computation from stored information. A larger predictor performs more computation and can retain more training information, but those functions need not grow together. Retro assigns much of the accessible textual memory to a database while retaining a learned mechanism for using it. This separation is useful whenever the information collection changes more often than the processing machinery, including document analysis, technical assistance, and systems that must consult versioned reference material.

Retrieve at the granularity of the task. Searching for every token creates a large index and repeated work; searching only at the beginning of a long document can miss changes in subject. Retro chooses an intermediate unit, the text chunk, and refreshes retrieval during continuation. The broader lesson is to align retrieval frequency with the rate at which the relevant context changes. Event streams, paragraph readers, and structured workflow systems can all benefit from a similar choice of working unit.

Keep selection stable while learning how to use evidence. Retro freezes the representation used for database search, allowing neighbours to be prepared before training. The components that interpret those neighbours remain trainable. This division avoids rebuilding a huge index whenever the reader changes. It is worth considering when an imperfect but stable selection method can supply useful material and the main engineering challenge lies in interpreting that material correctly.

Store the context around a match. A similar passage is useful partly because it identifies a relevant situation, while its continuation may contain what happens next. Retro retains both. Their combination performs better than either part alone in the controlled study. This suggests a reusable distinction between evidence that establishes relevance and evidence that supplies an answer or consequence. Search systems should not assume that the best matching span is also the complete useful record.

Evaluate against the nearest available shortcut. Deduplication cannot establish that an evaluation item is unfamiliar. The authors therefore inspect local overlap and report performance across overlap thresholds. This makes copying easier to distinguish from improvement on less familiar wording. The same principle applies to example-based classifiers, retrieval systems, and induced rules: identify the easiest accessible shortcut, then test whether the claimed gain survives when that shortcut is restricted.

Preserve a dependable fallback when adding a capability. Retrofitting freezes the original Transformer and trains only the retrieval additions. In that setup, removing retrieval preserves the original performance exactly. This is a useful engineering pattern for extending an established system without losing its existing operating mode. Its value is especially clear when a new dependency, external service, or evidence store may be unavailable or unsuitable for a particular request.

Deep dive: Improving language models by retrieving from trillions of tokens

Retro combines a Transformer with large-scale text retrieval to improve prediction, with careful tests of copying and generalization. · about 43 minutes to read

How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its native route goes from dependency structure to frames and a maintained world, using explicit rules, learned parameters, and graph knowledge. Retro instead studies neural next-token prediction with retrieved text. The connections below concern transferable mechanisms and experimental designs; they do not imply that Mova implements Retro’s architecture or has reproduced its results.

The status marks describe proposed correspondences with Mova’s documented mechanisms. A partial match identifies an existing foundation, while a new proposal identifies a possible extension whose implementation is not established. None of these marks constitutes a measured application of this paper.

Idea: Separate processing rules from accessible knowledge. Where: Introduction; Privacy, safety and fairness. Area: knowledge architecture. Mova: частково є (docs/architecture.md, docs/knowledge.md, and the retained school graph). Mova already distinguishes compiled mechanisms, operational graph knowledge, and durable information. Retro suggests evaluating how much improvement comes from a better evidence collection while those mechanisms remain fixed. Why Mova: this could show when adding reviewed knowledge is sufficient and when a rule or parameter revision is actually necessary.

Idea: Choose an explicit retrieval unit. Where: Method; Nearest neighbour retrieval. Area: data and retrieval. Mova: частково є (tools/dictindex, with document units and occurrence records). Mova could compare retrieval by sentence, frame, and bounded surrounding passage instead of adopting Retro’s token chunks directly. Each unit would need a stated semantic purpose. Why Mova: its structured readers may need a complete event or argument configuration, which a token boundary can divide.

Idea: Refresh evidence as the document develops. Where: Related Work, Retrieval for language modelling; Sampling. Area: document understanding. Mova: нове, with implementation unknown. A reader could request fresh dictionary witnesses or graph evidence when its current entities, predicates, or unresolved questions materially change. This would be a bounded retrieval policy rather than a search on every word. Why Mova: later passages can introduce a different subject, making evidence selected at the beginning less useful.

Idea: Keep the retrieval representation versioned and stable. Where: Method; Nearest neighbour retrieval. Area: reproducibility. Mova: частково є (tools/dictindex, immutable source versions and index epochs). Mova already refuses changes that silently alter indexed source identity. The corresponding experiment would hold a structural feature representation fixed while improving the component that evaluates retrieved witnesses. Why Mova: stable evidence selection makes changes in interpretation easier to diagnose.

Idea: Prepare expensive retrieval work ahead of repeated learning. Where: Nearest neighbour retrieval. Area: data processing. Mova: частково є (tools/dictindex, indexing existing parses). Often repeated school or dictionary investigations could reuse source-bound candidate sets whose fingerprints are checked before use. Any changed source or selector would invalidate the prepared set. Why Mova: repeated parsing or searching can otherwise obscure the cost of the actual learning step.

Idea: Retrieve with structural similarity. Where: Nearest neighbour retrieval. Area: syntax and semantics. Mova: частково є (tools/dictindex, head relations and dependent collocates). Retro demonstrates the usefulness of a retrieval representation, but does not establish which representation suits Mova. Mova could test frame-role signatures, dependency features, and lemma combinations as alternatives to dense embeddings. Why Mova: these representations fit its rule-based direction and can expose exactly why a witness was selected.

Idea: Retain both the matched span and its surrounding consequence. Where: Nearest neighbour retrieval; Model ablations, Attending neighbours and their continuation. Area: discourse and evidence. Mova: нове, with implementation unknown. Dictionary or reading retrieval could distinguish the sentence establishing relevance from the following sentence carrying a result, clarification, or answer. Why Mova: the best lexical match may identify the right situation while leaving its useful consequence outside the returned span.

Idea: Measure the value of each evidence component separately. Where: Model ablations, Attending neighbours and their continuation. Area: evaluation. Mova: частково є (the project’s held-out gates and negative controls). A controlled Mova study could compare matched sentences, following context, and their combination while holding the query and source collection fixed. Why Mova: it would establish which material helps its readers instead of assuming that more context is always useful.

Idea: Preserve causal boundaries during evidence selection. Where: Nearest neighbour retrieval; Retrieval-enhanced autoregressive token models. Area: evaluation and data isolation. Mova: частково є (tools/dictindex, assessment exclusions; tools/enrich, separate admitted training). Mova should define which evidence was available at each reading or learning step and reject access to withheld answers. Why Mova: a source-bound transcript can still contain an invalid shortcut if the selected evidence includes the target being assessed.

Idea: Treat same-document exclusion as a purpose-specific control. Where: Nearest neighbour retrieval. Area: experimental design. Mova: нове, with implementation unknown. Retro excludes neighbours from the training document to prevent access to its future. Mova could separately test external-evidence retrieval and deliberate rereading of the current document, identifying which setting each result measures. Why Mova: internal context and external knowledge are useful for different reasons and should not be confused.

Idea: Interpret retrieved material in the current context. Where: Retro model architecture, Encoding retrieval neighbours. Area: pragmatics. Mova: частково є (prag, world, and source-preserving dictionary witnesses). Mova could apply its current entities, roles, negation, and attribution state when evaluating a retrieved example. The proposed extension is a checked compatibility test, not neural cross-attention. Why Mova: an example sharing vocabulary may describe a different participant, sense, or asserted viewpoint.

Idea: Keep candidates separate before combining them. Where: Retro model architecture; Related Work, Retrieval for language modelling. Area: evidence combination. Mova: частково є (tools/dictindex, separately credited examples; treeagree, witness-specific evidence). Each retrieved passage could retain its source identity and local interpretation before a later rule compares conclusions. Why Mova: merging text too early can conceal disagreement, incompatible assumptions, or dependence between witnesses.

Idea: Preserve useful earlier evidence without repeatedly rereading everything. Where: Retro model architecture, Chunked cross-attention. Area: working memory. Mova: частково є (world state and retained document graphs). Mova already maintains state derived from earlier text. A further experiment could distinguish retained conclusions from repeated access to their original witnesses, with explicit invalidation when context changes. Why Mova: this can reduce repeated work while keeping the justification recoverable.

Idea: Bound evidence access by the active task. Where: Retro model architecture, Chunked cross-attention. Area: execution efficiency. Mova: частково є (bounded native capabilities and shared-graph mouse profiles). A specialist could inspect a small relevant evidence set while broader context remains available through the maintained graph. Why Mova: local access budgets may keep recursive self-use manageable without discarding previously established facts.

Idea: Evaluate alignment-sensitive retrieval. Where: Details on the retrieval architecture, Relative positional encoding. Area: syntax and discourse. Mova: нове, with implementation unknown. Rather than importing numerical position encodings, Mova could compare witnesses aligned by predicate, argument role, or event order. Why Mova: structural alignment may distinguish a relevant analogy from a passage that merely contains the same words.

Idea: Vary the evidence budget at evaluation time. Where: Language modelling, Data scaling. Area: retrieval and evaluation. Mova: частково є (tools/dictindex, bounded query limits). Mova could hold its rules fixed and measure answer quality, uncertainty, and execution cost as the permitted witness count changes. Why Mova: a larger evidence allowance may help difficult cases without requiring a new training run.

Idea: Select evidence counts by task instead of using one universal setting. Where: Language modelling, Data scaling; Question answering. Area: adaptive execution. Mova: нове, with implementation unknown. Retro’s useful neighbour count differs across sizes and tasks. Mova could test bounded stopping rules based on unresolved disagreement or missing support. Why Mova: unnecessary witnesses cost time and may introduce irrelevant alternatives.

Idea: Scale the evidence collection independently of the reader. Where: Language modelling, Data scaling. Area: knowledge evaluation. Mova: частково є (tools/dictindex, incremental corpus imports). Mova could compare the same reader against explicitly named index prefixes or epochs. Why Mova: this would separate a gain from broader source coverage from a gain in native understanding.

Idea: Measure overlap locally after document deduplication. Where: Training dataset; Quantifying dataset leakage exploitation. Area: evaluation. Mova: нове, with implementation unknown. Existing source checks do not establish a Retro-style local overlap analysis. Mova could record shared spans between assessment passages and permitted teaching sources, without importing assessment text into training. Why Mova: copied fragments can survive even when whole documents are distinct.

Idea: Report performance across familiarity levels. Where: Quantifying dataset leakage exploitation; Relating retrieval performance to dataset leakage. Area: statistics. Mova: нове, with implementation unknown. Mova could stratify evaluation by independently measured source similarity, presenting the same reader’s behavior within each stratum. Why Mova: an aggregate score can hide a system that succeeds chiefly on familiar wording.

Idea: Use a shared contamination probe across competing readers. Where: Quantifying dataset leakage exploitation. Area: comparative evaluation. Mova: нове, with implementation unknown. A fixed overlap measurement could characterize evaluation items before comparing alternative Mova readers or repair settings. Why Mova: all candidates should face the same definition of familiarity instead of a filter tailored to one system.

Idea: Test on material created after the evidence snapshot. Where: Language modelling, Datasets; Wikipedia September 2021. Area: temporal evaluation. Mova: нове, with implementation unknown. A dated, frozen evidence collection could be tested against later documents whose provenance is checked independently. Why Mova: this provides a distinct challenge from recognizing text already available in the indexed corpus.

Idea: Remove repetitive templates from novelty tests. Where: Wikipedia September 2021. Area: corpus preparation. Mova: частково є (tools/dictindex, conservative source discovery and exact school-field checks). A temporal evaluation should additionally inspect boilerplate and recurring article structures. Why Mova: a newly created document can still contain familiar passages that weaken a claim about reading unfamiliar text.

Idea: Add retrieval while preserving the original operating mode. Where: Retro-fitting baseline models; Baseline to Retro model fine-tuning. Area: system extension. Mova: нове, with implementation unknown. Mova could attach a separately gated evidence reader whose absence leaves the established native answer path intact. Why Mova: this would make a retrieval extension easier to evaluate and allow deployment where the optional index is unavailable.

Idea: Test fallback behavior explicitly. Where: Introduction, scaling figure; Retro-fitting baseline models. Area: robustness. Mova: частково є (README.md, explicit missing-model and execution-mode failures). Mova distinguishes mandatory dependencies from optional ones. Retrieval experiments could specify whether missing evidence requires abstention, a reduced-capability answer, or unchanged native behavior. Why Mova: users need a meaningful outcome when a capability’s supporting data is absent.

Idea: Compare gains against full system cost. Where: Wikitext103; Model ablations. Area: efficiency measurement. Mova: частково є (tools/dictindex, storage and timing measurements; tools/twin, measured runs). A retrieval proposal should report preparation, storage, lookup, and reading costs separately. Why Mova: a small executable can depend on a large or expensive evidence service.

Idea: Use the simplest adequate evidence interpreter. Where: Model ablations, Training a deeper encoder. Area: architecture and efficiency. Mova: частково є (bounded rule layers and deterministic specialist profiles). Mova could compare a direct structural selector with more elaborate graph reasoning on the same cases. Why Mova: additional complexity is justified only when its measured contribution exceeds its cost.

Idea: Evaluate how frequently evidence must enter a reasoning process. Where: Model ablations, Frequency of cross-attention. Area: operational planning. Mova: нове, with implementation unknown. A bounded workflow could compare consultation at the start, at intermediate uncertainty points, and before the final answer. Why Mova: repeated consultation may be wasteful, while consulting only once may miss information needed later.

Idea: Separate source-supported reproduction from inference. Where: Using Retro for sampling; Qualitative experiments. Area: explanation and interpretation. Mova: частково є (answer reasons, source-bound observations, and distinct evidence kinds in docs/hybrid-system.md). Mova could identify whether an answer reproduces a source span, applies a rule to source facts, or combines compatible observations. Why Mova: these are different achievements and call for different checks.

Idea: Inspect both helpful and harmful retrieval at a fine level. Where: Qualitative experiments, Inspecting neighbours and perplexities. Area: diagnosis. Mova: частково є (rule traces, course traces, and retained worker results). A proposed retrieval trace could attach each changed answer or judgment to the exact witness that influenced it. Why Mova: aggregate improvement gives little guidance about wrong senses, misleading context, or unsupported conclusions.

Idea: Use graph distance as an independent retrieval diagnostic. Where: Qualitative experiments, Neighbour quantification. Area: graph analysis. Mova: нове, with implementation unknown. Mova could compare selected evidence with independently defined concept or source relationships, while keeping that diagnostic separate from answer correctness. Why Mova: a second view of relevance can reveal a selector that is consistently drifting away from the intended domain.

Idea: Compare external retrieval with a strong native baseline. Where: Language modelling, Wikitext103. Area: experimental controls. Mova: вже є (held-out comparisons and negative controls described in README.md and docs/school.md). A Retro-inspired extension should retain the same native reader, source permissions, and questions in the baseline comparison. Why Mova: otherwise an apparent retrieval gain may come from unrelated changes in the experiment.

Idea: Evaluate different task families separately. Where: Language modelling; Question answering. Area: task transfer. Mova: частково є (separate course, mathematics, and story-reading assessments). Retrieved dictionary evidence, narrative context, and factual reference material should each have task-appropriate checks. Why Mova: improvement in one reader does not establish a general improvement in understanding.

Idea: Preserve failures where the collection supplies poor neighbours. Where: Language modelling, The Pile. Area: failure analysis. Mova: частково є (explicit gaps and unsupported-request outcomes). A retrieval extension should retain empty, irrelevant, and contradictory result sets as diagnosable outcomes. Why Mova: these failures distinguish missing coverage from a reader that mishandles good evidence.

Idea: Update searchable knowledge through a separate admission path. Where: Privacy, safety and fairness. Area: knowledge maintenance. Mova: частково є (tools/enrich, reviewed staging; Nautilus dictionary admission gates). Changing the evidence collection can be cheaper than revising core mechanisms, but a retrieved proposal should remain distinct from admitted knowledge. Why Mova: convenient retrieval must not bypass source, licence, or compatibility checks.

Idea: Support withdrawal of retrievable material without promising complete erasure. Where: Privacy, safety and fairness. Area: data governance. Mova: частково є (tools/dictindex, source epochs and provenance). A future publication process could identify which source versions remain queryable and which derived artifacts depend on them. Why Mova: source withdrawal is easier to act on when dependencies are explicit, although removing a source does not undo every prior learning operation.

Idea: Audit selection bias independently of corpus bias. Where: Privacy, safety and fairness. Area: statistics and fairness. Mova: частково є (tools/dictindex, declared source-domain strata and feature counts). Mova could compare which sources exist with which sources its selectors repeatedly return. Why Mova: a balanced collection can still yield narrow evidence if ranking favors a particular wording, domain, or frequent sense.

Idea: Treat retrieved text as evidence requiring interpretation. Where: Using Retro for sampling; Privacy, safety and fairness. Area: knowledge representation. Mova: вже є (source provenance remains distinct from narrative facts; attribution handling in prag/src/frames.rs). A retrieved passage should retain its speaker, date, negation, and evidential status. Why Mova: accurate copying can reproduce a belief, an obsolete statement, or a fictional event without establishing it as a current fact.

Idea: Keep performance claims proportional to the test. Where: Results; Conclusion. Area: scientific reporting. Mova: вже є (dated application measurements and explicit implementation boundaries throughout the documented system). A bounded retrieval probe should report its actual coverage and controls rather than imply complete corpus understanding. Why Mova: this preserves the distinction between a useful mechanism, a measured task result, and a broader research direction.

The problem and its context

What parameter scaling combines

A language model assigns probabilities to text. In the setting studied here, it predicts each next token using the tokens that precede it. Better predictions indicate that the system has learned useful regularities about wording, subject matter, and the ways passages develop.

The authors describe a period in which increasing training resources and parameter counts produced substantial improvements. Their account includes the transition from recurrent architectures to attention-based Transformers, followed by much larger Transformer systems. Work on scaling laws supplied evidence that additional scale could improve many downstream tasks in a predictable way.

However, increasing parameter count changes more than one thing. It supplies additional computation, and it also enlarges the network’s capacity to retain information about its training material. Those benefits arrive together, making it difficult to ask whether a particular improvement required more processing machinery or simply more accessible information.

Retro addresses that distinction operationally. It leaves a large collection of examples outside the parameter set and provides a mechanism for consulting them during prediction. The system remains learned, but part of its useful memory consists of explicitly stored text.

This is why the authors describe the approach as semi-parametric. Parameters encode general behavior, while a searchable collection supplies additional information. The paper does not present retrieval as a replacement for learning. It asks how much further a learned predictor can go when it need not store every useful detail internally.

The retrieval approaches the authors build on

The paper places neural retrieval within a longer history of information retrieval. Earlier systems used lexical matching methods such as BM25 and TF-IDF. Other approaches sought relevance through latent topics, including Latent Dirichlet Allocation. These alternatives matter because retrieval does not inherently require a jointly trained neural search mechanism.

The authors also discuss systems that retrieve examples to guide machine translation. In that setting, a source sentence can locate similar translation pairs, whose target sides help produce an output. This already separates finding a relevant example from deciding how to use it.

For language prediction, continuous caches use similarities between internal activations to increase the probability of previously encountered tokens. The nearest-neighbour language model, kNN-LM, extends the searchable material beyond the immediate context. These methods combine a neural output distribution with a distribution derived from retrieved tokens.

Their attraction is that an existing predictor can receive retrieval support without being rebuilt. The limitation identified by the authors is that most of the network does not interpret the retrieved passage. Its effect arrives late, through a probability combination.

From retrieved tokens to retrieved passages

Dense Passage Retrieval represents questions and passages through learned vectors. Its training encourages relevant questions and answers to occupy compatible positions in that representation space. Passage retrieval is a natural fit for question answering, where a question provides a clear search target.

REALM moves further toward joint optimization by training retrieval to support the final prediction objective. According to the authors, this introduces costly database searches during training and requires periodic refreshes of stored representations.

RAG and FiD demonstrate ways to combine passage retrieval with generative answering. Retro borrows the usefulness of encoding retrieved passages separately, but addresses a different operating condition: arbitrary text that continues across many chunks and may change its information needs as it develops.

The main engineering problem is therefore larger than finding a passage for a question. Retrieval must recur during generation, remain causally valid, and scale to an enormous searchable collection. It must also integrate into training without requiring that collection’s representations to be recomputed whenever the predictor changes.

The method, step by step

Begin with the ordinary prediction objective

The starting point is the familiar decomposition of a text probability into successive conditional predictions:

p(x₁, …, xₙ) = ∏ᵢ p(xᵢ | x₍<ᵢ₎)

Here, xᵢ is the token at position i, n is the sequence length, and x₍<ᵢ₎ denotes all earlier tokens. The product symbol means that the conditional probabilities are multiplied. A token can be a sub-word unit rather than a complete word.

Retro preserves this left-to-right prediction requirement. Its additional information must be retrieved from already available text, not from the token it is about to predict.

How Retro uses external text during prediction

The steps in order.

How Retro uses external text during predictionStep 1: Divide available text into token chunks1. Divide available text into token chunksStep 2: Represent a completed chunk with frozen BERT2. Represent a completed chunk with frozen BERTStep 3: Search for nearby database keys3. Search for nearby database keysStep 4: Return matching chunks and their continuations4. Return matching chunks and their continuationsStep 5: Encode neighbours using the current context5. Encode neighbours using the current contextStep 6: Cross-attend while predicting the next chunk6. Cross-attend while predicting the next chunkStep 7: Repeat retrieval as generation advances7. Repeat retrieval as generation advances

Build the training and retrieval collections

The authors use multilingual MassiveText for both learning and retrieval. The overall collection contains more than 5 trillion tokens, and the multilingual portions cover 10 languages. Text is converted to token identifiers with SentencePiece, using a vocabulary containing 128,000 entries.

Training examples are sampled from constituent collections using specified sampling weights. The ordinary training retrieval database contains 600B tokens, with its composition arranged to follow those sampling frequencies. This matters because the searchable evidence encountered during learning should broadly resemble the kinds of examples the predictor is being trained on.

For evaluation, the database expands to the union of the relevant collections, except that books contribute a 4% sample. The resulting evaluation database contains 1.75T tokens. These quantities describe different stages of the experiment and should not be treated as interchangeable descriptions of a single fixed database.

Before training, the authors compare documents using Jaccard similarity over 13-grams, estimated with MinHash. Training documents are removed when their similarity to a validation or test document reaches 0.8 or more. They also remove the actual Wikitext103 validation and test articles from the Wikipedia training material.

These precautions reduce obvious contamination. They do not establish that every remaining evaluation passage is unfamiliar, which motivates the later local-overlap analysis.

Divide sequences into chunks

Let X be a sequence of n token identifiers drawn from vocabulary V. The authors divide it into l chunks, each containing m tokens:

X = (C₁, …, Cₗ),    m = n/l

X denotes the whole sequence, Cᵤ denotes its chunk at position u, l is the number of chunks, and m is the chunk length. The main experiments use n=2048 and m=64.

The retrieval operator, written here as Ret_D, takes a chunk and searches database D. It returns a fixed number k of neighbours. The operator is not trained jointly with the predictor.

The retrieval-enhanced log-likelihood is:

L(X | θ, D) = Σᵤ₌₁ˡ Σᵢ₌₁ᵐ ℓθ(x₍ᵤ₋₁₎ₘ₊ᵢ | (xⱼ)ⱼ₍<₍ᵤ₋₁₎ₘ₊ᵢ₎, (Ret_D(Cᵤ′))ᵤ′₍<ᵤ₎)

L is the total sequence log-likelihood. The parameter collection θ controls the learned predictor, and ℓθ is its conditional token log-probability. The outer sum moves through chunks, while the inner sum moves through positions within a chunk.

The conditioning information contains earlier tokens and retrieval results associated with earlier chunks. It does not contain neighbours selected using the unavailable future of the current chunk. Accordingly, the first chunk’s token probabilities receive no retrieval assistance.

Construct searchable keys and useful values

Each database entry has a key and a value. The key describes a neighbour chunk N. The value contains that chunk together with its continuation F in the original document.

The fixed BERT network represents N by averaging its token representations. Search compares the query chunk C with candidate N using:

d(C, N) = ‖BERT(C) − BERT(N)‖₂²

The function d is the squared Euclidean distance between the representations. BERT(C) and BERT(N) are the averaged vectors for the query and candidate. Smaller values identify nearer candidates under this representation.

The returned evidence has the form:

Ret(C) = ([N¹, F¹], …, [Nᵏ, Fᵏ])

Ret(C) is the result set for C. The superscript identifies a retrieved neighbour, N is its matching chunk, and F is the following chunk from the same source document. Both N and F contain 64 tokens, giving each returned passage a length r=128.

The continuation is important because the matched chunk resembles what the system has already seen. What followed that chunk may help predict what comes next. Nevertheless, the matched portion itself remains useful, as the ablations later demonstrate.

During training, candidates from the same document as the input sequence are excluded. Otherwise, retrieval could return the very continuation being predicted and undermine the intended causal setup.

Make large-scale retrieval practical

The search implementation uses SCaNN for approximate nearest-neighbour lookup. For a database containing T elements, the paper describes query time as O(log T). Its operational example reports a 10 ms lookup against a database containing 2 trillion tokens.

That timing concerns the search operation. It is not a complete measurement of token generation, database construction, or neighbour encoding. Its significance is that search can be paid once for a chunk rather than once for each prediction.

Training poses a different throughput problem. Online searches cannot keep pace with the training calculations. Because the BERT representation remains fixed, the authors can prepare neighbours beforehand and store them alongside the training examples.

Freezing the search representation therefore has two consequences. It avoids repeatedly rebuilding an enormous embedding collection, and it makes precomputed training retrieval possible. The learned reader must adapt to the evidence this fixed selection mechanism supplies.

Encode evidence in relation to its query

The retrieved text passes through a bidirectional Transformer encoder. It can examine a returned passage in both directions because that passage is already available external evidence. This does not permit the main decoder to inspect future input tokens.

For neighbour j associated with chunk u, the encoded representation is:

Eᵤʲ = Encoder(Ret(Cᵤ)ʲ, Hᵤ)

Eᵤʲ is the encoded neighbour. Ret(Cᵤ)ʲ is the retrieved passage, and Hᵤ contains intermediate decoder activations for the query chunk. The encoder uses cross-attention to condition its reading on those activations.

This distinction separates search from interpretation. The fixed representation decides which passages enter the candidate set. A trainable, context-sensitive encoder decides how to represent their contents for the current prediction problem.

The encoder width is d′=896 and its depth is 2 layers. The paper attributes roughly 19M additional parameters to this encoder. All neighbours can be encoded in parallel, while retaining a separate representation for each passage.

Insert evidence into the decoder

Ordinary decoder blocks combine causal self-attention with a feed-forward transformation. Retro adds chunked cross-attention between those operations:

Retro(H, E) = FFW(CCA(ATTN(H), E))

H contains the decoder activations, E contains encoded retrieved evidence, ATTN is causal self-attention, CCA is chunked cross-attention, and FFW is the feed-forward component. The operators include the residual structure used by the architecture.

A corresponding ordinary block is:

LM(H) = FFW(ATTN(H))

LM names the retrieval-free block. Alternating these block types allows evidence to enter at selected depths without making every layer perform retrieval cross-attention.

The authors place retrieval blocks every 3 layers, beginning at layer 6. In the smallest architecture, the decoder uses them at layers 6, 9 and 12. This arrangement is chosen through the controlled comparisons rather than presented as a universal optimum.

Preserve the prediction boundary in cross-attention

The decoder activations attending to the neighbours of Cᵤ begin at the final token position of that chunk. That activation predicts the next token, so using a search based on the completed chunk is causally valid.

The attending window includes that final activation and the following m−1 activations. In the paper’s notation:

CCA(H, E)ᵤₘ₊ᵢ₋₁ = CrossAttention(hᵤₘ₊ᵢ₋₁, Eᵤ)

The index u identifies the completed query chunk, i identifies a position in the shifted attending window, h is an individual decoder activation, and Eᵤ contains the encoded neighbours retrieved from Cᵤ.

The initial m−1 activations cannot use neighbours from a completed earlier chunk, so the retrieval operation leaves them unchanged. At the sequence end, the final activation can use the last chunk’s retrieval result.

Within each attending window, attention ranges over tokens from all of the relevant neighbours together. Earlier evidence can still influence later predictions through decoder self-attention, even though each retrieval operation directly exposes only its associated local set.

Understand the attention calculation

The paper gives a simplified expression for cross-attention:

CrossAttention(h, Y) = softmax(YKQᵀh) YV

Here, h is the attending activation and Y is the matrix of evidence activations. Q and K are learned projections used to form query–key compatibility scores, while V projects the evidence values. Qᵀ denotes the transpose of Q.

Softmax turns the compatibility scores into attention weights, which determine the weighted contribution of the evidence values. The implemented architecture uses multiple attention heads and adds relative-position information.

The paper writes the equation in a compact matrix convention. Its essential operation is the same throughout the explanation: compare the current activation with available evidence positions, assign weights, and combine their representations.

Represent relative alignment

A retrieved matching chunk and the query chunk are treated as approximately aligned. The appendix gives the decoder-side relative distance as:

d(i, i′) = i − i′ + l − 1

In this appendix expression, i identifies an attending position and i′ a retrieved position; l supplies the alignment offset under the appendix’s local indexing. The distance is converted into positional logits that join the content-based attention scores.

The encoder-side distance is:

d_enc(i′, i) = i′ − i

The function d_enc describes relative position when the retrieved passage attends to query activations. These positional relations provide an inductive preference for corresponding locations without requiring exact textual identity.

The appendix’s positional discussion uses l locally where the main method uses l for the chunk count. The important mechanism is the alignment of the query, matching passage, and continuation, instead of an assumption that every matching token occupies an identical position.

Train, generate, and retrofit

Main pretraining runs consume 419,430,400,000 tokens. The smaller systems use batches of 256, while the largest uses 1024. Training uses AdamW, a weight-decay setting of 0.1, and a cosine learning-rate schedule. The implementation uses JAX and Haiku.

Generation proceeds incrementally. At a completed chunk boundary, BERT supplies the search representation, SCaNN selects neighbours, and the retrieval encoder prepares evidence for subsequent predictions. Retrieval overhead grows linearly with the number of chunks; ordinary Transformer generation still determines the broader sequence-dependent computation.

Retrofitting follows a separate procedure. The original Transformer parameters are frozen, new retrieval components are initialized, and only those additions are trained. This preserves the original retrieval-free behavior while allowing a new evidence pathway to become useful.

Experiments and results

What is measured

The main evaluation asks whether retrieval improves prediction across different kinds of text and across different parameter scales. The authors use C4 and Wikitext103, alongside Curation Corpus and Lambada. They additionally investigate the Pile and a temporally later Wikipedia collection.

For document prediction, the preferred metric is bits per byte. It expresses predictive cost relative to the underlying text bytes, making comparisons less dependent on tokenization. Lower values indicate better prediction.

The document evaluations use 2048-token windows with a stride of 1024. Overlapping windows reduce the influence of places where a passage begins without its full preceding context.

Curation Corpus has a more specific setup. The input contains an article followed by a summary marker and the summary, but only summary prediction contributes to the reported score. Lambada instead measures whether greedy generation gets the final word correct.

These metrics answer different questions. A system may assign better probabilities throughout a document without improving every final-word decision. Conversely, a strong final-word result does not establish accurate prediction across the rest of a passage.

Scaling the predictor

The retrieval-free baselines have 132M, 368M, 1.3B and 7.0B parameters, excluding embedding matrices. Retrieval systems add an encoder and cross-attention components, so matched comparisons involve a modest increase in parameters as well as access to external data.

The authors report retrieval gains throughout the investigated range. Crucially, the gains do not disappear as the main decoder grows. On certain datasets, they characterize retrieval’s effect as comparable to increasing the parameter count by approximately 10×.

That statement is dataset-dependent. It is not an assertion that every capability of a larger system has been reproduced, nor that every resource cost has been reduced by the same factor.

The largest benefits occur on Wikitext103 and C4. Curation Corpus shows a smaller gain, which the authors connect to the task’s design: its summaries should draw their content from the source article, and those summaries are absent from the retrieval collection.

This contrast helps interpret what external memory supplies. It is especially useful when other documents contain relevant wording or information. Its value is less dramatic when the task already provides most of the necessary content directly.

Scaling the searchable collection

The database-size study changes the available evidence at evaluation time. Moving from Wikipedia, described as 4 billion tokens, toward a much larger MassiveText collection improves C4 prediction substantially.

The discussion describes the larger collection as 1.7T tokens in this comparison, while the data section gives 1.75T for the evaluation database. The paper uses these descriptions in their respective settings; they should not be turned into an invented precise equivalence.

The neighbour-count study is also revealing. Training ordinarily uses 2 neighbours, yet increasing the evaluation allowance from 1 to 10 improves results across the tested sizes.

The useful range depends on the predictor. The 172M system benefits up to 10 neighbours, whereas the 7B system continues improving up to 40. Beyond the useful range, additional evidence can degrade prediction, which the authors suggest may reflect declining neighbour quality.

The result supports a practical form of flexibility. A learned evidence reader can use more passages than it encountered simultaneously during training. It does not follow that unlimited retrieval will keep helping.

The Pile comparison

The Pile study compares the 7.5B Retro system with the authors’ 7B baseline, Jurassic-1 at 178B, and Gopher at 280B. Enron Emails and Youtube Subtitles are excluded because of legal and ethical concerns stated by the authors.

On most of the subsets assessed, Retro performs better than Jurassic-1 and Gopher. This is a strong result for the investigated architecture, but it must be read as a collection of subset comparisons instead of a universal victory.

The results prose identifies dm_mathematics and ubuntu_irc as settings where Retro does not surpass the 7B baseline and also falls behind Jurassic-1. The authors suggest that the database contents or the retrieval mechanism may fail to supply helpful neighbours.

There is an inconsistency in the paper’s presentation: broader statements and a figure caption say that Retro improves on the baseline across all test sets, while the prose explicitly names these exceptions. A careful account preserves the exceptions rather than repeating the broader wording without qualification.

GPT-3 is not the principal comparison in this Pile analysis. The authors explain that Jurassic-1 and Gopher generally perform better on those subsets, so they use those stronger reference systems.

The controlled Wikitext103 study

The dedicated Wikitext103 experiment begins with a Transformer trained on that dataset’s training split. Its architecture has 24 layers, hidden width 1024, and 16 attention heads, with key size 64.

The authors rebuild kNN-LM around the same tokenizer and underlying Transformer. This is an important control because tokenization and predictor differences can otherwise complicate a retrieval comparison.

The selected baseline checkpoint occurs at step 35,000. With an evaluation overlap proportion of 75%, its validation perplexity is 21.58. With the 87.5% overlap used for the main comparison table, the baseline validation perplexity is 21.53.

The best Retro retrofit checkpoint reaches validation perplexity 18.46 when retrieving from Wikipedia. The prose does not restate its window-overlap condition beside that figure, so it is better to retain the evaluation distinction than to calculate a new exact improvement from these values.

Wikipedia retrieval produces performance comparable to the authors’ kNN-LM implementation. Expanding retrieval to MassiveText produces much stronger results, although the authors explicitly attribute part of that advantage to residual overlap with Wikitext103.

Retrieval from C4 also performs well and serves as an additional reproducible setting. Training Retro from scratch on Wikitext103, however, performs worse than the baseline in the reported attempt because the added components overfit this comparatively small training collection.

Storage is part of the result

The Wikitext103 discussion quantifies a major difference between token-level and chunk-level retrieval. The kNN-LM representation requires 1024 floating-point values for every indexed token.

For the Wikipedia collection, the paper reports a token-level storage requirement of 15 terabytes. Retro’s corresponding index is reported as 215Gb, while its MassiveText index requires 93Tb.

These are storage figures, not language-quality scores. Their role is to explain why chunk granularity matters for the paper’s scaling argument. The external memory remains substantial even when it is more economical than storing a rich representation for every token.

The comparison also prevents a misleading interpretation of parameter efficiency. A smaller neural parameter count does not mean that the entire deployed system has a correspondingly small storage footprint.

Retrofitting an existing Transformer

The retrofit experiments train only the added retrieval machinery. For the 7B system, this comprises less than 10% of the weights.

The procedure uses 6 million sequences, described as 3% of the pretraining sequence count. It quickly surpasses the retrieval-free starting point and approaches the performance of Retro systems trained with retrieval from the beginning.

Freezing the original weights has a second benefit: disabling retrieval returns exactly to the original predictor. When the authors instead allow all parameters to change during adaptation, retrieval-off performance deteriorates.

This is stronger than the retrieval-off result for ordinary Retro pretraining. A jointly pretrained Retro system remains broadly comparable to the baseline without retrieval, but the frozen retrofit provides an exact preservation property for its original component.

Question answering with another retriever

For the question-answering experiment, the authors fine-tune the 7.5B Retro system on Natural Questions. The evidence passages come from DPR rather than from the ordinary chunk-similarity pipeline.

Training lasts 25,000 steps and uses the top 20 passages. The input is arranged so that the answer marker lands at the end of the first 64-token chunk. This places the first answer predictions where they can receive the retrieved question evidence.

The metric is exact-match accuracy. The authors describe Retro as competitive with REALM, RAG, and DPR, but below FiD. The numerical exact-match entries are not stated in the accompanying prose, so there is no justified score to reproduce here.

Increasing the evidence count beyond 20 does not improve the reported question-answering result. The authors hypothesize that FiD’s T5 foundation and training objective make it depend more strongly on encoder information. They present stronger reliance on retrieved evidence as a direction for improving Retro’s answering behavior.

What the ablations show

The controlled setting

The design study uses a 247M-parameter Retro system trained on a shortened schedule of 157 billion tokens. The authors compare final C4 prediction quality and the time needed to reach different quality levels.

This matters because a component can improve a final score while being unattractive in practice. The paper evaluates its design choices partly by how much additional training they require.

The conclusions therefore concern this controlled architecture and schedule. They provide evidence for the main design, but do not establish that every tradeoff remains identical at all scales or on all tasks.

Matching passages and continuations are complementary

The clearest numerical decomposition concerns the returned text. The authors separately train and evaluate variants that receive only the matching neighbour or only its continuation.

C4 ablation, share of Retro's retrieval improvement retained

Continuation-only evidence retains more benefit than matching text alone, while the combined setting remains best.

C4 ablation, share of Retro's retrieval improvement retainedRetro, matching neighbour only: 22Retro, matching neighbour only22Retro, continuation only (this paper): 56Retro, continuation only (this paper)56
The numbers
System or settingshare of retrieval improvement %
Retro, matching neighbour only22
Retro, continuation only (this paper)56

The 22% and 56% figures measure shares of the retrieval improvement, not accuracy or the proportion of answered questions. They should not be interpreted as independent contributions that can simply be added together.

The matching passage supplies information about a relevant context. The continuation supplies an example of what followed that context. Because the complete system uses both, it can relate the situation to its development instead of relying exclusively on either part.

This supports the architecture’s choice of values containing both chunks. It also illustrates why retrieval evaluation should examine the composition of returned evidence, not merely whether a search found something topically related.

Context-sensitive encoding and position both help

Removing relative-position information from cross-attention weakens both training progress and computational efficiency. The controlled result supports giving the attention mechanism a notion of alignment between the input and retrieved text.

Likewise, conditioning the retrieval encoder on the query chunk’s intermediate activations improves the system. Retrieved passages are more useful when their representation can respond to the current context.

These findings do not show that the nearest-neighbour search itself understands all relevant relationships. They show that downstream interpretation can compensate for some limitations of a fixed search representation.

Sharing the encoder and decoder embedding matrices makes little difference to performance in the ablation. The authors therefore favor separate matrices in the broader architecture, since separation allows the encoder to remain narrower as the decoder grows.

A larger encoder is not automatically worthwhile

The authors test an encoder that is 3× deeper. It reduces loss by 0.15% but increases training time by +20%.

The conclusion concerns the tradeoff, not whether the deeper component has any benefit. It does improve the reported loss slightly, but the shallow encoder is more attractive when performance is considered together with training cost.

This is a useful corrective to an overly simple reading of retrieval architectures. Once evidence is available, spending more computation on its encoding does not necessarily produce a proportionate improvement.

Training and evaluation need different evidence budgets

Using a single neighbour during training leads to a substantial quality decrease. Training with 4 neighbours rather than the default 2 does not produce a substantial final improvement and introduces considerable overhead.

The preferred training configuration therefore uses 2 neighbours. Separately, the evaluation studies show that more neighbours can help after training.

These observations are compatible. Training must repeatedly process evidence over the whole learning run, whereas evaluation can allocate additional evidence to an already learned reader. The efficient choice need not be the same in both phases.

The result also argues against choosing a retrieval budget solely from the largest value that improves an evaluation score. Learning cost and deployment cost require their own measurements.

Evidence must enter at useful depths

The frequency study compares different placements of decoder cross-attention. A single evidence interaction near the bottom or top performs poorly, while a single interaction at an intermediate depth is more reasonable.

Using cross-attention every 3 layers provides the authors’ preferred compromise between quality and runtime. Evidence can influence several stages of processing without imposing the cost of a retrieval interaction everywhere.

The broader finding is that retrieval quality and architectural integration are separate questions. Even useful passages may have limited effect if the network encounters them at an unhelpful point in its computation.

The overlap analysis addresses a different alternative explanation

The leakage investigation is not a component-removal ablation, but it is an essential controlled analysis. It tests whether retrieval’s advantage remains when familiar wording is progressively removed from the evaluation.

For each evaluation chunk, the authors retrieve 10 nearby training passages and measure the longest contiguous token substring shared with any of them. If s is the shared length and m is the chunk length, the overlap score is:

r(C) = s/m

C is the evaluation chunk. The ratio r(C) ranges from 0 for no shared token substring under this measurement to 1 for a complete match.

A threshold α defines the retained evaluation set:

C_α = {C ∈ C : r(C) ≤ α}

C denotes the collection of evaluation chunks, while C_α contains only those whose overlap does not exceed α. Reducing α makes the familiarity filter stricter.

The paper then writes its filtered byte-normalized quantity as:

bpb(α) = (Σ꜀∈C_α ℓ(C)) / (Σ꜀∈C_α N(C))

N(C) is the byte count of chunk C, and ℓ(C) is its likelihood-derived score. The displayed expression suppresses the sign and logarithm-base conversion needed when interpreting a log-likelihood as a positive cost in bits; the experimental discussion treats bpb as that prediction-cost metric.

On C4 and Wikitext103, both the baseline and Retro improve when more overlapping material is admitted. Retro’s curve changes more strongly, consistent with its ability to exploit retrieved wording directly.

Nonetheless, its advantage remains down to α=12.5%, where the authors describe the retained chunks as sharing fewer than 8 consecutive tokens with the closest training match. Curation Corpus shows a more nearly constant retrieval advantage, consistent with its lack of corresponding overlap.

This evidence weakens the explanation that Retro succeeds only through copying. It does not turn substring filtering into a complete test of independence or understanding.

Limitations

Limits the authors explicitly discuss

Residual contamination is a central limitation, not a minor qualification. Removing similar documents and excluding the actual Wikitext103 evaluation articles does not eliminate shared passages elsewhere in the collection. Retro can exploit those passages particularly effectively.

The authors therefore caution against reading its unusually strong Wikitext103 performance as a clean measure of unfamiliar-text prediction. Their overlap analysis demonstrates a broader benefit, but the raw benchmark score still combines several sources of advantage.

Retrieval quality is another stated limitation. The disappointing results on dm_mathematics and ubuntu_irc are attributed, as a hypothesis, to unhelpful neighbours arising from database coverage or search effectiveness. The architecture cannot use relevant evidence if the retrieval pipeline does not supply it.

The question-answering experiment also sets a clear boundary. Retro does not match FiD, and increasing the passage count does not close the gap. The authors suggest that the architecture may need stronger incentives to rely on retrieved information when answering.

Small-data training introduces overfitting. In the dedicated Wikitext103 setting, adding retrieval components and training from scratch does not work as well as the baseline. Retrofitting becomes necessary for the successful comparison reported there.

Privacy, bias, and correction remain open problems

The authors explicitly recognize that direct access to training text can worsen privacy risks. A system that can retrieve a passage can reproduce information that a purely parameter-based predictor might not reproduce as readily.

They discuss removing material from the searchable collection as a possible intervention. They also raise differential privacy and private-data personalization as research possibilities. These are proposed directions, not demonstrated guarantees of the reported Retro systems.

The same distinction applies to updating information. Replacing or expanding retrieval data may offer a cheaper route to incorporating new material than retraining everything. The paper does not show that every relevant fact will be updated correctly merely because a database changes.

Bias can enter through both the underlying collection and the retrieval selector. A database may contain broad coverage while a search mechanism repeatedly favors a narrow portion. The authors call for further work on how retrieval affects toxic and biased outputs.

Inspecting neighbours offers useful visibility, but visibility is not equivalent to a complete explanation. A passage can be present without being decisive, and a plausible connection between passage and output does not establish all of the internal causes of that output.

Limits visible in the experimental design

A careful reader should distinguish parameter count from total system cost. Retro’s neural component may be smaller than comparison systems, but it depends on a large index, stored source text, retrieval infrastructure, and evidence encoding.

The reported 10 ms search is informative about one operation. It does not include building the database or establish the same latency for all hardware, collection compositions, or end-to-end applications.

The principal scaling experiments extend to the parameter sizes the authors actually train. They show that retrieval gains persist over that range. They do not prove that those gains remain constant at every larger scale.

Similarly, the temporally later Wikipedia evaluation is valuable but narrow. It contains 23 selected articles and includes manual filtering. It tests whether older evidence can help predict some later writing, not whether the system can acquire every genuinely new fact.

The overlap diagnostic searches nearby passages and measures contiguous shared tokens. It is an operational proxy for local familiarity. It can miss other forms of dependence, including related wording without a long exact substring or common source information distributed across passages.

Conversely, familiar wording is not always evidence of an invalid experiment. Some language tasks naturally involve recurring expressions and standard formulations. The filtered curves are useful because they expose this dependence instead of forcing all overlap into a single category.

Sampling examples do not establish universal factual reliability

The authors show continuations involving beavers, Hamlet, a rights declaration, and digits of π. These examples make retrieval’s influence visible and demonstrate that accurate reproduction can be useful.

They also support a narrower interpretation than a general factuality claim. Continuing a known passage correctly is different from determining whether a retrieved claim is current, true, or applicable to a new question.

The Paralympics example illustrates this distinction. Retrieved material helps predict dates appearing in a later article, but the neighbours themselves were written before the postponement described by the authors. Correct prediction can depend on recognizing historically reported information rather than endorsing it as the current situation.

The qualitative analysis therefore shows how retrieved material changes output and sometimes improves it. It does not provide a comprehensive factual-error rate or a guarantee that evidence will always be interpreted appropriately.

Some numerical presentations require care

The main text and appendix give inconsistent conventions for the kNN-LM interpolation weight. In one place, λ weights the neighbour distribution; elsewhere, it weights the language-model distribution.

The paper reports tuned values of λ=0.118 and α=0.00785, but the opposing mixture conventions prevent an unqualified explanation of which component receives the stated λ. The safe conclusion is that the comparison tunes the interpolation and distance sensitivity on validation data.

Several major result tables are referred to without numerical entries in the surrounding discussion. Accordingly, the qualitative comparisons and explicitly stated values support the account, but exact Pile subset scores and Natural Questions exact-match scores should not be invented.

These presentation limits do not undo the architecture or the reported experimental trends. They constrain how precisely a secondary analysis can reconstruct particular comparisons.

What came after

A citation establishes influence, not a reproduced mechanism

The subsequent citation record places Retro among work on scaling, retrieval, answering, and evaluation. That record supports discussing the research directions in which it remained relevant. It does not, on its own, establish that every citing system adopted chunked cross-attention, used frozen BERT retrieval, or reproduced the trillion-token experiments.

This distinction is especially important because the later-work descriptions identify titles and dates without detailing each paper’s method. Their titles reveal their stated subjects; they do not supply enough evidence to attribute particular implementation decisions or results to Retro.

Scaling remained a parallel research direction

PaLM and Training Compute-Optimal Large Language Models belong to the later citing work concerned with scale and resource allocation. Their presence shows that Retro entered the discussion around how learning resources should be spent.

The conceptual relationship is clear even without assuming a specific borrowed mechanism. Retro separates accessible memory from parameter growth. Work concerned with scaling and compute allocation addresses the broader question of which resources make prediction more effective.

OPT and Emergent Abilities also appear in the citation record. The available information supports identifying their respective subjects—open pretrained Transformers and abilities associated with scale—but not claiming that either implements Retro’s retrieval design.

The Gopher study, Scaling Language Models, has a more direct connection already documented in Retro. It supplies background on MassiveText and a large comparison system used in the Pile analysis. It therefore belongs to both the data context and the experimental comparison surrounding Retro.

Retrieval became a broader object of comparison

In-Context Retrieval-Augmented Language Models and REPLUG identify different interfaces for combining retrieval with a predictor. The first title foregrounds in-context use; the second explicitly foregrounds a black-box setting.

Those subjects sharpen a question that Retro makes concrete: where should evidence enter the system? Retro answers through trained internal cross-attention. The later titles show that the citation network also includes research framed around other access conditions.

Atlas places retrieval alongside few-shot learning. This connects to Retro’s observation that a learned evidence pathway can be useful beyond ordinary document prediction. The citation information does not establish an exact architectural inheritance, so its role is best described as part of the subsequent retrieval-oriented learning agenda.

When Not to Trust Language Models explicitly names parametric and non-parametric memory in its subtitle. That distinction is central to Retro’s motivation: information can be carried in learned parameters or made available through an external collection.

The later work’s title indicates an investigation of that distinction. It does not provide its conclusions, but it shows that the relative roles of these memory forms remained an explicit research question.

Retrieval timing and multi-step reasoning received attention

Active Retrieval Augmented Generation foregrounds active retrieval in its title. Interleaving Retrieval with Chain-of-Thought Reasoning names a relationship between retrieval and intermediate reasoning.

These titles point towards a natural extension of the scheduling issue in Retro. Retrieving once for a whole task, retrieving at fixed chunk boundaries, and retrieving as a reasoning process develops are different policies.

Retro provides evidence for repeated retrieval during text continuation. The citation list supports identifying later interest in active and interleaved retrieval, but it does not establish how those later policies were trained or whether they outperform Retro.

Toolformer broadens the surrounding discussion towards learned tool use. Its inclusion as a citing work connects Retro to a larger question about systems that consult external capabilities. The available record does not justify equating tool use generally with Retro’s particular database interface.

Evaluation expanded beyond ordinary prediction

Benchmarking Retrieval-Augmented Generation makes evaluation of retrieval-assisted systems its explicit subject. LongBench addresses long-context understanding through a bilingual, multitask benchmark.

These research subjects concern nearby but distinct capabilities. Access to retrieved evidence and access to a long context both increase available information, yet they do not ensure that the information is selected or interpreted well.

Retro’s overlap-aware analysis provides an important precedent for asking what an evaluation gain actually measures. The citation record does not establish that these later benchmarks adopt its precise substring filter, so that methodological relationship should remain a question rather than an asserted fact.

Generating Text with Citations identifies another relevant evaluation concern: connecting generated statements to sources. Retro exposes neighbours for inspection, but does not establish a complete mechanism for assigning evidential support to every output claim.

The later title therefore points towards a distinct requirement beyond retrieval availability. A system can consult a passage without producing a reliable account of which statements it supports.

Surveys place Retro within a wider field

Retrieval-Augmented Generation: A Survey and RAG Meeting LLMs identify the broader retrieval-augmented field as their subject. Their citation of Retro places its large-scale external-memory experiment within that developing body of work.

The Hallucination Survey and Siren’s Song place it in a discussion of unreliable generated content. That connection is understandable from Retro’s own qualitative comparisons and its safety analysis.

However, inclusion in this citation record does not mean that the later surveys validate a universal claim that retrieval prevents hallucination. Retro itself supports the more careful position: external evidence can improve prediction and make some influences inspectable, while still introducing problems of selection, copying, currency, and interpretation.

The durable question left by the paper is how to combine processing with accessible evidence while measuring each contribution honestly. Its experiments establish that a very large searchable collection can remain useful to a substantial learned predictor. Its contamination analysis establishes why demonstrating that usefulness requires more than reporting a better aggregate benchmark score.

Cite

Cite as Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George van den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, Diego de Las Casas, Aurelia Guy, Jacob Menick, Roman Ring, Tom Hennigan, Saffron Huang, Loren Maggiore, Chris Jones, Albin Cassirer, Andy Brock, Michela Paganini, Geoffrey Irving, Oriol Vinyals, Simon Osindero, Karen Simonyan, Jack W. Rae, Erich Elsen and Laurent Sifre. 2021. Improving language models by retrieving from trillions of tokens. arXiv:2112.04426.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2112.04426 · arXiv 2112.04426

@misc{borgeaud2021improving,
  title = {{Improving language models by retrieving from trillions of tokens}},
  author = {Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George {van den Driessche}, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, Diego {de Las Casas}, Aurelia Guy, Jacob Menick, Roman Ring, Tom Hennigan, Saffron Huang, Loren Maggiore, Chris Jones, Albin Cassirer, Andy Brock, Michela Paganini, Geoffrey Irving, Oriol Vinyals, Simon Osindero, Karen Simonyan, Jack W. Rae, Erich Elsen and Laurent Sifre},
  year = {2021},
  doi = {10.48550/arxiv.2112.04426},
  eprint = {2112.04426},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2112.04426}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/borgeaud-2021-improving-language-models-retrieving-trillions/

References

60 references, from the paper's own bibliography.

  1. M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, and L. Zhang. Deep learning with differential privacy. In ACM SIGSAC Conference on Computer and Communications Security, 2016. our card
  2. S. Ahn, H. Choi, T. Pärnamaa, and Y. Bengio. A neural knowledge language model. arXiv preprint arXiv:1608.00318, 2016. our card
  3. A. Baevski and M. Auli. Adaptive input representations for neural language modeling. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=ByxZX20qFQ. our card
  4. Y. Belinkov, S. Gehrmann, and E. Pavlick. Interpretability and analysis in neural NLP. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: Tutorial Abstracts, pages 1–5, Online, July 2020. Association for Computational Linguistics. . URL https://aclanthology.org/2020.acl-tutorials.1. OpenAlex ↗ · Scholar ↗
  5. E. M. Bender, T. Gebru, A. McMillan-Major, and S. Shmitchell. On the dangers of stochastic parrots: Can language models be too big? In ACM Conference on Fairness, Accountability, and Transparency, 2021. OpenAlex ↗ · Scholar ↗
  6. D. M. Blei, A. Y. Ng, and M. I. Jordan. Latent Dirichlet Allocation. Journal of Machine Learning Research, 30 (Jan):0 993–1022, 2003. URL https://jmlr.csail.mit.edu/papers/v3/blei03a.html. OpenAlex ↗ · Scholar ↗
  7. J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. V. der Plas, S. Wanderman-Milne, and Q. Zhang. JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax. OpenAlex ↗ · Scholar ↗
  8. T. Brants, A. C. Popat, P. Xu, F. J. Och, and J. Dean. Large Language models in machine translation. In Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 858–867, 2007. our card
  9. T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. Language models are few-shot learners. In Advances in Neural Information Processing Systems, 2020. URL https://proceedings.neurips.cc/paper/2020/file/ 1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf. our card
  10. N. Carlini, F. Tramer, E. Wallace, M. Jagielski, A. Herbert-Voss, K. Lee, A. Roberts, T. Brown, D. Song, U. Erlingsson, A. Oprea, and C. Raffel. Extracting training data from large language models. Preprint, 2021. our card
  11. C. Consonni, D. Laniado, and A. Montresor. Wikilinkgraphs: a complete, longitudinal and multi-language dataset of the wikipedia link networks. In AAAI International Conference on Web and Social Media, volume 13, 2019. OpenAlex ↗ · Scholar ↗
  12. Curation. Curation corpus base, 2020. OpenAlex ↗ · Scholar ↗
  13. Z. Dai, Z. Yang, Y. Yang, J. Carbonell, Q. Le, and R. Salakhutdinov. Transformer-XL: Attentive language models beyond a fixed-length context. In Annual Meeting of the Association for Computational Linguistics, July 2019. URL https://aclanthology.org/P19-1285. OpenAlex ↗ · Scholar ↗
  14. J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Conference of the North American Chapter of the Association for Computational Linguistics, June 2019. URL https://aclanthology.org/N19-1423. our card
  15. L. Gao, S. Biderman, S. Black, L. Golding, T. Hoppe, C. Foster, J. Phang, H. He, A. Thite, N. Nabeshima, S. Presser, and C. Leahy. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020. our card
  16. S. Gehman, S. Gururangan, M. Sap, Y. Choi, and N. A. Smith. RealToxicityPrompts: Evaluating neural toxic degeneration in language models. In Conference on Empirical Methods in Natural Language Processing, Nov. 2020. URL https://aclanthology.org/2020.findings-emnlp.301. our card
  17. E. Grave, A. Joulin, and N. Usunier. Improving neural language models with a continuous cache. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=B184E5qee. our card
  18. A. Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. our card
  19. J. Gu, Y. Wang, K. Cho, and V. O. Li. Search engine guided neural machine translation. In AAAI Conference on Artificial Intelligence, 2018. OpenAlex ↗ · Scholar ↗
  20. R. Guo, P. Sun, E. Lindgren, Q. Geng, D. Simcha, F. Chern, and S. Kumar. Accelerating large-scale inference with anisotropic vector quantization. In International Conference on Machine Learning, 2020. URL https://arxiv.org/abs/1908.10396. OpenAlex ↗ · Scholar ↗
  21. K. Guu, K. Lee, Z. Tung, P. Pasupat, and M. Chang. Retrieval augmented language model pre-training. In International Conference on Machine Learning, 2020. OpenAlex ↗ · Scholar ↗
  22. H. Hashemi, H. Zamani, and W. B. Croft. Guided transformer: Leveraging multiple external sources for representation learning in conversational search. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1131–1140, 2020. OpenAlex ↗ · Scholar ↗
  23. T. Hennigan, T. Cai, T. Norman, and I. Babuschkin. Haiku: Sonnet for JAX, 2020. URL http://github.com/deepmind/dm-haiku. OpenAlex ↗ · Scholar ↗
  24. G. Izacard and E. Grave. Leveraging passage retrieval with generative models for open domain question answering. In Conference of the European Chapter of the Association for Computational Linguistics, Apr. 2021. URL https://aclanthology.org/2021.eacl-main.74. our card
  25. G. Izacard, F. Petroni, L. Hosseini, N. De Cao, S. Riedel, and E. Grave. A memory efficient baseline for open domain question answering. arXiv preprint arXiv:2012.15156, 2020. our card
  26. S. Jain and B. C. Wallace. Attention is not Explanation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 3543–3556, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. . URL https://aclanthology.org/N19-1357. our card
  27. E. S. Jo and T. Gebru. Lessons from archives: Strategies for collecting sociocultural data in machine learning. In Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency, pages 306–316, 2020. OpenAlex ↗ · Scholar ↗
  28. R. Jozefowicz, O. Vinyals, M. Schuster, N. Shazeer, and Y. Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. our card
  29. J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei. Scaling laws for neural language models. CoRR, 2020. URL https://arxiv.org/abs/2001.08361. our card
  30. V. Karpukhin, B. Oguz, S. Min, P. Lewis, L. Wu, S. Edunov, D. Chen, and W.-t. Yih. Dense passage retrieval for open-domain question answering. In Conference on Empirical Methods in Natural Language Processing, Nov. 2020. URL https://aclanthology.org/2020.emnlp-main.550. our card
  31. U. Khandelwal, O. Levy, D. Jurafsky, L. Zettlemoyer, and M. Lewis. Generalization through memorization: Nearest neighbor language models. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=HklBjCEKvH. our card
  32. M. Komeili, K. Shuster, and J. Weston. Internet-augmented dialogue generation. arXiv preprint arXiv:2107.07566, 2021. our card
  33. T. Kudo and J. Richardson. Sentencepiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. arXiv preprint arXiv:1808.06226, 2018. our card
  34. T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, M. Kelcey, J. Devlin, K. Lee, K. N. Toutanova, L. Jones, M.-W. Chang, A. Dai, J. Uszkoreit, Q. Le, and S. Petrov. Natural Questions: a benchmark for question answering research. Transactions of the Association of Computational Linguistics, 7:0 452–466, Mar. 2019. URL https://aclanthology.org/Q19-1026. our card
  35. A. Lazaridou, A. Kuncoro, E. Gribovskaya, D. Agrawal, A. Liska, T. Terzi, M. Gimenez, C. de Masson d'Autume, S. Ruder, D. Yogatama, K. Cao, T. Kociský, S. Young, and P. Blunsom. Pitfalls of static language modelling. CoRR, 2021. URL https://arxiv.org/abs/2102.01951. OpenAlex ↗ · Scholar ↗
  36. K. Lee, M.-W. Chang, and K. Toutanova. Latent Retrieval for Weakly Supervised Open Domain Question Answering. In Annual Meeting of the Association for Computational Linguistic, June 2019. URL http://arxiv.org/abs/1906.00300. our card
  37. K. Lee, D. Ippolito, A. Nystrom, C. Zhang, D. Eck, C. Callison-Burch, and N. Carlini. Deduplicating training data makes language models better. arXiv preprint arXiv:2107.06499, 2021. our card
  38. P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W.-t. Yih, T. Rocktäschel, S. Riedel, and D. Kiela. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems, 2020. URL https://proceedings.neurips.cc/paper/2020/file/ 6b493230205f780e1bc26945df7481e5-Paper.pdf. our card
  39. P. Lewis, P. Stenetorp, and S. Riedel. Question and answer test-train overlap in open-domain question answering datasets. In Conference of the European Chapter of the Association for Computational Linguistics, Apr. 2021. URL https://aclanthology.org/2021.eacl-main.86. our card
  40. O. Lieber, O. Sharir, B. Lenz, and Y. Shoham. Jurassic-1: Technical details and evaluation. White Paper. AI21 Labs, 2021. OpenAlex ↗ · Scholar ↗
  41. I. Loshchilov and F. Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bkg6RiCqY7. our card
  42. S. Merity, C. Xiong, J. Bradbury, and R. Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=Byj72udxe. our card
  43. T. Mikolov, M. Karafiát, L. Burget, J. Cernockỳ, and S. Khudanpur. Recurrent neural network based language model. Interspeech, 20 (3):0 1045–1048, 2010. OpenAlex ↗ · Scholar ↗
  44. D. Paperno, G. Kruszewski, A. Lazaridou, N. Q. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, and R. Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Annual Meeting of the Association for Computational Linguistics, Aug. 2016. URL https://aclanthology.org/P16-1144. our card
  45. A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever. Language models are unsupervised multitask learners. Preprint, 2019. OpenAlex ↗ · Scholar ↗
  46. J. Rae, S. Borgeaud, T. Cai, K. Millican, J. Hoffmann, F. Song, J. Aslanides, S. Henderson, R. Ring, S. Young, E. Rutherford, T. Hennigan, J. Menick, A. Cassirer, R. Powell, G. van den Driessche, L. A. Hendricks, M. Rauh, P.-S. Huang, A. Glaese, J. Welbl, S. Dathathri, S. Huang, J. Uesato, J. Mellor, I. Higgins, A. Creswell, N. McAleese, A. Wu, E. Elsen, S. Jayakumar, E. Buchatskaya, D. Budden, E. Sutherland, K. Simonyan, M. Paganini, L. Sifre, L. Martens, X. L. Li, A. Kuncoro, A. Nematzadeh, E. Gribovskaya, D. Donato, A. Lazaridou, A. Mensch, J.-B. Lespiau, M. Tsimpoukelli, N. Grigorev, D. Fritz, T. Sottiaux, M. Pajarskas, T. Pohlen, Z. Gong, D. Toyama, C. de Masson d’Autume, Y. Li, T. Terzi, V. Mikulik, I. Babuschkin, A. Clark, D. de Las Casas, A. Guy, J. Bradbury, M. Johnson, B. Hechtman, L. Weidinger, I. Gabriel, W. Isaac, E. Lockhart, S. Osindero, L. Rimell, C. Dyer, O. Vinyals, K. Ayoub, J. Stanway, L. Bennett, D. Hassabis, K. Kavukcuoglu, and G. Irving. Scaling language models: Methods, analysis & insights from training Gopher. arXiv submission, 2021. our card
  47. C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 210 (140):0 1–67, 2020. URL http://jmlr.org/papers/v21/20-074.html. our card
  48. S. Rajbhandari, J. Rasley, O. Ruwase, and Y. He. Zero: Memory optimizations toward training trillion parameter models. In IEEE International Conference for High Performance Computing, Networking, Storage and Analysis, 2020. OpenAlex ↗ · Scholar ↗
  49. S. Robertson and H. Zaragoza. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, 3:0 333–389, Jan 2009. OpenAlex ↗ · Scholar ↗
  50. D. S. Sachan, S. Reddy, W. Hamilton, C. Dyer, and D. Yogatama. End-to-end training of multi-document reader and retriever for open-domain question answering. arXiv preprint arXiv:2106.05346, 2021. our card
  51. R. Schwartz, J. Dodge, N. A. Smith, and O. Etzioni. Green AI. Communications of the Association for Computing Machinery, 630 (12):0 54–63, Nov. 2020. OpenAlex ↗ · Scholar ↗
  52. M. Shoeybi, M. Patwary, R. Puri, P. LeGresley, J. Casper, and B. Catanzaro. Megatron-LM: Training multi-billion parameter language models using model parallelism. CoRR, 2019. URL http://arxiv.org/abs/1909.08053. our card
  53. K. Shuster, S. Poff, M. Chen, D. Kiela, and J. Weston. Retrieval augmentation reduces hallucination in conversation. arXiv:2104.07567 [cs], Apr. 2021. URL http://arxiv.org/abs/2104.07567. our card
  54. E. Strubell, A. Ganesh, and A. McCallum. Energy and policy considerations for deep learning in NLP. In Association for Computational Linguistics, July 2019. URL https://aclanthology.org/P19-1355. our card
  55. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. URL https://proceedings.neurips.cc/paper/2017/file/ 3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf. our card
  56. X. Wei and W. B. Croft. LDA-based document models for ad-hoc retrieval. In ACM SIGIR International Conference on Research and Development in Information Retrieval, 2006. URL http://portal.acm.org/citation.cfm?doid=1148170.1148204. OpenAlex ↗ · Scholar ↗
  57. L. Weidinger, I. Gabriel, C. Griffin, M. Rauh, J. Uesato, J. Mellor, W. Isaac, P.-S. Huang, L. A. Hendricks, M. Cheng, B. Balle, J. Haas, C. Biles, L. Rimell, W. Hawkins, M. Glaese, A. Kasirzadeh, Z. Kenton, S. Brown, A. Birhane, T. Stepleton, G. Irving, and S. Legassick. Ethical and social risks of harm from language models. arXiv submission, 2021. our card
  58. D. Yogatama, C. de Masson d’Autume, and L. Kong. Adaptive semiparametric language models. Transactions of the Association for Computational Linguistics, 9:0 362–373, 2021. OpenAlex ↗ · Scholar ↗
  59. B. Zhang and R. Sennrich. Root mean square layer normalization. In Advances in Neural Information Processing Systems, 2019. URL https://proceedings.neurips.cc/paper/2019/file/1e8a19426224ca89e83cef47f1e7f53b-Paper.pdf. OpenAlex ↗ · Scholar ↗
  60. J. Zhang, M. Utiyama, E. Sumita, G. Neubig, and S. Nakamura. Guiding neural machine translation with retrieved translation pieces. In Conference of the North American Chapter of the Association for Computational Linguistics, 2018. our card