Efficient Metric for Distinguishing Memorization from Generalization in Large Language Models
Trishita Tiwari, Ari Trachtenberg, G. Edward Suh
ICLR 2026 submission
Abstract. This work proposes a computationally inexpensive method to measure memorization of training data in LLMs (Large Language Models) while accounting for generalization. Prior approaches such as counterfactual memorization, have been computationally expensive, and therefore only been studied in limited settings. However, our new metric, Prior-Aware memorization, does not require training any new models, and can thus be directly applied to existing LLMs trained on large amounts of data. We evaluate our metric on two pre-trained models, Llama and OPT, trained on the Common Crawl and The Pile, respectively. We discover that for the largest models, 55-90% of the sequences that would be classified as ``memorized'' in earlier models are, in fact, generalizable sequences.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…