Induced-metric optimizer where the inverse metric γ⁻¹ = exp(s)·I is a learnable scalar, updated online each step by ascending a local surrogate v = ξ·exp(s)·‖g‖² with regularization and clipping in log-domain. Plain and log-loss embedding variants. O(1) learnable state (one scalar s).
Extends the fixed induced-metric optimizers by making the inverse metric a learnable scalar parameter updated online during training.
In the fixed metric variants, the base metric on parameter space is — a fixed identity scaling. The ratio determines how strongly the optimizer responds to curvature, and it must be tuned as a hyperparameter. But the optimal ratio may change during training as the loss landscape evolves. A natural extension is to let the optimizer learn this ratio online.
Instead of fixing , parameterize the inverse metric as:
where is a single scalar learned during training. Working in log-space ( rather than directly) ensures the inverse metric is always positive definite by construction — no constraints needed. When , and we recover the fixed metric.
The inverse metric scales both the trace computation and the momentum:
Preconditioned gradient: . This is the gradient "seen through" the learned metric.
Metric trace: . The trace now depends on : a larger amplifies the trace, which increases , which decreases . So the learnable metric directly controls how aggressively the induced metric dampens updates.
Preconditioned momentum: . The momentum is also scaled by before the global is applied.
Full update: , where (plain) or (log-loss).
The scalar is updated each step by ascending on a local surrogate objective — the trace itself. The intuition: the optimizer wants to maximize the metric trace, because a larger trace means the metric is "seeing" more curvature and providing stronger preconditioning. Regularization prevents from diverging.
The gradient of the trace with respect to is:
The update rule for is:
The first term drives upward (stronger preconditioning), while the L2 regularization term pulls back toward zero (the identity metric). The balance between these determines the learned metric scale.
After the update, is clipped to (default , so ) to prevent extreme values during early training.
O(1) learnable state (one scalar ) on top of the base optimizer state. The metric learning step adds negligible computation — one scalar gradient, one scalar update, one clip.