Below is a three-part answer:
A “dumdum” (plain-English) summary.
Critical analysis, including potential flaws or untested assumptions.
A rough extrapolation of batch-size and RAM usage from the MNIST toy example to GPT-scale.
A “dumdum” (plain-English) summary.
Critical analysis, including potential flaws or untested assumptions.
A rough extrapolation of batch-size and RAM usage from the MNIST toy example to GPT-scale.
- “Dumdum” Summary
The paper proposes an algorithm callednoise_stepthat aims to train large neural networks in 1.58-bit (“ternary”) precision. Normally, training is done in higher-precision floats (e.g. 16-bit), which burns a lot of time and energy. This new approach claims to:
Use tiny random “nudges” (perturbations) in the weights to figure out which direction lowers the loss, instead of doing normal backprop with large gradient tensors.
Only store a \emph{sign} of how well these random nudges align with the loss (i.e. whether they help or hurt), thus keeping everything in {-1, 0, +1}.
Do all of this with very little memory because you only need a random seed plus a small amount of info (the signs). You do not store full-precision gradients or momentum buffers.
Potentially let you “ship” or “download” models as a tiny set of steps (updates), since you can reconstruct the model by replaying these random steps from a known seed.
Use tiny random “nudges” (perturbations) in the weights to figure out which direction lowers the loss, instead of doing normal backprop with large gradient tensors.
Only store a \emph{sign} of how well these random nudges align with the loss (i.e. whether they help or hurt), thus keeping everything in {-1, 0, +1}.
Do all of this with very little memory because you only need a random seed plus a small amount of info (the signs). You do not store full-precision gradients or momentum buffers.
Potentially let you “ship” or “download” models as a tiny set of steps (updates), since you can reconstruct the model by replaying these random steps from a known seed.
They demonstrate it on a small MNIST classifier (an MLP), and it converges about as well as a standard optimizer—though it requires bigger batch sizes and a trick to skip small perturbations. The method still hits decent performance but does get a bit noisier in training.
- Critical Analysis
Overall Soundness:Using random perturbations to estimate gradients has a long history in black-box optimization.noise_stepis effectively a specialized variant of random/zeroth-order gradient estimation, combined with a ternary representation.On small tasks (like MNIST), such methods can work surprisingly well. The paper’s results look coherent for that scale.
Using random perturbations to estimate gradients has a long history in black-box optimization.noise_stepis effectively a specialized variant of random/zeroth-order gradient estimation, combined with a ternary representation.
On small tasks (like MNIST), such methods can work surprisingly well. The paper’s results look coherent for that scale.
Major Flaws or Oversights:Scaling to very large models is unproven.MNIST is a tiny problem with around hundreds of thousands of parameters; today’s large language models can have1011\mathbf{10^{11}}1011to1012\mathbf{10^{12}}1012parameters. Zeroth-order methods (i.e. random perturbations) usually become more costly in high dimensional spaces unless you do something \emph{very} sparse and clever (which the author does attempt). But the scaling to billions of parameters is not clearly validated.Huge batch sizes might become a bottleneck.The paper states that larger batch sizes are needed. For small tasks this is easy (MNIST fits in memory), but for GPT-scale data, “bigger batch size” may mean huge GPU construction overhead.The paper touts how easy it is to store modelupdates, but physically reconstructing the final model requires you to “replay” tens or hundreds of thousands of ternary updates for each parameter. Even if each update is very sparse, the potential overhead may be unwieldy for multi-101110^{11}1011-parameter networks.Dynamic or “exotic” training schedules untested.The paper acknowledges needing special scheduling for the “noise sparsity” (picking how many elements you flip in each random vector). That scheduling might get complicated in large-scale training.
Scaling to very large models is unproven.MNIST is a tiny problem with around hundreds of thousands of parameters; today’s large language models can have1011\mathbf{10^{11}}1011to1012\mathbf{10^{12}}1012parameters. Zeroth-order methods (i.e. random perturbations) usually become more costly in high dimensional spaces unless you do something \emph{very} sparse and clever (which the author does attempt). But the scaling to billions of parameters is not clearly validated.
Huge batch sizes might become a bottleneck.The paper states that larger batch sizes are needed. For small tasks this is easy (MNIST fits in memory), but for GPT-scale data, “bigger batch size” may mean huge GPU clusters.
Reconstruction overhead.The paper touts how easy it is to store modelupdates, but physically reconstructing the final model requires you to “replay” tens or hundreds of thousands of ternary updates for each parameter. Even if each update is very sparse, the potential overhead may be unwieldy for multi-101110^{11}1011-parameter networks.
Dynamic or “exotic” training schedules untested.The paper acknowledges needing special scheduling for the “noise sparsity” (picking how many elements you flip in each random vector). That scheduling might get complicated in large-scale training.
Perturbation vs. Gradient Approaches:By throwing out typical backprop, you gain memory efficiency but lose the direct gradient signal. Whether that trade-off remains beneficial at scale is unclear.The approach is more “black-box,” so you need extra samples (perturbations) per step to keep up with the dimension of the parameter space. The paper attempts to reduce overhead by making those perturbationsverysparse.
By throwing out typical backprop, you gain memory efficiency but lose the direct gradient signal. Whether that trade-off remains beneficial at scale is unclear.
The approach is more “black-box,” so you need extra samples (perturbations) per step to keep up with the dimension of the parameter space. The paper attempts to reduce overhead by making those perturbationsverysparse.
Overall Soundness:
Using random perturbations to estimate gradients has a long history in black-box optimization.noise_stepis effectively a specialized variant of random/zeroth-order gradient estimation, combined with a ternary representation.
On small tasks (like MNIST), such methods can work surprisingly well. The paper’s results look coherent for that scale.
Using random perturbations to estimate gradients has a long history in black-box optimization.noise_stepis effectively a specialized variant of random/zeroth-order gradient estimation, combined with a ternary representation.
On small tasks (like MNIST), such methods can work surprisingly well. The paper’s results look coherent for that scale.
Major Flaws or Oversights:
Scaling to very large models is unproven.MNIST is a tiny problem with around hundreds of thousands of parameters; today’s large language models can have1011\mathbf{10^{11}}1011to1012\mathbf{10^{12}}1012parameters. Zeroth-order methods (i.e. random perturbations) usually become more costly in high dimensional spaces unless you do something \emph{very} sparse and clever (which the author does attempt). But the scaling to billions of parameters is not clearly validated.
Huge batch sizes might become a bottleneck.The paper states that larger batch sizes are needed. For small tasks this is easy (MNIST fits in memory), but for GPT-scale data, “bigger batch size” may mean huge GPU clusters.
Reconstruction overhead.The paper touts how easy it is to store modelupdates, but physically reconstructing the final model requires you to “replay” tens or hundreds of thousands of ternary updates for each parameter. Even if each update is very sparse, the potential overhead may be unwieldy for multi-101110^{11}1011-parameter networks.
Dynamic or “exotic” training schedules untested.The paper acknowledges needing special scheduling for the “noise sparsity” (picking how many elements you flip in each random vector). That scheduling might get complicated in large-scale training.
Scaling to very large models is unproven.MNIST is a tiny problem with around hundreds of thousands of parameters; today’s large language models can have1011\mathbf{10^{11}}1011to1012\mathbf{10^{12}}1012parameters. Zeroth-order methods (i.e. random perturbations) usually become more costly in high dimensional spaces unless you do something \emph{very} sparse and clever (which the author does attempt). But the scaling to billions of parameters is not clearly validated.
Huge batch sizes might become a bottleneck.The paper states that larger batch sizes are needed. For small tasks this is easy (MNIST fits in memory), but for GPT-scale data, “bigger batch size” may mean huge GPU clusters.
Reconstruction overhead.The paper touts how easy it is to store modelupdates, but physically reconstructing the final model requires you to “replay” tens or hundreds of thousands of ternary updates for each parameter. Even if each update is very sparse, the potential overhead may be unwieldy for multi-101110^{11}1011-parameter networks.
Dynamic or “exotic” training schedules untested.The paper acknowledges needing special scheduling for the “noise sparsity” (picking how many elements you flip in each random vector). That scheduling might get complicated in large-scale training.
Perturbation vs. Gradient Approaches:
By throwing out typical backprop, you gain memory efficiency but lose the direct gradient signal. Whether that trade-off remains beneficial at scale is unclear.
The approach is more “black-box,” so you need extra samples (perturbations) per step to keep up with the dimension of the parameter space. The paper attempts to reduce overhead by making those perturbationsverysparse.
By throwing out typical backprop, you gain memory efficiency but lose the direct gradient signal. Whether that trade-off remains beneficial at scale is unclear.
The approach is more “black-box,” so you need extra samples (perturbations) per step to keep up with the dimension of the parameter space. The paper attempts to reduce overhead by making those perturbationsverysparse.
In short, the idea is }, but big open questions remain around scaling, reconstruction time, and the requirement for enormous batch sizes.
- Extrapolating (and RAM) for GPT-Scale
The paper notes that larger batch sizes were necessary even on MNIST (just 300k-ish parameters). For GPT-3- or LLaMA-size networks, we have on the order of101110^{11}1011to101210^{12}1012parameters. If we naïvely try to keep the same ratio ofparameters:batch size\text{parameters} : \text{batch size}parameters:batch sizethat worked on MNIST, we end up with a batch size so large it becomes absurd. Let’s do a \emph{very} rough back-of-the-envelope:
MNIST MLP:Approx.300,000300,000300,000parameters (give or take).Paper used a batch size of102410241024.
Approx.300,000300,000300,000parameters (give or take).
Paper used a batch size of102410241024.
GPT-3 175B:175,000,000,000175,000,000,000175,000,000,000parameters.That’s roughly a factor 10^5} \approx 600{,}0003×105175×109≈600,000more parameters than the MNIST model.
175,000,000,000175,000,000,000175,000,000,000parameters.
That’s roughly a factor 10^5} \approx 600{,}0003×105175×109≈600,000more parameters than the MNIST model.
MNIST MLP:
Approx.300,000300,000300,000parameters (give or take).
Paper used a batch size of102410241024.
Approx.300,000300,000300,000parameters (give or take).
Paper used a batch size of102410241024.
GPT-3 175B:
175,000,000,000175,000,000,000175,000,000,000parameters.
That’s roughly a factor 10^5} \approx 600{,}0003×105175×109≈600,000more parameters than the MNIST model.
175,000,000,000175,000,000,000175,000,000,000parameters.
That’s roughly a factor 10^5} \approx 600{,}0003×105175×109≈600,000more parameters than the MNIST model.
If we keep the same ratio, the new batch size might be:
That’s∼6.1×108\sim!!6.1\times10^8∼6.1×108items per batch, which is simply not practical for typical GPU memory. In language-modeling terms, that might be hundreds of millions of tokens per step—far beyond typical large-scale practice (where a “big” batch might already be in the million-token range).
Implied RAM Requirements
If you tried to hold a batch of that many tokens, the memory usage to store:
The input embeddings,
The intermediate activations for backprop (or in this case, the JVP pushforward),
Any partial sums during the forward pass,
The input embeddings,
The intermediate activations for backprop (or in this case, the JVP pushforward),
Any partial sums during the forward pass,
would be astronomical. Even if each token or partial sum used only a few bytes, you would blow past typical cluster memory budgets.
In reality, large-scale practitioners do \emph{not} keep the same parameter-to-batch ratio as they scale up. They typically use more moderate batch sizes and more gradient accumulation steps. But that would undermine the method’s claim of “similar cost to inference,” since you’d have to do more forward passes to accumulate enough random samples to estimate the gradient decently.
Bottom Line
The idea is cool: using random ternary perturbations can, in principle, drastically reduce memory usage and let you “store” entire models as super-compact sets of steps.
However, it’s still uncertain if this method would be workable or efficient for truly huge networks like GPT or LLaMA. The paper demonstrates feasibility on MNIST and suggests directions for sparser, more sophisticated approaches at scale—but it would require heavy experimentation and likely some modifications to handle giant models.
The idea is cool: using random ternary perturbations can, in principle, drastically reduce memory usage and let you “store” entire models as super-compact sets of steps.
However, it’s still uncertain if this method would be workable or efficient for truly huge networks like GPT or LLaMA. The paper demonstrates feasibility on MNIST and suggests directions for sparser, more sophisticated approaches at scale—but it would require heavy experimentation and likely some modifications to handle giant models.