A Reliable Effective Terascale Linear Learning System

Spread a model over a thousand machines and they spend their time talking. This paper sums their results up a tree, and trained on 16 billion ad examples in 70 minutes.

Learn how a cluster adds up its machines’ answers, why a slow machine can ruin the whole job, and how a short online warm-up saves a long batch run.

Press Run with one central machine, then with the tree. Count the hops. Then we build, piece by piece, everything underneath: the model, the split of the data, the tree sum, the cluster it runs on, the slow-machine fix and the two-stage learning method.

You need a feel for a computer program that learns a number from examples and nothing about clusters. We build the rest from zero.

Based on Agarwal, Chapelle, Dudík and Langford, “A Reliable Effective Terascale Linear Learning System” (arXiv 1110.4198, 2011; Journal of Machine Learning Research, 2014). Read here as a prerequisite for the Core Automation post “The Hitchhiker’s Guide to Training on Compute Islands” (Rohan Anil, 2 November 2026). The background lesson is Data Parallel and All-Reduce. Every idea is re-taught here in our own words and devices.

Add up the cluster

Illustrative toy: machine number k holds the number k, so the true total is the sum 1 + 2 + … + m. One hop is one message crossing one line; a machine handles one message per hop. The tree is the paper’s Figure 1 shape (sum up the tree, then broadcast down). The paper’s own numbers come later: 1,000 machines, 16 billion examples, 70 minutes (Section 3.2). Playback of the central machine is sped up so you can watch it; count hops, not seconds.

Chapter 0

Why One Machine Is Not Enough

See why an ad company with billions of examples needs a thousand machines, and why simply renting them is not enough

Picture a company that shows ads on web pages. Every time someone visits a page, the company picks an ad. Sometimes the visitor clicks. Sometimes not. The company logs every visit, and after enough days the log holds billions of lines. The paper's training set has 2.3 billion examples, after it throws away most of the non-clicks to keep about two for every click.

Each line is one example: who the visitor was, which page, which ad, and the label, a 1 if they clicked and a 0 if not. The company wants a program that reads the log and learns to guess, for a new visit, the chance of a click. That guess decides which ad to show, and so it decides how much money the company makes.

This is the problem the paper solves. The paper is “A Reliable Effective Terascale Linear Learning System” by Alekh Agarwal, Olivier Chapelle, Miroslav Dudík and John Langford, written while they worked at Yahoo! Research. Terascale means a dataset measured in terabytes. Linear learning means the program learns one weight per feature and adds them up; Chapter 1 builds it.

The cheap trick, and why it fails

The cheapest fix for a huge log is to throw most of it away. This is subsampling: keep 1 line in 10, or 1 in 100, and learn from that. It is fast, and it often works.

The authors tested it on the ad log. Table 1 of the paper reports three scores. One of them, auPRC (the area under the precision and recall curve), is the one the authors trust most. A higher number is better. With 1% of the data it scores 0.4505. With 10% it scores 0.4753. With all of it, 0.4856.

That gap looks small. It is not. The paper says even a small drop in accuracy can cost real revenue, because the guess decides which ad wins each auction. A second test, on a DNA problem called splice site recognition, shows the same thing: a smaller training set hurts. So the answer is to use all the data.

Why one machine cannot read it

A single machine can only read data as fast as its network or disk connection allows. The paper makes a sharp point: the speed of any program on one machine is capped by how fast data reaches it. They call this cap the I/O interface of the machine. An I/O interface is simply the pipe between the machine and its data, and for the nodes in the paper that pipe was a 1 Gb/s network card. (Gb/s means gigabits per second: one billion bits moving every second.)

So a second goal appears. Measure learning throughput: the size of the input divided by the wall-clock time of the whole learning run. If your throughput is higher than one machine’s pipe, you have beaten every possible single-machine program. The authors note that earlier parallel methods mostly failed this test. Their throughput was below one machine’s pipe, so a thousand machines were slower than one good machine.

The new system reaches 500 million features per second on 1,000 machines. The paper says that is about five times faster than the 1 Gb/s interface of a single node. A feature here is one non-zero input fact about an example, such as “the page was finance.yahoo.com”. Try the arithmetic in the device below.

Race one machine against the cluster

The top bar is the least time any single machine could need, if it only reads the data at its network limit. The bottom bar is the cluster. Drag the number of passes over the data.

10

From the paper (Section 3.2): 16 billion examples, 125 non-zero features each, 10 passes, 70 minutes on 1,000 nodes, throughput 470 to 500 million features per second, about 5 times the 1 Gb/s interface. Derived here: the single-machine limit is 500 million ÷ 5 = 100 million features per second, and the cluster is assumed to spend the same 7 minutes on every pass. These are a reading of the paper’s rounded ratio, not a measured single-machine run.

At ten passes the least a single machine could need is about 55.6 hours. The cluster needs 70 minutes. The cluster does not win by being a faster computer. It wins because each of its thousand machines reads only its own thousandth of the data, in parallel.

Two things that make clusters hard

The authors name two difficulties. First, the data already lives on the cluster, spread over many machines, in a system called Hadoop. Hadoop stores big files in pieces on many machines and runs programs next to the pieces, so the data does not have to travel. Moving a terabyte over a network is slow, so the program should go to the data.

Second, Hadoop’s standard job model, MapReduce, was built for jobs that read data once, such as counting words. Learning needs many rounds: guess, check, adjust, repeat. MapReduce restarts a whole job each round, which is slow. A rival tool for fast rounds, MPI (a message-passing library from supercomputing), does not run well on Hadoop clusters and leaves machine failures to the programmer.

The paper’s answer has four parts, one per chapter. A tree that adds numbers across machines, called AllReduce, that works inside Hadoop. A trick that stops one slow machine from stalling everyone. A quick first pass that learns roughly. A careful second stage that finishes the job. Each part is old. The paper says so itself: none of the components are new, but the careful combination is.

This lesson reads the paper as the 2011 ancestor of an idea that Rohan Anil’s November 2026 post revisits. The post’s timeline lists it in one line: “Hadoop-compatible AllReduce on 1,000 machines; local online passes are combined by confidence-weighted averaging, then refined with distributed L-BFGS.” By the end of this lesson, every word of that sentence will make sense. The lesson Data Parallel and All-Reduce teaches the general background if you want more.

  1. The model: a linear predictor, hashed features and a loss to shrink.
  2. Splitting the work: why the gradient adds up across machines.
  3. AllReduce: the tree that sums a long vector.
  4. Inside Hadoop: why it beats MapReduce on every round.
  5. The slow machine: speculative execution.
  6. The online pass: confidence-weighted averaging.
  7. The warm start: L-BFGS and why starting close saves rounds.
  8. Against the field: communication cost of the alternatives.
  9. Field guide: numbers, checklist, code and links onward.
