Dream at SemEval-2026 Task 13: SALSA用于单遍机器生成代码检测
Dream at SemEval-2026 Task 13: SALSA for Single-Pass Machine-Generated Code Detection
AI总结:
提出SALSA方法,通过自回归语言模型单遍结构化分类,将每个类别映射到专用输出token,结合平衡采样和参数高效微调,在机器生成代码检测任务上达到F1=0.789,远超CodeBERT基线。
摘要:
大型语言模型已经改变了代码生成,引发了对作者身份、评估完整性和软件信任的担忧。SemEval-2026 Task 13 Subtask A将检测操作化为代码片段的二分类,特别强调跨未见编程语言和应用领域的分布外(OOD)泛化。我们提出了一种SALSA风格的公式,即单遍自回归LLM结构化分类,将每个类别映射到一个专用输出token,并训练模型在结构化响应中发出单token标签。该公式不依赖手工设计的特征或决策规则,而是将作者身份决策委托给模型。为了提高OOD鲁棒性,我们将跨语言的平衡采样与参数高效微调和保守训练(低学习率、单周期)相结合,以避免过拟合训练域。我们的最佳系统在官方排行榜上实现了OOD F1=0.789,大幅优于CodeBERT基线(F1=0.305)。
英文摘要:
Large language models have transformed code generation, raising concerns around authorship, assessment integrity, and software trust. SemEval-2026 Task 13 Subtask A operationalizes detection as binary classification over code snippets, with a particular emphasis on out-of-distribution (OOD) generalization across unseen programming languages and application domains. We propose a SALSA-style formulation, Single-pass Autoregressive LLM Structured Classification, that maps each class to a dedicated output token and trains the model to emit a single-token label in a structured response. Rather than engineering hand-crafted features or decision rules, this formulation delegates the authorship decision to the model. To improve OOD robustness, we combine balanced sampling across languages with parameter-efficient fine-tuning and conservative training (low learning rate, single epoch) to avoid overfitting to the training domain. Our best system achieves OOD $F_1 = 0.789$ on the official leaderboard, substantially outperforming the CodeBERT baseline ($F_1 = 0.305$).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。