Cluster Purge Loss: Structuring Transformer Embeddings for Equivalent Mutants Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Danilov, Adelaide, Nourbakhsh, Aria, Schommer, Christoph
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918105285918720
author Danilov, Adelaide
Nourbakhsh, Aria
Schommer, Christoph
author_facet Danilov, Adelaide
Nourbakhsh, Aria
Schommer, Christoph
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_20078
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Cluster Purge Loss: Structuring Transformer Embeddings for Equivalent Mutants Detection
Danilov, Adelaide
Nourbakhsh, Aria
Schommer, Christoph
Machine Learning
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.
title Cluster Purge Loss: Structuring Transformer Embeddings for Equivalent Mutants Detection
topic Machine Learning
url https://arxiv.org/abs/2507.20078