The paper measures learning throughput as input size divided by wall-clock time. Why is one machine’s network interface a useful yardstick?

Chapter 1

The Model the Cluster Trains

Build the click predictor by hand: one weight per fact, a sum, a probability and a loss to shrink

A visitor lands on finance.yahoo.com. The system shows an ad from the broker etrade. Did the visitor click? Before the cluster can help, we need to know exactly what it is computing. So we build the smallest version by hand.

Think of a scoreboard with one dial for every fact the system knows. One dial says “page is finance.yahoo.com”. Another says “advertiser is etrade”. A third says “both at once”. Each dial is a number, positive if the fact makes a click more likely and negative if less. This set of dials is the weight vector, written w. Learning means finding good dial settings.

From facts to a score

Each visit becomes a feature vector x: a long list with one slot per possible fact, holding a 1 if the fact is true and a 0 if not. The system adds up the dials of the facts that are true. That sum is the score, z = w·x. A model that only sums weighted facts is called linear.

A score can be any number, but a click chance must lie between 0 and 1. The logistic function squeezes any score into that range: p = 1 / (1 + e−z). A score of 0 gives 50%. A big positive score gives nearly 100%. A big negative score gives nearly 0%.

The paper calls this logistic regression. If you want the full story of why that curve is the right one, see Logistic Regression. Here we only need its shape and its gradient.

The objective: one number to shrink

How wrong is a dial setting? For one example with label y (1 for click, 0 for none), the loss is small when the predicted chance matches the label and large when it does not. For logistic regression the loss is log(1 + ez) − y·z. Add the loss over all examples and you get the number the whole paper tries to shrink.

minw
Search over every possible weight vector w and keep the one with the smallest total below. This is equation (1) of the paper.
∑i=1n
Add up over all n examples. For the ad data, n is 2.3 billion.
ℓ(wTxi ; yi)
The loss on example i: the score wTxi compared with the label yi. The paper keeps this general; the experiments use the logistic loss.
λR(w)
A penalty on large weights, with strength λ. The experiments use the squared length of w (L2 regularisation). It stops the dials from growing wild.

Now a worked number. Three facts are true: page = finance, advertiser = etrade, and the pair. Give the dials 0.4, −0.2 and 0.3. The score is 0.4 − 0.2 + 0.3 = 0.5. The chance of a click is 1 / (1 + e−0.5) = 62.2%. If the visitor did click (y = 1), the loss is −ln(0.622) = 0.47. Try your own dials below.

Score one visit by hand

Each row is one true fact. The bar is its weight. The arrow is its gradient: the direction that raises the loss. Set what the visitor did, then drag the weights.

0.4
-0.2
0.3

The three facts and starting weights are the lesson’s toy, built from the paper’s own example of a (publisher, advertiser) conjunction. The hash here is a simple 32-bit FNV-1a cut to 24 bits; the paper cites a 24-bit hash (Weinberger et al. 2009) without naming the function, so your slot will differ from theirs.

Look at the gradient bars. The gradient for one weight is simply (p − y) times the feature value. Because every feature here is 1, all three gradients are the same: p − y = 0.622 − 1 = −0.378. Gradient descent walks the opposite way, so all three dials go up. The visitor clicked, and the model was not confident enough.

Billions of facts, a few hundred true ones

Real systems know millions of facts. Every ad, advertiser, page, user group and every pair of them is a fact. Storing a slot for each would blow up memory. The paper uses the hashing trick: feed the fact’s text to a hash function, which turns any string into a number, and keep only 24 bits of it. That number is the slot. No dictionary is needed.

The result: each example is a sparse vector of length 224 = 16,777,216, with only about 125 slots set to 1. Sparse means almost everything is zero. Two different facts may land in one slot (a collision). The trick accepts that: a collision blurs two facts into one dial, and the paper uses a 24-bit hash anyway.

Count the data flow, because the later chapters depend on it. The weight vector w has d = 16,777,216 numbers. At 4 bytes each that is about 67 million bytes, 67 MB. One example touches only 125 of them. The gradient of one example is therefore non-zero in only 125 slots. But the sum of many examples’ gradients touches most slots. So the sum is a dense vector the same size as w. That size, d, is the amount every machine must send each round. Keep it in mind.

The second dataset is different. In splice site recognition the task is to spot a DNA position where a gene is cut. The paper uses 50 million training sequences, a feature space of 11,725,480 dimensions and about 3,300 non-zero features per sequence. Stored in full that is about 3 TB. It is the largest public dataset the authors know where subsampling does not work.

An example has 125 non-zero features out of 16,777,216 slots. The gradient of that one example is non-zero in how many weights, and why does it matter later?

Chapter 2

Split the Examples, Add the Gradients

See why a thousand machines can each read a thousandth of the data and still agree on exactly one answer

You have a stack of 2.3 billion index cards, one per ad visit. You need one number for each dial: how much should it move? Handing the whole stack to one clerk takes forever. So you cut the stack into 1,000 piles and give one pile to each clerk.

Does cutting the stack change the answer? It does not, and the reason is the most important fact in this lesson. The total loss is a sum over examples. So its gradient is a sum too.

The gradient is a sum

Recall from Chapter 1 that one example pushes each weight by (p − y) times its feature value. This push is the example’s gradient. The gradient of the whole objective is the sum of these pushes over all examples, plus a term for the penalty. A sum can be cut into pieces in any way, added piece by piece, and the total stays the same.

g
The data part of the gradient of the whole objective. It is a vector with d entries, one per weight.
∑k=1m
Add over the m machines (the paper calls them nodes).
gk
The local gradient of machine k: the same sum, but only over its own pile.
i∈Sk
Example i belongs to the set Sk of examples stored on machine k. Each example sits on exactly one machine.

The regularisation penalty depends on w only, not on the data. So any machine can add it after the sum. That is the line “add the regularization part in the gradient” in the paper’s Algorithm 2.

Here is the smallest possible check by hand. Take one weight and four examples whose pushes (p − y) times x are −0.4, +0.3, −0.2 and +0.6. One machine adds all four: −0.4 + 0.3 − 0.2 + 0.6 = 0.3. Now give the first two examples to machine A and the last two to machine B. Machine A gets −0.4 + 0.3 = −0.1. Machine B gets −0.2 + 0.6 = +0.4. Together they give −0.1 + 0.4 = 0.3. Same answer. Notice also that the two local gradients point in opposite directions. Neither machine alone knows which way to move; only the total does. That is why the machines must talk after every pass.

