On the Role of Inductive Bias in Time-Series Pretraining: A Case Study in Learning Generalizable Representations for Clinical Time Series

Sharmita Dey, Diego Paez-GranadosarXiv 2026

TL;DR

Pretraining foundation models for clinical time series requires balancing different inductive biases to ensure representations transfer well to both classification and regression tasks. This paper introduces PATHOFM, a multi-objective transformer framework for pathological gait analysis that combines local reconstruction, temporal forecasting, and in-context learning. The authors demonstrate that a dynamics-centric mixture of these objectives avoids the typical trade-offs of single-bias methods, achieving robust generalization across diverse downstream clinical tasks under strict subject holdout.

What Problem Does This Paper Address?

Clinical time-series data—such as gait kinematics and kinetics—are notoriously difficult to model. Medical datasets typically feature small cohorts, expensive labels, and high heterogeneity across different clinics, sensors, and patient populations. This leads to two common failure modes: supervised models overfit to cohort idiosyncrasies (generalizing poorly to new subjects), and representations optimized for one endpoint (like diagnosis classification) transfer poorly to another (like continuous kinetic regression).

While self-supervised pretraining offers a way to leverage unlabeled data, the choice of inductive bias—the structural assumptions built into the pretraining objective—creates a fundamental trade-off. For instance, contrastive "grouping" objectives excel at classification but discard absolute magnitude and fine-grained waveform details needed for regression. Conversely, pure reconstruction preserves local morphology but struggles with class separability. This paper addresses how to design pretraining objectives that achieve balanced cross-task transfer while generalizing to entirely unseen subjects.

Methods

The authors propose PATHOFM, an encoder-centric transformer architecture. Instead of relying on a single self-supervised task, it uses a multi-objective pretraining strategy combining three complementary biases:

  1. Local Completion (LC): Reconstructs contiguous masked spans within a window to capture local signal morphology and cross-channel correlations (a masked-autoencoding bias).
  2. Temporal Continuity (TC): Predicts a masked mid-horizon future from an observed prefix, forcing the model to learn phase-consistent latent dynamics and smoothness (a dynamics bias).
  3. Unsupervised In-Context Dynamics (uICD): Organizes a support-query table of windows from the same subject. The model reconstructs a masked query window by attending to unmasked exemplar "support" windows, enabling non-parametric adaptation via attention without explicit parameter updates at test time.
Figure 1: PATHOFM pretraining objectives and architecture. A shared transformer encoder processes multivariate gait windows. (i) Local Completion reconstructs masked spans. (ii) Temporal Continuity predicts masked futures from observed past. (iii) Unsupervised In-Context Dynamics reconstructs a masked query window conditioned on same-subject support windows in a small table, enabling non-parametric adaptation via attention.

The implementation also features critical clinical data engineering steps: linear interpolation with edge filling to handle missing values smoothly, and a subject-balanced batch sampler to prevent high-volume subjects from dominating the pretraining phase.

Datasets

The study utilizes a clinical dataset of multivariate gait time series from 230 patients with Spinal Cord Injury (SCI). The data includes biomechanical variables such as joint angles, progression, power, and moments.

Evaluation is conducted under a strict subject holdout protocol: 10 subjects are completely held out for testing, 10 for validation, and the remaining 210 are used for training. This ensures the model is evaluated on its ability to generalize to entirely new patients, mimicking real-world clinical deployment where new patients appear at test time.

Key Insights and Ideas

  • Inductive Biases Dictate Downstream Success: The paper provides a clear taxonomy showing that pretraining objectives are not interchangeable. Grouping biases (like contrastive learning) compress out magnitude information to achieve class separation, making them poor fits for continuous kinetic regression.
  • Dynamics-Centric Mixtures Provide Balance: Combining local reconstruction (LC) with temporal forecasting (TC) and in-context conditioning (uICD) avoids single-task optimization traps, yielding a versatile representation.
  • uICD acts as Attention-Based Exemplar Regression: By using row-aware attention over same-subject windows, the transformer performs a learned similarity search to reconstruct missing data, effectively mimicking how clinicians compare a patient's current measurements to reference exemplars.
Table 1: Taxonomy of inductive biases for time-series pretraining. “Favored transfers” are task types that typically benefit most; “failure modes” are common when a bias is over-applied.

Key Results

On pretext tasks evaluated on held-out subjects, PATHOFM achieves high reconstruction fidelity, with an $R^2$ of 0.90 for Local Completion and 0.85 for Temporal Continuity.

In downstream evaluations, the full multi-objective mixture (LC+TC+uICD) achieves the most balanced performance across three classification tasks (pathology category, gender, SCIM independence level) and Ground Reaction Force (GRF) regression:

  • Pathology Classification: PATHOFM achieves an F1 score of 0.69 and an AUC of 0.66, outperforming pure diffusion or subject identification baselines.
  • GRF Regression: For continuous kinetic targets along the Z-axis, it achieves a strong Pearson correlation ($\rho$) of 0.88 and a low RMSE of 0.202, demonstrating excellent magnitude and phase preservation.
Figure 2: Qualitative pretext sanity check on an unseen SCI subject. Ground truth (solid) vs. PATHOFM predictions (dashed) across multiple joint angles and ground reaction force (GRF) components over a normalized gait window.

Limitations and Future Work

The main practical constraint of the in-context adaptation component (uICD) is its sensitivity to support selection; choosing irrelevant or noisy support windows can mislead the attention mechanism. Additionally, while the learned representations transfer effectively without requiring test-time exemplars, the full benefits of test-time exemplar conditioning (e.g., for longitudinal patient monitoring) were not fully explored in downstream tasks. Finally, the study is focused on a specific clinical domain (pathological gait in SCI), so validating this taxonomy and multi-objective approach on other diverse clinical time-series modalities (like ECG or EEG) remains an open direction.

Summary updated

Abstract

Clinical time-series learning is routinely constrained by small, heterogeneous cohorts and protocol drift, while its downstream use spans both classification (e.g., pathology diagnosis) and regression (e.g., temporal forecasting). These constraints make foundation-model pretraining appealing, but raises an important question of which inductive biases should the pretraining objective impose so that representations transfer across task types and subjects. We study this question in pathological gait analysis for spinal cord injury (SCI) via PathoFM, an encoder-centric transformer pretrained on multivariate gait windows with three complementary objectives: Local Completion (reconstruct contiguous masked spans to enforce local structure), Temporal Continuity (predict a masked mid-horizon continuation from an observed prefix to enforce smoothness and causal consistency), and Unsupervised In-Context Dynamics (support-query reconstruction conditioned on subject exemplar windows via attention). Empirically comparing objective families (grouping/contrastive, dynamics-based, and generative reconstruction), we find that dynamics-centric mixtures produce the most balanced transfer: grouping objectives favor discriminative margins but can degrade magnitude fidelity needed for continuous targets, whereas reconstruction-only objectives preserve waveform structure but may underperform on classification. Overall, combining local reconstruction with temporal continuity, and adding in-context conditioning when exemplar access is realistic, yields robust subject-generalizing representations.
BibTeX
@misc{dey2026role,
  author = {Sharmita Dey and Diego Paez-Granados},
  title = {{On the Role of Inductive Bias in Time-Series Pretraining: A Case Study in Learning Generalizable Representations for Clinical Time Series}},
  year = {2026},
  eprint = {2605.26194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.26194},
}
Figure