← Back to Reading
Daily Dose of DS 2026-11-02

12 Optimizers for Training Neural Networks, clearly explained!

AI coding agents typically do not retain knowledge across sessions, repeating past mistakes and failing to transfer context between different tools. Beacon, developed by Asymptote Labs, is an open-source memory layer designed to capture execution traces across over 20 agent harnesses, converting past problem-solving into reusable skills. It operates locally or via Beacon Cloud, which adds hourly analytics to generate findings around security risks, reusable skills, and behavioral inefficiencies. Additionally, feature capabilities like beacon handoff allow engineers to seamlessly transfer session context across different coding agents and teams. Selecting an optimizer involves balancing the number of training steps against per-step memory and compute overheads. Common optimization techniques vary by their gradient history, state memory requirements, and coordinate transformation methods. While AdamW remains a strong standard baseline for models like transformers, alternatives like Adafactor and Lion reduce memory footprints, while matrix-based methods like Shampoo, SOAP, and Muon alter parameter geometry. Evaluating optimizers requires tracking wall-clock time, memory consumption, and learning-rate sensitivity under standardized training constraints. Building and deploying a machine learning model into production involves six comprehensive steps, of which model training and algorithm selection represent only a small fraction of the effort. The process begins with problem formulation and KPI definition, followed by extensive data preparation, algorithm and framework selection, iterative model training, and rigorous evaluation including bias testing. The final stage requires containerization, cloud deployment, and continuous monitoring to guard against data drift. The broader pipeline heavily relies on engineering, infrastructure, and MLOps practices rather than just algorithm design.

Read the original ↗
Contents 3 sections
  1. 01Your AI coding agents should get smarter every time you use them
  2. 0212 optimizers for training neural networks
  3. 036 steps to build an ML model
AI AGENTS

Your AI coding agents should get smarter every time you use them

AI coding agents typically do not retain knowledge across sessions, repeating past mistakes and failing to transfer context between different tools. Beacon, developed by Asymptote Labs, is an open-source memory layer designed to capture execution traces across over 20 agent harnesses, converting past problem-solving into reusable skills. It operates locally or via Beacon Cloud, which adds hourly analytics to generate findings around security risks, reusable skills, and behavioral inefficiencies. Additionally, feature capabilities like beacon handoff allow engineers to seamlessly transfer session context across different coding agents and teams.

  • AI coding agents typically lose session context, repeating identical mistakes in subsequent sessions and across different tools.
  • Beacon is an open-source memory layer created by Asymptote Labs that records execution traces to make knowledge reusable across agent harnesses.
  • The tool supports cross-agent compatibility with over 20 harnesses, including Claude Code, Cursor, Codex, OpenCode, and Cline.
  • Beacon Cloud provides hourly reviews of agent activity, categorizing findings into security risks, reusable skills, and behavioral patterns.
  • The beacon handoff feature enables users to switch agents or transfer work across team members without re-explaining the codebase or retracing failed steps.
DEEP LEARNING

12 optimizers for training neural networks

Selecting an optimizer involves balancing the number of training steps against per-step memory and compute overheads. Common optimization techniques vary by their gradient history, state memory requirements, and coordinate transformation methods. While AdamW remains a strong standard baseline for models like transformers, alternatives like Adafactor and Lion reduce memory footprints, while matrix-based methods like Shampoo, SOAP, and Muon alter parameter geometry. Evaluating optimizers requires tracking wall-clock time, memory consumption, and learning-rate sensitivity under standardized training constraints.

  • An optimizer that requires fewer steps can still yield a longer total training time if its per-step compute overhead is significantly higher.
  • Standard Adam maintains two FP32 state buffers that consume roughly 8 GB of memory for a one-billion-parameter model prior to sharding or compression.
  • Adafactor cuts second-moment memory from O(nm) to O(n+m) via row and column factorization, while Lion eliminates the second-moment buffer entirely by applying the sign operation to blended momentum.
  • Matrix optimizers like Shampoo, SOAP, and Muon capture directional relationships across parameter dimensions rather than just scaling coordinates elementwise.
  • Muon uses Newton-Schulz iterations to orthogonalize matrix momentum updates and is usually combined with another optimizer for embeddings and vector parameters.
MLOps

6 steps to build an ML model

Building and deploying a machine learning model into production involves six comprehensive steps, of which model training and algorithm selection represent only a small fraction of the effort. The process begins with problem formulation and KPI definition, followed by extensive data preparation, algorithm and framework selection, iterative model training, and rigorous evaluation including bias testing. The final stage requires containerization, cloud deployment, and continuous monitoring to guard against data drift. The broader pipeline heavily relies on engineering, infrastructure, and MLOps practices rather than just algorithm design.

  • Model building encompasses six distinct steps: problem definition, data preparation, algorithm selection, training, evaluation, and deployment with monitoring.
  • Algorithm selection and training typically account for only about 15% of the total effort required to take a model to production.
  • Data preparation is the most time-consuming stage, requiring cleaning, feature engineering, and proper train/validation/test splitting.
  • Evaluation requires problem-relevant metrics (e.g., accuracy, precision, recall, F1, AUC) along with fairness and bias testing across segments.
  • Post-deployment maintenance demands continuous monitoring to catch data drift and degradation over time.