ARIST: An Effective API Argument Recommendation Approach
Not on the map. Why?
Abstract (arXiv)
Learning and remembering to use APIs are difficult. Several techniques have been proposed to assist developers in using APIs. Most existing techniques focus on recommending the right API methods to call, but very few techniques focus on recommending API arguments. In this paper, we propose ARIST, a novel automated argument recommendation approach which suggests arguments by predicting developers' expectations when they define and use API methods. To implement this idea in the recommendation process, ARIST combines program analysis (PA), language models (LMs), and several features specialized for the recommendation task which consider the functionality of formal parameters and the positional information of code elements (e.g., variables or method calls) in the given context. In ARIST, the LMs and the recommending features are used to suggest the promising candidates identified by PA. Meanwhile, PA navigates the LMs and the features working on the set of the valid candidates which satisfy syntax, accessibility, and type-compatibility constraints defined by the programming language in use. Our evaluation on a large dataset of real-world projects shows that ARIST improves the state-of-the-art approach by 19% and 18% in top-1 precision and recall for recommending arguments of frequently-used libraries. For general argument recommendation task, i.e., recommending arguments for every method call, ARIST outperforms the baseline approaches by up to 125% top-1 accuracy. Moreover, for newly-encountered projects, ARIST achieves more than 60% top-3 accuracy when evaluating on a larger dataset. For working/maintaining projects, with a personalized LM to capture developers' coding practice, ARIST can productively rank the expected arguments at the top-1 position in 7/10 requests.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 24 of its 57 references that are in the map. First posted on arXiv 11 Jun 2023.
Builds on
24 of 57 references.
References · 24
- 2017Attention Is All You Needcited by 60,361
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 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
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 91
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 86
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited 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
12 more
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2016Deep API Learningcited by 41
- 2017Learn&Fuzz: Machine Learning for Input Fuzzingcited by 23
- 2020Patching as Translation: the Data and the Metaphorcited by 18
- 2021Fault Localization with Code Coverage Representation Learningcited by 16
- 2019Automatic Generation of Pull Request Descriptionscited by 13
- 2018RACK: Automatic API Recommendation using Crowdsourced Knowledgecited by 12
- 2021PyART: Python API Recommendation in Real-Timecited by 6
- 2019Combining Program Analysis and Statistical Language Model for Code Statement Completioncited by 5
- 2017Neural Attribute Machines for Program Generationcited by 3
- 2020Holistic Combination of Structural and Textual Code Information for Context based API Recommendationcited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 1.
2 papers.