Memorization Diagnostics for Code LLMs Should be Scale-Aware
Not on the map. Why?
Abstract (arXiv)
The extent to which large language models for code rely on memorization over genuine understanding remains highly debated. While current literature frequently reports widespread memorization, evaluating the underlying probing techniques across dense architectures reveals a severe breakdown in their utility at scale. Traditional encoder-style probes using perturbations such as synonym fuzzing or dead-code insertion struggle to expose memorization in scaled models, even on known-contaminated benchmarks, and decoder-style probes that rely on log probabilities show similar performance degradation. The specific mode of failure for these probes, particularly why such techniques disrupt smaller models but fail to impact larger ones, motivates us to untangle representation load from memorization rather than treating them as a single phenomenon. By applying invertible mathematical transforms to numeric problems, we isolate these two factors and reveal that scaled encoders successfully absorb substantial representation load while still converging on the correct family of solutions. In practical software engineering, this ability to adapt to varying surface forms is what truly matters for usability and generalizability in LLM and agentic applications. Whether a specific solution was seen during training becomes a much less pressing question because although memorization inflates scores on contaminated benchmarks, factoring out representation load makes it debatable how much we should truly care if a functional answer was originally memorized. Future evaluations must therefore be built around separating these phenomena rather than relying on methodologies that quietly entangle them.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 45 of its 52 references that are in the map. First posted on arXiv 13 Aug 2026.
Builds on
45 of 52 references.
References · 45
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
33 more
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 348
- 2023Studying Large Language Model Generalization with Influence Functionscited by 326
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 258
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
- 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2025ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systemscited by 190
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
- 2024ARC Prize 2024: Technical Reportcited by 104
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
- 2025SWE-bench Goes Live!cited by 80
- 2020Metamorphic Testing: A New Approach for Generating Next Test Casescited by 75
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 65
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
- 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 54
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2025The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reasoncited by 49
- 2023Data Contamination Quiz: A Tool to Detect and Estimate Contamination in Large Language Modelscited by 47
- 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 40
- 2024On Leakage of Code Generation Evaluation Datasetscited by 32
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 20
- 2025BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?cited by 12
- 2024Decoding Secret Memorization in Code LLMs Through Token-Level Characterizationcited by 9
- 2025Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysiscited by 5
- 2026Learned or Memorized ? Quantifying Memorization Advantage in Code LLMscited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Detecting Functional Memorization in Code Language Models
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewriting
- 2025Mechanistic Interpretability of Code Correctness in LLMs via Sparse Autoencoders
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation
- 2025Analyzing Memorization in Large Language Models through the Lens of Model Attribution
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agents
- 2024On the Compression of Language Models for Code: An Empirical Study on CodeBERT
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval