Gap-aware mitigation of gradient staleness

US11631035B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11631035-B2
Application numberUS-202017773917-A
CountryUS
Kind codeB2
Filing dateNov 5, 2020
Priority dateNov 5, 2019
Publication dateApr 18, 2023
Grant dateApr 18, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Disclosed embodiments are a computing system and a computer-implemented method for distributed training of a machine learning model over a plurality of computing nodes, in a plurality of iterations, characterized by gradient gap based mitigation of the gradient staleness problem. The disclosed method evaluates the staleness of the gradient based on the difference in gradients between a central point, for example an iteration's common starting point, and the points reached by the respective computing node during one or more iterations, and aggregates the update steps from the plurality of computing nodes, while giving more weight to computing nodes having a lesser change in the gradient.

First claim

Opening claim text (preview).

What is claimed is: 1. A system for improving an accuracy of a machine learning model trained using distributed training over a plurality of computing nodes, comprising: a master computing node configured to control a training of the machine learning model during a plurality of training iterations, wherein the following is performed in each of the plurality of iterations: instructing each of a plurality of slave computing nodes to train a respective local copy of the machine learning model, locally stored on each respective slave computing node, by locally computing a respective update step on a plurality of parameters of the respective local copy of the machine learning model, based on at least one locally calculated gradient; obtaining one or more respective update steps from each of the plurality of slave computing nodes; creating an updated machine learning model with improved accuracy, by merging respective updated local machine learning models using an aggregation function comprising weights, which are a decreasing function of a change magnitude in at least one gradient at a point indicated by the respective update step; and instructing at least one of the plurality of slave computing nodes to apply a copy of the updated machine learning model in a following training iteration; wherein at least one of the weights is a constant divided by a difference between the gradient at a central point and the gradient at a point based on the respective update step; and wherein the change magnitude is measured between at least one first locally calculated gradient at the central point and at least one second locally calculated gradient at the point indicated by the respective update step, the central point is determined by the aggregation function computed during a previous training iteration. 2. The system of claim 1 , wherein the at least one locally calculated gradient computed by each of the plurality of slave computing nodes is computed by applying a stochastic gradient descent for minimizing a loss function for the respective local copy. 3. The system of claim 1 , wherein the aggregation function is averaging of the update steps. 4. The system of claim 1 , wherein each of the plurality of slave computing nodes uses a subset of a training dataset for calculating a value of the update steps by training the respective local copy. 5. The system of claim 1 , wherein the update step is further based on hyper-parameters comprising learning rate, and the learning rate is adjusted according to a gradient convergence measure. 6. A computer implemented method for improving an accuracy of a machine learning model trained using distributed training over a plurality of computing nodes, the plurality of computer nodes comprising a master computing node configured to control a training of the machine learning model during a plurality of training iterations, wherein the following is performed in each of the plurality of iterations: instructing each of a plurality of slave computing nodes to train a respective local copy of the machine learning model, locally stored on each respective slave computing node, by locally computing a respective update step on a plurality of parameters of the respective local copy of the machine learning model, based on at least one locally calculated gradient; obtaining one or more respective update steps from each of the plurality of slave computing nodes; creating an updated machine learning model with improved accuracy, by merging respective updated local machine learning models using an aggregation function comprising weights, which are a decreasing function of a change magnitude in at least one gradient at a point indicated by the respective update step; and instructing at least one of the plurality of slave computing nodes to apply a copy of the updated machine learning model in a following training iteration; wherein at least one of the weights is a constant divided by a difference between the gradient at a central point and the gradient at a point based on the respective update step; and wherein the change magnitude is measured between at least one first locally calculated gradient at the central point and at least one second locally calculated gradient at the point indicated by the respective update step, the central point is determined by the aggregation function computed during a previous training iteration. 7. The computer implemented method of claim 6 , wherein the at least one locally calculated gradient computed by each of the plurality of slave computing nodes is computed by applying a stochastic gradient descent for minimizing a loss function for the respective local copy. 8. The computer implemented method of claim 6 , wherein the aggregation function is averaging of the update steps. 9. The computer implemented method of claim 6 , wherein each of the plurality of slave computing nodes uses a subset of a training dataset for calculating a value of the update steps by training the respective local copy. 10. The computer implemented method of claim 6 , wherein the update step is further based on hyper-parameters comprising learning rate, and the learning rate is adjusted downwards according to a gradient convergence measure. 11. A computer program product for improving an accuracy of a machine learning model trained using distributed training over a plurality of computing nodes, the computer program product comprising a non-transitory computer readable storage medium having: first program instructions for instructing each of a plurality of slave computing nodes to train a respective local copy of the machine learning model, locally stored on each respective slave computing node, by locally computing a respective update step on a plurality of parameters of the respective local copy of the machine learning model, based on at least one locally calculated gradient; second program instructions for obtaining one or more respective update steps from each of the plurality of slave computing nodes; third program instructions for creating an updated machine learning model with improved accuracy, by merging respective updated local machine learning models using an aggregation function comprising weights, which are a decreasing function of a change magnitude in at least one gradient at a point indicated by the respective update step; and fourth program instructions for instructing at least one of the plurality of slave computing nodes to apply a copy of the updated machine learning model in a following training iteration; wherein at least one of the weights is a constant divided by a difference between the gradient at a central point and the gradient at a point based on the respective update step; and wherein the change magnitude is measured between at least one first locally calculated gradient at the central point and at least one second locally calculated gradient at the point indicated by the respective update step, the central point is determined by the aggregation function computed during a previous training iteration.

Assignees

Inventors

Classifications

  • Supervised learning · CPC title

  • Convolutional networks [CNN, ConvNet] · CPC title

  • Distributed learning, e.g. federated learning · CPC title

  • G06N20/00Primary

    Machine learning · CPC title

  • Learning methods · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11631035B2 cover?
Disclosed embodiments are a computing system and a computer-implemented method for distributed training of a machine learning model over a plurality of computing nodes, in a plurality of iterations, characterized by gradient gap based mitigation of the gradient staleness problem. The disclosed method evaluates the staleness of the gradient based on the difference in gradients between a central …
Who is the assignee on this patent?
Technion Res & Dev Foundation
What technology area does this patent fall under?
Primary CPC classification G06N20/00. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 18 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).