Forecasting on a stream, on the edge
Time series foundation models are usually benchmarked on a fixed window. In operations, the forecast has to be refreshed every time new data arrive, often on small hardware next to the machine. We measured what that does to nine model configurations, from a data-center GPU down to a Raspberry Pi 5 and two industrial controllers.
A forecast is never computed just once
In cloud monitoring, manufacturing, intensive care or hydrology, observations arrive as a continuous stream. Every new chunk of data should update the forecast, and the update has to be done before the next chunk comes in, otherwise the lead time for acting on it is gone. Privacy rules and tight deadlines often rule out sending the data to the cloud, so the model runs on an embedded or edge device with little compute and memory.
Some foundation models are small enough to fit on such devices. That alone doesn't make them usable forecasting systems. We ask for three things:
- Accuracy that holds up as the observed history keeps growing.
- A refresh that is fast enough to keep the lead time.
- Latency and peak memory that stay bounded however long the stream runs.
Formally, the series arrives in chunks \(\mathbf{x}_n\) of \(p\) steps. After each chunk the system updates whatever it retains and predicts the next chunk:
$$(S_n,\ \hat{\mathbf{x}}_{n+1}) = \mathrm{Update}_f(S_{n-1},\ \mathbf{x}_n).$$What the state \(S_n\) is depends on the architecture: the whole history, a KV cache, or a fixed-size recurrent state. That choice decides how the cost of an update grows.
Three ways to refresh a forecast
Reusing earlier computation requires temporal causality: a new observation must not change representations computed from older ones. That splits the models into three classes.
- Non-causal encoders (Chronos-2, Chronos-Bolt) let every position see every other. A new chunk changes all earlier representations, so the whole context is re-encoded at every refresh: \(\mathcal{O}(n^2)\) time and \(\mathcal{O}(n)\) memory for the history.
- Causal attention (Toto, TimesFM-2.5) admits a KV cache. Each refresh only encodes the new chunk, but the cache grows with every chunk and every new token attends to all of it: \(\mathcal{O}(n)\) time and memory per update.
- Causal recurrent models (TiRex, TiRex-2) carry a fixed-size state. A refresh updates the state with the new chunk: \(\mathcal{O}(1)\) time and memory, no matter how long the stream already is.
One condition keeps the comparison fair: the incremental forecast must equal what a full recomputation over the complete history would give. We made the retained state persist across calls for every causal model, changing only the execution path and leaving weights, preprocessing and forecast head as released. Each implementation matches full recomputation to a maximum absolute deviation below \(10^{-6}\).
Nine configurations
To avoid picking favorites, we took the Pareto frontier of skill score and inference time on the fev-bench leaderboard. It contains TiRex, TiRex-2, Toto-2.0-22m and Chronos-2. We added the previous generation and the smallest and largest checkpoint of each family, plus TimesFM-2.5 for its long trained context.
The hardware ranges from an NVIDIA A40 to three CPU-only edge devices: a Raspberry Pi 5 and two Beckhoff industrial PCs (C6015 and C6025), the kind of controller that sits next to production equipment.
More history doesn't mean better forecasts
A stream keeps growing, so the first question is whether a model can use the history at all. We took the ten fev-bench tasks with more than 50,000 steps, longer than any trained context, and evaluated each model with more and more of the history, up to the untruncated series.
No model scores better on aggregate beyond the context it was trained on. Beyond that point, eight of the nine get worse at very different speeds. TiRex drops below the naive baseline first. The Chronos configurations follow soon after, and the attention models drift down more slowly, the Toto family slowest of all.
TiRex-2 is the exception. It is trained on 8k steps, scores 45.5 there and still 45.3 on the full, untruncated series. Compared with TiRex, the added mLSTM blocks are the only architectural change visible in the univariate case, which makes them a candidate explanation. Trained context, size and training data differ too, but a longer trained context alone would only move the breakdown, not remove it.
This matters for streaming: for every other model, the usable history is capped by accuracy long before latency or memory become a problem.
One refresh, from GPU to Raspberry Pi
Next, the cost of a single refresh: one chunk in, one chunk out, batch size 1. At this size a call does little arithmetic, and the latency is dominated by a fixed cost per call rather than by the number of patches. Moving from the A40 to the Raspberry Pi 5 slows every model down, but by very different factors: Toto-2.0-22m and TiRex-2 lose the least (7.6× and 8.8×), Chronos-Bolt more than 30×. Toto-2.0-2.5B does not fit into the Pi's memory at all.
| Raspberry Pi 5, one refresh | Latency | Energy |
|---|---|---|
| Chronos-2-small | 72 ms | 0.36 J |
| TiRex | 100 ms | 0.51 J |
| Toto-2.0-22m | 110 ms | 0.49 J |
| TiRex-2 | 120 ms | 0.58 J |
| Chronos-2 | 262 ms | 1.31 J |
| Toto-1.0 (one sampled path) | 326 ms | 1.57 J |
| Chronos-Bolt-base | 428 ms | 2.15 J |
| TimesFM-2.5 | 1,002 ms | 5.12 J |
| Toto-2.0-2.5B | does not fit in memory | |
So far, this is a single refresh with a short context. The interesting part is what happens when the stream keeps running.
A million steps later
We grew each stream to one million time steps, far past every trained context, and timed both full recomputation and the incremental update wherever the architecture allows it. The three classes separate exactly as Figure 2 suggests:
- Recomputation grows by three orders of magnitude over the grid on every device. On the edge devices, a single refresh takes minutes long before a million steps. Re-encoding the full history once costs 991 J for Toto-2.0-22m on the Pi.
- KV caches keep the latency far below recomputation but still grow linearly with the stream. At batch size 64, every causal attention configuration runs out of the A40's 48 GB before a million steps, and TimesFM-2.5 also exhausts the memory of the Raspberry Pi 5.
- Recurrent states stay flat. TiRex and TiRex-2 are the only models that reach a million steps on every device with constant latency and memory. TiRex-2 refreshes in 14 ms on the A40 and in about a tenth of a second on the Raspberry Pi 5, from the first grid point to the last, at about half a joule per update.
What about a sliding window?
The obvious workaround is to give every model only the last \(W\) steps. A window does bound latency and memory, but it changes what the forecast is conditioned on, and the model has to re-encode the whole window at every refresh. Granting every architecture its best measured window doesn't change the ranking: no configuration is both faster and more accurate than the incremental refresh of TiRex-2 on the full history (45.3 at about 120 ms on the Pi). Chronos-2 is the only one more accurate at all, with 47.6 at a window of 2,048 steps, but it pays 4.7 s per refresh, 39 times as long.
Takeaway
Causality decides whether a model's state can be reused, either as a KV cache or as a compressed recurrent memory. KV caches grow with the stream, so every causal attention model eventually hits a fixed memory budget. Fixed-size recurrent states don't. And of the nine configurations, TiRex-2 is the only one that also keeps its accuracy on the full, untruncated history, making it the only one that meets all three requirements of streaming on the edge.
The study covers univariate forecasting. Covariates scale the work per update and the retained state by a constant factor, so the three regimes stay the same.
Time Series Foundation Models on the Edge
Marco Pichler*, Patrick Podest*, Günter Klambauer, Sepp Hochreiter. NeurIPS 2026 Workshop TS-LIMITS.