paper-with-me

홈 › Papers

Code Comment Inconsistency Detection with BERT and Longformer

2022-07-29 · Theo Steiner, Rui Zhang

Comments, or natural language descriptions of source code, are standard practice among software developers. By communicating important aspects of the code such as functionality and usage, comments help with software project maintenance. However, when the code is modified without an accompanying correction to the comment, an inconsistency between the comment and code can arise, which opens up the possibility for developer confusion and bugs. In this paper, we propose two models based on BERT (Devlin et al., 2019) and Longformer (Beltagy et al., 2020) to detect such inconsistencies in a natural language inference (NLI) context. Through an evaluation on a previously established corpus of comment-method pairs both during and after code changes, we demonstrate that our models outperform multiple baselines and yield comparable results to the state-of-the-art models that exclude linguistic and lexical features. We further discuss ideas for future research in using pretrained language models for both inconsistency detection and automatic comment updating.

📄 PDF Abstract BibTeX arXiv:2207.14444

Code (1)

theo2023/coco-bert-longformer 공식 구현 pytorch

Tasks

Natural Language Inference

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
How do I make a claim with Expedia?*Make FastClaimService How do I make a claim with Expedia? To make a claim with Expedia, contact their support team at +1(888) (829) (0881) OR +1(805) (330) (4056), or use the Help Center to submit…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
AdamW AdamW is a stochastic optimization method that modifies the typical implementation of weight decay in Adam, by decoupling [weight…

Similar Papers 제목 키워드 기반

Longformer for MS MARCO Document Re-ranking Task

2020-09-20 · Ivan Sekulić, Amir Soleimani, Mohammad Aliannejadi, Fabio Crestani

Two step document ranking, where the initial retrieval is done by a classical information retrieval method, followed by neural re-ranking model, is the new standard. The best performance is achieved by using transformer-…

Document RankingInformation RetrievalRe-RankingRetrieval

Longformer: The Long-Document Transformer

2020-04-10 · Iz Beltagy, Matthew E. Peters, Arman Cohan

Transformer-based models are unable to process long sequences due to their self-attention operation, which scales quadratically with the sequence length. To address this limitation, we introduce the Longformer with an at…

DecoderLanguage ModelingLanguage ModellingQuestion Answering+1

STANKER: Stacking Network based on Level-grained Attention-masked BERT for Rumor Detection on Social Media

2021-11-01 · EMNLP 2021 11 · Dongning Rao, Xin Miao, Zhihua Jiang, Ran Li

Rumor detection on social media puts pre-trained language models (LMs), such as BERT, and auxiliary features, such as comments, into use. However, on the one hand, rumor detection datasets in Chinese companies with comme…

Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequences

2022-01-27 · Yikuan Li, Ramsey M. Wehbe, Faraz S. Ahmad, Hanyin Wang 외

Transformers-based models, such as BERT, have dramatically improved the performance for various natural language processing tasks. The clinical knowledge enriched model, namely ClinicalBERT, also achieved state-of-the-ar…

Clinical KnowledgeDocument ClassificationFew-Shot Learningnamed-entity-recognition+5

Deep Just-In-Time Inconsistency Detection Between Comments and Source Code

2020-10-04 · Sheena Panthaplackel, Junyi Jessy Li, Milos Gligoric, Raymond J. Mooney

Natural language comments convey key aspects of source code such as implementation, usage, and pre- and post-conditions. Failure to update comments accordingly when the corresponding code is modified introduces inconsist…