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

Xinyu Liu, Runsong Zhao, Pengcheng Huang, Chunyang Xiao, Bei Li +3 more
10/7/2024
cs.CL

No official code found. Best implementation: NiuTrans/ForgettingCurve (24 stars, last commit 2024-10-15).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

A benchmark for testing memorization abilities of LMs

242Shell, PythonApr 12, 20242 years ago

Similar Papers

Cite this paper

@article{liu2024forgetting,
  title  = {Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Models},
  author = {Xinyu Liu and Runsong Zhao and Pengcheng Huang and Chunyang Xiao and Bei Li and Jingang Wang and Tong Xiao and Jingbo Zhu},
  year   = {2024},
  eprint = {2410.04727},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04727v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04727.svg)](https://codeofpaper.com/paper/2410.04727)

Discussion