Urgent.News

What's breaking now, across thousands of outlets.

AI

Adam and AdamW: The Optimizer That Made Modern LLM Training Possible

Hello, I'm Shrijith Venkatramana, and I'm building LiveReview — a blast-radius aware AI code review built for your business-critical systems. Star us to help devs discover the project, give it a try, and share your feedback to help improve the product. Most people learn neural networks by staring at the model. Weights. Attention. MLPs. LayerNorm. Tokenizers. Context windows. But when you actually…

Adam and AdamW represent a powerful optimizer that has become the backbone of modern large language model (LLM) training. Named after the original papers by Diederik Kingma and Jimmy Ba, Adam was first introduced in December 2014, predating the Transformer architecture and the rise of modern LLMs.

At its core, Adam is an adaptive optimization algorithm that addresses the challenges of training neural networks with parameters of vastly different scales. This is a crucial problem, as different parameters can receive vastly different gradient signals during training. Some parameters may receive dense gradients every step, while others may only receive sparse or intermittent signals. Some directions in parameter space may be noisy, while others are highly consistent.

Adam tackles this issue by maintaining two moving averages for each parameter: the first tracks the direction of recent gradients (momentum), and the second tracks the magnitude of those gradients (gradient scale). By combining these two pieces of information, Adam calculates an adaptive learning rate for each parameter, allowing it to move in the right direction while normalizing the step size based on how volatile the gradients have been.

The key idea behind Adam is to adapt the learning rate for each parameter based on its gradient history. This is achieved through two key components: a moving average of the gradients (m) and a moving average of the squared gradients (v). These values are updated at each training iteration using exponential moving averages, with hyperparameters beta1 and beta2 controlling the decay rates.

To ensure unbiased estimates of m and v, especially during the initial training stages, Adam incorporates bias correction terms. These terms adjust the moving averages based on the number of iterations, ensuring that the estimates accurately reflect the true gradient history.

The Adam optimization algorithm combines these components into a single update rule: theta - theta - alpha * m_hat / (sqrt(v_hat) + epsilon), where theta represents the parameters, alpha is the learning rate, m_hat is the bias-corrected moving average of gradients, v_hat is the bias-corrected moving average of squared gradients, and epsilon is a small constant to prevent division by zero.

The introduction of Adam and its successor AdamW in 2019 revolutionized the training of Transformers, which are the foundation of modern LLMs. AdamW specifically addresses the challenges of applying regularization in the context of adaptive optimization, making it the preferred choice for training Transformer models. By incorporating these optimizer techniques, researchers and practitioners can train LLMs that are capable of achieving impressive language understanding and generation capabilities, driving the current state of the art in natural language processing.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

AI Innovation in Open-source Platforms 2026: Real Data & Costs

Originally published at nlocoding.com 94% of Fortune 500 companies now contribute to open-source AI projects (GitHub Octoverse, 2026). Not just using them.

  • 77% of SaaS startups integrate open-source AI models
  • Enterprises save up to $1.2 million per year on licensing costs
  • Open-source AI updates 3.4 times faster than closed equivalents

2026 Trends: AI-Driven Software Testing Stats, Tools & ROI

Originally published at nlocoding.com 92%of regression bugs in SaaS platforms go undetected until production without AI-based testing (Source: Capgemini World Quality Report 2026) Most companies spend…

  • 92% of regression bugs in SaaS platforms undetected until production
  • AI-driven test coverage surpasses manual scripting by 64%
  • Generative AI writes 54% of new test cases at Fortune 500 companies

I Added a Fourth Model Mid-Run. It Changed What My Field Test Could Prove.

Latest release: v0.2.2 — Aug 29, 2026 I did something I usually try hard not to do in a field test. I changed the design after it had already started.

  • Author added Mistral Small 3.2 mid-run to expand diversity spectrum
  • DeepSeek + Mistral pairing produced strongest diversity, 0.982 average score
  • Maximum diversity revealed failure mode with 65% capitulation rate

More from Sunday 30 August →