arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04727cs.CL
收藏

遗忘曲线:一种评估长上下文模型记忆能力的可靠方法

Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Models

Northeastern University(东北大学);Meituan Inc.(美团公司);NiuTrans Research(NiuTrans研究机构)

Xinyu Liu, Runsong Zhao, Pengcheng Huang, Chunyang Xiao, Bei Li, Jingang Wang, Tong Xiao, Jingbo Zhu

AI总结:

针对现有长上下文模型记忆能力评估的局限性,提出鲁棒性强、不依赖提示且适配任意模型规模的遗忘曲线测量法,验证了Transformer扩展技术有效性并质疑RNN/SSM模型的有效长度。

摘要:

近期大量研究致力于拓展语言模型的有效上下文长度,目前已有多种方法、任务和基准用于衡量模型的有效记忆长度。然而,经过深入调研,我们发现现有针对模型记忆能力的评估存在局限性。本文对这些局限性进行了全面梳理,并提出一种名为遗忘曲线(forgetting curve)的新方法,用于衡量长上下文模型的记忆能力。研究表明,遗忘曲线的优势在于对测试语料和实验设置具有鲁棒性,不依赖提示词,且可适用于任意规模的模型。\n我们将遗忘曲线应用于多种模型,涵盖基于Transformer和基于RNN/SSM的架构。该测量方法为Transformer扩展技术的有效性提供了实证依据,同时也对基于RNN/SSM的模型的有效长度提出了质疑。我们还对比了该测量方法与现有基准以及常用指标在不同模型上的差异。相关代码和结果可参见https://github.com/1azybug/ForgettingCurve。

英文摘要:

Numerous recent works target to extend effective context length for language models and various methods, tasks and benchmarks exist to measure model's effective memorization length. However, through thorough investigations, we find limitations for currently existing evaluations on model's memorization capability. We provide an extensive survey for limitations in this work and propose a new method called forgetting curve to measure the memorization capability of long-context models. We show that forgetting curve has the advantage of being robust to the tested corpus and the experimental settings, of not relying on prompts and can be applied to any model size. We apply our forgetting curve to a large variety of models involving both transformer and RNN/SSM based architectures. Our measurement provides empirical evidence for the effectiveness of transformer extension techniques while raises questions for the effective length of RNN/SSM based models. We also examine the difference between our measurement and existing benchmarks as well as popular metrics for various models. Our code and results can be found at https://github.com/1azybug/ForgettingCurve.

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

↑