paper-with-me

Papers

Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study

2023-04-24 · Tim van Dam, Maliheh Izadi, Arie van Deursen

Transformer-based pre-trained models have recently achieved great results in solving many software engineering tasks including automatic code completion which is a staple in a developer's toolkit. While many have striven to improve the code-understanding abilities of such models, the opposite -- making the code easier to understand -- has not been properly investigated. In this study, we aim to answer whether making code easier to understand through using contextual data improves the performance of pre-trained code language models for the task of code completion. We consider type annotations and comments as two common forms of additional contextual information that often help developers understand code better. For the experiments, we study code completion in two granularity levels; token and line completion and take three recent and large-scale language models for source code: UniXcoder, CodeGPT, and InCoder with five evaluation metrics. Finally, we perform the Wilcoxon Signed Rank test to gauge significance and measure the effect size. Contrary to our expectations, all models perform better if type annotations are removed (albeit the effect sizes are small). For comments, we find that the models perform better in the presence of multi-line comments (again with small effect sizes). Based on our observations, we recommend making proper design choices when training, fine-tuning, or simply selecting such models given the intended data and application. Better evaluations and multi-modal techniques can also be further investigated to improve the practicality and accuracy of auto-completions.

📄 PDF Abstract BibTeX arXiv:2304.12269

Code (1)

aise-tudelft/contextualdatacodecompletion 공식 구현 pytorch

Tasks

Code Completion

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

Enhancing Neural Code Representation with Additional Context

2025-10-14 · Huy Nguyen, Christoph Treude, Patanamon Thongtanunam arxiv

Automated program comprehension underpins many software engineering tasks, from code summarisation to clone detection. Recent deep learning models achieve strong results but typically rely on source code alone, overlooki…

Enriching GNNs with Text Contextual Representations for Detecting Disinformation Campaigns on Social Media

2024-10-24 · Bruno Croso Cunha da Silva, Thomas Palmeira Ferraz, Roseli de Deus Lopes

Disinformation on social media poses both societal and technical challenges, requiring robust detection systems. While previous studies have integrated textual information into propagation networks, they have yet to full…

Data AugmentationFake News Detection

MemCam: Memory-Augmented Camera Control for Consistent Video Generation

2026-03-27 · Xinhang Gao, Junlin Guan, Shuhan Luo, Wenzhuo Li 외 arxiv

Interactive video generation has significant potential for scene simulation and video creation. However, existing methods often struggle with maintaining scene consistency during long video generation under dynamic camer…

Video Generation

Confusion2Vec: Towards Enriching Vector Space Word Representations with Representational Ambiguities

2018-11-08 · Prashanth Gurunath Shivakumar, Panayiotis Georgiou

Word vector representations are a crucial part of Natural Language Processing (NLP) and Human Computer Interaction. In this paper, we propose a novel word vector representation, Confusion2Vec, motivated from the human sp…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)Machine Translationspeech-recognition+2

BioBERTpt - A Portuguese Neural Language Model for Clinical Named Entity Recognition

2020-11-01 · EMNLP (ClinicalNLP) 2020 11 · Elisa Terumi Rubel Schneider, João Vitor Andrioli de Souza, Julien Knafou, Lucas Emanuel Silva e Oliveira 외

With the growing number of electronic health record data, clinical NLP tasks have become increasingly relevant to unlock valuable information from unstructured clinical text. Although the performance of downstream NLP ta…

Language ModelingLanguage Modellingnamed-entity-recognitionNamed Entity Recognition+3