In-Context Code-Text Learning for Bimodal Software Engineering
Not on the map. Why?
Abstract (arXiv)
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: begincenter urlhttps://anonymous.4open.science/r/inctrl-B65B endcenter
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 51 of its 69 references that are in the map. First posted on arXiv 8 Oct 2024.
Builds on
51 of 69 references.
References · 51
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 902
38 more
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2017A Survey on Multi-Task Learningcited by 840
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 119
- 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 72
- 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
- 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
- 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
- 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 49
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 45
- 2023Conversational Automated Program Repaircited by 41
- 2023Prompting Is All You Need: Automated Android Bug Replay with Large Language Modelscited by 40
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 35
- 2023StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Codecited by 32
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 25
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021On the validity of pre-trained transformers for natural language processing in the software engineering domaincited by 11
- 2022The Best of Both Worlds: Combining Learned Embeddings with Engineered Features for Accurate Prediction of Correct Patchescited by 9
- 2023A Prompt Learning Framework for Source Code Summarizationcited by 9
- 2023Just-in-Time Detection of Silent Security Patchescited by 7
50 most cited of 51 All 51 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Prompt-Driven Code Summarization: A Systematic Literature Review
- 2025What Makes In-Context Examples Effective for Code Generation? ↗
- 2025Are Prompts All You Need? Evaluating Prompt-Based Large Language Models (LLM)s for Software Requirements Classification
- 2026SWE Context Bench: A Benchmark for Context Learning in Coding
- 2024Do Advanced Language Models Eliminate the Need for Prompt Engineering in Software Engineering?
- 2026ConceptCoder: Improve Code Reasoning via Concept Learning
- 2025Protocode: Prototype-Driven Interpretability for Code Generation in LLMs
- 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks