Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchy
Not on the map. Why?
Abstract (arXiv)
Statistical language modeling and translation with transformers have found many successful applications in program understanding and generation tasks, setting high benchmarks for tools in modern software development environments. The finite context window of these neural models means, however, that they will be unable to leverage the entire relevant context of large files and packages for any given task. While there are many efforts to extend the context window, we introduce an architecture-independent approach for leveraging the syntactic hierarchies of source code for incorporating entire file-level context into a fixed-length window. Using concrete syntax trees of each source file we extract syntactic hierarchies and integrate them into context window by selectively removing from view more specific, less relevant scopes for a given task. We evaluate this approach on code generation tasks and joint translation of natural language and source code in Python programming language, achieving a new state-of-the-art in code completion and summarization for Python in the CodeXGLUE benchmark. We also introduce new CodeXGLUE benchmarks for user-experience-motivated tasks: code completion with normalized literals, method body completion/code summarization conditioned on file-level context.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 22 of its 33 references that are in the map. First posted on arXiv 17 Sep 2021.
Builds on
22 of 33 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2018Image Transformercited by 770
10 more
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2020Pre-training via Paraphrasingcited by 92
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2019Pythia: AI-assisted Code Completion Systemcited by 54
- 2020Generating Accurate Assert Statements for Unit Test Cases using Pretrained Transformerscited by 30
- 2021Generating Bug-Fixes Using Pretrained Transformerscited by 18
Built on by
Citing papers per year: 2022: 5; 2023: 5; 2024: 1; 2025: 3.
14 papers.
Sort:
By area:
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
- 2023Retrieving Multimodal Information for Augmented Generation: A Surveycited by 84
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
- 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performancecited by 6
- 2025Enhancing Project-Specific Code Completion by Inferring Internal API Informationcited by 5
- 2022AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representationscited by 3
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applicationscited by 2
- 2025Enhancing Project-Specific Code Completion by Inferring Internal API Information28 Jul 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generation21 Mar 2025
- 2024A Lightweight Framework for Adaptive Retrieval In Code Completion With Critique Model11 Jun 2024
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion17 Oct 2023
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completion26 Jun 2023
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completion1 Jun 2023
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation22 Mar 2023
- 2023Retrieving Multimodal Information for Augmented Generation: A Survey20 Mar 2023
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applications18 Dec 2022
- 2022Multi-lingual Evaluation of Code Generation Models26 Oct 2022
- 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performance27 Jun 2022
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
- 2023Retrieving Multimodal Information for Augmented Generation: A Surveycited by 84
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
- 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performancecited by 6
- 2025Enhancing Project-Specific Code Completion by Inferring Internal API Informationcited by 5
- 2022AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representationscited by 3
- 2025CodeSSM: Towards State Space Models for Code Understandingcited by 3
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applicationscited by 2
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generationcited by 1
- 2025Enhancing Project-Specific Code Completion by Inferring Internal API Information28 Jul 2025
- 2025CodeSSM: Towards State Space Models for Code Understanding2 May 2025
- 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generation21 Mar 2025
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion17 Oct 2023
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completion26 Jun 2023
- 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completion1 Jun 2023
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation22 Mar 2023
- 2023Retrieving Multimodal Information for Augmented Generation: A Survey20 Mar 2023
- 2022JEMMA: An Extensible Java Dataset for ML4Code Applications18 Dec 2022
- 2022Multi-lingual Evaluation of Code Generation Models26 Oct 2022
- 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performance27 Jun 2022
- 2022AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representations23 May 2022