In-Context Time Series Classification with Random Convolutional Features

Joscha Cüppers, Jilles VreekenarXiv 2026

TL;DR

MASHT (MultiRocket And Stacked Hydra Transformed) is a new pipeline that achieves state-of-the-art time series classification by combining random convolutional features with a pretrained tabular foundation model. By leveraging TabPFN-3, the approach completely bypasses traditional task-specific training, performing direct in-context inference that matches the accuracy of heavy ensembles like HIVE-COTE 2.0 while being significantly faster.

What Problem Does This Paper Address?

Time series classification (TSC) is notoriously difficult because discriminative information can be hidden in various forms: local shapes (motifs), specific frequencies, or complex interactions between multiple sensors.

To handle this, researchers often use one of two extremes:

  1. Heavy Ensembles: Methods like HIVE-COTE 2.0 combine multiple specialized representations. They are highly accurate but computationally expensive to train.
  2. Random Convolutional Transforms: The ROCKET family (including MiniRocket and Hydra) uses random kernels to map time series into tabular features. These are incredibly fast but are traditionally paired with simple linear classifiers that fail to capture non-linear interactions between the generated features.

The authors ask: Can we bridge this gap by using a tabular foundation model to better harness these rich, random features without the massive overhead of training a custom ensemble for every new dataset?

Methods

The authors propose MASHT, a modular two-stage pipeline:

  1. Feature Extraction: Each time series is transformed into a fixed-dimensional vector by concatenating features from MultiRocket (which uses multiple pooling operators on raw and differenced data) and Hydra (which uses competing kernels to create dictionary-like counts).
  2. In-Context Inference: Instead of training a classifier on these features, the transformed training set and the query instances are fed into TabPFN-3.

TabPFN-3 is a transformer-based foundation model pretrained on millions of synthetic tabular datasets. It treats supervised learning as an inference task: you provide it with a labeled "context" (the training data), and it predicts the class for a new instance in a single forward pass. This "in-context" approach means the model doesn't need to update its weights for new tasks, effectively acting as a learned, highly sophisticated non-linear classifier.

Datasets

The researchers evaluated MASHT on two major benchmarks:

  • UTF-112: A collection of 112 univariate time series datasets, using 30 resamples per dataset to ensure statistical rigor.
  • Multiverse: A benchmark comprising 71 multivariate datasets, covering domains from biosignals to motion tracking.

Key Insights and Ideas

  • Training-Free SOTA: MASHT demonstrates that you can match the performance of the most accurate TSC models (like HIVE-COTE 2.0) without actually "training" a model on the specific dataset. The "learning" happens during the foundation model's pretraining phase.
  • The Power of Non-Linearity: The primary advantage of MASHT over standard MultiRocket/Hydra implementations is TabPFN-3's ability to recover predictive structures and non-linear interactions that simple ridge or linear classifiers miss.
  • Univariate vs. Multivariate: The compact tabular representation is exceptionally effective for univariate data. However, for multivariate data, the authors hypothesize that heavy ensembles still hold an edge because they better capture complex dependencies across different channels and long temporal contexts.

Key Results

In univariate tasks (UTF-112), MASHT achieved the highest mean accuracy and the best mean rank among all compared methods, including the industry-standard HIVE-COTE 2.0 (HC2).

Figure 1: Critical-difference diagram for accuracy on UTF-112. Methods connected by a horizontal bar are not significantly different under the Wilcoxon–Holm comparison.

As shown in the table below, MASHT slightly outperforms HC2 across accuracy, balanced accuracy, and AUROC:

Table 1: Mean performance on the 112 univariate UTF-112 datasets. Baseline results are from Middlehurst, Schäfer, and Bagnall (2024); MASHT results are on the same 30 resam- ples. Rank is the mean per-dataset accuracy rank.

On multivariate datasets, MASHT remains highly competitive. While HC2 maintains the top spot, MASHT is statistically tied with other leading methods like MR-Hydra and RDST.

Figure 3: Critical-difference diagram for accuracy on the Multiverse benchmark.

Runtime Efficiency: While not a perfectly controlled comparison, the authors note a median end-to-end runtime for MASHT of roughly 60 seconds per dataset. In contrast, previous literature reports a median training time for HC2 of over 15 minutes on similar datasets, suggesting a significant efficiency gain for MASHT.

Limitations and Future Work

  • Foundation Model Overhead: TabPFN-3 is a large model with non-trivial memory and inference requirements. While it saves time on training, the inference phase itself is more resource-intensive than a simple linear model.
  • Multivariate Gap: MASHT does not yet establish a new state-of-the-art for multivariate data. Future work could explore how to better represent cross-channel dependencies within the tabular framework.
  • Scaling: The current method relies on a feature budget. Investigating how performance scales with even larger feature sets or different foundation model architectures is a promising next step.

Summary updated

BibTeX
@misc{cuppers2026context,
  author = {Joscha Cüppers and Jilles Vreeken},
  title = {{In-Context Time Series Classification with Random Convolutional Features}},
  year = {2026},
  eprint = {2607.19234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.19234},
}
Figure