Embedding API Dependency Graph for Neural Code Generation
Shandong Normal University(山东师范大学);The University of Newcastle(纽卡斯尔大学);Big Data Center of Shandong Province(山东省大数据中心);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学)
Chen Lyu, Ruyun Wang, Hongyu Zhang, Hanwen Zhang, Songlin Hu
The problem of code generation from textual program descriptions has long been viewed as a grand challenge in software engineering. In recent years, many deep learning based approaches have been proposed, which can generate a sequence of code from a sequence of textual program description. However, the existing approaches ignore the global relationships among API methods, which are important for understanding the usage of APIs. In this paper, we propose to model the dependencies among API methods as an API dependency graph (ADG) and incorporate the graph embedding into a sequence-to-sequence (Seq2Seq) model. In addition to the existing encoder-decoder structure, a new module named ``embedder" is introduced. In this way, the decoder can utilize both global structural dependencies and textual program description to predict the target code. We conduct extensive code generation experiments on three public datasets and in two programming languages (Python and Java). Our proposed approach, called ADG-Seq2Seq, yields significant improvements over existing state-of-the-art methods and maintains its performance as the length of the target code increases. Extensive ablation tests show that the proposed ADG embedding is effective and outperforms the baselines.
A Data Source Dependency Analysis Framework for Large Scale Data Science Projects
Microsoft(微软)
依赖地狱是大型软件项目开发中众所周知的痛点,机器学习(ML)代码库也不能幸免。事实上,ML应用程序还遭受着另一种形式的依赖地狱,即“数据源依赖地狱”。这个术语指的是数据及其独特的怪癖所扮演的核心角色,这些怪癖通常会导致ML模型的意外失败,而这些失败无法通过代码更改来解释。在本文中,我们提出了一个自动依赖映射框架,允许MLOps工程师在快节奏的工程环境中监视其模型的整个依赖映射,从而提前减轻任何数据源更改的后果(例如,重新训练模型、忽略数据、设置默认数据等)。我们的系统是基于一个统一的和通用的方法,采用静态分析技术,从数据源可以可靠地确定任何类型的依赖范围广泛的源语言和文物。依赖映射框架作为REST Web API公开,其中唯一的输入是托管代码库的Git存储库的路径。目前由微软的MLOps工程师使用,我们预计这种依赖关系映射API将在未来被MLOps工程师更广泛地采用。
Beyond Repository Boundaries: Cross-Repository Graph Retrieval for Code Generation
Quantum AI & Cyber Security Institute, FPT Corporation(量子人工智能与网络安全研究所,FPT公司);Hanoi University of Science and Technology(河内科学技术大学);Rutgers University(罗格斯大学);The University of Melbourne(墨尔本大学);Center for AI Research, VinUniversity(VinUniversity人工智能研究中心)
OOPS: Automated generation of REST API specification via LLMs
Beihang University(北京航空航天大学);Sino-German Joint Software Institute, Beihang University(北京航空航天大学中德工程学院);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);School of Cyber Science and Technology, Beihang University(北京航空航天网络空间安全学院);Beijing Key Laboratory of Networking Technology(北京市网络技术重点实验室)