大模型
arxiv.org ·
风格而非自我:表面线索解释大语言模型的零样本代码归属
该 arXiv 预印本测试商业 LLM 能否零样本识别自己生成的代码。五个模型在 MBPP、HumanEval、DS-1000 上生成解答,另七个模型在 MBPP 上生成,随后在四类评估任务中充当评判者。单解归属任务中 15 个模型-基准组合的平衡准确率为 49-58%,原始准确率 38-67% 主要反映模型声称作者身份的倾向;成对任务中 14 个评估者-对手组合的准确率与评估者解答更长这一因素相关性达 r=0.93。去除 docstring、注释、类型标注和局部变量名的规则化归一化保持 Pass@1,使 12 项重测中的 10 项回到随机水平,另两项仍受长度差异影响,Claude Haiku 的自我偏好也消失。作者建议报告平衡准确率、启发式基线和标签一致性。
AI推荐理由 arXiv 预印本,摘要给出明确实验设计:15 个模型-基准组合在单解归属任务上平衡准确率仅 49-58%,成对任务准确率与解答长度相关性 r=0.93,去除 docstring、注释、类型标注和局部变量名后 12 项重测中 10 项回到随机水平,Claude Haiku 的自我偏好也消失。这些具体数字和消融结果对 LLM 自我识别、模型互评共谋风险有直接证据价值,并建议报告平衡准确率与启发式基线。局限是仅预印本、未经同行评审,且未提供代码或复现细节。
72
正文
Computer Science > Artificial Intelligence
arXiv:2609.30048 (cs)
[Submitted on 24 Sep 2026]
Title:Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models
Authors:Ehsan Barkhordar, Surendrabikram Thapa
View a PDF of the paper titled Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models, by Ehsan Barkhordar and 1 other authors
View PDF
HTML (experimental)
Abstract:If a language model can recognize code it wrote, it may favor that code as a judge, and instances of one model monitoring each other could collude. We test this zero-shot on current commercial models. Five LLMs generate solutions to MBPP, HumanEval, and DS-1000, seven more to MBPP, and models act as evaluators in four tasks: picking their own solution from a pair, judging whether a single solution is their own, identifying which of two solutions a named model wrote, and judging quality blind. In the single-solution task, balanced accuracy is 49-58% for all 15 model-benchmark combinations, while raw accuracy (38-67%) mostly reflects how readily a model claims authorship. In the pairwise task, accuracy across 14 evaluator-opponent combinations correlates at r=0.93 with how often the evaluator's solution is longer. Attribution to a named model succeeds on some pairs and is consistently inverted on others. A rule-based normalization that strips docstrings, comments, type hints, and local names preserves Pass@1 and leaves ten of twelve re-tested results at chance; the other two follow a length difference it leaves, although a trained classifier still separates most normalized pairs. Claude Haiku's self-preference also disappears. We recommend reporting balanced accuracy, heuristic baselines, and label consistency.
Comments:
Subjects:
Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Software Engineering (cs.SE)
Cite as:
arXiv:2609.30048 [cs.AI]
(or
arXiv:2609.30048v1 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2609.30048
Focus to learn more
arXiv-issued DOI via DataCite (pending registration)
Submission history
From: Ehsan Barkhordar [view email]
[v1]
Thu, 24 Sep 2026 16:11:21 UTC (60 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models, by Ehsan Barkhordar and 1 other authors
View PDF
HTML (experimental)
TeX Source
view license
Current browse context:
cs.AI
new
|
recent
| 2026-09
Change to browse by:
cs
cs.CL
cs.SE
References & Citations
NASA ADS
Google Scholar
Semantic Scholar
export BibTeX citation
Loading...
BibTeX formatted citation
×
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? |
Disable MathJax (What is MathJax?)