Zero-Shot Attribution for Large Language Models: A Distribution Testing Approach
Cl\'ement L. Canonne, Yash Pote, Uddalok Sarkar

TL;DR
This paper introduces Anubis, a zero-shot tool for attributing code samples to specific large language models by framing the problem as distribution testing, achieving high accuracy with limited samples.
Contribution
The paper presents a novel distribution testing approach for zero-shot attribution of code generated by LLMs, leveraging density estimates and hypothesis testing.
Findings
Achieves AUROC ≥ 0.9 in distinguishing LLMs with ~2000 samples
Uses distribution testing to attribute code samples accurately
Works effectively with limited data and common LLM access methods
Abstract
A growing fraction of all code is sampled from Large Language Models (LLMs). We investigate the problem of attributing code generated by language models using hypothesis testing to leverage established techniques and guarantees. Given a set of samples and a suspect model , our goal is to assess the likelihood of originating from . Due to the curse of dimensionality, this is intractable when only samples from the LLM are given: to circumvent this, we use both samples and density estimates from the LLM, a form of access commonly available. We introduce , a zero-shot attribution tool that frames attribution as a distribution testing problem. Our experiments on a benchmark of code samples show that achieves high AUROC scores ( ) when distinguishing between LLMs like DeepSeek-Coder, CodeGemma, and Stable-Code…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Data Quality and Management · Explainable Artificial Intelligence (XAI)
MethodsSparse Evolutionary Training
