Predicting and/or applying symbolic transformation templates

    公开(公告)号:US12147794B2

    公开(公告)日:2024-11-19

    申请号:US18070015

    申请日:2022-11-28

    Applicant: Google LLC

    Abstract: Implementations are described herein for predicting symbolic transformation templates to automate source code transformations. In various implementations, pair(s) of predecessor and successor source code snippets may be processed using a symbolic transformation template prediction (STTP) model to predict a symbolic transformation template that includes a predecessor portion that matches the predecessor source code snippet(s) of the pair(s) and a successor portion that matches the successor source code snippet(s) of the pair(s). At least one additional predecessor source code snippet may be identified that matches the predecessor portion of the predicted symbolic transformation template. Placeholders of the predecessor portion of the predicted symbolic transformation template may be bound to one or more tokens of the at least one additional predecessor source code snippet to create binding(s). The successor portion of the predicted symbolic transformation template may be applied to the bindings to generate additional successor source code snippet(s).

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

    公开(公告)号:US20230325164A1

    公开(公告)日:2023-10-12

    申请号:US17717609

    申请日:2022-04-11

    Applicant: Google LLC

    CPC classification number: G06F8/51 G06F8/73 G06K9/6223

    Abstract: 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.

    Federated Learning with Adaptive Optimization

    公开(公告)号:US20210073639A1

    公开(公告)日:2021-03-11

    申请号:US17100253

    申请日:2020-11-20

    Applicant: Google LLC

    Abstract: A computing system and method can be used to implement a version of federated learning (FL) that incorporates adaptivity (e.g., leverages an adaptive learning rate). In particular, the present disclosure provides a general optimization framework in which (1) clients perform multiple epochs of training using a client optimizer to minimize loss on their local data and (2) a server system updates its global model by applying a gradient-based server optimizer to the average of the clients' model updates. This framework can seamlessly incorporate adaptivity by using adaptive optimizers as client and/or server optimizers. Building upon this general framework, the present disclosure also provides example specific adaptive optimization techniques for FL which use per-coordinate methods as server optimizers. By focusing on adaptive server optimization, the use of adaptive learning rates is enabled without increase in client storage or communication costs and compatibility with cross-device FL can be ensured.

    Controlled Adaptive Optimization
    16.
    发明申请

    公开(公告)号:US20200175365A1

    公开(公告)日:2020-06-04

    申请号:US16657356

    申请日:2019-10-18

    Applicant: Google LLC

    Abstract: Generally, the present disclosure is directed to systems and methods that perform adaptive optimization with improved convergence properties. The adaptive optimization techniques described herein are useful in various optimization scenarios, including, for example, training a machine-learned model such as, for example, a neural network. In particular, according to one aspect of the present disclosure, a system implementing the adaptive optimization technique can, over a plurality of iterations, employ an adaptive effective learning rate while also ensuring that the effective learning rate is non-increasing.

    Translating between programming languages independently of sequence-to-sequence decoders

    公开(公告)号:US12014160B2

    公开(公告)日:2024-06-18

    申请号:US17717609

    申请日:2022-04-11

    Applicant: Google LLC

    CPC classification number: G06F8/51 G06F8/73 G06F18/23213

    Abstract: 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.

Patent Agency Ranking