Imagine it’s 2 AM. You’re monitoring a critical sensor stream from a remote manufacturing plant. New data arrives every few seconds, and you need a forecast now to prevent a machine from melting down. You can’t send the data to the cloud because of privacy rules, so everything has to run on a tiny Raspberry Pi tucked away in a control cabinet.
This is the "Edge" reality, and as it turns out, the shiny new Time Series Foundation Models (TSFMs) we’ve all been excited about might not be ready for it. This paper puts nine state-of-the-art models through a grueling "streaming marathon" to see which ones can actually survive the long haul on constrained hardware.
TL;DR
Most time series models are built for "one-and-done" snapshots, but real-world operations are continuous streams. This paper reveals that while most models choke on long histories—either losing accuracy or blowing up their memory usage—recurrent architectures like TiRex-2 can forecast indefinitely with constant memory and lightning speed on edge devices.
What Problem Does This Paper Address?
We are currently in the "Foundation Model" era for time series. These models are great at "zero-shot" forecasting (predicting things they weren't specifically trained on). However, there’s a massive gap between a leaderboard benchmark and an operational deployment.
In the real world, data arrives in a stream. To keep your forecast fresh, you have to incorporate new observations. The authors identify three "must-haves" for an operational TSFM:
- Accuracy Retention: It shouldn't get dumber just because it has seen more history than it was trained for.
- Speed: It needs to refresh the forecast faster than the data arrives.
- Bounded Resources: Latency and memory shouldn't grow forever as the stream gets longer. If your Raspberry Pi runs out of RAM after two hours of operation, the system is useless.
Methods
The researchers didn't just run standard benchmarks; they created a streaming evaluation protocol. They simulated data streams up to one million time steps long and measured how models behaved on a server-grade GPU (NVIDIA A40) and three edge devices (a Raspberry Pi 5 and two industrial Beckhoff controllers).
They categorized the models into three architectural "scaling regimes":
- Non-causal (e.g., Chronos): These models have to re-read the entire history from scratch every time a new data point arrives. This is computationally expensive ($O(n^2)$ complexity).
- Causal Attention (e.g., TimesFM, Toto): These use a "KV cache" to remember the past. While they don't recompute everything, the cache grows linearly with time. Eventually, you run out of memory.
- Causal Recurrent (e.g., TiRex-2): These use a fixed-size internal state (like a "compressed memory"). In theory, they can run forever with the same amount of RAM ($O(1)$ complexity).
Datasets
The study utilized fev-bench, a realistic benchmark for time series forecasting. To test the "long-haul" capabilities, they specifically focused on 10 tasks where the data series exceeded 50,000 steps—well beyond the typical training window of these models.
Key Insights and Ideas
- The "Context Wall": Most models have a "trained context length" (e.g., 2,048 steps). You might think giving them more data would help, but as shown in Figure 1, most models actually perform worse once you exceed that limit. Some, like TiRex, collapse entirely.
- The KV Cache Tax: For attention-based models, the "memory" of the past is a ticking time bomb. On a Raspberry Pi, the linear growth in memory and latency means the model will eventually become too slow to provide real-time updates.
- Recurrence is the Secret Sauce: TiRex-2, which uses the xLSTM architecture, was the only model that stayed "flat." Its accuracy didn't degrade over long histories, and its memory usage stayed constant even after a million steps.
Key Results
- TiRex-2 was the clear winner. It met all three operational requirements. It refreshed in just 14 ms on a GPU and 120 ms on a Raspberry Pi 5.
- Edge Slowdown: Moving from a high-end GPU to a Raspberry Pi 5 results in a significant performance hit. As seen in Figure 2, models like Chronos-Bolt slowed down by over 30x, whereas the more efficient Toto and TiRex families saw smaller (though still significant) slowdowns of 7-12x.
- Memory Limits: On the Raspberry Pi 5 (which has ~8GB of RAM), the largest models like Toto-2.0-2.5B simply wouldn't fit at all.
Limitations and Future Work
The authors acknowledge a few boundaries:
- Univariate Only: The study focused on single-variable forecasting. Real-world problems often involve many variables (multivariate), which adds another layer of complexity.
- Hardware Specifics: While they tested on popular edge hardware, the "optimal" model might change as new AI-specific edge chips (NPUs) become more common.
- Quantization: They didn't heavily explore model quantization (shrinking models by reducing numerical precision), which is a standard trick for edge deployment that could change the latency/accuracy trade-off.
Summary updated