# On the Generalization Ability of Retrieval-Enhanced Transformers

**Authors:** Tobias Norlund, Ehsan Doostmohammadi, Richard Johansson, Marco, Kuhlmann

arXiv: 2302.12128 · 2023-02-24

## TL;DR

This paper investigates the generalization capabilities of Retrieval-Enhanced Transformers (RETRO), revealing that their performance gains mainly stem from token overlap with the database rather than true generalization, highlighting evaluation challenges.

## Contribution

The study clarifies the relative impact of retrieval and model weights in RETRO, showing that token overlap largely explains performance improvements, challenging previous assumptions about non-trivial generalization.

## Key findings

- Performance gains mainly due to token overlap
- Limited evidence for non-trivial generalization
- Highlights challenges in evaluating retrieval-augmented models

## Abstract

Recent work on the Retrieval-Enhanced Transformer (RETRO) model has shown that off-loading memory from trainable weights to a retrieval database can significantly improve language modeling and match the performance of non-retrieval models that are an order of magnitude larger in size. It has been suggested that at least some of this performance gain is due to non-trivial generalization based on both model weights and retrieval. In this paper, we try to better understand the relative contributions of these two components. We find that the performance gains from retrieval largely originate from overlapping tokens between the database and the test data, suggesting less non-trivial generalization than previously assumed. More generally, our results point to the challenges of evaluating the generalization of retrieval-augmented language models such as RETRO, as even limited token overlap may significantly decrease test-time loss. We release our code and model at https://github.com/TobiasNorlund/retro

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2302.12128/full.md

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/2302.12128/full.md

## References

23 references — full list in the complete paper: https://tomesphere.com/paper/2302.12128/full.md

---
Source: https://tomesphere.com/paper/2302.12128