US 12,093,672 B2
Iterative neural code translation
Giovanni De Toni, Recoaro Terme (IT); Rishabh Singh, San Jose, CA (US); Jonathan Malmaud, Campbell, CA (US); and Navneet Potti, Sunnyvale, CA (US)
Assigned to GOOGLE LLC, Mountain View, CA (US)
Filed by Google LLC, Mountain View, CA (US)
Filed on Dec. 6, 2022, as Appl. No. 18/076,189.
Prior Publication US 2024/0184555 A1, Jun. 6, 2024
Int. Cl. G06F 9/44 (2018.01); G06F 8/41 (2018.01); G06F 8/51 (2018.01); G06F 9/455 (2018.01); G06F 11/36 (2006.01); G06N 3/045 (2023.01); G06N 3/0455 (2023.01); G06N 3/08 (2023.01); G06N 20/00 (2019.01)
CPC G06F 8/51 (2013.01) [G06F 8/42 (2013.01); G06F 11/3616 (2013.01); G06N 3/0455 (2023.01); G06N 3/08 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method implemented using one or more processors and comprising:
processing an original source code snippet in a first programming language using a translation machine learning model to generate a first translation of the original source code snippet in a second programming language;
evaluating the first translation of the original source code snippet to identify one or more errors in the first translation of the original source code snippet;
based on the one or more errors in the first translation of the original source code snippet, inserting one or more respective masks to generate a masked first translation of the original source code snippet in the second programming language; and
processing the masked first translation of the original source code snippet using the translation machine learning model to generate a second translation of the original source code snippet in the second language, wherein the second translation includes one or more infills of corrected source code in place of one or more of the masks.