Now watch it work. The device below has 24 toy examples and 4 weights held fixed. You choose how many machines share them.

Cut the pile, keep the total

Each column is one weight. Each coloured block is one machine’s local gradient for that weight; blocks above the line push up, blocks below push down. The thin outline is the total over all machines. Drag the number of machines.

4

Toy data made up for this lesson: 24 examples, 4 binary features, labels from a fixed generator, weights fixed at 0.5, −0.3, 0.2 and 0.1. Example i goes to machine (i mod m). The sum is computed live in 64-bit floating point.

Slide to 8 machines. Each machine now holds three examples, and its blocks are small and noisy. Slide to 1 and the single block is the total. The outline never moves. This is why the paper can say that any algorithm that only needs sums over the data, which it calls a statistical query algorithm, can be parallelised with a few extra lines of code.

The loop every method here shares

The paper notes that all its methods share one rhythm. Each iteration has three phases.

  1. Local pass. Each machine reads its own pile once and builds a vector of size d. For the ad data that is d = 16,777,216 numbers.
  2. AllReduce. The machines add their d-vectors together, and every machine receives the total. Chapter 3 shows how.
  3. Update. Each machine uses the total to move its copy of w. All copies move the same way, so they stay identical.

Count the data in step one and step two. With 2.3 billion examples on 1,000 machines, each machine holds about 2.3 million examples. At 125 features each, that is 287 million feature values to read. The vector it sends in step two has 16.8 million entries. So the message is about 17 times smaller than the pile it summarises. For bigger data, the ratio grows. This is the paper’s key point: the local data is orders of magnitude larger than the weight vector, so after each pass, sending the vector is far cheaper than sending the data.

Why can machines safely hold different random piles? The paper assumes examples are spread uniformly at random. Then every machine’s local objective has the same expected value as the global one. Machine 7’s pile is a fair sample of the whole log, so its gradient points in about the same direction as everyone else’s. Chapter 7 uses this fact.

Why split by examples, not by features

You could instead give each machine a slice of the weights. The paper mentions this “feature partition” family (Hsu et al. 2011; Dean et al. 2012). Its strength is that the model can be larger than one machine’s memory. Its cost is that the data must be reshuffled from the example layout the log already has. The paper counts this at about ns/m extra values per machine, where s is the number of non-zero features per example. Here the weight vector fits in memory, so the example split wins: no reshuffling, and no extra cost.

Why does splitting the examples over 1,000 machines give the same gradient as one machine?

Chapter 3

AllReduce: Add Up a Tree

Build the tree sum that gives every machine the total of a 67 MB vector, and learn why pipelining hides its depth

A thousand clerks each hold a long list of 16.8 million numbers. The boss wants every clerk to end up with the list of column totals. How should they pass numbers around?

The simplest plan is to name one clerk the collector. Everyone mails their list to the collector, who adds them, and mails the total back. It works. It is also slow, and the hero at the top of this page showed why: the collector has one pair of ears. It reads one list at a time.

The cost of the collector

Put numbers on it. Say each of the 16.8 million entries takes 4 bytes. One list is about 67 MB. The collector must receive 999 lists, which is about 67 GB. On a 1 Gb/s link, a link that moves 125 MB each second, that is 536 seconds, nearly nine minutes. And the learning needs about 15 rounds of this. The collector also does all the additions alone.

The plan is slow because the work is lopsided. One machine is busy while 999 wait. We want a plan where every machine does a similar small amount of work.

Reduce up, broadcast down

The paper’s plan arranges the machines in a tree: each machine has one parent above it and at most two children below. The machine at the top is the root. The operation is called AllReduce: every node starts with a number and ends up with the sum of all the numbers. It has two phases (Figure 1 of the paper).

  1. Reduce. Leaves send their values to their parents. Each parent adds what it gets from its children to its own value and sends the result up. When the root has the sum, the phase ends.
  2. Broadcast. The root sends the total to its children, who pass it to theirs, down to the leaves.

The paper writes the tree as a nearly balanced binary tree. A balanced binary tree over 1,000 machines is only about 10 levels high, so the longest path from a leaf to the root is 9 hops. A round of reduce and broadcast takes 18 hops, against 1,998 for the collector. Each machine talks to at most three others: its parent and two children. No machine becomes a bottleneck.

The reduce phase can be done with any combining step that is the same whatever the grouping, such as adding or taking a maximum. That property is what lets a parent combine its children’s results in any order. The same fact let us cut the pile in Chapter 2.

Pipelining: send chunks, not the whole vector

There is still a catch. Our message is not one number but a vector of 16.8 million entries. If a machine waits to receive the whole vector before sending on, each of the 18 hops takes a full vector time. Eighteen hops cost 18 vector times.

The fix is the one a bucket line uses. Cut the vector into chunks. As soon as a machine has the first chunk from its children, it adds it and sends it on, while the second chunk is still arriving. This is pipelining. The paper says: when summing or averaging a long vector, such as the weight vector, the reduce and broadcast can be pipelined over the vector entries, so the latency of going up and down the tree becomes negligible on a typical Hadoop cluster. Latency here means the delay of one trip along the tree, as opposed to the time to move all the data.

Count it in ticks, where one tick moves one chunk across one link. With L chunks and H hops, sending the whole vector hop by hop costs H×L ticks. Pipelined, the first chunk takes H ticks to cross all hops, and the other L − 1 chunks follow one tick apart, so the total is H + L − 1.

Worked example. Take H = 18 hops (the 1,000-machine tree) and L = 100 chunks. Whole vectors: 18 × 100 = 1,800 ticks. Pipelined: 18 + 100 − 1 = 117 ticks. That is 15 times shorter. Drag the chunks below and watch the extra cost of depth shrink to a small step.

Pipeline the vector

Each row is one hop of the round trip, up the tree and back down. A bar shows when that hop is busy. The faint outline is the same hop without pipelining. Pick a tree height, then drag the chunk count.

40

An illustrative model, not a measurement: one tick moves one chunk across one link, every link works in parallel, and a node forwards a chunk the tick after it arrives. The paper states only that pipelining makes tree latency negligible; the tick counts H×L and H + L − 1 are this lesson’s arithmetic.

At L = 1 the two plans are identical, because there is nothing to overlap. By L = 40 the pipelined round trip is nearly all transfer time and almost no waiting for the tree. What is left is the unavoidable cost of moving the vector once.

What AllReduce is, in one picture of data

As data flow, AllReduce is a function with a clean shape. In: m vectors of d numbers, one per machine. Out: m copies of one vector of d numbers, the element-wise sum. Each machine sends and receives about one vector per child and one for its parent, whatever m is. That is why the cost per machine barely grows as the cluster grows.

