arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.03358cs.CL
收藏

Minerva:一个面向语言模型的可编程记忆测试基准

Minerva: A Programmable Memory Test Benchmark for Language Models

Microsoft(微软)

Menglin Xia, Victor Ruehle, Saravan Rajmohan, Reza Shokri

AI总结:

本文提出可编程基准 Minerva,通过自动生成原子与复合记忆任务,全面评估 LLM 在上下文搜索、回忆、编辑、比较、状态保持等方面的能力。

摘要:

基于 LLM 的 AI 助手能够在多大程度上有效利用其记忆(上下文)来执行各类任务?传统数据基准通常由人工构建,存在若干局限:它们是静态的、容易过拟合、难以解释,并且缺乏可执行的洞察——当模型未通过测试时,无法准确指出模型缺少哪些具体能力。本文提出一个框架,用于自动生成一整套测试,以评估模型有效使用记忆的能力。该框架将能力测试的范围扩展到文献中占主导地位、常被研究的(passkey、键值、大海捞针)搜索之外。具体而言,我们在原子任务上评估模型,包括在上下文记忆中搜索、回忆、编辑、匹配和比较信息;在输入被组织为不同区块时执行基本操作;以及在对记忆进行操作时保持状态,从而模拟真实世界数据。此外,我们设计了复合测试,以考察模型执行更复杂、集成化任务的能力。我们的基准能够对 LLM 的记忆能力进行可解释且细致的评估。

英文摘要:

How effectively can LLM-based AI assistants utilize their memory (context) to perform various tasks? Traditional data benchmarks, which are often manually crafted, suffer from several limitations: they are static, susceptible to overfitting, difficult to interpret, and lack actionable insights--failing to pinpoint the specific capabilities a model lacks when it does not pass a test. In this paper, we present a framework for automatically generating a comprehensive set of tests to evaluate models' abilities to use their memory effectively. Our framework extends the range of capability tests beyond the commonly explored (passkey, key-value, needle in the haystack) search, a dominant focus in the literature. Specifically, we evaluate models on atomic tasks such as searching, recalling, editing, matching, comparing information in context memory, performing basic operations when inputs are structured into distinct blocks, and maintaining state while operating on memory, simulating real-world data. Additionally, we design composite tests to investigate the models' ability to perform more complex, integrated tasks. Our benchmark enables an interpretable, detailed assessment of memory capabilities of LLMs.

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

↑