paper-with-me

홈 › Papers

In-Context Code-Text Learning for Bimodal Software Engineering

2024-10-08 · Xunzhu Tang, Liran Wang, Yonghui Liu, Linzheng Chai, Jian Yang, Zhoujun Li, Haoye Tian, Jacques Klein, Tegawende F. Bissyande

Bimodal software analysis initially appeared to be within reach with the advent of large language models. Unfortunately, the complex interplay of natural language text and code in software engineering, presents unique challenges that prevent pretrained models to generalize to a variety of tasks. We postulate that in-context learning for the code-text bimodality is a promising avenue. This paper thus introduces a comprehensive study of in-context code-text learning, focusing on leveraging pretrained CodeLLAMA models. We consider a diverse dataset encompassing 23 software engineering tasks, which we transform in an in-context learning format. To effectively extract informative features, we propose a configurable prompt template. Our proposed pipeline, InCTRL, then unifies prompt learning across various software engineering tasks. Extensive evaluation on the study datasets demonstrates the superiority of INCTRL-models in few-shot performance, surpassing state-of-the-art models including the support model, CodeLLAMA. Typically, we observe that applied to the CodeLLAMA model, INCTRL brings improvements in terms of precision (at least about 12\%) and recall (up to 93.88\%) on various tasks. For example, on the task of program repair, INCTRL improves the BLEU score of CodeLLAMA by 85 points, while for clone detection, INCTRL achieves an improvement of 69 percentage points. Moreover, INCTRL-models offer state-of-the-art performance when using retrieval-augmented generation on individual downstream tasks. Finally, we qualitatively analyze the benefits of INCTRL over CodeLLAMA and open-source all models for broader impact. We make our code and dataset publicly available at: \begin{center} {\url{https://anonymous.4open.science/r/inctrl-B65B}} \end{center}

📄 PDF Abstract BibTeX arXiv:2410.18107

Code (0)

등록된 구현이 없습니다.

Tasks

Clone DetectionIn-Context LearningProgram RepairPrompt LearningRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

On The Cross-Modal Transfer from Natural Language to Code through Adapter Modules

2022-04-19 · Divyam Goel, Ramansh Grover, Fatemeh H. Fard

Pre-trained neural Language Models (PTLM), such as CodeBERT, are recently used in software engineering as models pre-trained on large source code corpora. Their knowledge is transferred to downstream tasks (e.g. code clo…

Clone DetectionCloze TestTransfer Learning

On Problems of Implicit Context Compression for Software Engineering Agents

2026-05-11 · Kirill Gelvan, Igor Slinko, Felix Steinbauer, Egor Bogomolov 외 arxiv

LLM-based Software Engineering agents face a critical bottleneck: context length limitations cause failures on complex, long-horizon tasks. One promising solution is to encode context as continuous embeddings rather than…

From Code-Centric to Intent-Centric Software Engineering: A Reflexive Thematic Analysis of Generative AI, Agentic Systems, and Engineering Accountability

2026-05-10 · Elyson De La Cruz arxiv

Generative artificial intelligence (GenAI) and agentic systems are moving software engineering from code-centric production toward intent-centric human-agent work in which natural language, repository context, tools, tes…

Code Generation

NatGen: Generative pre-training by "Naturalizing" source code

2022-06-15 · Saikat Chakraborty, Toufique Ahmed, Yangruibo Ding, Premkumar Devanbu 외

Pre-trained Generative Language models (e.g. PLBART, CodeT5, SPT-Code) for source code yielded strong results on several tasks in the past few years, including code generation and translation. These models have adopted v…

Code GenerationCode TranslationFew-Shot LearningTranslation

Adding Context to Source Code Representations for Deep Learning

2022-07-30 · Fuwei Tian, Christoph Treude

Deep learning models have been successfully applied to a variety of software engineering tasks, such as code classification, summarisation, and bug and vulnerability detection. In order to apply deep learning to these ta…

Code ClassificationDeep LearningVulnerability Detection