mlsanityData to 7 Oct 2026

Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchy

arXiv 2109.08780 ↗First posted 17 Sep 2021cs.LG cs.SEcited by 14

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  9. 2020Reformer: The Efficient Transformercited by 1,658
  10. 2020Rethinking Attention with Performerscited by 1,584
  11. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  12. 2018Image Transformercited by 770
10 more
  1. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  2. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  3. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  4. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  5. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
  6. 2020Pre-training via Paraphrasingcited by 92
  7. 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
  8. 2019Pythia: AI-assisted Code Completion Systemcited by 54
  9. 2020Generating Accurate Assert Statements for Unit Test Cases using Pretrained Transformerscited by 30
  10. 2021Generating Bug-Fixes Using Pretrained Transformerscited by 18

Built on by

Cited by year

Citing papers per year: 2022: 5; 2023: 5; 2024: 1; 2025: 3.

14 papers.

Sort:

By area: