# Nexus: Same Pretraining Loss, Better Downstream Generalization via Common Minima

*Huanran Chen, Huaqing Zhang, Xiao Li, Yinpeng Dong, Ke Shen, Jun Zhu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150691) · [OpenReview](https://openreview.net/forum?id=gEYdmlnR5G) · [alphaXiv](https://www.alphaxiv.org/abs/2604.09258) · [Open on the map](../papers.html#p150691)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Linear Attention Memory Mechanisms](../pgroup/24.md) · Type: new method · Keywords: optimizer design, gradient similarity, downstream generalization, large language models, pretraining loss

## Summary
Nexus is an optimizer that encourages task-specific minima to be close during pretraining, improving downstream generalization without changing pretraining loss.

## Explained to a 5-year-old
Big computer programs learn from many words. When they learn, they try to be good at everything at once. Sometimes they end up with different ideas for each topic, which makes them less smart on new things. The researchers noticed this and made a new way to train the programs so that the ideas stay close together. This helps the programs do better on new puzzles and problems.

## Explained to a 5-year-old, longer
Big computers can read lots of words and learn how language works. They are trained on many different kinds of text, like stories, news, and jokes. The goal is to make the computer understand language well so it can answer questions or solve problems. When the computer learns, it tries to get good at everything at the same time. However, sometimes the computer ends up with separate ideas for different topics, like one way to think about math and another way to think about stories. Having separate ideas can make the computer less able to handle new or unfamiliar situations. The researchers looked at how the learning process works and noticed that the points where the computer learns each topic can be far apart. They hypothesized that if these learning points were closer together, the computer would perform better on new tasks. To help this happen, they changed the way the computer updates its knowledge during training. The new training method encourages the computer to keep its learning points near each other. As a result, the computer maintains the same overall learning performance but gets better at solving new puzzles. This improvement was seen especially on harder reasoning tasks, showing that how we train matters as much as how much we train.

## For a technical reader
The paper observes that standard optimizers like AdamW cause task-specific minima to diverge during pretraining, which hurts downstream performance even when pretraining loss is low. They propose the Nexus optimizer, which maximizes gradient similarity across tasks to keep these minima close. Experiments on models from 130M to 3B parameters show that Nexus reduces out-of-distribution loss by 0.012 and improves accuracy by up to 15% on reasoning benchmarks such as GSM8k. This improvement is achieved without changing the pretraining loss, highlighting the importance of optimizer implicit bias. The findings suggest that careful optimizer design can be a more effective lever for model generalization than simply optimizing the loss function.

## Problem
It is unclear whether large language models converge to a common minimizer across data sources or to a minimizer of the averaged loss, and how this geometry affects downstream generalization.

## Method
The approach modifies the optimizer to maximize gradient similarity across tasks, encouraging task-specific minima to be geometrically close during training. It operates without altering the pretraining loss function, focusing instead on the optimizer's implicit bias.

## Results
The approach reduces out-of-distribution loss by 0.012 on the 3B model and yields up to a 15.0% accuracy improvement on GSM8k, despite similar pretraining loss.

## Contributions
It reveals that standard optimizers produce distant task-specific minima and introduces an optimizer that encourages closeness, thereby improving downstream generalization without sacrificing pretraining loss.

## Practical relevance
It suggests that optimizer design can be leveraged to achieve better model generalization, enabling more reliable evaluation of large language models.

## Research questions this paper is counted under

- [Do different components of deep models contribute equally to generalization when trained end-to-end?](../q/160.md)

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/150691)
