• Home
  • Search
  • ASKDetector: An AST-Semantic and Key Features Fusion based Code Comment Mismatch Detector
  • Cite Icon1
  • https://doi.org/10.1145/3643916.3644405Copy DOI Icon

ASKDetector: An AST-Semantic and Key Features Fusion based Code Comment Mismatch Detector

  • Apr 15, 2024
  • Haiyang Yang +4 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code comments are essential for programming comprehension. Nevertheless, developers often neglect to update comments after modifying the source code. Wrong code comments may lead to bugs in the maintenance process, thus affecting the reliability of the software. So, timely comment mismatch detection is crucial for software development and maintenance. However, existing works have the following two limitations: 1) the lack of use of code structural and sequential information, and 2) the ignorance of existing associations between code and comments. In this paper, we propose a new model called ASKDetector (AST-Semantic and Key features fusion based mismatch Detector). For the first limitation, we encode code with an attention-based preorder traversal abstract syntax tree sequence to obtain both order and structural information. And CodeBERT is utilized to capture contextual semantic features further. For the second one, we encode extracted association information between the code snippets and comments to reduce the semantic gap. The correlations between the encoders are learned through a fusion layer and a multi-layer perceptron. The experimental results prove that our detector outperforms the state-of-the-art model in evaluation metrics, where our F1 and accuracy exceed an average of 3.4%.

Similar Papers
  • Conference Article
  • Citations30

API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentations

  • May 01, 2021
  • Ramin Shahbazi +2
  • Conference Article
  • Citations22

A Survey on Research of Code Comment

  • Jan 12, 2019
  • Bai Yang +2
  • Conference Article
  • Citations20

Source code retrieval on StackOverflow using LDA

  • May 01, 2015
  • Achmad Arwan +2
  • Research Article
  • Citations3

Multi-Intent Inline Code Comment Generation via Large Language Model

  • Mar 23, 2024
  • International Journal of Software Engineering and Knowledge Engineering
  • Xiaowei Zhang +4
  • Research Article
  • Citations48

A High Accuracy and Adaptive Anomaly Detection Model With Dual-Domain Graph Convolutional Network for Insider Threat Detection

  • Jan 01, 2023
  • IEEE Transactions on Information Forensics and Security
  • Ximing Li +6
  • Research Article
  • Citations6

Multilabel classification for defect prediction in software engineering

  • Mar 13, 2025
  • Scientific Reports
  • Jalaj Pachouly +4
  • Research Article

Hybrid Attention Approach for Source Code Comment Generation

  • Jul 14, 2025
  • Information Technology and Control
  • Yao Meng
  • Research Article
  • Citations1

Improving Just-In-Time Comment Updating via AST Edit Sequence

  • Oct 01, 2022
  • International Journal of Software Engineering and Knowledge Engineering
  • Jiawen Huang +4
  • Research Article
  • Citations14

GAC-SleepNet: A dual-structured sleep staging method based on graph structure and Euclidean structure

  • Sep 12, 2023
  • Computers in Biology and Medicine
  • Tianxing Li +5
  • Research Article
  • Citations49

Structure-aware protein self-supervised learning

  • Apr 03, 2023
  • Bioinformatics
  • Can (Sam) Chen +4
  • Conference Article
  • Citations93

A Sequential Neural Information Diffusion Model with Structure Attention

  • Oct 17, 2018
  • Zhitao Wang +2
  • Research Article
  • Citations4

Face Recognition System using Discrete Cosine Transform combined with MLP and RBF Neural Networks

  • Oct 01, 2012
  • International Journal of Mobile Computing and Multimedia Communications
  • Fatma Zohra Chelali +1
  • Research Article
  • Citations45

How to identify class comment types? A multi-language approach for class comment classification

  • Jul 19, 2021
  • Journal of Systems and Software
  • Pooja Rani +4
  • Conference Article
  • Citations1

Generative adversarial networks based on MLP

  • Oct 12, 2022
  • Hui Ding +3
  • Research Article
  • Citations9

Optimal software maintenance policy considering unavailable time

  • Jan 01, 2011
  • Journal of Software Maintenance and Evolution: Research and Practice
  • Cheng-Jie Xiong +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.