The paper also admits that other AllReduce designs may be simpler or faster. It did not tune the tree further, because its experiments show the time in AllReduce is tiny next to compute and waiting for slow machines. Chapters 4 and 5 show those numbers.

Why does the paper pipeline the reduce and broadcast over the entries of the vector?

Chapter 4

Making AllReduce Live Inside Hadoop

Follow one job from launch to the first message, and see why restarting a job each round wastes most of the time

Suppose the tree sum from Chapter 3 is ready. The data, though, lives on a company cluster that runs Hadoop. Hadoop is a system that stores huge files in pieces across many machines and then starts small programs, called tasks, on the machines that hold the pieces. If a machine dies, Hadoop restarts its task elsewhere. This is what makes the cluster reliable and cheap.

Hadoop’s own way of computing is MapReduce (Dean and Ghemawat, 2008). A job has two kinds of tasks. Mappers read their piece of the data and emit small results. Reducers combine the results. When the job ends, the answer is written to disk and all tasks vanish.

Why MapReduce is slow for learning

Learning is a loop. Each round needs the total gradient, which then changes the weights, which are needed for the next round. The standard recipe (Chu et al. 2007) is to run one MapReduce job per round: mappers compute local gradients, reducers sum them, the driver reads the result, updates, and starts a new job.

Each new job has large overheads. The paper lists them: job scheduling, data transfer and data parsing. The cluster must find free slots, start fresh programs, read the pile from disk, and parse the raw text into numbers, all over again. Then it computes for a short while. Then it throws it all away.

The authors measured the damage on an internal logistic regression program, switching only the way gradients are summed. Table 4 reports the average time per iteration.

DataMapReduceAllReduceSpeed-up
Full display advertising set1,6906702.5 times
10% sample1,3225922 times

Read the MapReduce column first. Cutting the data to a tenth saved only 22% of the time (1,322 against 1,690). So most of the time is a fixed cost that does not depend on the data. The AllReduce column behaves as you would hope: 670 for the full set, 59 for a tenth. The paper’s conclusion is that Hadoop’s MapReduce has substantial overheads, and the gain from AllReduce can be extremely large for small data and remains noticeable for the largest.

Pay the job overhead every round

The bars are the total time for the number of iterations you choose. Switch between the full data and the 10% sample, then drag the iterations.

15

Per-iteration times are the paper’s Table 4 (full set: 1,690 and 670; 10% sample: 1,322 and 59). The table prints no unit; this lesson reads them as seconds, as in the paper’s other timing tables. Total = iterations × time per iteration. About 15 iterations is the paper’s typical count for the hybrid method (Section 4.2).

The authors give the reason in one line of Section 2.2: they expect to benefit from AllReduce because of the iterative nature of these algorithms and the shared state between iterations. Between two rounds, the weight vector is the only thing that changes. The data does not change, and neither does the code. A system that keeps the tasks alive and keeps the weights on every node can reuse everything that stays the same. A system that restarts a job must load all of it again. The authors add that the Mahout project, a library of Hadoop learning tools, did not parallelise its own logistic regression, which shows how awkward MapReduce is for this job.

How the paper sets up the tree inside Hadoop

The authors wanted Hadoop’s strengths (programs move to the data; failed tasks restart) and a persistent tree. They did it in five steps, all described in Section 2.1.

  1. Start a spanning tree server on the gateway machine of the Hadoop cluster. A spanning tree is a tree that reaches every machine.
  2. Launch a map-only job. Each mapper is given a piece of the data. There is no reduce phase.
  3. Each mapper connects to the gateway’s address as its first step.
  4. The server builds the tree. Once all mappers are connected, it makes a nearly balanced binary tree and tells each node the addresses of its parent and children.
  5. The nodes talk directly with TCP connections written in C++ sockets. No Hadoop service carries the messages.

The mappers do not end after one round. Each stays alive and runs the entire learning loop, with the tree in place for every iteration. This is why the heavy costs (starting tasks, reading, parsing) are paid once. The paper says these are one-time overheads in the AllReduce approach, but per-iteration overheads in MapReduce.

What the programmer writes

The authors designed the interface so an existing program needs few changes. An implementation of a learning algorithm need only insert a few strategic library calls to switch from learning on one machine to learning on a thousand. In pseudocode, the change looks like this:

# one machine
g = local_gradient(w, my_examples)          # shape (d,)
w = step(w, g)

# a thousand machines: add one line
g = local_gradient(w, my_examples)          # shape (d,)
g = allreduce_sum(g)                        # every node gets the total, shape (d,)
w = step(w, g)

The price of a single tree

There is a cost. With one tree, if any machine fails, the whole computation fails. MapReduce does not have this weakness, because it can rerun one task. The paper accepts this and uses a trick, covered in Chapter 5, to make AllReduce reliable enough for computations of up to 10,000 node-hours. The authors also explain why they avoided MPI, the standard library that already has AllReduce: it is hard to run on top of a Hadoop cluster, and it leaves most fault tolerance to the programmer.

Table 4 shows MapReduce taking 1,322 on a 10% sample against 1,690 on the full data. What does this show?

Chapter 5

The Slow Machine Problem

See how one late machine out of a thousand holds back the rest, and how running a spare copy of every task fixes it

A thousand runners start a relay. Each runs a stretch and then must hand the baton to the whole line at once. Nobody can start the next stretch until all thousand have finished. If 999 runners finish in 34 seconds and one stumbles and takes 758, what is the time for the stretch?

It is 758 seconds. The AllReduce of Chapter 3 is a barrier: a point every machine must reach before any can go on. So the time of one iteration is set by the slowest machine, not the average one. This is the slow node problem, also called the straggler problem.

Why a node is slow

Large clusters are busy with many jobs that use the machines unevenly. Your task may share a machine with someone else’s heavy job, or sit on a disk that is failing slowly. The paper says a busy cluster often has one of its thousand nodes very slow. And the more nodes you use, the more likely you are to hit one.

The authors measured this on the splice site data with 1,000 nodes. For every iteration they recorded the time spent computing and the time spent in AllReduce. The AllReduce time has two parts. Stall time is waiting for other nodes to finish. Communication time is the real transfer, which they estimate by the minimum AllReduce time across nodes. Table 2 gives the computing times.

1,000 nodes, seconds5%50%95%MaxComm.
Without speculative execution29346075826
With speculative execution2933496310

Read it like a spread. Half the nodes finish in 34 seconds or less. 95% finish within 60. But the slowest takes 758, over 22 times the median. The paper calls this one node “about 10 times slower than the other nodes” with the “catastrophic consequence of slowing down the entire process by a factor 10.” Note also that communication takes only 26 seconds, so the tree is not the culprit.

