HybridCodeAuthorship: A Benchmark Dataset for Line-Level Code Authorship Detection

26d ago · Global · primary source: export.arxiv.org

A new benchmark dataset called HybridCodeAuthorship has been introduced to evaluate algorithms that detect AI-generated code within industry codebases, according to a paper posted to arXiv on June 10, 2026 [1]. The dataset is designed to address a gap in existing benchmarks, which the authors say typically rely on academic, LeetCode-style problems and assume a code snippet is entirely human- or AI-authored [1]. That approach does not reflect the mixed authorship common in professional software environments where AI code assistants are used [1]. HybridCodeAuthorship instead simulates authentic use by providing Python files with interleaved human- and AI-authored lines [1]. The construction pipeline draws on CodeSearchNet, a large collection of links to open-source repositories on GitHub [1]. High-quality labeled datasets are a critical driver of progress in machine learning, though they are often difficult and expensive to produce [3]. The researchers benchmarked two state-of-the-art detection algorithms on the new dataset at both the line and chunk levels [1]. The top-performing system, AIGCode Detector, achieved an F1 score of 0.48 on chunk-level detection and 0.56 on line-level detection [1]. These scores indicate the task remains challenging for current methods [1]. The work arrives as large language models are increasingly embedded in software engineering workflows, powering tools for code completion, code understanding, and broader development tasks [7]. The rapid adoption of such models has also raised security concerns. One study found that model-sharing platforms often rely on unsafe defaults when executing custom code, creating risks for developers who load pre-trained models [5]. Another line of research has identified data poisoning as a potential threat to AI code generators, where malicious training samples could induce the generation of vulnerable code [8]. By providing a benchmark that mirrors real-world codebases, HybridCodeAuthorship offers a new tool for researchers working on fine-grained detection of AI-authored code, a capability the authors describe as important for risk management and productivity analysis [1].

research-paperbenchmarktool-releasecommentary

Background sources we checked (10)
  • arxiv.org ↗ Thanks to the rapid adoption of AI code assistants powered by large language models (LLMs), industry codebases are, increasingly, a hybrid of AI- and human-authored code. For risk management and productivity analysis purposes, it is crucial to enable fine-grained location detecti…
  • en.wikipedia.org ↗ These datasets are used in machine learning (ML) research and have been cited in peer-reviewed academic journals. Datasets are an integral part of the field of machine learning. Major advances in this field can result from advances in learning algorithms (such as deep learning), …
  • en.wikipedia.org ↗ In machine learning, deep learning (DL) focuses on utilizing multilayered neural networks to perform tasks such as classification, regression, and representation learning. The field takes inspiration from biological neuroscience and revolves around stacking artificial neurons int…
  • arxiv.org ↗ Model-sharing platforms, such as Hugging Face, ModelScope, and OpenCSG, have become central to modern machine learning development, enabling developers to share, load, and fine-tune pre-trained models with minimal effort. However, the flexibility of these ecosystems introduces a …
  • arxiv.org ↗ Attention mechanisms are at the core of modern neural architectures, powering systems ranging from ChatGPT to autonomous vehicles and driving a major economic impact. However, high-profile failures, such as ChatGPT's nonsensical outputs or Google's suspension of Gemini's image ge…
  • arxiv.org ↗ Foundation models (FM), such as large language models (LLMs), which are large-scale machine learning (ML) models, have demonstrated remarkable adaptability in various downstream software engineering (SE) tasks, such as code completion, code understanding, and software development…
  • arxiv.org ↗ AI-based code generators have gained a fundamental role in assisting developers in writing software starting from natural language (NL). However, since these large language models are trained on massive volumes of data collected from unreliable online sources (e.g., GitHub, Huggi…
  • en.wikipedia.org ↗ These lists include projects which release their software under open-source licenses and are related to artificial intelligence projects. These include software libraries, frameworks, platforms, and tools used for machine learning, deep learning, natural language processing, comp…
  • en.wikipedia.org ↗ Stable Diffusion is a deep learning, text-to-image model released in 2022 based on diffusion techniques. The generative artificial intelligence technology is the premier product of Stability AI and is considered to be a part of the ongoing AI boom. It is primarily used to generat…
  • en.wikipedia.org ↗ IBM Granite is a series of decoder-only AI foundation models created by IBM. It was announced on September 7, 2023, and an initial paper was published 4 days later. Initially intended for use in the IBM's cloud-based data and generative AI platform Watsonx along with other models…

Sources covering this (2)

Spot something wrong? Report an issue