Pre-training LLM without Learning Rate Decay Enhances Supervised Fine-Tuning
Organizations: Tohoku University · SB Intuitions
Abstract
We investigate the role of learning rate scheduling in the large-scale pre-training of large language models, focusing on its influence on downstream performance after supervised fine-tuning (SFT). Decay-based learning rate schedulers are widely used to minimize pre-training loss. However, despite their widespread use, how these schedulers affect performance after SFT remains underexplored. In this paper, we examine Warmup-Stable-Only (WSO), which maintains a constant learning rate after warmup without any decay. Through experiments with 1B and 8B parameter models, we show that WSO consistently outperforms decay-based schedulers in terms of performance after SFT, even though decay-based schedulers may exhibit better performance after pre-training. The result also holds across different regimes with mid-training and over-training. Loss landscape analysis further reveals that decay-based schedulers lead models into sharper minima, whereas WSO preserves flatter minima that support adaptability. These findings indicate that applying LR decay to improve pre-training metrics may compromise downstream adaptability. Our work also provides practical guidance for training and model release strategies, highlighting that pre-training models with WSO enhances their adaptability for downstream tasks.
Figures & tables
| Model | Scheduler | PT Valid Loss | PT Task Avg | SFT Task Avg | |
|---|---|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | +0.071 | -1.7 | +0.3 |
| WSD | 0.1 | +0.004 | -1.5 | +0.0 | |
| 0.0 | +0.000 | -1.2 | -1.0 | ||
| Linear | 0.1 | +0.021 | -2.0 | -0.7 | |
| 0.0 | +0.016 | +0.0 | -0.9 | ||
| Cosine | 0.1 | +0.019 | -0.1 | -0.7 |
| Model | (Pre-training) Scheduler | MT Valid Loss | MT Task Avg | SFT Task Avg | ||
|---|---|---|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | +0.062 | -0.1 | +0.8 |
| WSD | 1.0 | 0.0 | +0.000 | + 0.0 | +0.0 | |
| 0.1 | 1.0 | +0.038 | -1.5 | -0.5 | ||
| 0.1 | 0.0 | +0.047 | -1.7 | -1.3 | ||
| Linear | 0.1 | 1.0 | +0.053 | -2.1 | -2.5 | |
| 0.1 | 0.0 | +0.058 | -3.3 | -3.8 |
| Model | Scheduler | PT Valid Loss | PT Task Avg | SFT Task Avg | |
|---|---|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | + 0.048 | - 1.5 | +0.7 |
| WSD | 0.1 | +0.004 | +0.0 | +0.0 | |
| 0.0 | +0.000 | +0.0 | -0.3 | ||
| Linear | 0.1 | +0.021 | -0.9 | -0.5 | |
| 0.0 | +0.017 | -0.4 | -0.6 | ||
| Cosine | 0.1 | +0.017 | +0.0 | -0.4 |
| Model | (Pre-training) Scheduler | MT Valid Loss | MT Task Avg | SFT Task Avg | ||
|---|---|---|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | +0.055 | -0.3 | +1.4 |
| WSD | 1.0 | 0.0 | +0.000 | -1.6 | -0.5 | |
| 0.1 | 1.0 | +0.033 | + 0.0 | -1.0 | ||
| 0.1 | 0.0 | +0.038 | -1.7 | -1.2 | ||
| Linear | 0.1 | 1.0 | +0.068 | -2.2 | +0.0 | |
| 0.1 | 0.0 | +0.051 | -2.8 | -0.6 |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Configuration | 1B | 8B |
|---|---|---|
| Hidden dimension | 2048 | 4096 |
| FFN dimension | 8192 | 14336 |
| Number of layers | 16 | 32 |
| Number of heads | 32 | 32 |
| Number of KV heads | 8 | 8 |
| Head dimension | 64 | 128 |
| Hyperparameter | 1B | 8B |
|---|---|---|
| Training Configuration | ||
| Total training steps | 80,000 | 80,000 |
| Total tokens | 350B | 500B |
| Batch size (tokens) | 4,194,304 | 12,582,912 |
| Sequence length | 2,048 | 2,048 |
| Optimizer (AdamW) | ||
| Hyperparameter | Value |
|---|---|
| Training Configuration | |
| Total training steps | 120,000 |
| Total tokens | 2T |
| Batch size (tokens) | 16,777,216 |
| Hyperparameter | Value |
|---|---|
| LR | , , , , , , , |
| Global Batch size | 128 |
| LR scheduler | Cosine with warmup |
| Minimum LR | 0 |
| Optimizer | AdamW |
| Weight decay | 0.0 |
| Model | Scheduler | Valid Loss | ARC-e | ARC-c | BoolQ | Hella | OBQA | PIQA | Wino | Avg. | |
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 2.431 | 70.8 | 42.2 | 62.0 | 56.3 | 45.4 | 70.8 | 58.5 | 58.0 |
| WSD | 0.1 | 2.364 | 72.0 | 40.0 | 62.1 | 57.4 | 46.4 | 72.5 | 57.1 | 58.2 | |
| 0.0 | 2.360 | 72.2 | 39.7 | 63.7 | 57.6 | 45.6 | 72.2 | 58.6 | 58.5 | ||
| Linear | 0.1 | 2.380 | 70.3 | 42.6 | 63.2 | 55.6 | 45.2 | 71.6 | 55.7 | 57.7 | |
| 0.0 | 2.376 | 74.4 | 43.4 | 65.7 | 58.4 | 47.4 | 70.9 | 57.5 | 59.7 | ||
| Cosine | 0.1 | 2.379 | 71.1 | 43.6 | 66.5 | 59.9 | 47.8 | 71.7 | 56.3 | 59.6 |
| Model | Scheduler | Valid Loss | ARC-e | ARC-c | BoolQ | Hella | OBQA | PIQA | Wino | Avg. | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 2.625 | 74.4 | 43.3 | 59.7 | 63.5 | 48.6 | 73.2 | 62.0 | 60.7 |
| WSD | 0.1 | 2.582 | 75.4 | 45.8 | 60.0 | 66.6 | 50.0 | 74.7 | 62.7 | 62.2 | |
| 0.0 | 2.578 | 75.3 | 46.8 | 59.2 | 66.2 | 50.4 | 74.4 | 63.0 | 62.2 | ||
| Linear | 0.1 | 2.599 | 73.4 | 45.6 | 64.7 | 65.4 | 48.0 | 73.2 | 58.8 | 61.3 | |
| 0.0 | 2.595 | 73.9 | 44.4 | 66.6 | 65.2 | 49.2 | 73.6 | 59.8 | 61.8 | ||
| Cosine | 0.1 | 2.595 | 72.9 | 44.1 | 65.7 | 64.9 | 52.0 | 74.0 | 61.5 | 62.2 |
| Model | Scheduler | Selected SFT LR | |
| 1B | Warmup-Stable-Only (WSO) | 1.0 | |
| WSD | 0.1 | ||
| 0.0 | |||
| Linear | 0.1 | ||
| 0.0 | |||
| Cosine | 0.1 |
| Model | Scheduler | AlpacaEval | TruthfulQA | MMLU | Avg. | |
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 84.0 | 43.4 | 35.9 | 54.4 |
| WSD | 0.1 | 83.9 | 41.9 | 36.6 | 54.1 | |
| 0.0 | 82.3 | 40.2 | 36.7 | 53.1 | ||
| Linear | 0.1 | 82.0 | 42.0 | 36.3 | 53.4 | |
| 0.0 | 82.4 | 41.7 | 35.6 | 53.2 | ||
| Cosine | 0.1 | 83.6 | 41.0 | 35.5 | 53.4 |
| Model | Scheduler | Selected SFT LR | |
|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | |
| WSD | 0.1 | ||
| 0.0 | |||
| Linear | 0.1 | ||
| 0.0 | |||
| Cosine | 0.1 |
| Model | Scheduler | AlpacaEval | TruthfulQA | MMLU | Avg. | |
|---|---|---|---|---|---|---|
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 78.1 | 38.7 | 34.5 | 50.4 |
| WSD | 0.1 | 77.2 | 38.3 | 33.6 | 49.7 | |
| 0.0 | 76.0 | 38.4 | 33.7 | 49.4 | ||
| Linear | 0.1 | 75.6 | 37.8 | 34.2 | 49.2 | |
| 0.0 | 75.5 | 37.9 | 33.9 | 49.1 | ||
| Cosine | 0.1 | 76.0 | 37.9 | 33.9 | 49.3 |
| Model | Pre-training Scheduler | Valid Loss | ARC-C | HellaSwag | WinoGrande | DROP | GSM8K | Avg. | ||
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | 2.335 | 47.0 | 60.5 | 58.6 | 23.9 | 20.4 | 42.1 |
| WSD | 1.0 | 0.0 | 2.273 | 45.0 | 61.1 | 60.4 | 23.3 | 21.1 | 42.2 | |
| 0.1 | 0.0 | 2.320 | 45.0 | 62.0 | 60.7 | 23.8 | 11.0 | 40.5 | ||
| 0.1 | 1.0 | 2.310 | 45.1 | 60.7 | 59.8 | 24.5 | 13.0 | 40.6 | ||
| Cosine | 0.1 | 0.0 | 2.332 | 43.8 | 61.4 | 59.5 | 20.2 | 10.7 | 39.1 | |
| 0.1 | 1.0 | 2.326 | 44.3 | 60.7 | 59.7 | 21.4 | 12.8 | 39.8 |
| Model | Pre-training Scheduler | Valid Loss | ARC-C | HellaSwag | WinoGrande | DROP | GSM8K | Avg. | ||
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | 2.254 | 46.7 | 61.3 | 60.4 | 27.0 | 23.1 | 43.7 |
| WSD | 1.0 | 0.0 | 2.199 | 47.1 | 65.2 | 62.2 | 23.7 | 13.7 | 42.4 | |
| 0.1 | 0.0 | 2.237 | 47.1 | 65.2 | 62.2 | 23.4 | 13.7 | 42.3 | ||
| 0.1 | 1.0 | 2.231 | 47.4 | 65.7 | 62.6 | 25.3 | 19.1 | 44.0 | ||
| Cosine | 0.1 | 0.0 | 2.253 | 46.0 | 65.1 | 62.3 | 23.8 | 11.4 | 41.7 | |
| 0.1 | 1.0 | 2.245 | 43.5 | 64.7 | 62.1 | 25.9 | 14.8 | 42.2 |
| Model | Scheduler | Selected SFT LR | ||
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | |
| WSD | 1.0 | 0.0 | ||
| 0.1 | 1.0 | |||
| 0.1 | 0.0 | |||
| Linear | 0.1 | 1.0 | ||
| 0.1 | 0.0 |
| Model | Pre-training Scheduler | AlpacaEval | TruthfulQA | GSM8K | DROP | AGI Eval | BBH | MMLU | Avg. | ||
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | 79.4 | 41.8 | 29.0 | 22.7 | 21.8 | 23.1 | 35.7 | 36.2 |
| WSD | 1.0 | 0.0 | 79.4 | 39.9 | 27.2 | 22.0 | 21.5 | 22.7 | 35.4 | 35.4 | |
| 0.1 | 0.0 | 76.8 | 41.0 | 18.9 | 22.0 | 22.4 | 23.8 | 34.2 | 34.2 | ||
| 0.1 | 1.0 | 78.7 | 40.0 | 21.2 | 23.7 | 23.1 | 23.8 | 34.4 | 35.0 | ||
| Cosine | 0.1 | 0.0 | 72.9 | 38.1 | 19.9 | 17.6 | 22.1 | 17.9 | 33.9 | 31.8 | |
| 0.1 | 1.0 | 74.3 | 37.9 | 22.2 | 17.1 | 22.6 | 19.6 | 34.0 | 32.5 |
| Model | Scheduler | Selected SFT LR | ||
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | |
| WSD | 1.0 | 0.0 | ||
| 0.1 | 1.0 | |||
| 0.1 | 0.0 | |||
| Linear | 0.1 | 1.0 | ||
| 0.1 | 0.0 |
| Model | Pre-training Scheduler | AlpacaEval | TruthfulQA | GSM8K | DROP | AGI Eval | BBH | MMLU | Avg. | ||
| 1B | Warmup-Stable-Only (WSO) | 1.0 | 1.0 | 66.2 | 38.1 | 30.3 | 19.4 | 24.1 | 24.8 | 36.6 | 34.2 |
| WSD | 1.0 | 0.0 | 64.0 | 40.4 | 20.4 | 18.4 | 21.3 | 26.1 | 35.5 | 32.3 | |
| 0.1 | 0.0 | 64.8 | 39.8 | 15.6 | 19.5 | 21.4 | 23.7 | 36.0 | 31.5 | ||
| 0.1 | 1.0 | 62.1 | 39.7 | 21.9 | 16.8 | 21.1 | 25.0 | 35.9 | 31.8 | ||
| Cosine | 0.1 | 0.0 | 62.5 | 41.1 | 18.7 | 20.5 | 23.2 | 18.8 | 35.9 | 31.5 | |
| 0.1 | 1.0 | 64.6 | 42.0 | 21.0 | 18.7 | 23.0 | 20.0 | 35.4 | 32.1 |
| Hyperparameter | 1B | 8B |
|---|---|---|
| Training Configuration | ||
| Total training steps | 36,000 | 36,000 |
| Total tokens | 150B | 225B |
| Batch size (tokens) | 4,194,304 | 12,582,912 |
| Sequence length | 2,048 | 2,048 |
| Hyperparameter | Value |
|---|---|
| Training Configuration | |
| Total training steps | 30,000 |
| Total tokens | 500BT |
| Batch size (tokens) | 16,777,216 |
| Hyperparameter | Value |
|---|---|
| Sequence length | 1,024 |
| Batch size | 1 |
| Number of views | 2 |
| Hutchinson samples | 50 |
| Maximum batches | 4,096 |
| Maximum texts | 16,192 |
Learning Rate Scheduling
Learning rate scheduling studies how to vary optimizer step sizes during training to improve stability, convergence, efficiency, and generalization.
See all 58 papers