mlsanityData to 7 Oct 2026

Code Prediction by Feeding Trees to Transformers

arXiv 2003.13848 ↗First posted 30 Mar 2020cs.SE cs.LGcited by 70

Not on the map. Why?

Abstract (arXiv)

We advance the state-of-the-art in the accuracy of code prediction (next token prediction) used in autocomplete systems. First, we report that using the recently proposed Transformer architecture even out-of-the-box outperforms previous neural and non-neural systems for code prediction. We then show that by making the Transformer architecture aware of the syntactic structure of code, we further increase the margin by which a Transformer-based system outperforms previous systems. With this, it outperforms the accuracy of an RNN-based system (similar to Hellendoorn et al. 2018) by 18.3%, the Deep3 system (Raychev et al 2016) by 14.1%, and an adaptation of Code2Seq (Alon et al., 2018) for code prediction by 14.4%. We present in the paper several ways of communicating the code structure to the Transformer, which is fundamentally built for processing sequence data. We provide a comprehensive experimental evaluation of our proposal, along with alternative design choices, on a standard Python dataset, as well as on a Facebook internal Python corpus. Our code and data preparation pipeline will be available in open source.

Key facts. Cited by 70 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Mar 2020.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 12; 2022: 18; 2023: 17; 2024: 14; 2025: 9.

70 papers.

Sort:

By area:

  1. 2021Program Synthesis with Large Language Modelscited by 3,509
  2. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  3. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
  4. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
  5. 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
  6. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  7. 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 55
  8. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  9. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
  10. 2024Calibration and Correctness of Language Models for Codecited by 49
  11. 2022Investigating Explainability of Generative AI for Code through Scenario-based Designcited by 47
  12. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
38 more
  1. 2022No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligencecited by 41
  2. 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
  3. 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
  4. 2024Language Models for Code Completion: A Practical Evaluationcited by 38
  5. 2023SALLM: Security Assessment of Generated Codecited by 35
  6. 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 33
  7. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  8. 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 32
  9. 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
  10. 2021Code Completion by Modeling Flattened Abstract Syntax Trees as Graphscited by 30
  11. 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
  12. 2021How could Neural Networks understand Programs?cited by 26
  13. 2021On Multi-Modal Learning of Editing Source Codecited by 25
  14. 2022FedAdapter: Efficient Federated Learning for Modern NLPcited by 24
  15. 2021Learning to Complete Code with Sketchescited by 23
  16. 2022Transformers over Directed Acyclic Graphscited by 23
  17. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  18. 2023AI-assisted Code Authoring at Scale: Fine-tuning, deploying, and mixed methods evaluationcited by 20
  19. 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
  20. 2022Federated Few-Shot Learning for Mobile NLPcited by 15
  21. 2023Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completioncited by 14
  22. 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
  23. 2021Enquire One's Parent and Child Before Decision: Fully Exploit Hierarchical Structure for Self-Supervised Taxonomy Expansioncited by 13
  24. 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
  25. 2024Multi-line AI-assisted Code Authoringcited by 13
  26. 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Modelscited by 12
  27. 2021Multimodal Representation for Neural Code Searchcited by 11
  28. 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarizationcited by 11
  29. 2022Syntax-Aware On-the-Fly Code Completioncited by 10
  30. 2023Exploiting Code Symmetries for Learning Program Semanticscited by 9
  31. 2024FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completioncited by 9
  32. 2024The Fault in our Stars: Quality Assessment of Code Generation Benchmarkscited by 9
  33. 2024Does Your Neural Code Completion Model Use My Code? A Membership Inference Approachcited by 9
  34. 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammarscited by 8
  35. 2023LExecutor: Learning-Guided Executioncited by 7
  36. 2021Improving Code Autocompletion with Transfer Learningcited by 6
  37. 2022MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learningcited by 6
  38. 2022Towards Practical Few-shot Federated NLPcited by 5

50 most cited of 70 All 70 (JSON)