Speculative execution: run a spare

Hadoop has a built-in remedy called speculative execution. When a task runs much longer than its peers, Hadoop starts a second copy of the same task on a different machine, on identical data. It uses whichever copy finishes first and kills the other. The slow machine no longer matters, because a healthy copy beats it.

With this switched on, the table shows the maximum falling from 758 to 63 seconds, and the 95th percentile from 60 to 49. The median hardly changes (34 to 33). The communication column also drops from 26 to 10. The paper does not say why.

Wait for the slowest

Each thin bar is one of the 1,000 nodes, sorted from fastest to slowest. The shaded area above a bar is that node’s idle time while it waits for the slowest. Switch speculative execution on and off.

Only the 5%, 50%, 95% and maximum values and the communication time come from the paper (Table 2, splice site data, per iteration). The shape between them is an illustrative reconstruction: straight lines between those points, with the single slowest node at the maximum. The idle share is computed from the reconstruction.

That is the drama in one picture. Without the spare, almost the whole chart is idle time. With it, the nodes finish close together and the wait is small.

The catch: duplicates break the tree

A spare copy is a problem for AllReduce. The tree needs each task to appear exactly once. If two copies of a task were in the tree, their values would be summed twice, and a killed copy would leave a hole. Hadoop does not know about the tree.

The paper’s fix is a matter of timing. Delay the construction of the tree until each node has completed its first pass over the data. By then, the speculative race is over: one copy of each task has won, and the losers are gone. The tree is built on the survivors only. The authors report that the net effect is perhaps another order of magnitude of scalability and reliability in practice, with up to 1,000 nodes running failure-free for hundreds of trials of typical length up to 2 hours.

Notice what this implies for the learning method. Its first pass over the data needs no communication at all, so no tree is needed yet. Chapter 6 shows that pass. (Our reading: that pass is a natural time for Hadoop to sort out the slow machines.)

How the run time scales with machines

Table 3 shows the splice site data, with the time to reach a fixed test error as you add machines.

Nodes1002005001000
Comm time per pass512916
Median compute per pass1671054334
Max compute per pass46227117295
Wall clock time3,6772,120938813

Ten times the machines gave a wall clock speed-up of 3,677 / 813 = 4.5, not 10. The median compute fell by 4.9 times (167 to 34), and communication stayed small, between 5 and 16 seconds. But the maximum compute stayed about 2.8 times the median at both ends (462 against 167, and 95 against 34). The paper’s reading: even with 1,000 nodes, communication is not the bottleneck. The slow node is. Speculative execution helps, but as the number of nodes increases, so does the chance of hitting slow nodes. Its authors also warn that the Table 3 timings were not repeated, so there is large uncertainty.

Why does the paper build the AllReduce tree only after every node has finished its first pass over the data?

Chapter 6

One Quiet Pass, Then a Confident Average

Let every machine learn alone first, then merge their answers by how sure each one is

Imagine a thousand students each studying a different chapter of the same book, with no talking. After one reading, each can answer questions about their own chapter well, and the rest only vaguely. If you now ask them a question and average their answers, whose answer should count most? The student who read that part, of course.

That is the first stage of the paper’s method. Each machine learns from its own pile, alone, in one fast pass. Then the machines merge their weights, giving more say to the machine that saw more evidence. Only after that does the slow, careful stage begin (Chapter 7).

Online learning: one example at a time

Online learning reads examples one by one. For each, it checks the current prediction, finds the gradient of that single example, and nudges the weights a little. It never needs the full gradient. The paper notes that online methods reach a rough answer fast, in a handful of passes. They are slow only at the end, when a very precise answer is wanted. And they are hard to parallelise, because each step depends on the last.

Here, no parallelism is needed in this stage. Each machine runs its own online pass on its own pile. There is no communication. This is the quiet pass.

Adaptive steps: a separate dial speed for each weight

How big should each nudge be? One fixed size is a poor fit. A weight for a very common fact (say “page is the front page”) gets nudged by nearly every example, so it settles quickly and later nudges should be small. A weight for a rare fact gets nudged almost never, so each nudge should be bold.

The paper uses the adaptive gradient update (Duchi et al. 2010; McMahan and Streeter 2010). Each weight keeps a running total of its squared gradients and divides its step by the square root of that total. Algorithm 1 in the paper, on a single node, reads:

g
The gradient of the loss on this one example: a vector with d entries, non-zero only for its true features.
w
The weight vector of this machine, started at zero.
s(w,x,y)
An invariance update (Karampatziakis and Langford 2011), which adjusts the size of the step so that a big step on a steep loss does not overshoot. The paper uses it as given; we treat it as a sensible step-size factor.
G−1/2, Gjj
G is a diagonal matrix: one number Gjj per weight j, the running total of that weight’s squared gradients. A weight that has been pushed often has a large Gjj, so its steps shrink.

After the pass, machine k holds two vectors of size d: its weights wk and its totals Gk. The totals have a second meaning. A large Gjjk says “this machine has seen many examples with feature j”. It is a measure of confidence.

Confidence-weighted averaging

Now merge. The simplest merge is a plain average of the m weight vectors. But a machine that never saw feature j has a weight of 0 for it, a guess with no evidence. A plain average drags the right answer toward zero. The paper instead weights each machine by its confidence, separately for each weight. Equation (2):

w̄
The merged weight vector, with d entries.
∑ Gk
The total confidence for each weight over all machines. A diagonal matrix, so its inverse is just one divide per weight.
∑ Gkwk
Each machine’s weight, multiplied by its confidence in it, added up.

Because G is diagonal, this is just a per-weight weighted average: w̄j = (∑ Gjjk wjk) / (∑ Gjjk). The paper notes it takes two AllReduce calls: one on the vector of products Gkwk, one on the vector of Gk. Each is a d-sized vector, so the cost is two more rounds like the ones in Chapter 3. Then each machine divides the two totals.

Worked example. A rare ad feature appears in 100 examples. Machine A saw 90 of them and learned weight 1.8. Machine B saw 10 and learned 0.6. Treat each G as the example count. The plain average is (1.8 + 0.6)/2 = 1.2. The weighted average is (90×1.8 + 10×0.6)/100 = 1.68. The weighted answer trusts the machine that knew. Drag the split below.

Trust the machine that saw it

Machine A and machine B each learned a weight for one rare feature, from the examples they happened to receive. The target weight is 2.0. Drag how the 100 examples that contain the feature were split.

90

Illustrative toy, not the paper’s data. A machine with n examples of the feature learns the weight 2.0 × n / (n + 8), a weight that shrinks toward zero when it has seen little. Its confidence G is taken as n. The method itself is the paper’s equation (2).

