Towards an Understanding of Context Utilization in Code Intelligence
Not on the map. Why?
Abstract (arXiv)
Code intelligence is an emerging domain in software engineering, aiming to improve the effectiveness and efficiency of various code-related tasks. Recent research suggests that incorporating contextual information beyond the basic original task inputs (i.e., source code) can substantially enhance model performance. Such contextual signals may be obtained directly or indirectly from sources such as API documentation or intermediate representations like abstract syntax trees can significantly improve the effectiveness of code intelligence. Despite growing academic interest, there is a lack of systematic analysis of context in code intelligence. To address this gap, we conduct an extensive literature review of 146 relevant studies published between September 2007 and August 2024. Our investigation yields four main contributions. (1) A quantitative analysis of the research landscape, including publication trends, venues, and the explored domains; (2) A novel taxonomy of context types used in code intelligence; (3) A task-oriented analysis investigating context integration strategies across diverse code intelligence tasks; (4) A critical evaluation of evaluation methodologies for context-aware methods. Based on these findings, we identify fundamental challenges in context utilization in current code intelligence systems and propose a research roadmap that outlines key opportunities for future research.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 106 of its 241 references that are in the map. First posted on arXiv 11 Apr 2025.
Builds on
106 of 241 references.
References · 106
- 2017Attention Is All You Needcited by 60,361
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,046
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 282
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
38 more
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
- 2021Retrieval Augmented Code Generation and Summarizationcited by 149
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 112
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 91
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 91
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
- 2016Latent Predictor Networks for Code Generationcited by 73
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
- 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 65
- 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2022When Language Model Meets Private Librarycited by 54
- 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
- 2021On the Evaluation of Neural Code Summarizationcited by 48
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 47
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 46
- 2018Retrieval-Based Neural Code Generationcited by 41
- 2023RepoFusion: Training Code Models to Understand Your Repositorycited by 40
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
- 2020A Survey on Deep Learning for Software Engineeringcited by 38
- 2023ToolCoder: Teach Code Generation Models to use API search toolscited by 37
- 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 36
- 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
- 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 32
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 30
50 most cited of 106 All 106 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 8.
10 papers.
- 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Codecited by 14
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2026SWE-Prime: Fewer Trajectories, Better Performancecited by 4
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agentscited by 1
- 2025Beyond Autocomplete: Designing CopilotLens Towards Transparent and Explainable AI Coding Agentscited by 0
- 2026From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Benchcited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluationcited by 0
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents3 Sep 2026
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation1 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026SWE-Prime: Fewer Trajectories, Better Performance27 Aug 2026
- 2026From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench27 Aug 2026
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents21 Jul 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Code18 Sep 2025
- 2025Beyond Autocomplete: Designing CopilotLens Towards Transparent and Explainable AI Coding Agents24 Jun 2025