Backend
Git History Is a Pangenome: Repetition in Code Training Corpora and What Deduplication Removes, Keeps and Misses
arXiv cs.SE0 views
arXiv:2611.27154v1 Announce Type: new Abstract: Code models are increasingly trained on the full history of software repositories, every version of every file, rather than on a single snapshot. The tools that deduplicate training data were built for snapshots, and what they do to a history has not been measured. We measured it on a pre-registered random sample of 306 public repositories, 25 mature projects, and the 12 repositories behind the SWE-bench benchmark. A history is mostly repetition: in the vocabulary of text indexing, a pangenome, one text in many near-identical variants. The history of a typical repository holds the equivalent of 19 copies of its current code, and a mature repository holds 89. The reason is that each edit changes a few lines and leaves the rest of the file in place: nine tokens in ten of a changed file already existed before the change. Exact-match deduplication removes none of these copies, since no two versions are identical. Large training pipelines already deduplicate their snapshots by grouping near-identical files and keeping one. Applied across versions, the same step brings the repetition down to about two copies. But two problems remain. The deduplicator keeps one version of each file, and in widely used implementations, including the one we measured, the rule for choosing that version ignores dates, so for half of all files the version kept for training is an old one. Sorting versions newest first before deduplicating fixes the problem at almost no cost. The second problem is benchmark answers. Benchmarks such as SWE-bench test a model on real bug fixes, and a merged fix survives in a median of 18 later versions of the files it changed. Therefore, removing benchmark fixes needs a separate step that checks every version. We turn the measurements into a short set of rules for teams that train on code history, and release the instruments and frozen outputs.
Source:https://arxiv.org/abs/2611.27154PreviousSimulation-Based Testing of RCM-Constrained Robotic Software via Task ManifoldsNextFrom 6G Capabilities to Software-Business Value: A Multivocal Review of Characteristics, Opportunities, Challenges
Related posts

When Pix lookups succeed and payments stop: rate limiting with Bucket4j and Redis
0dev.to Java
Java Encapsulation and Abstraction
0dev.to Java
I fixed Quarkus dev mode running two Maven steps in the wrong order
0dev.to Java
Building Password Guruji: Why Software Testing Matters Beyond Working Code
0dev.to Java
Backend developer internship in Nepal? Build one small API first
0dev.to Git
Structured logs and correlation IDs for Node.js job queues
0dev.to TypeScript