At 50/50 the two averages agree, because the machines are equally sure. At 90/10 the plain average is dragged down by the ill-informed machine and the weighted one is not. Real data is uneven in just this way, because rare features are scattered unevenly across machines. Common features have similar G on every machine, so there the two averages nearly agree.

The repeated version

The paper also tests repeated online learning with averaging: each node does an online pass, the weights are averaged by equation (2), the confidence totals are combined too (as Ḡ = (∑ Gk)−1 ∑ (Gk)2), and the average is used to start the next pass. This is close to what McDonald et al. (2010) and Hall et al. (2010) proposed. It gets a moderately small test error very fast, but its progress slows, and it can be too slow to reach the best error. That is why the paper hands over to a batch method after one pass. Chapter 7 tells why.

In the paper’s equation (2), what does the weight Gjjk encode, and why use it?

Chapter 7

L-BFGS and the Warm Start

Start the careful batch method from the online answer, and count how many rounds of communication that saves

You are hiking to the lowest point of a huge valley at night, with a torch. The online pass was a quick jog downhill that got you to the valley floor. Now you want the exact bottom. You slow down, measure the slope carefully at each step, and take well-chosen strides. That is the second stage.

The batch stage: full gradients, smart steps

A batch method uses the gradient of the whole dataset at every step, not one example. Chapters 2 and 3 already built the tool: local gradients, summed by AllReduce. The paper picks L-BFGS (Nocedal 1980), a quasi-Newton method. Newton’s method uses the curvature of the valley, how fast the slope changes, to take a good stride. Computing full curvature for 16.8 million weights is impossible. L-BFGS gets a cheap guess of it from the last handful of steps and gradients it has seen.

Two facts make it a good fit. First, it needs only the gradient, which the cluster can sum. All other work happens locally on each machine, on a vector of size d, in identical copies. Second, when it is close to the bottom it converges fast. The paper also applies the standard Jacobi preconditioner, a rescaling of each weight by its own curvature so that all weights move at comparable speeds.

The paper’s Algorithm 2 sums up the whole system. In words:

  1. Online pass. Each node k runs Algorithm 1 on its data and gets wk and Gk.
  2. Merge. Compute the weighted average w̄ with two AllReduce calls (Chapter 6).
  3. Start L-BFGS from w̄.
  4. Loop T times. Each node computes its local gradient gk over its data. AllReduce gives g = ∑ gk. Add the regularisation part. Take one L-BFGS step. Every node does the identical step, so all copies of w stay equal.

Count the traffic. The online stage costs two vector AllReduces. Each L-BFGS iteration costs one vector AllReduce. About 15 iterations gives roughly 17 AllReduces of a 16.8-million-entry vector for the whole run. Compare this with a thousand small mini-batch updates, which Chapter 8 prices.

Why the warm start saves rounds

L-BFGS from a cold start (all zeros) is slow to reach the good neighbourhood of the answer. Once there, it speeds up. The online pass gets to that neighbourhood for free in communication terms, because it needs none. Then L-BFGS only has the final part to do. This is a warm start: begin the careful method from a good guess instead of from nothing.

The paper shows it in Figure 3. It plots the optimality gap, the distance of the current objective from its best possible value, against iterations. With one online pass first, L-BFGS needs about 10 to 15 fewer iterations to reach the same gap. Figure 4 then compares four recipes on the test score: online only, L-BFGS only, and 1 or 5 online passes followed by L-BFGS. One online pass followed by L-BFGS looked the most effective.

A short proof of why

Section 4.1 gives a theoretical reason. Take uniform averaging and one online pass, for a clean argument. Let n be the number of examples and m the number of machines, so each holds n/m.

  1. Each machine trains on n/m random examples, so its weights are near-best for the data distribution to within about √(m/n).
  2. Averaging m such weight vectors can only help, by Jensen’s inequality for a convex loss: the loss of the average is at most the average of the losses.
  3. Therefore the merged weights have a gap of about ε0 = O(√(m/n)) from the best training weights.
  4. L-BFGS then shrinks the gap by a fixed factor each pass. Call the contraction rate κ. To go from gap ε0 to gap ε takes about κ ln(ε0/ε) passes.
  5. A cold start begins at a gap of about 1. It takes κ ln(1/ε) passes.
saving
Passes over the data saved by warm-starting, compared with a cold start.
κ
How slowly L-BFGS converges: roughly, the number of passes to cut the gap by a factor of e. A bigger κ means a harder problem.
ε0
The gap left after the online pass and averaging: about √(m/n).
1
The one online pass itself, which counts as one pass over the data.
n/m
Examples per machine. The paper expects n to be much larger than m, so the saving is big.

Worked example with the ad data. Let n = 2.3 billion, m = 1,000 and say κ = 3 (a made-up value; the paper does not give one). The target gap is ε = 1/n, as in the paper’s noisy-data case. Cold start: 3 × ln(2.3×109) = 3 × 21.6 = 64.7 passes. Warm start: 1 + 3/2 × (ln 1000 + ln 2.3×109) = 1 + 1.5 × 28.5 = 43.7 passes. The saving is about 21 passes, close to a factor of 1.5. In the limit of small m, the warm start nearly halves the passes.

Count the passes saved

The two lines show the gap shrinking pass by pass. The cold line starts at 1. The warm line jumps to the online answer after pass 1. They stop when the gap reaches 1 in n. Drag the data size, the machines and the difficulty.

2.5 billion
1,000
3

Illustrative calculator: the paper’s Section 4.1 bound, with unit constants and a made-up κ (the paper gives none). Cold passes = κ ln n. Warm passes = 1 + κ/2 (ln m + ln n). The paper’s measured saving in Figure 3 was about 10 to 15 iterations. Warm and cold lines are straight in log scale because the gap shrinks by a fixed factor per pass.

Slide the machines down to 10: the warm start gains a little more, because each machine holds more data and its online answer is closer. Slide κ up: both lines tilt shallower, and the absolute saving grows. In practice the paper found 1 online pass best. More online passes (the test used 5) did not beat it.

When the warm start helps most, and when it does not

The paper names two extremes. In a noisy problem such as ad clicks, a coarse answer is already almost as good as a precise one, because more digits of precision would not improve predictions on new data. The warm start cuts passes by almost half, and pure online learning also does well. In a noiseless problem such as splice site recognition, high precision matters, and online learning struggles to reach it. The warm start still helps, but less. Either way, the hybrid is guaranteed to be competitive with its better half: it always converges, because L-BFGS does, and it is never much worse than the online stage.

The warm start saves roughly κ/2 · ln(n/m) − 1 passes. What happens to the saving if each machine holds more data (n/m grows)?

