Augmenting the Interpretability of GraphCodeBERT for Code Similarity Tasks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Martinez-Gil, Jorge
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908312561254400
author Martinez-Gil, Jorge
author_facet Martinez-Gil, Jorge
contents Assessing the degree of similarity of code fragments is crucial for ensuring software quality, but it remains challenging due to the need to capture the deeper semantic aspects of code. Traditional syntactic methods often fail to identify these connections. Recent advancements have addressed this challenge, though they frequently sacrifice interpretability. To improve this, we present an approach aiming to improve the transparency of the similarity assessment by using GraphCodeBERT, which enables the identification of semantic relationships between code fragments. This approach identifies similar code fragments and clarifies the reasons behind that identification, helping developers better understand and trust the results. The source code for our implementation is available at https://www.github.com/jorge-martinez-gil/graphcodebert-interpretability.
format Preprint
id arxiv_https___arxiv_org_abs_2410_05275
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Augmenting the Interpretability of GraphCodeBERT for Code Similarity Tasks
Martinez-Gil, Jorge
Information Retrieval
Assessing the degree of similarity of code fragments is crucial for ensuring software quality, but it remains challenging due to the need to capture the deeper semantic aspects of code. Traditional syntactic methods often fail to identify these connections. Recent advancements have addressed this challenge, though they frequently sacrifice interpretability. To improve this, we present an approach aiming to improve the transparency of the similarity assessment by using GraphCodeBERT, which enables the identification of semantic relationships between code fragments. This approach identifies similar code fragments and clarifies the reasons behind that identification, helping developers better understand and trust the results. The source code for our implementation is available at https://www.github.com/jorge-martinez-gil/graphcodebert-interpretability.
title Augmenting the Interpretability of GraphCodeBERT for Code Similarity Tasks
topic Information Retrieval
url https://arxiv.org/abs/2410.05275