Manuscript Offprint

arXiv:2608.31013

TSPFN: A Temporal Tabular Foundation Model for Physiological Time Series Classification

Jérémie Stym-Popper, Clément Rambour, Federica Granese, Nicolas Thome, Olivier Bernard

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jérémie Stym-Popper¹, Clément Rambour¹, Federica Granese², Nicolas Thome¹,⁵, and Olivier Bernard⁴,⁵

¹ Sorbonne Université, CNRS, ISIR, MLIA, F-75005 Paris, France ² Inria, CNRS, I3S, Université Côte d'Azur, Valbonne, France ³ INSA-Lyon, Université Claude Bernard Lyon 1, CNRS, Inserm, CREATIS UMR 5220, U1294, F-69621, LYON, France ⁴ Institut Universitaire de France (IUF) stympopper@isir.upmc.fr

Abstract. Designing models that generalize effectively in low- to medium-data regimes remains a primary challenge in medical machine learning, particularly for physiological time-series classification. While tabular foundation models such as TabPFN offer an attractive alternative to conventional fine-tuning through in-context learning, they are not designed to capture the temporal dependencies inherent to physiological signals. In this paper, we introduce TSPFN, a foundation model that redesigns TabPFN's architecture for time series data. TSPFN integrates structured temporal representations and positional embeddings to capture intra-sample temporal and channel dependencies. To fully leverage its spatio-temporal design, the model is pretrained on 140,000 real-world physiological time series across multiple medical domains. This yields a unified, generalizable framework capable of learning the specificities of medical time series. Experiments across diverse physiological benchmarks demonstrate that TSPFN consistently outperforms standard tabular baselines and TabPFN, and achieves superior cross-domain generalization compared to specialized deep time-series models. All our experiments, ablation studies, and pre-processing scheme are publicly available at https://github.com/Jeremstym/TSPFN

Keywords: Time series classification · Foundation model · Data-driven prior networks · In-context Learning · Physiological Time Series

1 Introduction

Physiological time series play a central role in many clinical workflows, serving as compact and informative representations derived from raw medical signals or images. However, learning robust predictive models for classification tasks from such data remains challenging, particularly in low- to medium-data regimes that are common in clinical practice. The strong inter-subject variability, heterogeneous temporal dynamics, and limited availability of labeled recordings substantially hinder the generalization ability of conventional supervised learning

J. Stym-Popper et al.

approaches, which typically rely on task-specific training and large annotated datasets. As a result, models trained on small or moderately sized cohorts often fail to generalize across datasets, modalities, or clinical settings.

Tabular foundation models (TFMs) have recently emerged as a powerful alternative to classical machine learning approaches in low-data regimes. A TFM is a neural architecture pretrained on large corpora of diverse tabular datasets, enabling it to perform a wide range of downstream supervised tasks through in-context learning without gradient-based fine-tuning. A prominent example is TabPFN [9], a pretrained transformer that learns to approximate Bayesian inference on synthetic datasets sampled from a prior defined over a large space of structural causal models, enabling zero-shot generalization to new tasks at test time. While TabPFN is highly effective in classical tabular settings, its reliance on permutation-invariant features and synthetic pretraining datasets limits its applicability to medical time series, where intrinsic temporal dependencies and inter-channel structure are central.

In parallel, recent works have explored extending TabPFN to time-series forecasting [4,10,11]. Rather than modeling time series as sequential signals, these approaches reformulate forecasting as a tabular regression problem, transforming each time series into a feature vector encoding temporal information via cyclic trigonometric representations of calendar attributes. While this reformulation yields strong performance on general-purpose benchmarks, it relies on the assumption that temporal structure can be adequately captured through calendar-based features, an assumption often violated in the medical domain where physiological signals exhibit complex intrinsic temporal dependencies. Crucially, this formulation is inherently designed for forecasting future time points and does not naturally extend to time series classification tasks, which require reasoning over entire temporal trajectories.

To address these limitations, we introduce TSPFN (Time-Series Prior-Data Fitted Network), a novel in-context learning model tailored for the classification of physiological time series datasets in small- and medium-scale data regimes. Our main contributions are summarized as follows:

From a methodological perspective, we identify the main limitations of classical tabular foundation models in handling time series physiological data, and we address them by proposing TSPFN, which revisits the TabPFN architecture to model temporal dependencies in multivariate, multi-channel time series representations by integrating structured input representations and channel-wise positional embeddings to capture intra-sample temporal dependencies in physiological time series (cf. Section 3).

From an experimental perspective, we build a large-scale collection of real-world physiological time series from publicly available clinical datasets encompassing EEGs, ECGs, and ICU waveforms ( ∼\sim140,000 samples). Moreover, we organize them into a unified multi-scale pretraining framework with a consistent preprocessing scheme, which we release publicly 5^{5} (cf. Section 4).

5^{5} https://github.com/Jeremstym/TSPFN.

  1. BACKGROUND

3

Figure

Fig. 1: Overview of the proposed TSPFN framework. Physiological time series are structured into a unified tabular representation with explicit temporal and channel organization, enabling in-context learning for time series classification.

– From an evaluation perspective, we benchmark TSPFN on five diverse physiological time series datasets, showing competitive or superior performance against state-of-the-art methods in the low- to medium-data regimes, and excellent cross-domain generalization performances. We further conduct an ablation study to assess the contributions of the proposed temporal representations and positional encoding strategies to overall model performance (cf. Section 5).

References (20)