Chapter 8

Counting the Bytes of the Rivals

Price each rival method in numbers sent per machine, and read the paper’s head-to-head results

Two sellers offer you a way to ship parcels. One sends a truck once a day with all your parcels. The other sends a bicycle courier every ten minutes with a single parcel. Which is cheaper? It depends on the price of one trip. The paper makes this point about distributed learning: the right yardstick is how much data each machine must send.

Computing is cheap and local. Messages are slow and shared. So the paper compares methods by the per-node communication cost: how many numbers the busiest machine sends and receives in the whole run. Switches inside a data centre keep different pairs of machines from interfering, so the busiest single machine is what counts.

The yardstick

The paper's Table 5 uses five letters: n examples, s non-zero features per example, d weights, T passes over the data, b examples in a minibatch. In our ad data, s ≪ d ≪ n: 125 against 16.8 million against 2.3 billion. Every row of the table is a formula in these letters, with constant factors dropped (the paper writes O or Θ).

MethodPer-node communicationWhat it sends
Hybrid online + batch (this paper)d · Thybridone weight-sized vector per iteration
Online with averaging (McDonald; Hall)d · Tonlineone vector per pass, but more passes needed
Overcomplete averaging (Zinkevich)n · scopies of the data, a quarter of all examples per node
Distributed minibatch, densed · Tmini · √na full vector after every small batch
Distributed minibatch, sparsen · s · Tminionly changed entries, but several times the data size
Parallel online, split by feature (Hsu)n · s / m + n · Ta reshuffle of the data, then messages per example

The hybrid row is the only one that does not grow with n. Every other row either sends something the size of the dataset, or sends a vector many times over. The paper puts the point plainly: every node has a communication cost functionally smaller than the size of the dataset, because there is no dependence on ns. And it notes the minimum possible is about d, if the model is saved on one machine.

Price the parcels

Each bar is the number of values one machine sends in the whole run, on a log scale (each tick is ten times more). Change the dataset size or the number of passes and watch which bars move.

2.5 billion
15

Formulas from the paper’s Table 5 and Section 4.2 with constants dropped: hybrid d·T; overcomplete n·s; dense minibatch T·d·√n (minibatch size b = √n, as the theory suggests); sparse minibatch T·n·s. The device fixes d = 224 = 16,777,216 and s = 125 (display advertising), and uses the same T for every method. In the paper T differs by method, and Thybrid is about 15.

At the ad data's size, the hybrid sends about 250 million values per machine. The dense minibatch method would send about 12 trillion, a factor near 48,000. This is no academic gap. The paper ran it.

The 40-hour experiment

Dekel et al. (2012) proposed adding up gradients over small batches across all nodes (distributed minibatch). The authors implemented it with AllReduce on the splice site data, with 500 nodes and a global minibatch of 100,000. Twenty passes over 50 million examples need 20×50,000,000/100,000 = 10,000 updates, each with its own AllReduce.

The run took 40 hours. L-BFGS finished 20 passes in under one hour, and with a much better score. The only difference is communication: 10,000 rounds instead of about 20. The paper's conservative reading: the overhead of those updates is 39 hours, or about 14 seconds for each AllReduce. The authors add that smaller batches might reach similar accuracy, but the 39-hour overhead would remain, and larger batches would give inferior accuracy.

Overcomplete averaging

Zinkevich et al. (2010) give each node an overcomplete share of the data (some examples on several nodes), run an online pass on it, and average once at the end. It sends only d at the end, but must first copy data around: the paper gives about a quarter of all examples on each of 100 nodes, a cost of order ns. In Figure 5 the method was competitive on the ad data, and much slower to converge on the splice site data. It also needs the deep replication of data that is undesirable for large sets.

The head-to-head with Sibyl

Sibyl is a distributed boosting system that ran on a proprietary platform and was unpublished at the time, so only talk slides are available (Canini et al. 2012). Its reported run used 970 cores on 129.1 billion examples with 54.61 non-zero features each, at 2.3 million features per core per second. The paper's run used 16 billion examples with 125 features each, 1,000 nodes and 10 passes, finishing in 70 minutes.

SystemPer-node speedLearning throughput
This paper, 1,000 nodes4.7 M features/s470 M features/s
Sibyl, 970 cores2.3 M features/s45 to 223 M features/s

Check the paper's arithmetic. 16 billion × 10 passes × 125 features, divided by 1,000 nodes and by 4,200 seconds (70 minutes), is 4.76 million features per node per second. For throughput, 16 billion × 125 / 4,200 seconds = 476 million per second. The paper reports 4.7 and 470. Sibyl ran 10 to 50 iterations, so its throughput is the per-core speed times its cores, divided by the iterations: 45 to 223 million. The result was therefore 2 to 10 times slower, though the authors state a fair comparison is not possible. And on the 3 TB splice data: an initial online pass plus 14 L-BFGS iterations reached auPRC 0.581 in 1,960 seconds on 500 machines, a 68-fold speed-up against the 132,581 seconds reported for one machine, far from the ideal 500. They blame the explicit feature representation they chose for simplicity.

The distributed minibatch run took 40 hours and L-BFGS under one hour for 20 passes. Which explanation fits the paper’s finding?

Chapter 9

Field Guide

Keep the numbers, the terms and the code on one page, and see where the paper sits in the story of training across slow links

In one paragraph: the paper trains a linear model on billions of examples by splitting the examples over 1,000 machines on Hadoop. Each machine learns alone in one online pass. A tree AllReduce merges the results with confidence weights. L-BFGS, fed by tree-summed gradients, then finishes the job in about 15 iterations. Spare copies of slow tasks keep one late machine from holding up the rest. Everything sent between machines is a vector of the size of the model, never of the data.

The numbers

WhatValueWhere
Ad training set2.3 billion examples; 224 dimensions; about 125 non-zerosSection 3.1
Splice site set50 M train, 4.6 M test; 11,725,480 dimensions; about 3,300 non-zeros; about 3 TBSection 3.1
Cost of subsampling (auPRC)0.4505 at 1%, 0.4753 at 10%, 0.4856 at 100%Table 1
Slowest node, 1,000 nodes758 s without spares; 63 s withTable 2
Nodes versus wall clock3,677 s at 100; 813 s at 1,000Table 3
MapReduce versus AllReduce per iteration1,690 against 670 (full); 1,322 against 59 (10%)Table 4
Big run16 billion examples, 10 passes, 1,000 nodes, 70 minutes; 4.7 M features per node per second; 470 M overallSection 3.2
Saving from the warm startabout 10 to 15 L-BFGS iterationsFigure 3
Hybrid iterationsabout 15Section 4.2
Minibatch run40 hours against under 1 hour; 10,000 updatesSection 3.3
Splice site resultauPRC 0.581 in 1,960 s on 500 machines; 68 times faster than one machineSection 3.2
Reliabilityup to 10,000 node-hours; 1,000 nodes, hundreds of failure-free trials up to 2 hoursSections 2.1, 2.3

