cs.SEAug 13, 2026

Memorization Diagnostics for Code LLMs Should be Scale-Aware

Authors: Prateek Kumar RajputAbdoul Aziz BonkoungouAlberick Euraste DjiréXunzhu TangYewei SongIyiola Emmanuel OlatunjiEl Hacen DialloJacques Klein+1 more

Organizations: University of Luxembourg, Esch-sur-Alzette, Luxembourg.

Abstract

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.

Explore similar work

CardsList
  1. Detecting Functional Memorization in Code Language Models

    Jun 11, 2026Matthieu Meeus, Anil Ramakrishna, Matthew Grange +2Large Language Model OutputMemorization