arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.20197cs.LGcs.AIcs.SE
收藏

大型语言模型的零样本归因:一种分布测试方法

Zero-Shot Attribution for Large Language Models: A Distribution Testing Approach

University of Sydney(悉尼大学);National University of Singapore(新加坡国立大学);Indian Statistical Institute(印度统计研究所)

Clément L. Canonne, Yash Pote, Uddalok Sarkar

AI总结:

研究针对大型语言模型生成代码的零样本归因问题,提出基于分布测试的归因工具Anubis,利用样本与密度估计有效克服维度灾难,在基准实验中仅需约2000个样本即可高AUROC区分多种LLM。

摘要:

当前越来越多的代码是从大型语言模型(LLMs)中采样生成的。我们研究使用假设检验对语言模型生成的代码进行归因的问题,以利用现有的技术和保证。给定一组样本$S$和一个嫌疑模型$\mathcal{L}^*$,我们的目标是评估$S$源自$\mathcal{L}^*$的可能性。由于维度灾难,当仅给定LLM的样本时该问题难以处理:为规避此问题,我们同时使用LLM的样本和密度估计,这是一种通常可用的访问形式。我们引入了$\mathsf{Anubis}$,这是一个将归因构建为分布测试问题的零样本归因工具。我们在代码样本基准上的实验表明,当仅使用约2000个样本来区分DeepSeek-Coder、CodeGemma和Stable-Code等LLM时,$\mathsf{Anubis}$实现了高AUROC分数($\ge0.9$)。

英文摘要:

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 $S$ and a suspect model $\mathcal{L}^*$, our goal is to assess the likelihood of $S$ originating from $\mathcal{L}^*$. 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 $\mathsf{Anubis}$, a zero-shot attribution tool that frames attribution as a distribution testing problem. Our experiments on a benchmark of code samples show that $\mathsf{Anubis}$ achieves high AUROC scores ( $\ge0.9$) when distinguishing between LLMs like DeepSeek-Coder, CodeGemma, and Stable-Code using only $\approx 2000$ samples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