Home Knowledge Base RETRO (Retrieval-Enhanced Transformer)

RETRO (Retrieval-Enhanced Transformer) is the language model architecture that deeply integrates retrieval augmentation into the transformer by splitting input into chunks, retrieving relevant passages from a trillion-token database for each chunk, and conditioning generation on both the input and retrieved content through dedicated cross-attention layers — demonstrating that a 7B parameter model with retrieval can match the performance of 25× larger dense models on knowledge-intensive tasks by offloading factual knowledge to an external database.

What Is RETRO?

Why RETRO Matters

RETRO Architecture

Retrieval Pipeline:

Chunked Cross-Attention (CCA):

Training:

RETRO Performance

ModelParametersRetrievalPerplexity (Pile)Knowledge QA
GPT-3175BNoneBaselineBaseline
RETRO7.5B2T tokens DB≈ GPT-3 175B≈ GPT-3
RETRO7.5BNo retrievalMuch worseMuch worse

RETRO is the architectural proof that knowledge storage and knowledge reasoning can be decoupled — demonstrating that relatively small language models become powerful knowledge engines when coupled with massive retrieval databases, establishing the blueprint for the retrieval-augmented generation paradigm that now pervades production LLM systems.

retro (retrieval-enhanced transformer)retroretrieval-enhanced transformerllm architecture

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.