← all posts

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:

  1. Accuracy that holds up as the observed history keeps growing.
  2. A refresh that is fast enough to keep the lead time.
  3. 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.

Streaming a million steps on the Raspberry Pi 5
TiRex-2recurrent state
Toto-2.0-22mcausal attention, KV cache
Chronos-2-smallnon-causal, recompute
Each dot is a model working through the same stream. Every refresh moves it one patch to the right, and takes as long as one refresh at the context it has reached. A dot that reaches one million steps starts a fresh stream. TiRex-2 keeps its pace, Toto-2.0-22m slows down as its cache grows, and Chronos-2-small, which re-encodes the whole history every time, barely gets started.
Figure 1. Three models of similar size at batch size 1, each on the fastest path its architecture admits, on a Raspberry Pi 5 or an NVIDIA A40. The x-axis is the context processed so far, and each refresh advances by one patch (32 steps, 16 for Chronos-2-small). Latencies are interpolated between measured points from the paper: flat for TiRex-2, linear for the KV cache, quadratic for re-encoding. Raspberry Pi 5: the one-patch refresh at the start, and at the end of the streaming grid the energy per refresh divided by the measured power (Table 3; 524k steps for Chronos-2-small, its last measured point). A40: the one-patch refresh at the start (14 ms for TiRex-2, 6.4 ms for Chronos-2-small, 110 ms / 7.6 for Toto-2.0-22m), the incremental slope of Table 2 for Toto-2.0-22m, and about 9 s at 1M steps for Chronos-2-small, read off Figure 3 of the paper.

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.

chunk 1 arrives
Non-causal encoder Chronos-2, Chronos-Boltall chunks at once, this chunk with every chunk · · O(n²)
Causal attention Toto, TimesFM-2.5new chunk with earlier chunks · · O(n)
Causal recurrent state TiRex, TiRex-2state absorbs the new chunk · · O(1)
new chunk re-encoded earlier chunk already folded into the state
Figure 2. What one refresh computes when a new chunk arrives. Each arc is a pair of chunks processed together, and every lane draws its pairs at the same pace. In the non-causal encoder all chunks are there at once, and a chunk connects with every other one, earlier and later. Causal attention only connects the new chunk with earlier ones, and a recurrent state only absorbs the new chunk. The next chunk arrives once the slowest lane is done. With show information flow the links show which way information moves: both ways in the non-causal encoder and between state and chunk, only into the new chunk under causal attention. Switch off auto to step through it yourself. Schematic, with eight chunks.

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.

ModelBackboneTrained contextParamsOne update
TiRex-2xLSTM8,19282.5MO(1) / O(1)
TiRexxLSTM2,04835MO(1) / O(1)
Toto-1.0decoder-only4,096151MO(n) / O(n)
Toto-2.0-22mdecoder-only4,09622MO(n) / O(n)
Toto-2.0-2.5Bdecoder-only4,0962,500MO(n) / O(n)
TimesFM-2.5decoder-only16,256200MO(n) / O(n)
Chronos-2T5 encoder8,192120MO(n²) / O(n)
Chronos-2-smallT5 encoder8,19228MO(n²) / O(n)
Chronos-Bolt-baseT5 encoder2,048205MO(n²) / O(n)

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.

within trained context beyond trained context
Hover over a model, or tap it, to highlight its curve. full is the untruncated series, 52k to 199k steps depending on the task.
Figure 3. fev-bench skill score (higher is better, 0 is the Seasonal Naive baseline) against the context handed to the model, aggregated over the ten tasks with more than 50,000 steps. Curves leaving the chart at the bottom fall far below the baseline. Values from Table 4 of the paper.

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 refreshLatencyEnergy
Chronos-2-small72 ms0.36 J
TiRex100 ms0.51 J
Toto-2.0-22m110 ms0.49 J
TiRex-2120 ms0.58 J
Chronos-2262 ms1.31 J
Toto-1.0 (one sampled path)326 ms1.57 J
Chronos-Bolt-base428 ms2.15 J
TimesFM-2.51,002 ms5.12 J
Toto-2.0-2.5Bdoes 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:

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.

arXiv · BibTeX