US Patent Application 17717609. TRANSLATING BETWEEN PROGRAMMING LANGUAGES INDEPENDENTLY OF SEQUENCE-TO-SEQUENCE DECODERS simplified abstract

From WikiPatents
Jump to navigation Jump to search

TRANSLATING BETWEEN PROGRAMMING LANGUAGES INDEPENDENTLY OF SEQUENCE-TO-SEQUENCE DECODERS

Organization Name

Google LLC


Inventor(s)

Rishabh Singh of San Jose CA (US)


Manzil Zaheer of Mountain View CA (US)


TRANSLATING BETWEEN PROGRAMMING LANGUAGES INDEPENDENTLY OF SEQUENCE-TO-SEQUENCE DECODERS - A simplified explanation of the abstract

  • This abstract for appeared for US patent application number 17717609 Titled 'TRANSLATING BETWEEN PROGRAMMING LANGUAGES INDEPENDENTLY OF SEQUENCE-TO-SEQUENCE DECODERS'

Simplified Explanation

This abstract describes techniques for translating a source code snippet from one programming language to another. Instead of using traditional sequence-to-sequence decoding methods, the approach utilizes an encoder portion of a transformer network to generate an embedding of the source code. This embedding is then processed using an all-pair attention layer to create an attended embedding. Finally, an output layer transforms the attended embedding into data that represents the translation of the source code into the second programming language.


Original Abstract Submitted

Techniques are described herein for translating a source code snippet from a first programming language to a second programming language independently of sequence-to-sequence decoding. In various implementations, the source code snippet written in the first programming language may be processed using an encoder portion of a transformer network to generate an embedding of the source code snippet. The embedding of the source code snippet may be processed using an all-pair attention layer to generate an attended embedding of the source code snippet. The attended embedding of the source code snippet may be processed using an output layer to generate, by way of a single transformation of the attended embedding of the source code snippet, data indicative of a translation of the source code snippet in the second programming language.