The experiment
Loss against communication
A GPT trained with simulated data parallelism: 15,833,472 parameters, 8 layers, width 384, context 256. 8 simulated workers, 8 sequences each per step, 3000 steps. Data: byte-level BPE, 4096 tokens. Every configuration except the optics runs kept the same fraction of transform coefficients; they differ in which ones. From the run logs of DeMo_Fixed_Band_Experiment.
Validation loss, every configuration
Each line is the mean over its seeds; the shaded band runs from the lowest to the highest seed (three seeds for A to D, one for the others). Switch the horizontal axis to wire bytes to see loss against what each worker has sent. The first optics design, which diverged, is on the optics page.
Loading the loss curves…
What each worker sends
Bytes per worker per step, BF16 values. AdamW all-reduces the dense gradient; the DeMo variants all-gather their compressed values, and an all-gather's wire bytes grow with the number of workers while an all-reduce's do not, so the saving on the wire is smaller than the saving in payload.
- A · AdamWpayload 31.7 MB, 1.0x less than A55.4 MB
- B · top-kpayload 4.0 MB, 8.0x less than A27.7 MB
- C · low band, 1-D 256payload 2.0 MB, 16.0x less than A13.9 MB
The fixed band's payload is 16.0x smaller than the dense gradient, but its wire bytes only 4.0x smaller. Top-k with int64 indices, as the reference code sends them: 9,895,920 bytes per step, 2.5x the compact count.
Steps to reach a loss
The targets are the final losses of the multi-seed configurations. A cell is the first evaluation (every 200 steps) at or below the target, averaged over seeds, shown only when every seed gets there. Top-k reaches the fixed band's final loss in a fraction of the steps and bytes; no fixed band reaches top-k's (1.785 ± 0.007).
To 3.158 (C's mean final loss)
- A · AdamW400 (12.67 GB)
- B · top-k400 (1.58 GB)
- F · random band1,200 (2.38 GB)
- E · ENOB 10, 8 planes1,600 (3.17 GB)
- E · ENOB 8, 8 planes, full scale fixed1,800 (3.56 GB)
- E · ENOB 8, 8 planes1,800 (3.56 GB)
- E · ENOB 12, 8 planes1,800 (3.56 GB)
- E · ENOB 8, 12 planes2,000 (3.96 GB)
- F · zigzag band2,200 (4.35 GB)
- D · calibrated band2,533 (5.01 GB)
- E · ENOB 8, 4 planes2,600 (5.15 GB)
- C · low band, 1-D 2562,667 (5.28 GB)
- C · low band, 1-D 642,800 (5.54 GB)
- E · perfect optics (control)2,800 (5.54 GB)
Not reached by every seed in 3,000 steps: C · low band, 2-D 64×64; E · ENOB 6, 8 planes; F · high band.
To 3.124 (C's mean final loss)
- A · AdamW400 (12.67 GB)
- B · top-k400 (1.58 GB)
- F · random band1,200 (2.38 GB)
- E · ENOB 10, 8 planes1,800 (3.56 GB)
- E · ENOB 8, 8 planes, full scale fixed2,000 (3.96 GB)
- E · ENOB 8, 8 planes2,000 (3.96 GB)
- E · ENOB 12, 8 planes2,000 (3.96 GB)
- E · ENOB 8, 12 planes2,000 (3.96 GB)
- F · zigzag band2,400 (4.75 GB)
- D · calibrated band2,667 (5.28 GB)
Not reached by every seed in 3,000 steps: C · low band, 1-D 256; C · low band, 1-D 64; C · low band, 2-D 64×64; E · perfect optics (control); E · ENOB 8, 4 planes; E · ENOB 6, 8 planes; F · high band.
To 3.087 (D's mean final loss)
- A · AdamW400 (12.67 GB)
- B · top-k400 (1.58 GB)
- F · random band1,400 (2.77 GB)
- E · ENOB 10, 8 planes1,800 (3.56 GB)
- E · ENOB 12, 8 planes2,000 (3.96 GB)
- E · ENOB 8, 8 planes, full scale fixed2,200 (4.35 GB)
- E · ENOB 8, 8 planes2,200 (4.35 GB)
- E · ENOB 8, 12 planes2,200 (4.35 GB)
- F · zigzag band2,600 (5.15 GB)
Not reached by every seed in 3,000 steps: C · low band, 1-D 256; C · low band, 1-D 64; C · low band, 2-D 64×64; D · calibrated band; E · perfect optics (control); E · ENOB 8, 4 planes; E · ENOB 6, 8 planes; F · high band.
To 1.785 (B's mean final loss)
- A · AdamW2,000 (63.33 GB)
Not reached by every seed in 3,000 steps: B · top-k; C · low band, 1-D 256; C · low band, 1-D 64; C · low band, 2-D 64×64; D · calibrated band; E · perfect optics (control); E · ENOB 8, 8 planes, full scale fixed; E · ENOB 8, 4 planes; E · ENOB 6, 8 planes; E · ENOB 8, 8 planes; E · ENOB 10, 8 planes; E · ENOB 12, 8 planes; E · ENOB 8, 12 planes; F · high band; F · random band; F · zigzag band.
To 1.646 (A's mean final loss)
Not reached by every seed in 3,000 steps: A · AdamW; B · top-k; C · low band, 1-D 256; C · low band, 1-D 64; C · low band, 2-D 64×64; D · calibrated band; E · perfect optics (control); E · ENOB 8, 8 planes, full scale fixed; E · ENOB 8, 4 planes; E · ENOB 6, 8 planes; E · ENOB 8, 8 planes; E · ENOB 10, 8 planes; E · ENOB 12, 8 planes; E · ENOB 8, 12 planes; F · high band; F · random band; F · zigzag band.