MEMORY-VQ: Compression for Tractable Internet-Scale Memory

Yury Zemlyanskiy, Michiel de Jong, Luke Vilnis, Santiago Ontañón, William W. Cohen +2 more
8/28/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Retrieval augmentation is a powerful but expensive method to make language models more knowledgeable about the world. Memory-based methods like LUMEN pre-compute token representations for retrieved passages to drastically speed up inference. However, memory also leads to much greater storage requirements from storing pre-computed representations. We propose MEMORY-VQ, a new method to reduce storage requirements of memory-augmented models without sacrificing performance. Our method uses a vector quantization variational autoencoder (VQ-VAE) to compress token representations. We apply MEMORY-VQ to the LUMEN model to obtain LUMEN-VQ, a memory model that achieves a 16x compression rate with comparable performance on the KILT benchmark. LUMEN-VQ enables practical retrieval augmentation even for extremely large retrieval corpora.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zemlyanskiy2023memoryvq,
  title  = {MEMORY-VQ: Compression for Tractable Internet-Scale Memory},
  author = {Yury Zemlyanskiy and Michiel de Jong and Luke Vilnis and Santiago Ontañón and William W. Cohen and Sumit Sanghai and Joshua Ainslie},
  year   = {2023},
  eprint = {2308.14903},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.14903v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.14903.svg)](https://codeofpaper.com/paper/2308.14903)

Discussion