"More Than Deep Learning": post-processing for API sequence recommendation

被引:4
|
作者
Chen, Chi [1 ,2 ]
Peng, Xin [1 ,2 ]
Chen, Bihuan [1 ,2 ]
Sun, Jun [3 ]
Xing, Zhenchang [4 ]
Wang, Xin [1 ,2 ]
Zhao, Wenyun [1 ,2 ]
机构
[1] Fudan Univ, Sch Comp Sci, Shanghai, Peoples R China
[2] Fudan Univ, Shanghai Key Lab Data Sci, Shanghai, Peoples R China
[3] Singapore Management Univ, Singapore, Singapore
[4] Australian Natl Univ, Canberra, ACT, Australia
基金
中国国家自然科学基金;
关键词
API; Recommendation; Deep learning; Encoder-decoder; Post-processing; CODE COMPLETION;
D O I
10.1007/s10664-021-10040-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the daily development process, developers often need assistance in finding a sequence of APIs to accomplish their development tasks. Existing deep learning models, which have recently been developed for recommending one single API, can be adapted by using encoder-decoder models together with beam search to generate API sequence recommendations. However, the generated API sequence recommendations heavily rely on the probabilities of API suggestions at each decoding step, which do not take into account other domain-specific factors (e.g., whether an API suggestion satisfies the program syntax and how diverse the API sequence recommendations are). Moreover, it is difficult for developers to find similar API sequence recommendations, distinguish different API sequence recommendations, and make a selection when the API sequence recommendations are ordered by probabilities. Thus, what we need is more than deep learning. In this paper, we propose an approach, named Cook, to combine deep learning models with post-processing strategies for API sequence recommendation. Specifically, we enhance beam search with code-specific heuristics to improve the quality of API sequence recommendations. We develop a clustering algorithm to cluster API sequence recommendations so as to make it easier for developers to find similar API sequence recommendations and distinguish different API sequence recommendations. We also propose a method to generate a summary for each cluster to help developers understand the API sequence recommendations. Our evaluation results have shown that (1) three deep learning models with our heuristic-enhanced beam search achieved better performance than with the original beam search in terms of CIDEr-1, CIDEr-5 and CIDEr-10 scores, with an average improvement of 1.8, 2.3 and 2.3, respectively; and (2) our clustering algorithm achieved high performance on six metrics and outperformed two variant clustering algorithms. Moreover, our user study with 24 participants shows that Cook can help developers accomplish programming tasks faster and pass more test cases, and the participants confirm that clusters and summaries indeed help them understand and select the correct API sequence recommendations.
引用
收藏
页数:32
相关论文
共 50 条
  • [1] “More Than Deep Learning”: post-processing for API sequence recommendation
    Chi Chen
    Xin Peng
    Bihuan Chen
    Jun Sun
    Zhenchang Xing
    Xin Wang
    Wenyun Zhao
    Empirical Software Engineering, 2022, 27
  • [2] Deep learning for post-processing ensemble weather forecasts
    Gronquist, Peter
    Yao, Chengyuan
    Ben-Nun, Tal
    Dryden, Nikoli
    Dueben, Peter
    Li, Shigang
    Hoefler, Torsten
    PHILOSOPHICAL TRANSACTIONS OF THE ROYAL SOCIETY A-MATHEMATICAL PHYSICAL AND ENGINEERING SCIENCES, 2021, 379 (2194):
  • [3] Deep-learning-based post-processing for probabilistic precipitation forecasting
    Ji, Yan
    Zhi, Xiefei
    Ji, Luying
    Zhang, Yingxin
    Hao, Cui
    Peng, Ting
    FRONTIERS IN EARTH SCIENCE, 2022, 10
  • [4] Road Segmentation based on Deep Learning with Post-Processing Probability Layer
    Chen, Weibin
    3RD ANNUAL INTERNATIONAL CONFERENCE ON CLOUD TECHNOLOGY AND COMMUNICATION ENGINEERING, 2020, 719
  • [5] Outfit Recommendation with Deep Sequence Learning
    Jiang, Yangbangyan
    Xu, Qianqian
    Cao, Xiaochun
    2018 IEEE FOURTH INTERNATIONAL CONFERENCE ON MULTIMEDIA BIG DATA (BIGMM), 2018,
  • [6] DeepEMhancer: a deep learning solution for cryo-EM volume post-processing
    Sanchez-Garcia, Ruben
    Gomez-Blanco, Josue
    Cuervo, Ana
    Maria Carazo, Jose
    Sorzano, Carlos Oscar S.
    Vargas, Javier
    COMMUNICATIONS BIOLOGY, 2021, 4 (01)
  • [7] Sequence recommendation based on deep learning
    Guo, Dong
    Wang, Chuantao
    COMPUTATIONAL INTELLIGENCE, 2020, 36 (04) : 1704 - 1722
  • [8] DeepEMhancer: a deep learning solution for cryo-EM volume post-processing
    Ruben Sanchez-Garcia
    Josue Gomez-Blanco
    Ana Cuervo
    Jose Maria Carazo
    Carlos Oscar S. Sorzano
    Javier Vargas
    Communications Biology, 4
  • [9] Sequence Recommendation based on Deep Learning
    Rysbayeva, Gulsim
    Zhang, Jingwei
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2023, 14 (02) : 41 - 54
  • [10] A Real-time Post-processing System for Itinerary Recommendation
    Jiang, Linge
    Wang, Guiyang
    Zhu, Zhibo
    Wang, Binghao
    Gan, Runsheng
    Liu, Ziqi
    Zhou, Jun
    PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, CIKM 2022, 2022, : 4882 - 4886