English

MACAA: Belief-Revision Multi-Agent Reasoning for Code Authorship Verification

Software Engineering 2026-05-18 v3

Abstract

Code authorship attribution (CAA) supports software forensics, plagiarism detection, and intellectual property protection. However, existing supervised CAA approaches suffer from scarce training data and closed-world assumptions: they require sufficient labeled code from fixed candidate-author sets, making training difficult in low-data cases and predictions unreliable for open-world test pairs with unseen samples, or heterogeneous code pairs. Large language models remove task-specific training, but direct prompting depends on costly expert-designed prompts, can hallucinate over complex heterogeneous code pairs, and rarely yields auditable evidence traces. We propose MACAA, a belief-revision-based multi-agent framework for training-free code authorship verification. MACAA comprises a Coordinator and four Expert Agents analyzing layout, lexical, syntactic, and programming-pattern evidence. The Coordinator gathers expert signals for expansion, discounts unreliable evidence through contraction, and resolves conflicts through revision to preserve belief consistency, replacing direct LLM judgment with auditable hypothesis refinement. MACAA achieves 89.15\% F1 on same-language benchmarks and 80.00\% on mixed cross-language pairs, outperforming the baselines overall in both same-language and cross-language evaluations.

Keywords

Cite

@article{arxiv.2605.09421,
  title  = {MACAA: Belief-Revision Multi-Agent Reasoning for Code Authorship Verification},
  author = {Jingwei Ye and Zhi Wang and Xin Li and Cong Gao and Chenbin Su and Jieshuai Yang and Jianfei Tang and Ge Chu},
  journal= {arXiv preprint arXiv:2605.09421},
  year   = {2026}
}
R2 v1 2026-07-01T13:01:30.853Z