FragRel: Exploiting Fragment-level Relations in the External Memory of Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yue, Xihang, Zhu, Linchao, Yang, Yi
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917685158215680
author Yue, Xihang
Zhu, Linchao
Yang, Yi
author_facet Yue, Xihang
Zhu, Linchao
Yang, Yi
contents To process contexts with unlimited length using Large Language Models (LLMs), recent studies explore hierarchically managing the long text. Only several text fragments are taken from the external memory and passed into the temporary working memory, i.e., LLM's context window. However, existing approaches isolatedly handle the text fragments without considering their structural connections, thereby suffering limited capability on texts with intensive inter-relations, e.g., coherent stories and code repositories. This work attempts to resolve this by exploiting the fragment-level relations in external memory. First, we formulate the fragment-level relations and present several instantiations for different text types. Next, we introduce a relation-aware fragment assessment criteria upon previous independent fragment assessment. Finally, we present the fragment-connected Hierarchical Memory based LLM. We validate the benefits of involving these relations on long story understanding, repository-level code generation, and long-term chatting.
format Preprint
id arxiv_https___arxiv_org_abs_2406_03092
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FragRel: Exploiting Fragment-level Relations in the External Memory of Large Language Models
Yue, Xihang
Zhu, Linchao
Yang, Yi
Computation and Language
To process contexts with unlimited length using Large Language Models (LLMs), recent studies explore hierarchically managing the long text. Only several text fragments are taken from the external memory and passed into the temporary working memory, i.e., LLM's context window. However, existing approaches isolatedly handle the text fragments without considering their structural connections, thereby suffering limited capability on texts with intensive inter-relations, e.g., coherent stories and code repositories. This work attempts to resolve this by exploiting the fragment-level relations in external memory. First, we formulate the fragment-level relations and present several instantiations for different text types. Next, we introduce a relation-aware fragment assessment criteria upon previous independent fragment assessment. Finally, we present the fragment-connected Hierarchical Memory based LLM. We validate the benefits of involving these relations on long story understanding, repository-level code generation, and long-term chatting.
title FragRel: Exploiting Fragment-level Relations in the External Memory of Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2406.03092