A story: the forecaster who has never seen your town
Picture a forecaster so experienced that she has watched millions of curves in her career: temperatures, tides, road traffic, ice-cream sales, heartbeats. You show her a brand-new curve (your factory's electricity use over the last six months, which she has never seen) and ask: "What about next week?" Without relearning anything, she sketches a credible forecast. She spots a daily rhythm, a weekend dip, a slow upward trend. She has seen these shapes a thousand times elsewhere.
That is exactly the idea of a time-series foundation model: a single large model pre-trained on vast amounts of curves of every kind, able to forecast a series it has never seen without task-specific training. The analogue of large language models (LLMs), except the "sentences" are curves instead of words.
First: what is a time series, and what do we want from it?
A time series is simply a sequence of measurements over time: one number (or several) at each time step. Electricity consumption hour by hour, an engine's temperature second by second, a stock price minute by minute.
There are four classic tasks:
- Forecasting, given the past, predict the future. How much electricity tomorrow? How many sales next month? This is the flagship task, the one that drives purchasing, production and inventory.
- Classification, sort a curve into a category. Is this ECG signal normal or pathological? Is this accelerometer trace walking or running?
- Anomaly detection, spot the moment a curve "goes off the rails." Does this temperature spike signal an imminent breakdown? Is this transaction fraudulent?
- Imputation, fill the gaps. Sensors fail, readings go missing. What was the value likely to have been between 3am and 5am, where I measured nothing?
Energy: forecast a power grid's consumption hour by hour to buy electricity at the right price and avoid a blackout. Industry: monitor hundreds of sensors (vibration, temperature, pressure) on a production line to catch a failure before it happens (predictive maintenance). Finance: forecast volumes or prices, or detect fraud in a stream of transactions.
Why this is NOT like text
You might think you could just copy LLMs. But a curve is not a sentence, and the differences run deep:
- Continuous values, not a finite vocabulary. Text is made of words drawn from a closed dictionary (say 100,000 words). A time series is real numbers:
42.7then42.9then41.3… There is no natural "dictionary." - Multiple seasonalities. Real curves carry overlapping rhythms: a daily cycle (day/night), a weekly one (weekday/weekend), a yearly one (summer/winter). The model must capture several nested periodicities.
- Wildly varying scales. One curve may hover around 5, another around 5 million. The same series may triple in level from one year to the next. A text model never faces this; a time-series model absolutely must handle it.
- Different frequencies. Some series are measured every minute, others every hour, day or month. A universal foundation model has to swallow all of them without flinching.
This is practical problem number one. If you train on series valued around ~10 and then show one valued around ~10,000, the model is completely lost: it has never seen such numbers. The cure, as we will see, is instance normalization.
The foundation-model idea: one model, zero-shot
Traditionally, you trained one model per series (an ARIMA model for electricity, another for sales…). Slow, costly, and useless the moment a new series shows up.
The new idea, imported from LLMs: pre-train ONE large model on a gigantic corpus of series from every domain (energy, traffic, weather, finance, sensors…). You show it billions of windows of curves and teach it a single thing: "given this slice of the past, guess what comes next."
Once trained, you hand it a series it has never seen and it forecasts directly, with no retraining. This is zero-shot forecasting (zero-shot = no specific examples of the new task). Exactly like an LLM answering a question on a topic it was never specifically fine-tuned on.
The deep intuition is that the shapes of a curve (trend, spike, cycle, mean reversion, break) are universal. A daily cycle of electricity use "looks like" a daily cycle of web traffic. Having seen enough curves from around the world, the model learns a vocabulary of reusable patterns. Novelty is never entirely new.
The key techniques
How do you fit a continuous curve into an architecture originally designed for words? Four ingredients show up almost every time.
1. Patching: cutting the curve into "tokens"
Rather than handling each point in isolation (too fine-grained, too costly for long series), you cut the curve into fixed-length windows ("patches"), say slices of 32 points. Each slice becomes a "token," the basic unit the model manipulates, just like a word in a sentence.
The benefit is twofold: you drastically cut the number of tokens (an attention model costs the square of the token count, so fewer tokens means far less compute) and each patch carries a small local pattern rather than an isolated value. It is the equivalent of reading in chunks of words rather than letter by letter.

2. Tokenizing / quantizing continuous values
Some families go further and turn the numbers themselves into "words" of an artificial dictionary. They quantize: the value axis is sliced into, say, 4,000 levels ("bins"), and each measurement becomes the index of the nearest level. The curve then becomes a sequence of integers (a "sentence") that can be processed with exactly the machinery of an LLM (even reusing its architecture as is).

3. Instance normalization
This is the answer to the scale trap. Before handing a series to the model, you recenter and rescale it over its own window: subtract its mean and divide by its standard deviation.
That way, whether a series is worth 10 or 10 million, the model always sees "well-behaved" numbers around zero. At the output, you run the inverse operation (multiply back by , add back ) to recover the real units. This is what makes zero-shot forecasting possible on series of completely unknown scale.
4. The backbone: attention, and increasingly hybrid attention + SSM
The model's "brain" (the backbone) is most often a Transformer: its attention mechanism lets each patch "look at" every other to spot long-range dependencies (this Monday's peak resembles every Monday's).
But attention is expensive on very long series (its cost grows like the square of the length). Hence a strong trend: hybrid architectures mixing attention and State-Space Models (SSMs). An SSM (see the course pages on S4, Mamba, Mamba-2 / Jamba) scans the sequence while keeping a small summary "state" that it updates step by step, at linear cost in length. This is ideally suited to time series, which are by nature very long and strongly sequential. Combining the two gives the best of both worlds: attention for global correlations, SSM for efficiently sweeping long histories.
An SSM is, at heart, a learned, beefed-up version of the old signal-processing filters (think of state-space models in control, or a Kalman filter). And time series ARE signal. The tool and the problem are made for each other: a latent state that summarizes the past and updates with every new point is exactly what you want for a never-ending curve.
The well-known families
Three families popularized the approach, with three different recipes for turning a curve into something a large model can digest.
TimesFM (Google), a decoder-only Transformer trained for forecasting via patching: the series is cut into windows and the model predicts the next patch, much as an LLM predicts the next word. Pre-trained on a huge mix of real and synthetic series, it targets direct zero-shot forecasting.
A decoder-only foundation model for time-series forecasting (TimesFM, Google)
Chronos (Amazon), the most "LLM-like" recipe: quantize the values into a vocabulary of integers, then train a language-model architecture (T5-style) to predict the next "word." The curve is literally treated as text. Elegant, because it reuses the entire LLM toolchain as is.
Chronos: Learning the Language of Time Series (Amazon)Moirai (Salesforce), built for universality: handle varied frequencies (minute, hour, day…) and several variables at once (multivariate series) out of the box. It relies on patching and an adapted attention to ingest this large, heterogeneous mix with a single model.
Beyond these three, other approaches explore the same ideas (Lag-Llama, TimeGPT, Moment, and hybrid Mamba-based variants). The field moves very fast; remember the general idea (pre-train broadly, forecast zero-shot) rather than any particular performance ranking, which changes every few months.
Comparison table
| Family | Recipe to "tokenize" the curve | Backbone | Stated specialty |
|---|---|---|---|
| TimesFM | Patching (windows) | Decoder-only Transformer | Direct zero-shot forecasting |
| Chronos | Quantization into integer vocabulary | Language model (T5-style) | Reuses LLM machinery |
| Moirai | Multi-frequency patching | Adapted Transformer | Universal: frequencies and multivariate |
Why it matters industrially
Time-series forecasting is everywhere, and it carries real weight: planning electricity production, sizing a retailer's inventory, anticipating factory breakdowns, managing financial risk, scaling the servers of a web service. Historically each case demanded its own model, its own data, its own data scientist, its own weeks of tuning.
A foundation model changes the economics of the problem: one model, deployable immediately, with no training, on a series it has never seen. For a company managing thousands of products or sensors (each with its own curve) that is the difference between "training thousands of models" and "calling an API." It is also a rich field for intellectual property: the ways to tokenize a curve, to normalize it, to mix attention and SSM, or to build the training corpora are all new, concrete technical building blocks.
Zero-shot impresses, but stay cautious: a very specific series (with promotions, country-specific holidays, external effects) will often be better forecast by a model fine-tuned on your data. And like all models trained on the past, they can fail in the face of an unprecedented break (a crisis, a regime change never observed). Forecasting is not a crystal ball.
Key takeaways
- A time series is a sequence of measurements over time; the four tasks are forecasting, classification, anomaly detection and imputation.
- It is not text: continuous values with no dictionary, multiple seasonalities, wildly varying scales, different frequencies, each a distinct difficulty.
- A foundation model pre-trains ONE large model on huge corpora of curves to do zero-shot forecasting on series it has never seen, the LLM analogue for curves.
- The key techniques: patching (cutting the curve into window-tokens), value quantization, instance normalization (the cure for the scale trap), and hybrid attention + SSM backbones (S4 / Mamba) to sweep long histories efficiently.
- The well-known families: TimesFM (patching, Google), Chronos (LLM-style quantization, Amazon), Moirai (universal and multivariate, Salesforce), three recipes for the same idea.
- The industrial stake: moving from "one model per series" to "one model for everything," deployable without training, a major economic gain, and fertile ground for technical innovation.
1. A model was pre-trained on curves hovering around 10, and is now shown a series worth about 10,000. What cure does the page describe?
2. Why cut the curve into slices (patching) rather than feeding each point as a token?
3. How does the Chronos recipe differ from that of TimesFM?
4. Why are state-space models (SSMs) often combined with attention in these architectures?
5. A vendor offers a zero-shot foundation model to forecast a retail chain's sales, complete with promotions and national holidays. What does the page say?