Method and system for distributed deep machine learning
Abstract
The present teaching relates to distributed deep machine learning on a cluster. In one example, a request is received for estimating one or more parameters associated with a machine learning model on a cluster including a plurality of nodes. A set of data is obtained to be used for estimating the one or more parameters. The set of data is divided into a plurality of sub-sets of data, each of which corresponds to one of the plurality of nodes. Each sub-set of data is allocated to a corresponding node for estimating values of the one or more parameters based on the sub-set of data. Estimated values of the one or more parameters obtained based on a corresponding sub-set of data allocated to the node, are received from each of the plurality of nodes. The one or more parameters of the machine learning model are estimated based on the estimated values of the one or more parameters generated by at least some of the plurality of nodes.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (14 — 3 Independent, 11 Dependent)
- Claim 1Independent Claim
A method implemented on at least one computing device each of which has at least one processor, storage, and a communication platform connected to a network for estimating one or more parameters of a machine learning model, the method comprising: estimating, by each of a plurality of processing units in a first node of a plurality of nodes, values of the one or more parameters associated with the machine learning model, wherein each of the plurality of processing units estimates the values based on a batch of a subset of training data allocated to the first node; generating, by a preselected representative processing unit of the first node preselected from the plurality of the processing units, a vector by aggregating the values of the one or more parameters estimated by the plurality of processing units in the first node; dividing, by the representative processing unit of the first node, the vector into a plurality of fractions, each of which is designated to one of the plurality of nodes; identifying a first fraction and remaining fractions of the plurality of fractions, wherein the first fraction is designated to the first node and the remaining fractions are designated to corresponding other nodes of the plurality of nodes; aggregating the first fraction designated to the first node and the first fractions received from other nodes of the plurality of nodes to generate an aggregated first fraction; sending, by the representative processing unit of the first node, the aggregated first fraction to representative processing units of the other nodes of the plurality of nodes; receiving, by the representative processing unit of the first node, from the representative processing units of the other nodes of the plurality of nodes, aggregated remaining fractions of the remaining fractions designated to the other nodes; creating an iteration final estimate of the one or more parameters based on the aggregated first fraction and the aggregated remaining fractions; broadcasting, by the representative processing unit of the first node, the iteration final estimate to all other processing units of the plurality of processing units in the first node to synchronize a learning state of the machine-learning model across the plurality of nodes; and iterating the above recited steps until a predetermined condition is met.
- Claim 2Depends on #1
The method of claim 1, further comprising: generating a snapshot of a state of the one or more parameters of the model; and storing the snapshot in a storage outside the plurality of nodes.
- Claim 3Depends on #2
The method of claim 2, further comprising: in response to a failure with respect to estimating the one or more parameters, retrieving the snapshot of the state of the one or more parameters of the model from the storage; and continuing to estimate the one or more parameters based on the last state of the one or more parameters.
- Claim 4Depends on #1
The method claim 1, wherein the plurality of nodes are synchronized via a Message Passing Interface (MPI) AllReduce based Application Program Interface (API) using a network interface implemented on each of the plurality of nodes, wherein the network interface includes an Ethernet interface, an Infiniband interface, or the Ethernet interface and the Infiniband interface.
- Claim 5Depends on #1
The method of claim 1, wherein the preselected representative processing unit is a graphical processing unit.
- Claim 6Independent Claim
A system, having at least one processor, storage, and a communication platform connected to a network for estimating one or more parameters of a machine learning model, the system comprising: a first node, of a plurality of nodes, implemented by the at least one processor and configured for: estimating, by each of a plurality of processing units in the first node, values of the one or more parameters associated with the machine learning model, wherein each of the plurality of processing units estimates the values based on a batch of a subset of training data allocated to the first node; generating, by a preselected representative processing unit of the first node preselected from the plurality of the processing units, a vector by aggregating the values of the one or more parameters estimated by the plurality of processing units in the first node; dividing, by the representative processing unit of the first node, the vector into a plurality of fractions, each of which is designated to one of the plurality of nodes; identifying a first fraction and remaining fractions of the plurality of fractions, wherein the first fraction is designated to the first node and the remaining fractions are designated to corresponding other nodes of the plurality of nodes; aggregating the first fraction designated to the first node and the first fractions received from other nodes of the plurality of nodes to generate an aggregated first fraction; sending, by the representative processing unit of the first node, the aggregated first fraction to representative processing units of the other nodes of the plurality of nodes; receiving, by the representative processing unit of the first node, from the representative processing units of the other nodes of the plurality of nodes, aggregated remaining fractions of the remaining fractions designated to the other nodes; creating an iteration final estimate of the one or more parameters based on the aggregated first fraction and the aggregated remaining fractions; broadcasting, by the representative processing unit of the first node, the iteration final estimate to all other processing units of the plurality of processing units in the first node to synchronize a learning state of the machine-learning model across the plurality of nodes; and iterating the above recited steps until a predetermined condition is met; and the other nodes, of the plurality of nodes, implemented by the at least one processor and configured for: receiving the aggregated first fraction of the vector from the first node; and sending the aggregated remaining fractions of the vector designated to the other nodes to the first node.
- Claim 7Depends on #6
The system of claim 6, wherein the first node comprises: a model snapshot generator implemented by the at least one processor and configured for generating a snapshot of a state of the one or more parameters of the model; and storing the snapshot in a storage outside the plurality of nodes.
- Claim 8Depends on #7
The system of claim 7, wherein the first node is implemented by the at least one processor and configured further for: in response to a failure with respect to estimating the one or more parameters, retrieving the snapshot of the state of the one or more parameters of the model from the storage; and continuing to estimate the one or more parameters based on the last state of the one or more parameters.
- Claim 9Depends on #6
The system claim 6, wherein the plurality of nodes are synchronized via a Message Passing Interface (MPI) AllReduce based Application Program Interface (API) using a network interface implemented on each of the plurality of nodes, wherein the network interface includes an Ethernet interface, an Infiniband interface, or the Ethernet interface and the Infiniband interface.
- Claim 10Depends on #6
The system of claim 6, wherein the preselected representative processing unit is a graphical processing unit.
- Claim 11Independent Claim
A machine-readable tangible and non-transitory medium having information for estimating one or more parameters of a machine learning model, wherein the information, when read by a first node of a plurality of nodes, causes the first node to perform the following: estimating, by each of a plurality of processing units in the first node of the plurality of nodes, values of the one or more parameters associated with the machine learning model, wherein each of the plurality of processing units estimates the values based on a batch of a subset of training data allocated to the first node; generating, by a preselected representative processing unit of the first node preselected from the plurality of the processing units, a vector by aggregating the values of the one or more parameters estimated by the plurality of processing units in the first node; dividing, by the representative processing unit of the first node, the vector into a plurality of fractions, each of which is designated to one of the plurality of nodes; identifying a first fraction and remaining fractions of the plurality of fractions, wherein the first fraction is designated to the first node and the remaining fractions are designated to corresponding other nodes of the plurality of nodes; aggregating the first fraction designated to the first node and the first fractions received from other nodes of the plurality of nodes to generate an aggregated first fraction; sending, by the representative processing unit of the first node, the aggregated first fraction to representative processing units of the other nodes of the plurality of nodes; receiving, by the representative processing unit of the first node, from the representative processing units of the other nodes of the plurality of nodes, aggregated remaining fractions of the remaining fractions designated to the other nodes; creating an iteration final estimate of the one or more parameters based on the aggregated first fraction and the aggregated remaining fractions; broadcasting, by the representative processing unit of the first node, the iteration final estimate to all other processing units of the plurality of processing units in the first node to synchronize a learning state of the machine-learning model across the plurality of nodes; and iterating the above recited steps until a predetermined condition is met.
- Claim 12Depends on #11
The machine-readable tangible and non-transitory medium of claim 11, wherein the information, when read by the first node, causes the first node to further perform: generating a snapshot of a state of the one or more parameters of the model; and storing the snapshot in a storage outside the plurality of nodes.
- Claim 13Depends on #12
The machine-readable tangible and non-transitory medium of claim 12, wherein the information, when read by the first node, causes the first node to further perform: in response to a failure with respect to estimating the one or more parameters, retrieving the snapshot of the state of the one or more parameters of the model from the storage; and continuing to estimate the one or more parameters based on the last state of the one or more parameters.
- Claim 14Depends on #11
The machine-readable tangible and non-transitory medium of claim 11, wherein the plurality of nodes are synchronized via a Message Passing Interface (MPI) AllReduce based Application Program Interface (API) using a network interface implemented on each of the plurality of nodes, wherein the network interface includes an Ethernet interface, an Infiniband interface, or the Ethernet interface and the Infiniband interface.
Technical Overview & Description
CROSS REFERENCE TO RELATED APPLICATION The present application is a continuation of U.S. patent application Ser. No. 15/009,968 filed Jan. 29, 2016, entitled “ METHOD AND SYSTEM FOR DISTRIBUTED DEEP MACHINE LEARNING ” , which is hereby incorporated by reference in its entirety. BACKGROUND 1. Technical Field The present teaching relates to methods, systems, and programming for distributed computing. Particularly, the present teaching is directed to methods, systems, and programming for distributed deep machine learning on a cluster. 2. Discussion of Technical Background Distributed computing is a field of computer science that studies distributed systems, which include multiple autonomous computers or parallel virtual machines that communicate through a computer network, such as a computer cluster having multiple nodes. Deep learning or deep machine learning is a branch of machine learning based on a set of algorithms that attempt to model high-level abstractions in data by using multiple processing layers with complex structures. Deep learning has traditionally been conducted on an individual server. To learn from large datasets, it is desirable to conduct deep learning using many servers in a distributed system. Current techniques for distributed machine learning are based on dedicated clusters that are built from scratch and cannot be integrated with existing data processing pipelines. Existing works on distributed machine learning lack direct communications among operation nodes in the cluster, which increases end-to-end learning latency and does not support asynchronous distributed learning. When the system fails, an existing method requires a re-learning from scratch. Therefore, there is a need to develop techniques for distributed deep machine learning to overcome the above drawbacks. SUMMARY The present teaching relates to methods, systems, and programming for distributed computing. Particularly, the present teaching is directed to methods, systems, and progr
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|---|---|---|
| KR 20160004610 A | Frying pan cover having tuner of cooking | — | 0 |
Non-Patent Literature (10)
- Crotty, A., Galakatos, A.,
- &
- Kraska, T. (2014). Tupleware: Distributed Machine Learning on Small Clusters. IEEE Data Eng. Bull., 37(3), 63-76. (Year: 2014).
- Jacobsen, Dana A et al
- “
- An MPI-CUDA Implementation for Massively Parallel Incompressible Flow Computations on Multi-GPU Clusters
- ”
- Boise State University [Publish 2010] [Retrieved Mar. 2021]
- <
- URL: https://scholarworks.boisestate.edu/cgi/viewcontent.cgi? article= 1004