RET-LLM: Towards a General Read-Write Memory for Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Modarressi, Ali, Imani, Ayyoob, Fayyaz, Mohsen, Schütze, Hinrich
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912084268154880
author Modarressi, Ali
Imani, Ayyoob
Fayyaz, Mohsen
Schütze, Hinrich
author_facet Modarressi, Ali
Imani, Ayyoob
Fayyaz, Mohsen
Schütze, Hinrich
contents Large language models (LLMs) have significantly advanced the field of natural language processing (NLP) through their extensive parameters and comprehensive data utilization. However, existing LLMs lack a dedicated memory unit, limiting their ability to explicitly store and retrieve knowledge for various tasks. In this paper, we propose RET-LLM a novel framework that equips LLMs with a general write-read memory unit, allowing them to extract, store, and recall knowledge from the text as needed for task performance. Inspired by Davidsonian semantics theory, we extract and save knowledge in the form of triplets. The memory unit is designed to be scalable, aggregatable, updatable, and interpretable. Through qualitative evaluations, we demonstrate the superiority of our proposed framework over baseline approaches in question answering tasks. Moreover, our framework exhibits robust performance in handling temporal-based question answering tasks, showcasing its ability to effectively manage time-dependent information.
format Preprint
id arxiv_https___arxiv_org_abs_2305_14322
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle RET-LLM: Towards a General Read-Write Memory for Large Language Models
Modarressi, Ali
Imani, Ayyoob
Fayyaz, Mohsen
Schütze, Hinrich
Computation and Language
Large language models (LLMs) have significantly advanced the field of natural language processing (NLP) through their extensive parameters and comprehensive data utilization. However, existing LLMs lack a dedicated memory unit, limiting their ability to explicitly store and retrieve knowledge for various tasks. In this paper, we propose RET-LLM a novel framework that equips LLMs with a general write-read memory unit, allowing them to extract, store, and recall knowledge from the text as needed for task performance. Inspired by Davidsonian semantics theory, we extract and save knowledge in the form of triplets. The memory unit is designed to be scalable, aggregatable, updatable, and interpretable. Through qualitative evaluations, we demonstrate the superiority of our proposed framework over baseline approaches in question answering tasks. Moreover, our framework exhibits robust performance in handling temporal-based question answering tasks, showcasing its ability to effectively manage time-dependent information.
title RET-LLM: Towards a General Read-Write Memory for Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2305.14322