Cluster Purge Loss:构建用于等效变异体检测的 Transformer 嵌入结构
Cluster Purge Loss: Structuring Transformer Embeddings for Equivalent Mutants Detection
AI总结:
针对等效代码变异体检测中嵌入空间难以表达类内语义关系的问题,本文提出融合交叉熵与深度度量学习的 Cluster Purge Loss,并基于 UniXCoder 取得最先进性能。
摘要:
近期的预训练 transformer 模型在多种代码处理目标上取得了优异性能。然而,尽管为下游分类任务微调这些模型的常用方法——基于距离的方法或训练额外的分类头——能够有效优化决策边界,但它们往往无法彻底构建嵌入空间,使其反映细微的类内语义关系。等效代码变异体检测正是这类任务之一,嵌入空间的质量对模型性能至关重要。我们提出了一个新颖框架,将交叉熵损失与深度度量学习目标相结合,称为 Cluster Purge Loss。与传统方法不同,该目标专注于调整每个类别内部的细粒度差异,利用动态调整的边界,促使实例依据其与类别中心的语义等价性实现分离。采用 UniXCoder 作为基础模型,我们的方法在等效变异体检测领域展示了最先进的性能,并产生了更具可解释性的嵌入空间。
英文摘要:
Recent pre-trained transformer models achieve superior performance in various code processing objectives. However, although effective at optimizing decision boundaries, common approaches for fine-tuning them for downstream classification tasks - distance-based methods or training an additional classification head - often fail to thoroughly structure the embedding space to reflect nuanced intra-class semantic relationships. Equivalent code mutant detection is one of these tasks, where the quality of the embedding space is crucial to the performance of the models. We introduce a novel framework that integrates cross-entropy loss with a deep metric learning objective, termed Cluster Purge Loss. This objective, unlike conventional approaches, concentrates on adjusting fine-grained differences within each class, encouraging the separation of instances based on semantical equivalency to the class center using dynamically adjusted borders. Employing UniXCoder as the base model, our approach demonstrates state-of-the-art performance in the domain of equivalent mutant detection and produces a more interpretable embedding space.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。