Better Context Makes Better Code Language Models: A Case Study on Function Call Argument Completion
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
17 more
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
- 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 108
- 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
- 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
- 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 54
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2020Fast and Memory-Efficient Neural Code Completioncited by 38
- 2021How could Neural Networks understand Programs?cited by 26
- 2022AST-Probe: Recovering abstract syntax trees from hidden representations of pre-trained language modelscited by 16
- 2021Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchycited by 14
- 2021Embedding API Dependency Graph for Neural Code Generationcited by 5
Built on by
Citing papers per year: 2023: 3; 2024: 7; 2025: 4.
14 papers.
Sort:
By area:
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 40
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 29
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluationcited by 21
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Modelscited by 9
- 2024Statically Contextualizing Large Language Models with Typed Holescited by 9
- 2025On Pretraining for Project-Level Code Completioncited by 1
- 2025On Pretraining for Project-Level Code Completion15 Oct 2025
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs4 Aug 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025How to Select Pre-Trained Code Models for Reuse? A Learning Perspective7 Jan 2025
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluation28 Oct 2024
- 2024Statically Contextualizing Large Language Models with Typed Holes2 Sep 2024
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detection10 Jun 2024
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models3 Jun 2024
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion30 May 2024
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completion15 Mar 2024
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Context22 Feb 2024
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion17 Oct 2023
2 more
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 29
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluationcited by 21
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Modelscited by 9
- 2024Statically Contextualizing Large Language Models with Typed Holescited by 9
- 2025On Pretraining for Project-Level Code Completioncited by 1
- 2025How to Select Pre-Trained Code Models for Reuse? A Learning Perspectivecited by 0
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEscited by 0
- 2025On Pretraining for Project-Level Code Completion15 Oct 2025
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs4 Aug 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025How to Select Pre-Trained Code Models for Reuse? A Learning Perspective7 Jan 2025
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluation28 Oct 2024
- 2024Statically Contextualizing Large Language Models with Typed Holes2 Sep 2024
- 2024R2C2-Coder: Enhancing and Benchmarking Real-world Repository-level Code Completion Abilities of Code Large Language Models3 Jun 2024
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion30 May 2024
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Context22 Feb 2024
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion17 Oct 2023
- 2023Guiding Language Models of Code with Global Context using Monitors19 Jun 2023
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugs6 Jun 2023