paper-with-me

홈 › Papers

Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Data

2024-07-20 · Xinyi Wang, Antonis Antoniades, Yanai Elazar, Alfonso Amayuelas, Alon Albalak, Kexun Zhang, William Yang Wang

The impressive capabilities of large language models (LLMs) have sparked debate over whether these models genuinely generalize to unseen tasks or predominantly rely on memorizing vast amounts of pretraining data. To explore this issue, we introduce an extended concept of memorization, distributional memorization, which measures the correlation between the LLM output probabilities and the pretraining data frequency. To effectively capture task-specific pretraining data frequency, we propose a novel task-gram language model, which is built by counting the co-occurrence of semantically related $n$-gram pairs from task inputs and outputs in the pretraining corpus. Using the Pythia models trained on the Pile dataset, we evaluate four distinct tasks: machine translation, factual question answering, world knowledge understanding, and math reasoning. Our findings reveal varying levels of memorization, with the strongest effect observed in factual question answering. Furthermore, while model performance improves across all tasks as LLM size increases, only factual question answering shows an increase in memorization, whereas machine translation and reasoning tasks exhibit greater generalization, producing more novel outputs. This study demonstrates that memorization plays a larger role in simpler, knowledge-intensive tasks, while generalization is the key for harder, reasoning-based tasks, providing a scalable method for analyzing large pretraining corpora in greater depth. We also show the practical implications of our analysis through a novel prompt optimization algorithm.

📄 PDF Abstract BibTeX arXiv:2407.14985

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModellingMachine TranslationMathMemorizationMultiple-choiceQuestion AnsweringTranslationWorld Knowledge

Methods 이 논문이 사용한 방법론

Pythia Pythia is a suite of decoder-only autoregressive language models all trained on public data seen in the exact same order and ranging in size from 70M to 12B parameters. The…
Focus 설명 없음

Similar Papers 제목 키워드 기반

Quantifying Generalization Complexity for Large Language Models

2024-10-02 · Zhenting Qi, Hongyin Luo, Xuliang Huang, Zhuokai Zhao 외

While large language models (LLMs) have shown exceptional capabilities in understanding complex queries and performing sophisticated tasks, their generalization abilities are often deeply entangled with memorization, nec…

Memorization

Quantifying Memorization and Retriever Performance in Retrieval-Augmented Vision-Language Models

2025-02-19 · Peter Carragher, Abhinand Jha, R Raghav, Kathleen M. Carley

Large Language Models (LLMs) demonstrate remarkable capabilities in question answering (QA), but metrics for assessing their reliance on memorization versus retrieval remain underdeveloped. Moreover, while finetuned mode…

MemorizationQuestion AnsweringRetrieval

Memorization Sinks: Isolating Memorization during LLM Training

2025-07-14 · Gaurav R. Ghosal, Pratyush Maini, Aditi Raghunathan arxiv

Large language models are susceptible to memorizing repeated sequences, posing privacy and copyright concerns. A popular mitigation strategy is to remove memorized information from specific neurons post-hoc. However, suc…

Analyzing Memorization in Large Language Models through the Lens of Model Attribution

2025-01-09 · Tarun Ram Menta, Susmit Agrawal, Chirag Agarwal

Large Language Models (LLMs) are prevalent in modern applications but often memorize training data, leading to privacy breaches and copyright issues. Existing research has mainly focused on posthoc analyses, such as extr…

Memorization

Memorization Dynamics in Knowledge Distillation for Language Models

2026-01-21 · Jaydeep Borkar, Karan Chadha, Niloofar Mireshghallah, Yuchen Zhang 외 arxiv

Knowledge Distillation (KD) is increasingly adopted to transfer capabilities from large language models to smaller ones, offering significant improvements in efficiency and utility while often surpassing standard fine-tu…

Knowledge Distillation