Adding Context to Source Code Representations for Deep Learning
Not on the map. Why?
Abstract (arXiv)
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 tasks, source code needs to be represented in a format that is suitable for input into the deep learning model. Most approaches to representing source code, such as tokens, abstract syntax trees (ASTs), data flow graphs (DFGs), and control flow graphs (CFGs) only focus on the code itself and do not take into account additional context that could be useful for deep learning models. In this paper, we argue that it is beneficial for deep learning models to have access to additional contextual information about the code being analysed. We present preliminary evidence that encoding context from the call hierarchy along with information from the code itself can improve the performance of a state-of-the-art deep learning model for two software engineering tasks. We outline our research agenda for adding further contextual information to source code representations for deep learning.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 5 of its 33 references that are in the map. First posted on arXiv 30 Jul 2022.
Builds on
5 of 33 references.
References · 5
- 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 419
- 2017Methods for Interpreting and Understanding Deep Neural Networkscited by 345
- 2020Pooling Methods in Deep Neural Networks, a Reviewcited by 52
- 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
- 2022Does This Apply to Me? An Empirical Study of Technical Context in Stack Overflowcited by 3
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 0; 2025: 1.
2 papers.
- 2025Enhancing Neural Code Representation with Additional Context14 Oct 2025
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applications18 Dec 2022