Do LLMs Memorize Recommendation Datasets? A Preliminary Study on MovieLens-1M

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Di Palma, Dario, Merra, Felice Antonio, Sfilio, Maurizio, Anelli, Vito Walter, Narducci, Fedelucio, Di Noia, Tommaso
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909610990895104
author Di Palma, Dario
Merra, Felice Antonio
Sfilio, Maurizio
Anelli, Vito Walter
Narducci, Fedelucio
Di Noia, Tommaso
author_facet Di Palma, Dario
Merra, Felice Antonio
Sfilio, Maurizio
Anelli, Vito Walter
Narducci, Fedelucio
Di Noia, Tommaso
contents Large Language Models (LLMs) have become increasingly central to recommendation scenarios due to their remarkable natural language understanding and generation capabilities. Although significant research has explored the use of LLMs for various recommendation tasks, little effort has been dedicated to verifying whether they have memorized public recommendation dataset as part of their training data. This is undesirable because memorization reduces the generalizability of research findings, as benchmarking on memorized datasets does not guarantee generalization to unseen datasets. Furthermore, memorization can amplify biases, for example, some popular items may be recommended more frequently than others. In this work, we investigate whether LLMs have memorized public recommendation datasets. Specifically, we examine two model families (GPT and Llama) across multiple sizes, focusing on one of the most widely used dataset in recommender systems: MovieLens-1M. First, we define dataset memorization as the extent to which item attributes, user profiles, and user-item interactions can be retrieved by prompting the LLMs. Second, we analyze the impact of memorization on recommendation performance. Lastly, we examine whether memorization varies across model families and model sizes. Our results reveal that all models exhibit some degree of memorization of MovieLens-1M, and that recommendation performance is related to the extent of memorization. We have made all the code publicly available at: https://github.com/sisinflab/LLM-MemoryInspector
format Preprint
id arxiv_https___arxiv_org_abs_2505_10212
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Do LLMs Memorize Recommendation Datasets? A Preliminary Study on MovieLens-1M
Di Palma, Dario
Merra, Felice Antonio
Sfilio, Maurizio
Anelli, Vito Walter
Narducci, Fedelucio
Di Noia, Tommaso
Information Retrieval
Artificial Intelligence
Large Language Models (LLMs) have become increasingly central to recommendation scenarios due to their remarkable natural language understanding and generation capabilities. Although significant research has explored the use of LLMs for various recommendation tasks, little effort has been dedicated to verifying whether they have memorized public recommendation dataset as part of their training data. This is undesirable because memorization reduces the generalizability of research findings, as benchmarking on memorized datasets does not guarantee generalization to unseen datasets. Furthermore, memorization can amplify biases, for example, some popular items may be recommended more frequently than others. In this work, we investigate whether LLMs have memorized public recommendation datasets. Specifically, we examine two model families (GPT and Llama) across multiple sizes, focusing on one of the most widely used dataset in recommender systems: MovieLens-1M. First, we define dataset memorization as the extent to which item attributes, user profiles, and user-item interactions can be retrieved by prompting the LLMs. Second, we analyze the impact of memorization on recommendation performance. Lastly, we examine whether memorization varies across model families and model sizes. Our results reveal that all models exhibit some degree of memorization of MovieLens-1M, and that recommendation performance is related to the extent of memorization. We have made all the code publicly available at: https://github.com/sisinflab/LLM-MemoryInspector
title Do LLMs Memorize Recommendation Datasets? A Preliminary Study on MovieLens-1M
topic Information Retrieval
Artificial Intelligence
url https://arxiv.org/abs/2505.10212