Home▸Articles▸AI & Machine Learning

Learned Optimizer Race: 2D Contour Map of a Loss Landscape

A visual exploration of optimization techniques in machine learning through a dynamic 2D contour map.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is the Learned Optimizer Race

The learned optimizer race is a visualization tool that demonstrates how various optimization algorithms navigate through a loss landscape. In this context, the 'loss landscape' refers to the surface of a function where each point represents a set of model parameters and its corresponding loss value. The goal for an optimizer is to find the minimum of this landscape.

In the 2D contour map version, we observe three types of optimizers: plain stochastic gradient descent (SGD), momentum SGD, and a meta-learned per-coordinate adaptive rule. These methods differ in how they update their parameters based on gradients and previous steps.

Why It Matters

Understanding the behavior of different optimizers is crucial for improving machine learning models' performance. The choice of optimizer can significantly affect training speed, convergence to a global minimum, and generalization ability.

By visualizing these dynamics in real-time, learners can gain insights into how each method responds to changes in the loss landscape's conditions, such as its curvature (condition number) and step size.

live demo · related simulation● LIVE

How It Works

The 2D contour map provides a top-down view of the loss landscape. Users can pan and zoom to explore different regions of the map. The live gradient-descent field overlay helps in visualizing the direction and magnitude of updates at each step.

By adjusting parameters like the condition number, learning rate, momentum (β), and adaptive-decay (ρ) constants, users can observe how these changes affect the optimizer's path to convergence.

Real-World Applications

In practice, choosing the right optimizer is critical for training deep neural networks. For instance, in image recognition tasks, a well-tuned optimizer can lead to faster and more stable training compared to less optimized methods.

The learned adaptive rule, which adjusts its parameters based on past gradients, often outperforms fixed-rule optimizers like SGD or momentum SGD, especially when the loss landscape is highly non-convex.

Frequently asked questions

What does the condition number represent in this context?

The condition number represents how ill-conditioned the quadratic bowl is. A higher condition number means that the surface has more curvature variation, making it harder for optimizers to find the minimum efficiently.

How does momentum help in optimization?

Momentum helps by adding a fraction of the previous update direction to the current gradient descent step. This can smooth out oscillations and accelerate convergence towards the minimum, especially in rugged landscapes.

What is an adaptive optimizer, and why does it matter?

An adaptive optimizer adjusts its learning rate per parameter based on historical gradients. This adaptability helps in handling varying curvature across different dimensions of the loss landscape more effectively than fixed-rate optimizers.

Can I use this tool to understand other types of optimization problems?

Yes, while designed for quadratic landscapes, the principles and dynamics observed here can provide insights into a broader range of optimization problems in machine learning and beyond.

Try it live

Everything above runs in your browser — open Learned Optimizer Race: 2D Contour Map of a Loss Landscape and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Learned Optimizer Race: 2D Contour Map of a Loss Landscape simulation

What did you find?

Add reproduction steps (optional)