Searcharxiv⌕ Search

arXiv · 2611.27154

Git History Is a Pangenome: Repetition in Code Training Corpora and What Deduplication Removes, Keeps and Misses

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Saurabh Chopra. 2026-11-20. Git History Is a Pangenome: Repetition in Code Training Corpora and What Deduplication Removes, Keeps and Misses. https://searcharxiv.com/abs/2611.27154

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Searcharxiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Exploration Structure in LLM Agents for Multi-File Change Localization

Fixing an issue starts with finding the files to change, and most benchmark issues touch several. LLM agents for this task increasingly add structure, such as specialized tools, multiple agents, or code summaries. We ask which of this structure matters when the model is small. We build a coordinator agent with repository tools that limit their output and a reusable registry of subsystem-scoped domain agents. We compare six configurations, each adding structure to the previous one. They are the model alone, a single agent with a Python REPL, a coordinator with only the REPL, the previous structure plus repository tools, then plus the registry map, and finally plus consultation of the domain agents. We also run four published localizers with the same model, two larger-model references, and five non-LLM rankers on 105 multi-file issues from three Python repositories, in audited single-commit checkouts. Most of the gain comes from letting the model explore the repository over many turns. Pooled source-file F1 rises from 0.199 for the model alone to 0.677 for the REPL-only coordinator. The repository tools add a small, non-significant gain, and the registry does not help, lowering pooled F1 by 0.031. A small model in a plain multi-turn agent loop (0.695) thus exceeds all four published localizers (best 0.586), while Codex with a larger model reaches 0.751. For a small model, the agent loop matters more than added agents. New files and narrative documentation remain largely missed. We release the benchmark, predictions, tool logs, and scripts.

cs.SE↗

Towards Energy-Efficient Large Language Model Inference: A Systematic Literature Review

Large language model (LLM) inference is becoming a significant contributor to both operational cost and environmental impact in modern AI deployments. Energy consumption during inference depends on multiple factors across the pipeline, including input and output length, model design, deployment-level decisions, and hardware characteristics. This paper presents a systematic literature review (SLR) of energy-efficient and sustainable LLM inference. We analyze selected primary studies to identify techniques proposed to reduce energy consumption across different levels of the inference pipeline, including input, model, deployment, and hardware. We further examine the trade-offs between energy consumption, latency, and accuracy, highlighting inconsistencies in how these relationships are evaluated. In addition, we review the tools, datasets, and metrics used for energy measurement, covering both software-based and hardware-based approaches. This survey provides a comprehensive synthesis of existing literature, offering insights into the effectiveness of different techniques in terms of energy savings and their associated impact on accuracy. It highlights the trade-offs between energy efficiency and performance, and identifies limitations in current evaluation practices. Overall, this work aims to support future research toward energy-efficient and environmentally responsible deployment of LLMs. Our repository of relevant references is maintained on GitHub.

cs.SE↗

Can Coding Agents Write and Transpile Unit Tests

Coding assistants built on Large Language Models (LLMs) have become a staple of modern software development, increasingly trusted to execute workflows and modernize code end-to-end. Much of this trust rests on passing tests, which are often written by the coding agents themselves. In this work, we examine the ability of these agents to both write reliable tests and translate them between programming languages. We benchmark three popular coding agents, each evaluated with a native frontier model and high reasoning effort. Verifying across a broad suite of metrics, we find that coding agents far exceed human written suites on traditional measures of coverage. This advantage, however, is uneven: agent test quality degrades sharply with project size, and much of the advantage lies in a greater number of written tests. We also show that agentic test translation---while seemingly strong in aggregate---remains inconsistent and unreliable.

cs.SE↗