Saved in:
Bibliographic Details
Main Authors: Lee, Dongkyu, Prakash, Chandana Satya, FitzGerald, Jack, Lehmann, Jens
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.04670
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917687449354240
author Lee, Dongkyu
Prakash, Chandana Satya
FitzGerald, Jack
Lehmann, Jens
author_facet Lee, Dongkyu
Prakash, Chandana Satya
FitzGerald, Jack
Lehmann, Jens
contents Leveraging external knowledge is crucial for achieving high performance in knowledge-intensive tasks, such as question answering. The retrieve-and-read approach is widely adopted for integrating external knowledge into a language model. However, this approach suffers from increased computational cost and latency due to the long context length, which grows proportionally with the number of retrieved knowledge. Furthermore, existing retrieval-augmented models typically retrieve information from a single type of knowledge source, limiting their scalability to diverse knowledge sources with varying structures. In this work, we introduce an efficient memory-augmented transformer called MATTER, designed to retrieve relevant knowledge from multiple heterogeneous knowledge sources. Specifically, our model retrieves and reads from both unstructured sources (paragraphs) and semi-structured sources (QA pairs) in the form of fixed-length neural memories. We demonstrate that our model outperforms existing efficient retrieval-augmented models on popular QA benchmarks in terms of both accuracy and speed. Furthermore, MATTER achieves competitive results compared to conventional read-and-retrieve models while having 100x throughput during inference.
format Preprint
id arxiv_https___arxiv_org_abs_2406_04670
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sources
Lee, Dongkyu
Prakash, Chandana Satya
FitzGerald, Jack
Lehmann, Jens
Computation and Language
Artificial Intelligence
Leveraging external knowledge is crucial for achieving high performance in knowledge-intensive tasks, such as question answering. The retrieve-and-read approach is widely adopted for integrating external knowledge into a language model. However, this approach suffers from increased computational cost and latency due to the long context length, which grows proportionally with the number of retrieved knowledge. Furthermore, existing retrieval-augmented models typically retrieve information from a single type of knowledge source, limiting their scalability to diverse knowledge sources with varying structures. In this work, we introduce an efficient memory-augmented transformer called MATTER, designed to retrieve relevant knowledge from multiple heterogeneous knowledge sources. Specifically, our model retrieves and reads from both unstructured sources (paragraphs) and semi-structured sources (QA pairs) in the form of fixed-length neural memories. We demonstrate that our model outperforms existing efficient retrieval-augmented models on popular QA benchmarks in terms of both accuracy and speed. Furthermore, MATTER achieves competitive results compared to conventional read-and-retrieve models while having 100x throughput during inference.
title MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sources
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.04670