arXiv Machine Learning

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

arXiv AI
Sep 17

GVD: Governed Versioning and Deduplication for Document Repositories

GVD (Governed Versioning and Deduplication) is a framework that unifies cross‑document version linking with rule‑level conflict resolution under an auditable update policy. It assigns incoming documents to version families via bidirectional rule alignment, then compares their rules against family memory to detect duplicates, contradictions, asymmetric refinements, and new knowledge, using Counterfactual Span Probing (CSP) to correct neutral misclassifications. In a test on 120 enterprise documents across 59 version families, GVD achieved an F1 of 0.97 for version‑family construction and 0.94 for rule‑level consistency, with CSP improving rule consistency from 0.90 to 0.94.

By Mohammadreza Sediqin, Shivali Dalmia, Sumukha Thoppanahalli, Abhishek Mukherji
arXiv AI
Aug 24

Temporal Validity on Real Software Histories: Eliminating Stale-Fact Errors in Code-Assistant Memory over GitHub Fixes

The paper evaluates a deterministic supersession memory, MemStrata, for retrieval‑augmented generation (RAG) systems on real software history. Using 707 GitHub issues, the authors extracted 130 clean atomic state transitions where a single value changes from pre‑fix to post‑fix. MemStrata achieved 0.91 answer accuracy versus 0.57–0.59 for standard RAG, eliminating stale‑fact errors that RAG returned 36–38% of the time, while maintaining comparable retrieval latency.

By Neeraj Yadav
arXiv AI
Oct 27

Skip the Compressor: Coding Agents Fix More Issues When They Pick Whole Files

The paper investigates how coding agents handle large repositories when their context window is limited. It compares three strategies—prompt compression, code retrieval, and a simple file selector called CQ2-CARE—finding that allocating the token budget to selecting whole files verbatim enables the agent to fix more issues. CQ2-CARE outperforms both compressors and retrievers on a benchmark of 300 recent software‑engineering problems, achieving higher success rates with GPT‑5.6 and Claude Opus 5.

By Xiaocong Yang, Rishit Chatterjee, Himanshu Udupi, Vikram Ramavarapu, ChengXiang Zhai
arXiv AI
Sep 10

Diffs vs. Whole Files: An Empirical Comparison of Iterative Edit-Based and Direct Generation for Flutter/Dart Code Models

The paper compares two output regimes for code-editing language models: direct generation, where the model outputs the entire modified file, and iterative diff-based generation, where the model emits a sequence of localized edits. Experiments on Flutter/Dart tasks show that direct generation consistently outperforms diff-based generation across metrics such as compilation success, token efficiency, and quality judgments. However, diff-based generation can be competitive for short, spatially localized edits, particularly in refactoring and error-handling tasks with few edit steps.

By Andrej Andrejev
arXiv AI
Oct 28

Stratum: Repository Memory for Coding Agents Beyond the Context Window

The paper introduces Stratum, a repository memory system designed to give coding agents persistent, experience-aware memory beyond the limits of their context windows. It argues that coding agents suffer from a memory-architecture problem, not just context length, and presents three empirical findings from real repositories that motivate a tiered memory approach. Stratum stores knowledge as indexed text rather than in the model’s KV cache, enabling fast retrieval (1.7 ms median for a million nodes) and significantly improving root-cause identification in multi‑session bug‑fix experiments.

By Yuvraj Sehgal, Mahsa Panahandeh, Naser Ezzati-Jivan