arXiv:2610.22650cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22650

The Ephemeral Cost of Switching Optimizers Across LLM Training Stages

Xinyu Zhao, Davis Wertheimer, Ashutosh Sharma, Rameswar Panda, Paul Pu Liang

Abstract

Recent work suggests that switching optimizers between pretraining and subsequent training stages incurs a performance cost, but systematic investigation of this phenomenon is lacking. We study the mismatch between AdamW and Muon optimizers by pretraining 1.2B Llama-3 models from scratch while varying the proportion of updates taken with each optimizer, and similarly interpolating between the two optimizers during continued pretraining and supervised fine-tuning (SFT). Surprisingly, we find little evidence of a meaningful optimizer mismatch penalty: final performance is largely explained by the independent effects of the pretraining and post-training optimizers, with downstream performance generally improving as the proportion of Muon updates during SFT increases. Although matching the pretraining optimizer can reduce forgetting during SFT, this does not translate into improved final benchmark performance. We further evaluate AdamW and Muon for task-general SFT of open-weight models, across the Llama and Qwen families up to 14B parameters, where Muon remains competitive with AdamW, despite these models having been pretrained with AdamW. Together, our results suggest that the choice of optimizer for post-training can be made largely independently of the optimizer used during pretraining. Our code is released here.

1 Introduction

AdamW [Loshchilov and Hutter, 2019] has been the de facto optimizer for training most large language models. However, recent results have shown that Muon [Jordan et al., 2024] can outperform AdamW at scale in LLM pretraining [Liu et al., 2025, Khona et al., 2026]. Yet it remains an open question whether Muon is also a better optimizer for supervised post-training stages, and whether switching optimizers between training stages is detrimental to final performance. Prior work has suggested such a penalty for using a different optimizer for SFT [Qu et al., 2026], due to differing regularization effects [Liu et al., 2026] or implicit biases [Qu et al., 2026]. It has been unclear whether this effect is limited to greater forgetting during task-specific fine-tuning (“forgetting cost”), or also extends to degraded final benchmark performance (“performance cost”) following the larger-scale, multi-task SFT stage typical in foundation model training.

In this work, we examine whether there is a cost to switching between AdamW and Muon across LLM training stages. We train our own 1.2B Llama-3 models from scratch while varying the proportion of AdamW and Muon updates used during pretraining, continued pretraining, and task-general SFT, allowing us to separate the effect of optimizer mismatch from each optimizer's independent effect, as well as that of the underlying data shift. We additionally evaluate AdamW and Muon for task-general SFT of released open-weight models up to 14B parameters.

*Work done during an internship at MIT-IBM Watson AI Lab. Correspondence to: lxz@mit.edu

Preprint.

Avg. Benchmark Residuals: PT-SFT Optimizer Interaction (Best LRs)

Figure

SFT Optimizer (0.0 = AdamW-SFT, 1.0 = Muon-SFT)

Forgetting Δ\Delta Residuals: PT-SFT Optimizer Interaction (LR = 4e-4)

SFT Optimizer (0.0 = AdamW-SFT, 1.0 = Muon-SFT)

Figure 1: SFT benchmark performance and forgetting residuals. Rows index the proportion of Muon updates for 1.2B Llama-3 models during pretraining (0.0 = AdamW, 1.0 = Muon); columns index the fraction during SFT. Average of three independent SFT runs per cell. Left: Average of six downstream benchmarks (higher is better), using the best learning rate (Table 4) for each setting. Optimizer interaction effects are weak and inconsistent. Right: change in pretraining validation loss after SFT (lower is better), at learning rate 4×10−44 \times 10^{-4}, showing a diagonal matched-optimizer preference pattern. Heatmap cells show the residual after accounting for row/column marginal averages, shown along the sides of each heatmap. Raw benchmark averages can be found in Table 7.

Our main findings are as follows. First, after accounting for the marginal effects of the pretraining and post-training optimizers, we find little evidence of an additional performance cost from switching optimizers: interaction effects are small during SFT, and apparent switching costs during continued pretraining largely disappear after tuning the learning rate for each setting. Second, optimizer consistency does reduce forgetting of the pretraining distribution during SFT, but this does not translate into improved downstream benchmark performance. Instead, increasing the proportion of Muon updates during SFT generally improves performance regardless of the pretraining optimizer. Finally, across AdamW-pretrained open-weight models from the Llama and Qwen families up to 14B parameters, Muon remains competitive with AdamW for task-general SFT.

References (32)