The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Oct. 25, 2022

Filed:

Dec. 29, 2020
Applicant:

X Development Llc, Mountain View, CA (US);

Inventors:

Rishabh Singh, San Jose, CA (US);

David Andre, San Francisco, CA (US);

Bin Ni, Fremont, CA (US);

Owen Lewis, Stanford, CA (US);

Assignee:

X DEVELOPMENT LLC, Mountain View, CA (US);

Attorney:
Primary Examiner:
Int. Cl.
CPC ...
G06F 8/71 (2018.01); G06F 40/20 (2020.01); G06N 20/00 (2019.01);
U.S. Cl.
CPC ...
G06F 8/71 (2013.01); G06F 40/20 (2020.01); G06N 20/00 (2019.01);
Abstract

Implementations are described herein for using machine learning to perform various tasks related to migrating source code based on relatively few ('few shots') demonstrations. In various implementations, an autoregressive language model may be conditioned based on demonstration tuple(s). In some implementations, a demonstration tuple may include a pre-migration version of a first source code snippet and a post-migration version of the first source code snippet. In other implementations, demonstration tuples may include other data, such as intermediate forms (e.g., natural language descriptions or pseudocode), input-output pairs demonstrating intended behavior, etc. The autoregressive language model may be trained on corpora of source code and natural language documentation on the subject of computer programming. A pre-migration version of a source code file may be processed based on the conditioned autoregressive language model, and a post-migration version may be generated based on output generated based on the conditioned autoregressive model.


Find Patent Forward Citations

Loading…