NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

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

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Efficient LLM Inference & Training › Linear Attention Memory Mechanisms · 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

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