arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.03009cs.CLcs.AI
收藏

UniMem: 面向长上下文大语言模型的统一视角

UniMem: Towards a Unified View of Long-Context Large Language Models

Tsinghua University(清华大学);Xiamen University(厦门大学);Renmin University of China(中国人民大学)

Junjie Fang, Likai Tang, Hongzhe Bi, Yujia Qin, Si Sun, Zhenyu Li, Haolun Li, Yongjian Li, Xin Cong, Yankai Lin, Yukun Yan, Xiaodong Shi, Sen Song, Zhiyuan Liu, Maosong Sun

AI总结:

针对现有长上下文大语言模型方法孤立开发、缺乏系统整合的问题,提出统一框架UniMem,从记忆增强视角重构16种方法并分析4种代表性方法的设计原理,进而提出整合优势的UniMix,实验显示其长上下文处理性能更优、困惑度更低。

摘要:

长上下文处理是制约大语言模型(LLM)适用性的关键能力。尽管已有多种致力于提升LLM长上下文处理能力的方法,但它们都是孤立开发的,缺乏对各自优势的系统分析与整合,阻碍了进一步发展。本文提出UniMem,这是一个从LLM记忆增强视角重新构建现有长上下文方法的统一框架。UniMem以记忆管理、记忆写入、记忆读取和记忆注入四个核心维度为特征,助力研究人员对长上下文方法开展系统性探索。我们基于UniMem重构了16种现有方法,并将Transformer-XL、Memorizing Transformer、RMT和Longformer四种代表性方法转化为等效的UniMem形式,以揭示其设计原理与优势。基于这些分析,我们提出了UniMix——一种整合了上述算法优势的创新方法。实验结果表明,UniMix在处理长上下文时性能优异,其困惑度显著低于基线模型。

英文摘要:

Long-context processing is a critical ability that constrains the applicability of large language models (LLMs). Although there exist various methods devoted to enhancing the long-context processing ability of LLMs, they are developed in an isolated manner and lack systematic analysis and integration of their strengths, hindering further developments. In this paper, we introduce UniMem, a Unified framework that reformulates existing long-context methods from the view of Memory augmentation of LLMs. Distinguished by its four core dimensions-Memory Management, Memory Writing, Memory Reading, and Memory Injection, UniMem empowers researchers to conduct systematic exploration of long-context methods. We re-formulate 16 existing methods based on UniMem and analyze four representative methods: Transformer-XL, Memorizing Transformer, RMT, and Longformer into equivalent UniMem forms to reveal their design principles and strengths. Based on these analyses, we propose UniMix, an innovative approach that integrates the strengths of these algorithms. Experimental results show that UniMix achieves superior performance in handling long contexts with significantly lower perplexity than baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