WSqD: Horizon-Free Learning Rate for Large Model Training

WSqD: a horizon-free learning rate schedule that beats WSD in large model training. Achieves minimax-optimal convergence and seamless extension.

martes, 28 de julio de 2026 • 4 min read • Q2BSTUDIO Team

Optimiza el entrenamiento de modelos grandes con WSqD

Training large-scale language models (LLMs) is one of the most compute-intensive processes in modern artificial intelligence. Choosing the right learning rate schedule can make the difference between a model that converges quickly and one that wastes weeks of GPU time. For years, practitioners have relied on schedules such as cosine annealing, which are inherently tied to a fixed training horizon. This means that if you want to extend training beyond the originally planned end point, the learning rate has already decayed to zero, and resuming the process requires manual tuning or restarting from an earlier checkpoint. The Warmup-Stable-Decay (WSD) schedule partially addressed this limitation by maintaining a long constant phase before a short linear cooldown, allowing training to resume from a pre-cooldown checkpoint. However, WSD still depends on a peak learning rate optimized for the original horizon, making it suboptimal when training is extended.

In this context, WSqD (Warmup with Square-root base and linear Decay) emerges as a new learning rate schedule that removes the dependence on the horizon for the base rate. Instead of a constant phase, WSqD uses a shifted inverse-square-root base after warmup, keeping a final linear decay. In the stochastic convex setting, WSqD provably achieves the minimax-optimal O(1/√T) last-iterate convergence rate. Most importantly, the base rate is horizon-independent; the horizon is only needed to decide when to start the final cooldown. This allows the same peak learning rate to work robustly across different durations, avoiding the need to retune hyperparameters when extending training.

Empirical experiments on the SlimPajama corpus for language model pretraining show that WSqD matches or outperforms WSD and other carefully tuned schedules across multiple horizons, reusing a single peak learning rate. This property is especially valuable in production environments where compute budgets and deadlines can change on the fly. A research team can start training with an initial step estimate, and if early results are promising, extend training without having to re-optimize the learning rate.

From a technical perspective, WSqD draws inspiration from stochastic convex optimization, where a learning rate of the form η/√(t) is optimal. The innovation lies in shifting this function to start from a high value after warmup and then decay smoothly until the beginning of the linear cooldown. This provides a natural transition between exploration (high rates) and exploitation (gradual decay). Compared to WSD's constant schedule, which can lead to excessive variance in late steps if the peak is too high, WSqD's decreasing base stabilizes training as steps progress.

For enterprises developing large models, implementing schedules like WSqD can be seamlessly integrated into existing workflows. At Artificial Intelligence, Q2BSTUDIO designs custom training solutions that optimize cloud resource usage. WSqD's ability to work without retuning extends the lifespan of experiments and reduces cluster downtime. Moreover, by leveraging infrastructures like cloud services on Azure and AWS, we can dynamically scale training jobs, adjusting the compute budget without losing schedule coherence.

Beyond training, optimizing large models has implications across other business areas. A well-trained model is the foundation for custom AI applications, from conversational agents to recommendation systems. At Q2BSTUDIO we offer process automation with AI agents that benefit from more efficient models. On the other hand, cybersecurity is essential to protect training data and deployed models; we provide cybersecurity and pentesting services to ensure pipeline integrity. Likewise, monitoring model performance during training and inference can be integrated with Business Intelligence tools such as Power BI, which in our BI practice we help configure to extract key metrics in real time.

The flexibility of WSqD also opens the door to continual learning strategies, where the model is periodically updated with new data without losing quality. By not relying on a fixed horizon, the schedule naturally adapts to asynchronous training sessions or planned interruptions. This is especially relevant in cloud environments where costs are optimized via spot instances, which can be reclaimed at any time. With a schedule like WSqD, training can resume from the last step without needing to recalibrate the learning rate, reducing compute waste.

In short, WSqD represents a significant advance in the theory and practice of large model optimization. Its horizon independence and theoretical optimality make it an attractive choice for both researchers and production engineers. At Q2BSTUDIO, we are committed to adopting the most advanced techniques to deliver custom software solutions, integrating AI, cloud, cybersecurity, and BI into a coherent ecosystem. Exploring schedules like WSqD is just one example of how innovation in algorithms can translate into tangible competitive advantages for our clients.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.