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

面向基于记忆的大语言模型的大海捞针任务

Needle in the Haystack for Memory Based Large Language Models

IBM Research(IBM研究院)

Elliot Nelson, Georgios Kollias, Payel Das, Subhajit Chaudhury, Soham Dan

AI总结:

针对大语言模型事实检索表现差的问题,本文验证带外部联想记忆的Larimar架构无需额外训练,就能以更小模型规模在长上下文召回任务中达到优异性能。

摘要:

当前大语言模型(LLMs)在简单事实检索任务上往往表现不佳。本文研究将动态可适配的外部记忆与LLM结合是否能缓解这一问题。为此,我们在包括passkey(密钥)测试和needle-in-the-haystack(大海捞针)测试在内的长上下文召回任务上,测试了近期提出的采用外部联想记忆的语言模型架构Larimar。我们证明,Larimar的外部记忆支持快速读写一段文本样本序列,可在测试阶段处理远长于训练时见过的上下文。我们进一步表明,来自写入了长上下文的记忆的潜层读出信号,能控制解码器生成正确输出,且记忆存储在GPU之外。与现有针对长上下文召回任务、采用更大参数量或改进注意力机制的基于transformer的LLM架构相比,规模相对更小的Larimar无需任何任务特定训练或长上下文训练,即可保持优异性能。

英文摘要:

Current large language models (LLMs) often perform poorly on simple fact retrieval tasks. Here we investigate if coupling a dynamically adaptable external memory to a LLM can alleviate this problem. For this purpose, we test Larimar, a recently proposed language model architecture which uses an external associative memory, on long-context recall tasks including passkey and needle-in-the-haystack tests. We demonstrate that the external memory of Larimar, which allows fast write and read of an episode of text samples, can be used at test time to handle contexts much longer than those seen during training. We further show that the latent readouts from the memory (to which long contexts are written) control the decoder towards generating correct outputs, with the memory stored off of the GPU. Compared to existing transformer-based LLM architectures for long-context recall tasks that use larger parameter counts or modified attention mechanisms, a relatively smaller size Larimar is able to maintain strong performance without any task-specific training or training on longer contexts.

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

↑