Menu Big Learning

Parameter servers

A distributed learner needs somewhere to keep its shared weights. A parameter server gives workers a common model while allowing the training examples to stay on the machines that process them.

Fine optical fibers fan out from a dark sleeve into a band of light.
Connections between workers and shared state

Follow a weight through the system

A worker holds a piece of the training data. It requests the model parameters it needs, computes a prediction and sends back a change. Server processes maintain the shared parameters and apply or combine contributions. Large parameter collections can themselves be partitioned among servers.

For a sparse text model, one document may touch the weights for only a few words. Transferring those weights can cost much less than transmitting the full vocabulary on every step. A dense model changes the balance because a much larger fraction of the parameters participates in each calculation.

Worker and server exchange
  1. Read weights
  2. Compute locally
  3. Send an update
  4. Combine changes

How recent must a value be?

Waiting for all workers after each round keeps their model views aligned. It may leave fast machines idle. Allowing workers to proceed independently makes more use of those machines, but the weights read by a worker may be older than those currently held by a server.

The parameter-server work at the 2013 workshop and in the later OSDI paper treated consistency as a design choice. A suitable policy depends on the learning procedure. A mathematical argument that assumes fresh values cannot simply be carried across to a system with delayed updates.

Data and model parallelism

Data parallelism gives workers different examples and the same logical model. Model parallelism divides the model itself, so that a single example may require computation on several machines. A system can use both arrangements. The DistBelief work examined distributing the training of large deep networks across a computing cluster.

Capacity is only one concern. If a task is retried, the system must account for the updates it has already applied. If a server becomes unreachable, other workers need a defined way to continue or restart without silently changing the training procedure.

Further reading