Skip to content
AI News HubLIVE
More
Summary only

Stochastic Gradient Descent (SGD’s) Frequency Bias and How Adam Fixes It

Modern language models face an optimization challenge due to uneven token distributions: parameters associated with common tokens receive frequent gradient updates while rare token parameters may go hundreds of steps without a meaningful signal. Standard SGD uses the same learning rate for all parameters, causing rare token weights to remain near initialization. Adam's variance normalization automatically gives larger effective learning rates to underrepresented features, enabling them to converge quickly. A controlled NumPy experiment with a six-token vocabulary spanning four orders of magnitude in frequency shows that SGD yields weights near 0.15 for the rarest token (true weight 1.0), while Adam keeps all rare token weights close to 1.0.

SourceMarkTechPostAuthor: Arham Islam
Stochastic Gradient Descent (SGD’s) Frequency Bias and How Adam Fixes It
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions

Summary only

Under the source content permission, this page provides an editorial summary, key points, and a link to the original article.

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • SGD suffers from frequency bias: common token parameters converge quickly, rare ones stay near initialization.
  • Adam's variance normalization adjusts learning rates per parameter, giving larger updates to rare tokens.
  • Experiments show Adam achieves near-perfect weights for all tokens despite rare tokens receiving gradients in only 3-4% of steps.

Highlights and analysis are generated automatically and may contain errors. Check the original source.