arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.07805cs.CLcs.AI
收藏

超越记忆:语言模型中随机内存访问的挑战

Beyond Memorization: The Challenge of Random Memory Access in Language Models

Sea AI Lab(Sea AI实验室);National University of Singapore(新加坡国立大学);Carnegie Mellon University(卡内基梅隆大学);Institute of Computing Technology, CAS(中国科学院计算技术研究所)

Tongyao Zhu, Qian Liu, Liang Pang, Zhengbao Jiang, Min-Yen Kan, Min Lin

AI总结:

本研究探讨语言模型的内存访问机制,发现其顺序访问能力强但随机访问弱,通过背诵和排列技术可提升随机访问能力,并在开放域问答中验证了该改进的有效性。

摘要:

语言模型(LMs)的最新发展已显示出其在自然语言处理任务中的有效性,特别是在知识密集型任务中。然而,其参数内部知识存储和内存访问的机制仍然难以捉摸。在本文中,我们研究生成式语言模型(如GPT-2)是否能够顺序或随机访问其内存。通过精心设计的合成任务,涵盖完整背诵、选择性背诵和基于地面的问答场景,我们揭示出语言模型能够顺序访问其内存,但在随机访问记忆内容时面临挑战。我们发现,包括背诵和排列在内的技术能够提升语言模型的随机内存访问能力。此外,通过将这种干预应用于开放域问答的现实场景,我们验证了通过背诵增强随机访问能够显著改善问答性能。复现我们实验的代码可在 https://github.com/sail-sg/lm-random-memory-access 找到。

英文摘要:

Recent developments in Language Models (LMs) have shown their effectiveness in NLP tasks, particularly in knowledge-intensive tasks. However, the mechanisms underlying knowledge storage and memory access within their parameters remain elusive. In this paper, we investigate whether a generative LM (e.g., GPT-2) is able to access its memory sequentially or randomly. Through carefully-designed synthetic tasks, covering the scenarios of full recitation, selective recitation and grounded question answering, we reveal that LMs manage to sequentially access their memory while encountering challenges in randomly accessing memorized content. We find that techniques including recitation and permutation improve the random memory access capability of LMs. Furthermore, by applying this intervention to realistic scenarios of open-domain question answering, we validate that enhancing random access by recitation leads to notable improvements in question answering. The code to reproduce our experiments can be found at https://github.com/sail-sg/lm-random-memory-access.

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

↑