← Latest papers
📊 statistics

Anytime Pretraining: Horizon-Free Learning-Rate Schedules with Weight Averaging

This paper demonstrates that combining weight averaging with simple, horizon-free learning rate schedules (such as polynomial decay or 1/t1/\sqrt{t}) achieves final performance comparable to tuned cosine schedules for large language models, offering a practical and theoretically grounded alternative for training in open-ended settings where the total horizon is unknown.

Original authors: Alexandru Meterez, Pranav Ajit Nair, Depen Morwani, Cengiz Pehlevan, Sham Kakade

Published 2026-08-26
📖 6 min read🧠 Deep dive

Original authors: Alexandru Meterez, Pranav Ajit Nair, Depen Morwani, Cengiz Pehlevan, Sham Kakade

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of artificial intelligence, large language models are the engines that power everything from writing assistants to complex reasoning tools. To make these engines run, researchers must teach them by feeding them vast amounts of text, a process known as pretraining. This teaching requires a careful balance of speed and precision, controlled by a setting called the learning rate. Think of this rate as the pace at which the model adjusts its internal knowledge based on new information. If the pace is too fast, the model overshoots the truth; if it is too slow, it learns nothing. For years, the standard method for managing this pace has been a schedule known as cosine decay. This method starts the model at a moderate speed, gradually slows it down in a smooth curve, and stops it at a precise moment. However, this standard approach has a significant flaw: it requires knowing exactly how long the training will last before the first step is taken. In a world where data arrives continuously and the total amount of information is unknown, this requirement is like trying to drive a car with a map that only shows the destination, not the distance to get there.

Researchers at Harvard University and the Kempner Institute have tackled this problem by developing a new way to train these models that does not need a pre-set end date. Their work, which combines mathematical theory with large-scale experiments, demonstrates that models can be trained effectively without ever knowing when the training will stop. They found that by using a simple, steady pace that naturally slows down over time, and by averaging the model's progress over the journey, they could achieve results just as good as the traditional method. This discovery suggests that the rigid, pre-planned schedules of the past are not necessary for building the most advanced artificial intelligence, opening the door for training systems that can learn continuously as new data becomes available.

The core of the problem lies in the nature of modern data. Unlike the fixed datasets of the past, today's information streams in endlessly. A model might be trained for a week, then for a month, or potentially for years, depending on how much data is available. The traditional cosine decay schedule is "horizon-dependent," meaning it must be tuned specifically for a known duration. If a researcher tunes a schedule for a one-month run but the project extends to three months, the model's performance suffers because the learning rate was designed to slow down too early. The researchers set out to find a "horizon-free" alternative, a method that performs well regardless of whether the training stops tomorrow or next year. They proposed that instead of a complex curve, a simple schedule that decays slowly over time, combined with a technique called weight averaging, could solve this issue. Weight averaging is a process where the final model is not just the last version created, but a blend of many versions from throughout the training process, smoothing out the noise and stabilizing the result.

To test this idea, the team first turned to mathematical theory. They analyzed the behavior of a simplified model of learning, using linear regression on data that mimics the complex patterns found in language. Their analysis showed that for certain types of data, a learning rate that decreases slowly over time, specifically following a pattern where the rate drops as the square root of time increases, is theoretically optimal. Crucially, they proved that when this specific decay is paired with weight averaging, the method achieves the best possible speed of learning without needing to know the total training time in advance. This theoretical finding provided a strong foundation, suggesting that a simple, steady approach could outperform complex, pre-planned curves in an open-ended setting.

The researchers then moved from theory to practice, training large language models with 150 million and 300 million parameters. They trained these models on a massive dataset of text, pushing them to learn up to 32 times the amount of data typically used for models of their size. This scale is significant because it mirrors the conditions under which the world's most advanced AI systems are built. They compared their new horizon-free schedules against the standard cosine decay schedule, which had been carefully tuned for each specific duration of training. The results were striking. The new methods, which used either a constant learning rate with averaging or a slowly decaying rate with averaging, tracked the performance of the best-tuned cosine schedules almost perfectly. Across the entire range of training, from short runs to the longest possible durations, the horizon-free methods achieved final results that were virtually indistinguishable from the traditional approach.

One of the most compelling aspects of this work is its practicality. The researchers showed that a single set of settings, chosen early in the training process, could be used for the entire duration of a project, even if that project suddenly expanded. They demonstrated that if a model is tuned for a specific intermediate point, such as four times the standard data amount, those same settings would continue to perform well as the training extended to 32 times that amount. This eliminates the need to stop and re-tune the model every time the training horizon changes. Furthermore, they tested a popular alternative method known as warmup-stable-decay, which tries to mimic the best of both worlds by keeping the rate steady for most of the training and then decaying at the end. While this method performed well, it still required knowing when to start the decay phase, making it less flexible than the truly horizon-free approach proposed by the authors.

The study also explored how these methods behave when the training data is very large, a scenario where the noise in the learning process is naturally lower. In these conditions, the researchers found that the learning rate did not need to decay at all. A constant learning rate, combined with weight averaging, was sufficient to achieve top performance. This aligns with their theoretical prediction that when the variance, or noise, in the data is small, the model benefits more from maintaining a steady pace to reduce bias, or error, rather than slowing down. This insight suggests that as computing power grows and models can process larger batches of data, the need for complex decay schedules may diminish entirely, replaced by simpler, more robust strategies.

Ultimately, this research provides a clear path forward for the future of artificial intelligence training. It suggests that the rigid, pre-calculated schedules that have dominated the field for years are not the only way, or perhaps even the best way, to train models in an era of continuous data. By proving that simple, horizon-free schedules combined with weight averaging can match the performance of the most carefully tuned traditional methods, the authors have offered a practical solution for open-ended learning. This approach allows models to adapt to whatever amount of data is available, making the training process more flexible and efficient. The findings indicate that the future of large language model training may not lie in more complex scheduling algorithms, but in simpler, more resilient strategies that can learn continuously without a predetermined end.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →