paper-with-me

홈 › Papers

An Efficient Memory-Augmented Transformer for Knowledge-Intensive NLP Tasks

2022-10-30 · Yuxiang Wu, Yu Zhao, Baotian Hu, Pasquale Minervini, Pontus Stenetorp, Sebastian Riedel

Access to external knowledge is essential for many natural language processing tasks, such as question answering and dialogue. Existing methods often rely on a parametric model that stores knowledge in its parameters, or use a retrieval-augmented model that has access to an external knowledge source. Parametric and retrieval-augmented models have complementary strengths in terms of computational efficiency and predictive accuracy. To combine the strength of both approaches, we propose the Efficient Memory-Augmented Transformer (EMAT) -- it encodes external knowledge into a key-value memory and exploits the fast maximum inner product search for memory querying. We also introduce pre-training tasks that allow EMAT to encode informative key-value representations, and to learn an implicit strategy to integrate multiple memory slots into the transformer. Experiments on various knowledge-intensive tasks such as question answering and dialogue datasets show that, simply augmenting parametric models (T5-base) using our method produces more accurate results (e.g., 25.8 -> 44.3 EM on NQ) while retaining a high throughput (e.g., 1000 queries/s on NQ). Compared to retrieval-augmented models, EMAT runs substantially faster across the board and produces more accurate results on WoW and ELI5. Our code and datasets are available at https://github. com/uclnlp/EMAT.

📄 PDF Abstract BibTeX arXiv:2210.16773

Code (1)

uclnlp/emat 공식 구현 pytorch

Tasks

Computational EfficiencyQuestion AnsweringRetrieval

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Adam 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sources

2024-06-07 · Dongkyu Lee, Chandana Satya Prakash, Jack FitzGerald, Jens Lehmann

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 ModelingLanguage ModellingQuestion AnsweringRetrieval

Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks

2020-05-22 · NeurIPS 2020 12 · Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni 외

Large pre-trained language models have been shown to store factual knowledge in their parameters, and achieve state-of-the-art results when fine-tuned on downstream NLP tasks. However, their ability to access and precise…

Fact VerificationQuestion AnsweringRAGRetrieval+3

Memory Augmented Language Models through Mixture of Word Experts

2023-11-15 · Cicero Nogueira dos santos, James Lee-Thorp, Isaac Noble, Chung-Ching Chang 외

Scaling up the number of parameters of language models has proven to be an effective approach to improve performance. For dense models, increasing model size proportionally increases the model's computation footprint. In…

Mixture-of-Experts

Scaling Test-Time Inference with Policy-Optimized, Dynamic Retrieval-Augmented Generation via KV Caching and Decoding

2025-04-02 · Sakhinana Sagar Srinivas, Akash Das, Shivam Gupta, Venkataramana Runkana

We present a comprehensive framework for enhancing Retrieval-Augmented Generation (RAG) systems through dynamic retrieval strategies and reinforcement fine-tuning. This approach significantly improves large language mode…

Question AnsweringRAGRetrievalRetrieval-augmented Generation

Mention Memory: incorporating textual knowledge into Transformers through entity mention attention

2021-10-12 · ICLR 2022 4 · Michiel de Jong, Yury Zemlyanskiy, Nicholas FitzGerald, Fei Sha 외

Natural language understanding tasks such as open-domain question answering often require retrieving and assimilating factual information from multiple sources. We propose to address this problem by integrating a semi-pa…

Claim VerificationNatural Language UnderstandingOpen-Domain Question AnsweringPassage Retrieval+1