# Fast Gauss-Newton for Multiclass Cross-Entropy

*Mikalai Korbit, Mario Zanon*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153523) · [Open on the map](../papers.html#p153523)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Large-Scale Optimization Theory](../pgroup/410.md) · Type: new method · Keywords: multiclass cross-entropy, generalized Gauss-Newton, Fast Gauss-Newton approximation, second-order optimization, scalable curvature

Areas: [Optimization & Algorithms](../areas/optimization.md) › Optimization Dynamics › Edge of Stability

## Summary
Fast Gauss-Newton (FGN) provides a scalable under-approximation of the multiclass generalized Gauss-Newton curvature by retaining only the true-vs-rest term, enabling efficient second-order updates for large-class problems.

## Explained to a 5-year-old
The paper looks at a computer program that learns to pick the right answer when there are many choices. It finds that the usual way to improve the program gets complicated when there are many choices. The authors split the problem into a simple part that compares one choice against all others and a part that looks at how the other choices affect each other. They keep only the simple part because it is simpler and works well for most situations. By using just this simple part, the program can update its knowledge quickly without needing a lot of computer power.

## Explained to a 5-year-old, longer
Imagine a computer program that learns to say which of many things is the right one, like picking the correct animal from a list. When the program tries to get better using a special math method, it becomes slow because all the choices are linked together. The researchers discovered that this math can be split into two parts: one that compares one choice against everything else, and another that looks at how the other choices influence each other. They keep only the first part because it is simpler and works well for most situations. By using just this simple part, the program can update its knowledge quickly without needing a lot of computer power. This makes it possible to train the program on many options, like thousands of words or images, without slowing down too much. The new idea also works perfectly for problems with only two choices, like deciding if something is yes or no. In practice, the researchers tested the idea on a few different tasks and saw that it behaved similarly to the old method when the choices were easy to separate. When the choices were mixed together a lot, the new method was a bit less accurate, which is expected. Overall, the approach gives a faster and simpler way to improve learning programs that have many possible answers. It helps developers create smarter assistants, translators, and image classifiers that can handle large numbers of options. This makes everyday technology more responsive and easier to build without needing huge computers.

## For a technical reader
The paper addresses the computational burden of second-order optimization in multiclass settings by simplifying the curvature matrix. It shows that the full curvature can be exactly decomposed, and a lightweight approximation can be derived by keeping only the dominant term. This approximation leads to a row-wise linear system that can be solved iteratively without forming large matrices. The authors validate the approach on targeted experiments, confirming its effectiveness when class distributions are skewed or regularization is strong. The result is a practical, scalable method for improving model updates in large-class classification tasks.

## Problem
Scaling second-order optimization for multiclass classification is challenging because the full generalized Gauss-Newton curvature couples all class logits, making updates expensive as the number of classes grows.

## Method
The approach decomposes the multiclass GGN into a rank-one true-vs-rest term and a within-competitor covariance term, then retains only the true-vs-rest term to obtain a positive semidefinite under-approximation. This yields a whitened row-space system that can be solved matrix-free with conjugate gradient using Jacobian-vector products of a scalar-margin representation of the loss.

## Results
The results confirm that the approximation stays close to the full GGN under certain conditions and deviates when within-competitor covariance is large.

## Contributions
The paper provides an exact decomposition of the multiclass GGN, introduces a scalable second-order approximation, and demonstrates an efficient matrix-free solver for large-class problems.

## Limitations and assumptions
The approximation can be less accurate when the within-competitor covariance term is large.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153523)
