Memorization Diagnostics for Code LLMs Should be Scale-Aware

Prateek Kumar Rajput, Abdoul Aziz Bonkoungou, Alberick Euraste Djiré, Xunzhu Tang, Yewei Song +4 more
8/13/2026
cs.SEcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rajput2026memorization,
  title  = {Memorization Diagnostics for Code LLMs Should be Scale-Aware},
  author = {Prateek Kumar Rajput and Abdoul Aziz Bonkoungou and Alberick Euraste Djiré and Xunzhu Tang and Yewei Song and Iyiola Emmanuel Olatunji and El Hacen Diallo and Jacques Klein and Tegawendé F. Bissyandé},
  year   = {2026},
  eprint = {2608.12771},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.12771v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.12771.svg)](https://codeofpaper.com/paper/2608.12771)

Discussion