paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Enhancing Robustness of Code Authorship Attribution through Expert Feature Knowledge

通过专家特征知识增强代码作者归属的鲁棒性
ISSTA Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis2024匹配度 2/10 · 该论文研究代码作者归属及其对抗鲁棒性,属于安全与隐私方向,虽涉及机器学习与程序分析的交叉,但未涉及用户关注的静态分析、Agentic 程序、LLM 辅助静态分析/形式化验证、浮点程序分析或贝叶斯程序分析等核心问题。引用 2 inbox
Xiaowei Guo, Cai Fu, Juan Chen, Hongle Liu, Lansheng Han, Wenjin Li
crossref: 2026-09-12

AI 速览

一句话:提出基于专家特征知识的浅层神经网络组合框架,提升代码作者归属对抗扰动鲁棒性。

代码作者归属方法在攻击者添加微小扰动时鲁棒性较差,现有方法难以有效应对。本文将弱鲁棒性归因于数据集偏差,认为可通过调整特征学习策略来缓解。作者提出一个鲁棒的代码作者归属特征组合框架,该框架仅由简单浅层神经网络构成,并在特征提取中引入专家知识以增强可控性。实验表明,相比主流代码作者归属方法,该框架显著提升了鲁棒性:定向攻击成功率平均下降23.4%(从37.8%降至14.3%),非定向攻击成功率平均下降25.9%(从46.7%降至20.8%),同时在准确率上可达到与主流方法相当的结果。

问题
代码作者归属方法易受攻击者添加的微小扰动影响,导致准确率大幅下降,目前缺乏能有效处理此类攻击的方法。
方法
将弱鲁棒性归因于数据集偏差,提出仅含浅层神经网络结构的鲁棒特征组合框架,并通过引入专家知识增强特征提取的可控性。
评估
在定向与非定向攻击下对比主流代码作者归属方法,测量攻击成功率与归属准确率。
原文摘要(Abstract)

Code authorship attribution has been an interesting research problem for decades. Recent studies have revealed that existing methods for code authorship attribution suffer from weak robustness. Under the influence of small perturbations added by the attacker, the accuracy of the method will be greatly reduced. As of now, there is no code authorship attribution method capable of effectively handling such attacks. In this paper, we attribute the weak robustness of code authorship attribution methods to dataset bias and argue that this bias can be mitigated through adjustments to the feature learning strategy. We first propose a robust code authorship attribution feature combination framework, which is composed of only simple shallow neural network structures, and introduces controllability for the framework in the feature extraction by incorporating expert knowledge. Experiments show that the framework has significantly improved robustness over mainstream code authorship attribution methods, with an average drop of 23.4% (from 37.8% to 14.3%) in the success rate of targeted attacks and 25.9% (from 46.7% to 20.8%) in the success rate of untargeted attacks. At the same time, it can also achieve results comparable to mainstream code authorship attribution methods in terms of accuracy.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8546,
  title = {Enhancing Robustness of Code Authorship Attribution through Expert Feature Knowledge},
  author = {Xiaowei Guo and Cai Fu and Juan Chen and Hongle Liu and Lansheng Han and Wenjin Li},
  booktitle = {ISSTA},
  year = {2024},
  doi = {10.1145/3650212.3652121}
}