面向在混淆下的设计模式检测基准测试:重现和评估基于注意力的检测方法
Towards Benchmarking Design Pattern Detection Under Obfuscation: Reproducing and Evaluating Attention-Based Detection Method
AI总结:
本文通过重现和评估基于注意力的设计模式检测方法,揭示其在混淆下的语义鲁棒性问题,并提出混淆语料库作为评估设计模式检测器语义泛化能力的基准。
摘要:
本文研究了基于注意力的分类器在设计模式检测中的语义鲁棒性,特别是其对结构和行为语义的依赖性。我们重现了DPDAtt,一种基于学习分类器的设计模式检测方法,并在混淆下评估其性能。为此,我们整理了DPDAtt语料库的混淆版本,其中代码中的名称标识符(如类名、方法名等)和字符串字面量(如打印语句和注释块)被替换,同时保持控制流、继承和逻辑。我们的发现表明,DPDAtt中的训练分类器显著依赖于表面语法特征,当这些提示通过混淆被移除时,会导致显著的误分类。本工作强调了需要更鲁棒的检测工具,能够捕捉源代码中的深层语义意义。我们提出我们整理的混淆语料库(包含34个Java源文件)作为可重用的证明概念基准,用于评估最先进的设计模式检测器在真正语义泛化能力上的表现。
英文摘要:
This paper investigates the semantic robustness of attention-based classifiers for design pattern detection, particularly focusing on their reliance on structural and behavioral semantics. We reproduce the DPDAtt, an attention-based design pattern detection approach using learning-based classifiers, and evaluate its performance under obfuscation. To this end, we curate an obfuscated version of the DPDAtt Corpus, where the name identifiers in code such as class names, method names, etc., and string literals like print statements and comment blocks are replaced while preserving control flow, inheritance, and logic. Our findings reveal that these trained classifiers in DPDAtt depend significantly on superficial syntactic features, leading to substantial misclassification when such cues are removed through obfuscation. This work highlights the need for more robust detection tools capable of capturing deeper semantic meanings in source code. We propose our curated Obfuscated corpus (containing 34 Java source files) as a reusable proof-of-concept benchmark for evaluating state-of-the-art design pattern detectors on their true semantic generalization capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。