arXiv Machine Learning

From Tokens to Files: Multi-Granularity Detection and Localization of AI-Involved Code

The paper introduces a multi-granularity framework for detecting AI involvement in code, distinguishing human-written from AI-generated or modified files and localizing the specific lines or blocks. It uses a frozen code language model with low-rank adapters trained on machine- and human-written data, producing per-token log-likelihood ratios that feed lightweight heads for line, block, and file-level predictions. Evaluated on thousands of mixed-authorship files, the method achieves high macro F1 scores and maintains low false-positive rates on real human code.

arXiv Machine Learning
Jun 5

Operation-Guided Progressive Human-to-AI Text Transformation Benchmark for Multi-Granularity AI-Text Detection

arXiv:2606. 06481v1 Announce Type: cross Abstract: As AI writing assistants become increasingly integrated into real-world drafting and revision workflows, many documents are no longer purely human-written or AI-generated, but instead result from progressive human-AI co-editing.

By Sondos Mahmoud Bsharat, Jiacheng Liu, Xiaohan Zhao, Tianjun Yao, Xinyi Shang, Yi Tang, Jiacheng Cui, Ahmed Elhagry, Salwa K. Al Khatib, Hao Li, Salman Khan, Zhiqiang Shen
arXiv AI
Oct 2

Are AI Coders Snitches? An Empirical Study of Pretraining Data Detection on Code Large Language Models

The paper investigates whether code large language models (CodeLLMs) inadvertently reproduce proprietary or sensitive code by evaluating seven state‑of‑the‑art training data detection (TDD) methods on eight CodeLLMs. It introduces CodeSnitch, a benchmark of 9,000 function‑level code samples across three languages, each labeled as included or excluded from training data, and applies mutation strategies based on the Type‑1 to Type‑4 code clone taxonomy to test TDD robustness. The study offers a systematic assessment of current TDD techniques for code and suggests directions for developing more effective detection methods.

By Tianlin Li, Yunxiang Wei, Zhiming Li, Aishan Liu, Qing Guo, Xianglong Liu, Dongning Sun, Yang Liu
arXiv AI
4d ago

How Do Developers Edit AI-Generated Code, and How Well Do LLMs Infer Their Edits? Insights from 53.6K Developer Edits

The paper introduces DECODE, a dataset of 53.6K real‑world in‑IDE edits of AI‑generated code from over 1,000 developers, and uses it to study when, why, and how developers modify such code. Findings show developers spend little effort editing and often abandon AI outputs, highlighting the need for LLMs to infer intent from edits. Experiments reveal that while frontier models can generate edits that align with developer intent, they tend to over‑edit and revert changes; fine‑tuning improves performance but does not fully close the gap.

By Jenny T. Liang, Mihika Bairathi, Wayne Chi, Ameet Talwalkar, Nishant Subramani, Valerie Chen
arXiv AI
Jul 24

Detecting LLM-Generated Tokens in Human--LLM Coauthored Text

arXiv:2607. 21458v1 Announce Type: new Abstract: The rise of human-AI collaborative writing has created a growing need for fine-grained detection methods that support localizing likely LLM-generated content in mixed-authorship documents.

By Yangjun Lu, Hongyi Zhou, Fabian Spill, Kai Ye, Chengchun Shi, Jin Zhu
Hugging Face Trending Papers
Jun 23

Detecting AI Coding Agents in Open Source: A Validated Multi-Method Census of 180 Million Repositories

Generative AI coding agents are entering the open-source supply chain, yet their diverse and often invisible traces leave their prevalence poorly understood. We introduce a multi-layered detection framework that integrates configuration-file scanning, commit-message analysis, author-identity matching, and bot-signature lookup across World of Code (180M+ Git repositories), classifying agent traces into four behavioral types.

arXiv Computation and Language
Oct 15

Likelihood Is Not Authorship: Can We Reliably Measure Human Contribution in AI-Assisted Writing?

The paper argues that current AI‑text detection methods, which estimate human contribution by measuring how predictive a user’s prompt is of the final text, can be easily manipulated. By introducing SPECIFICITY PADDING—adding random IDs to the prompt—the authors show that a title‑only request can appear far more human than one containing the article’s key ideas, and that scores can swing dramatically when the evaluator’s view of the prompt is altered. Across a range of large language models, the same documents can be scored as 85 % human or 15 % human depending solely on the prompt used, revealing a fundamental limitation of likelihood‑based metrics for reliably measuring human authorship. whyItMatters":"The study demonstrates that likelihood‑based scores cannot reliably establish human contribution without additional evidence of what the person added and how the text was produced."

By Hasan Amin, Zhuoran Lu, Ming Yin