mlsanityData to 14 Oct 2026

Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completion

arXiv 2306.00381 ↗First posted 1 Jun 2023cs.SE cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

Pretrained code language models have enabled great progress towards program synthesis. However, common approaches only consider in-file local context and thus miss information and constraints imposed by other parts of the codebase and its external dependencies. Existing code completion benchmarks also lack such context. To resolve these restrictions we curate a new dataset of permissively licensed Python packages that includes full projects and their dependencies and provide tools to extract non-local information with the help of program analyzers. We then focus on the task of function call argument completion which requires predicting the arguments to function calls. We show that existing code completion models do not yield good results on our completion task. To better solve this task, we query a program analyzer for information relevant to a given function call, and consider ways to provide the analyzer results to different code completion models during inference and training. Our experiments show that providing access to the function implementation and function usages greatly improves the argument completion performance. Our ablation study provides further insights on how different types of information available from the program analyzer and different ways of incorporating the information affect the model performance.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 29 of its 50 references that are in the map. First posted on arXiv 1 Jun 2023.

Builds on

29 of 50 references.

References · 29

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  6. 2021Program Synthesis with Large Language Modelscited by 3,637
  7. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  10. 2021Measuring Coding Challenge Competence With APPScited by 902
  11. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  12. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
17 more
  1. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  2. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  3. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  4. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  5. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  6. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
  7. 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 108
  8. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  9. 2020Code Prediction by Feeding Trees to Transformerscited by 70
  10. 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
  11. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 54
  12. 2017Code Completion with Neural Attention and Pointer Networkscited by 49
  13. 2020Fast and Memory-Efficient Neural Code Completioncited by 38
  14. 2021How could Neural Networks understand Programs?cited by 26
  15. 2022AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language modelscited by 16
  16. 2021Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchycited by 14
  17. 2021Embedding API Dependency Graph for Neural Code Generationcited by 5

Built on by

Cited by year

Citing papers per year: 2023: 3; 2024: 7; 2025: 4.

14 papers.

Sort:

By area: