Multi-lingual code generation with zero-shot inference
Abstract
A neural transformer model with attention is trained to predict candidates to complete a line of source code with a zero-inference capability. The model is trained on an unsupervised training dataset that includes features from source code written in multiple programming languages. The features include a file-level context and a local context, where the file-level context includes a global context, a class context, a function context, and/or a method context for each class, function and/or method of the source code programs used in the training dataset. The local context includes method bodies, function bodies, and/or stand-alone code of main method routines. From these features, the model is able to learn to predict an ordered sequence of code elements that complete a line of source code in a programming language seen and not seen during training.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system comprising: one or more processors; and a memory that stores one or more programs that are configured to be executed by the one or more processors, the one or more programs including instructions to perform actions that: obtain a source code program in an edit session; extract a file-level context of the source code program; extract a local context of the source code program at a current cursor position; generate a candidate to complete a line of source code of the source code program, the source code program written in a first programming language, the candidate generated by a deep l
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (12)
Non-Patent Literature (5)
- “International Search Report and Written Opinion Issued in PCT Application No. PCT/US2021/057541”, dated Feb. 10, 2022, 12 Pages.
- Allamanis, et al., “A Survey of Machine Learning for Big Code and Naturalness”, In Journal of the Computing Research Repository, May 5, 2018, 36 Pages.
- Chaoliang Zhong, “JavaScript Code Suggestion Based on Deep Learning”, ICIAI 2019: Proceedings of the 2019 3rd International Conference on Innovation in Artificial Intelligence Mar. 2019 pp. 145-149 (Year: 2019).
- Feng, et al., “CodeBERT: A Pre-Trained Model for Programming and Natural Languages”, In Journal of Computing Research Repository, Apr. 27, 2020, 10 Pages.
- Le, et al., “Deep Learning for Source Code Modeling and Generation Models, Applications and Challenges”, In Repository of arXiv:2002.05442, Feb. 13, 2020, 37 Pages.