TimeBlocks: Foundational and Continual Time-Series Blockbase -- Extended Version

David Campos, Bin Yang, Tung Kieu, Lei Chen, Chenjuan Guo, Christian S. JensenarXiv 2026

TL;DR

TimeBlocks introduces a novel paradigm for time-series analysis by shifting away from massive, monolithic foundational models toward a modular, "lego-like" assembly of tiny pre-trained blocks. By dynamically routing data through the most suitable blocks at inference time and pairing this with a lightweight data summarizer called StreamCore, the framework achieves state-of-the-art accuracy across multiple tasks with a fraction of the memory footprint, making it ideal for edge devices and continual real-time calibration.

What Problem Does This Paper Address?

With the explosion of IoT devices and smart systems (like intelligent vehicles), we are swimming in time-series data streams. Analyzing these streams in real time requires models that are both highly accurate and lightweight enough to run on hardware-constrained edge devices.

Currently, researchers face a frustrating trade-off between two paradigms:

  1. Specialized Models: Training a separate, bespoke model for every single dataset and task. This is highly inefficient and doesn't scale.
  2. Large Foundational Models: Training massive models (often adapted from Large Language Models) across huge datasets. While generalizable, these models are too large for edge deployment and cannot handle continual calibration—the process of updating the model on the fly to adapt to changing data environments (concept drift).

TimeBlocks bridges this gap by providing a middle ground: a versatile framework that builds lightweight, task-specific models on demand without losing the benefits of foundational pre-training.

Figure 1: Paradigms for Time-Series Processing. (a) In the specialized model paradigm, a new model must be trained for each time series. (b) In the large model paradigm, a large model is pre-trained using a large set of time series across domains {𝑥𝑖}𝑁 𝑖=1. When deployed, model calibration requires sufficient amounts of data for a single calibration step. (c) In TimeBlocks, multiple small time-series processing blocks are pre-trained and stored in the Blockbase, and a data stream is summarized into a representative subset called StreamCore, allowing for continual calibration.

Methods

The TimeBlocks framework consists of three core innovations:

  • The Blockbase: Instead of one giant model, the authors pre-train a diverse pool of tiny, independent time-series processors (blocks) using various architectures (MLPs, LSTMs, Attention mechanisms) and context lengths. To ensure these blocks can be stacked interchangeably, each block includes an Output Standardization layer that maps its output to a uniform vector size. They also use a Multi-Scale strategy, downsampling inputs by powers of two to capture both broad trends and fine-grained patterns.
  • Blockbase Routing: When a new time-series data stream arrives, a lightweight auxiliary model (the Router) evaluates the data and iteratively selects the best blocks from the Blockbase to construct a custom model on the fly. The authors cleverly frame this block-selection challenge as a variation of the NP-hard Hamiltonian path problem, proving that their routing heuristic achieves a tight performance bound.
  • StreamCore: To allow the newly built model to adapt over time without running out of memory, the authors introduce StreamCore. This streaming coreset method maintains a small, highly diverse subset of the incoming data stream. It provides a mathematically guaranteed 20-approximation of the full data stream's feature space at a linear update cost, enabling efficient, low-overhead continual calibration on the edge.

Datasets

The authors rigorously evaluated TimeBlocks across four distinct time-series tasks using standard benchmarks:

  • Forecasting & Imputation: ETTh1, ETTh2, ETTm1, ETTm2 (Electricity Transformer Temperature at various frequencies) and Weather (meteorological data).
  • Outlier Detection: SMD (Server Machine Dataset), MSL (Mars Science Laboratory), SMAP (Soil Moisture Active Passive), and SWaT (Secure Water Treatment).
  • Classification: The UCR time-series archive, consisting of 128 diverse datasets.

Key Insights and Ideas

  • Foundational Generality via Modularity: The paper challenges the assumption that "foundational" models must be massive. Generality can emerge from a collection of small, specialized experts if you have an intelligent way to connect them.
  • Standardized Interfaces are Powerful: By forcing diverse architectures (like an LSTM block and an Attention block) to communicate through a standardized residual interface, the framework allows the router to mix and match completely different model families seamlessly.
  • Data-Driven, Gradient-Free Coresets: StreamCore updates its data summary based purely on distances in the feature space, bypassing the need to compute expensive gradients across the entire data stream. This makes continual calibration computationally viable for edge hardware.

Key Results

TimeBlocks consistently outperformed state-of-the-art baselines (including PatchTST, TimesNet, and large foundational models like Moment and Lag-Llama) across all four tasks.

  • Inference-Time Forecasting: On the Weather dataset, TimeBlocks achieved an average Mean Squared Error (MSE) of 0.220, outperforming the competitive Tiny Time Mixers (TTM) baseline (0.236) and massive models like Moment (0.732).
  • Extreme Size Reduction: A TimeBlocks model configured with $J=2$ blocks achieved a tiny footprint of just 0.995 MB, compared to TTM (3.176 MB) and PatchTST (1920.776 MB), while still delivering superior accuracy.
  • Superior Continual Calibration: When calibrated on data streams using StreamCore (retaining just 5% of the data), TimeBlocks achieved the lowest MSE across all datasets, proving that the coreset selection is significantly more effective than standard random buffering strategies.

Limitations and Future Work

While TimeBlocks demonstrates excellent efficiency and performance, the authors note a few areas for improvement. Currently, the Blockbase must be populated ahead of time with a diverse set of blocks. Future work will focus on expanding the variety of blocks in the Blockbase and compiling usage statistics to optimize block selection dynamically. Additionally, the authors plan to investigate methods to improve the scalability and usability of the Blockbase as the pool of available blocks grows very large.

Summary updated

Abstract

The ongoing digitization has led to a proliferation of time-series data streams that monitor a variety of processes, from which valuable insights may be obtained. Further, the emergence of successful foundational language models begs the question of whether it is possible to achieve time-series models with the foundational properties of handling multiple tasks, while being sufficiently lightweight to allow real-time data stream processing. Existing foundational time-series models are often large and only effective in offline settings without stringent time and computational constraints, and where repeated model calibration is not needed. However, when applied to data streams, these models are ineffective due to their size and lack of support for continual calibration, which compromise their ability to deliver accurate real-time responses, their durability, and their deployability in hardware-limited settings. We propose TimeBlocks to enable versatile time-series processing by facilitating the efficient building of lightweight models suitable for multiple tasks under variable conditions. In particular, the method maintains a pool of interchangeable and modular model blocks that can be used to construct new time-series models. When presented with specific time-series data, a routing strategy iteratively selects the most suitable blocks to construct a lightweight and accurate model for the data. We equip TimeBlocks with a method called StreamCore to build a representative small subset of the data stream, which preserves a guaranteed approximation of the stream over time, enabling continual model calibration. An experimental study on multiple data sets and covering multiple tasks shows that TimeBlocks enables to build models capable of outperforming existing baselines.
BibTeX
@misc{campos2026timeblocks,
  author = {David Campos and Bin Yang and Tung Kieu and Lei Chen and Chenjuan Guo and Christian S. Jensen},
  title = {{TimeBlocks: Foundational and Continual Time-Series Blockbase -- Extended Version}},
  year = {2026},
  eprint = {2606.02142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.02142},
}

Loading related content...

Figure