The terms

TermIn plain words
NodeOne machine in the cluster.
AllReduceEvery node starts with a vector and ends with the sum over all nodes. Done as reduce up a tree, then broadcast down.
PipeliningPass the vector on in chunks, so the tree depth is paid once.
BarrierA point all nodes must reach before any goes on. The slowest node sets the time.
Speculative executionHadoop runs a second copy of a slow task and keeps whichever finishes first.
Online passOne run through the local data, updating weights one example at a time. No messages.
Adaptive gradientEach weight divides its step by the root of its squared gradients so far.
Confidence-weighted averageMerge weights per feature, trusting the node that saw it more.
L-BFGSA batch method that estimates curvature from recent steps to take good strides.
Warm startBegin the batch method from the online answer instead of zeros.
Learning throughputInput size divided by total wall-clock time of the whole run.

The core as code

This is a runnable single-process sketch of the paper’s Algorithm 2. The function allreduce stands in for the tree: it returns the sum on every node. We checked that on a small synthetic problem with 8 pretend nodes the final gradient norm falls below 10−6. It is a teaching sketch, not Vowpal Wabbit.

python
import numpy as np

def allreduce(parts):                     # shape: m vectors of (d,)  ->  m copies of one (d,) sum
    total = sum(parts)
    return [total.copy() for _ in parts]

def sigmoid(z): return 1 / (1 + np.exp(-z))

def online_pass(X, y, lr=0.5):            # Algorithm 1 on one node: X (n_k, d), y (n_k,)
    d = X.shape[1]; w = np.zeros(d); G = np.full(d, 1e-8)
    for i in np.random.permutation(len(y)):
        g = (sigmoid(X[i] @ w) - y[i]) * X[i]
        G += g * g                             # confidence: sum of squared gradients
        w -= lr * g / np.sqrt(G)
    return w, G

def weighted_average(ws, Gs):             # equation (2): two AllReduce calls
    num = allreduce([G * w for w, G in zip(ws, Gs)])[0]
    den = allreduce(Gs)[0]
    return num / den

def lbfgs_dir(g, S, Y):                   # two-loop recursion over the last few steps
    q = g.copy(); a = []
    for s, yv in reversed(list(zip(S, Y))):
        r = 1 / (yv @ s); al = r * (s @ q); q -= al * yv; a.append((al, r, s, yv))
    if S: q *= (S[-1] @ Y[-1]) / (Y[-1] @ Y[-1])
    for al, r, s, yv in reversed(a):
        b = r * (yv @ q); q += s * (al - b)
    return -q

def train(shards, lam=1e-3, iters=15):    # Algorithm 2; shards = [(X_k, y_k), ...]
    ws, Gs = zip(*[online_pass(X, y) for X, y in shards])
    w = weighted_average(ws, Gs)               # warm start
    n = sum(len(y) for _, y in shards)
    def grad(w):                            # local gradients, one AllReduce
        parts = [X.T @ (sigmoid(X @ w) - y) for X, y in shards]
        return allreduce(parts)[0] / n + lam * w
    def loss(w):
        t = sum(np.sum(np.logaddexp(0, X @ w) - y * (X @ w)) for X, y in shards)
        return t / n + 0.5 * lam * w @ w
    S, Y = [], []; g = grad(w)
    for _ in range(iters):
        p = lbfgs_dir(g, S, Y); t = 1.0
        while loss(w + t * p) > loss(w) + 1e-4 * t * (g @ p): t /= 2   # backtracking line search
        w2 = w + t * p; g2 = grad(w2)
        S.append(w2 - w); Y.append(g2 - g); S, Y = S[-5:], Y[-5:]
        w, g = w2, g2
    return w

Limits to remember

  1. Linear models only. The method needs a convex loss with a single best answer. The guarantees assume the loss is smooth and, near the best point, strongly convex.
  2. Every node holds the whole weight vector. It scales with data, not with model size. The feature-split family (Chapter 2) handles models too big for one machine at the cost of reshuffling.
  3. One tree is fragile. If one node dies, the computation fails. The spares trick makes this rare, not impossible; the paper stops at about 10,000 node-hours.
  4. Slow nodes grow with scale. Speculative execution helps, but more nodes means more chances of a slow one (Table 3).
  5. Some evidence is thin. The paper warns that Table 3 timings were not repeated, and that the Sibyl comparison is not fair. The 68-fold splice site speed-up is far below the ideal 500.
  6. The theory is for the clean case. It uses uniform averaging and a single online pass; the real system uses the confidence weights.

Before moving on, check yourself with this list:

Where it sits in the field

The paper is not the first to average models, nor the first to use a tree. It is a careful engineering synthesis, as its abstract says: none of the components is new, but the combination is. Its two ancestors in the same line are Zinkevich et al. (2010), who average independently trained models, and McDonald et al. (2010), who average repeatedly. Its sibling in time is Dean et al. (2012), whose Downpour SGD is the asynchronous design.

Rohan Anil’s November 2026 post The Hitchhiker’s Guide to Training on Compute Islands lists this work in its “Foundations, before 2022” table, in the line for 2011: “Hadoop-compatible AllReduce on 1,000 machines; local online passes are combined by confidence-weighted averaging, then refined with distributed L-BFGS.” The post then asks the same question at a larger scale: what if the machines sit in different data centres, joined by a link of only 25 Gbps? The 2011 answer was to send one model-sized vector per round and to never wait on a straggler. The 2026 answers keep both rules, and add much slower exchange schedules.

Keep going

The takeaway. Send the model, not the data. Make the sum a tree, never a bottleneck. Never let a slow machine set the pace. And start the careful method from the quick answer.

Now that you can read every word of the 2011 line, go to the instrument at the top and run the tree with 31 machines. Then open Teach and explain AllReduce to an imaginary friend on the whiteboard, or use Present to rehearse the whole story aloud.

Credit: the method, the experiments and all numbers are from Alekh Agarwal, Olivier Chapelle, Miroslav Dudík and John Langford, “A Reliable Effective Terascale Linear Learning System”, arXiv 1110.4198. The explanations, devices and toy numbers are our own and are labelled as such.

Which statement best captures why the paper's design suits a Hadoop cluster?
A Reliable Effective Terascale Linear Learning System
Read the paper · The Core Automation post · Data Parallel and All-Reduce · Back to Gleams