GLIMMER: generalized late-interaction memory reranker

Michiel de Jong, Yury Zemlyanskiy, Nicholas FitzGerald, Sumit Sanghai, William W. Cohen, Joshua AinsliearXiv 2023

Abstract

Memory-augmentation is a powerful approach for efficiently incorporating external information into language models, but leads to reduced performance relative to retrieving text. Recent work introduced LUMEN, a memory-retrieval hybrid that partially pre-computes memory and updates memory representations on the fly with a smaller live encoder. We propose GLIMMER, which improves on this approach through 1) exploiting free access to the powerful memory representations by applying a shallow reranker on top of memory to drastically improve retrieval quality at low cost, and 2) incorporating multi-task training to learn a general and higher quality memory and live encoder. GLIMMER achieves strong gains in performance at faster speeds compared to LUMEN and FiD on the KILT benchmark of knowledge-intensive tasks.

Introduction

Large Language Models (LLMs) frequently require external knowledge to perform knowledge-intensive tasks. The standard approach, Fusion-in-Decoder (FiD), achieves high accuracy by retrieving numerous text passages and processing them through the full model. However, this is computationally expensive and slow. Previous attempts to optimize this, such as LUMEN, utilized "memory augmentation"—pre-computing document representations to reduce per-query computation. While faster, these models often suffered a "quality-compute trade-off," failing to match the accuracy of FiD.

GLIMMER (Generalized Late-Interaction Memory Reranker) bridges this gap by making the retrieval process smarter and the representations more robust through multi-task learning and a novel two-stage reranking mechanism.

Methods

GLIMMER introduces three primary innovations to the hybrid memory-retrieval architecture:

  1. Late-Interaction Reranking: GLIMMER employs a two-stage "live" encoder. The first stage (Live-A) performs a shallow, late-interaction pass to score all retrieved passages. Only the top-$K$ most relevant passages are passed to the second, more intensive stage (Live-B) and the final decoder. This allows the model to filter noise early at a very low computational cost.
  2. Perplexity Distillation: To train the reranker, the authors use an auxiliary loss that ranks passages based on their actual utility to the decoder—specifically, how much they reduce the "perplexity" of the target generation.
  3. Multi-task Training: GLIMMER shares its memory and live encoders across various tasks (e.g., question answering, fact-checking). This prevents overfitting to a single domain and creates a more generalized, higher-quality memory representation.
The GLIMMER architecture: Memory encoders pre-compute representations, while a two-stage live encoder (Live-A/B) performs efficient reranking before the final decoding step.

Evaluation and Results

The authors evaluated GLIMMER on the KILT benchmark, a collection of knowledge-intensive tasks including Natural Questions, TriviaQA, HotpotQA, and FEVER. They used a pre-trained GTR-Base model for initial retrieval from Wikipedia.

Key Findings

  • Superior Efficiency and Quality: GLIMMER-XXL achieves higher performance on KILT than both FiD and LUMEN while maintaining higher throughput (samples per TFLOP). It is roughly 30-50% faster than LUMEN and significantly more efficient than FiD.
  • Reranking is "Free": Because document representations are pre-computed, performing a shallow neural rerank adds negligible overhead while providing a massive boost in retrieval quality.
  • Multi-task Advantage: Multi-task training is disproportionately beneficial for memory-augmented models, allowing them to learn a "universal" representation of knowledge that works across different domains.
Performance vs. Efficiency: GLIMMER achieves the highest performance while maintaining superior computational efficiency (samples per TFLOP) compared to FiD and LUMEN.

Discussion and Future Work

While GLIMMER significantly reduces FLOPs, real-world latency remains a challenge due to memory bandwidth bottlenecks during decoding. Future research could integrate techniques like multi-query attention to improve actual wall-clock time. Additionally, while the reranker is shallow, its cost may scale with the number of retrieved passages, suggesting further optimization for extremely large-scale retrieval. Finally, exploring how these memory reranker concepts scale to larger decoder-only models (e.g., GPT-4 or PaLM) remains an open area for investigation.

Summary updated

BibTeX
@misc{jong2023glimmer,
  author = {Michiel de Jong and Yury Zemlyanskiy and Nicholas FitzGerald and Sumit Sanghai and William W. Cohen and Joshua Ainslie},
  title = {{GLIMMER: generalized late-interaction memory reranker}},
  year = {2023},
  eprint = {2306.10231},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.10231},
}
Figure