cs.LGApr 10, 2026

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

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

Organizations: Tsinghua University · ByteDance Seed

Abstract

The foundational capabilities of large language models are acquired during pretraining on internet-scale, highly heterogeneous data mixtures. In this work, we investigate an interesting geometric question regarding the converged state of pretraining: Does the model converge to a common minimizer across all data sources (e.g., \cref{fig:cwa_illustration:close}), or merely a minimizer of the summed loss (e.g., \cref{fig:cwa_illustration:distant})? We hypothesize that the geometric "closeness" of task-specific minima is intrinsically linked to downstream generalization. We reveal that standard optimizers (e.g., AdamW) often converge to points where task-specific minima are distant from each other. To address this, we propose the Nexus optimizer, which encourages the closeness of these minima by maximizing gradient similarity during optimization. Experiments across models ranging from 130M to 3B parameters, various data mixtures and hyperparameter schedules, show that Nexus significantly boosts downstream performance, despite achieving the same pretraining loss (see \cref{fig:demo:benchmark}). Notably, on the 3B model, Nexus reduces the out-of-distribution loss by 0.012 and yields up to a 15.0% accuracy improvement on complex reasoning tasks (e.g., GSM8k). This finding challenges the reliance on pretraining loss as the sole proxy for model evaluation and demonstrates the importance of implicit biases in unlocking downstream generalization.

Figures & tables

Explore similar work

CardsList
  1. Relative Generalization Invariance of LLM Pretraining

    Sep 26, 2026Fengzhuo Zhang, Shuche Wang, Shenggui Li +7Language Model PretrainingLanguage Modeling

  2. Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting

    May 4, 2026Ishaan Watts, Catherine Li, Sachin Goyal +2Language Model PretrainingSharpness-Aware Minimization