NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ClinStab: Stability-Oriented Learning for Medical Time Series via Dual-Stream Alignment

Wenshuo Chen, Haoxuan Xu, Yi Liu, Songning Lai, Ninghui Feng, Jiayu Yang, Haoang Li, Yutao YueNeurIPS 2026

TL;DR

Deep learning models can read heartbeats and brainwaves with impressive benchmark accuracy, yet suddenly stumble when a patient flinches or a sensor drifts. ClinStab upgrades a medical Transformer backbone by splitting signals into two specialized processing streams based on channel energy and training the model to resist adversarial noise. The result is a classifier that handles messy, corrupted biosignals much more gracefully without throwing away subtle diagnostic clues.

What Problem Does This Paper Address?

Physiological signals like Electroencephalography (EEG) and Electrocardiography (ECG) are notoriously messy in the real world, plagued by baseline drift, motion artifacts, and sensor dropouts. While modern Transformer architectures achieve great scores on clean datasets, they remain surprisingly brittle when exposed to perturbations.

The authors identify two root causes for this fragility:

  1. Architectural misalignment: Standard self-attention throws every channel into the same mixing pot. High-amplitude events—whether diagnostic heartbeats (QRS complexes) or sudden muscle twitches—dominate the representation, squashing quieter background rhythms that might carry subtle biomarkers.
  2. Optimization myopia: Training solely on clean data gives a model zero incentive to maintain smooth, stable predictions in the neighborhood around a sample.
Figure 1: Motivation for robustness evaluation in medical time-series analysis. Left: conventional models can exhibit unstable predictions under acquisition-inspired perturbations such as baseline drift, sensor noise, and sampling defects. Right: ClinStab combines signal morphology preservation and prediction-consistency constraints to improve stability under the stress tests evaluated in this paper.

Methods

ClinStab builds upon Medformer (an existing medical time-series Transformer that slices signals into multi-scale temporal patches) and introduces two major upgrades: a dual-stream interaction module and a composite stability loss.

Figure 2: Overview of the ClinStab Framework. We integrate a focal-context inductive bias with stability-driven optimization to bridge the robustness gap. (a) The Teacher Model (frozen Medformer) provides reference logits from clean data. (b) The student model (ClinStab) is ex- posed to both clean inputs x and perturbed inputs x + δ, where δ is generated via AutoPGD. (c) The Salience-Context Dual Modulation (SCDM) module replaces standard interaction layers by routing high-energy channels to attentive processing and residual channels to a context-preserving pathway. (d) Stability optimization combines clean supervision, perturbed supervision, prediction consistency, and teacher-guided stabilization.
  • Salience-Context Dual Modulation (SCDM): Instead of standard attention, ClinStab calculates the L2 energy of each sensor channel. Using a deterministic TopK router, the highest-energy channels go to a Salience Stream (sparse self-attention) to capture sharp, long-range features. Crucially, lower-energy channels are not discarded; they flow through a lightweight Context Stream (depth-wise convolutions) so subtle background patterns remain trainable before both streams are recombined in their original channel order.
  • Multifaceted Stability Optimization: During training, ClinStab generates worst-case adversarial perturbations ($\delta$) via AutoPGD. Its training objective combines four losses: standard cross-entropy on clean inputs, cross-entropy on perturbed inputs, a mean-squared error consistency penalty between clean and perturbed probability vectors, and knowledge distillation (KL-divergence) from a frozen, clean-trained Medformer teacher.

Datasets

No new datasets are introduced; the authors evaluate ClinStab across four established public benchmarks:

  • APAVA: 2-class EEG dataset for Alzheimer’s disease (23 subjects, 5,967 samples).
  • TDBrain: 2-class EEG dataset for Parkinson’s disease vs. healthy controls (72 subjects, 6,240 samples).
  • ADFTD: 3-class EEG dataset covering Alzheimer’s, frontotemporal dementia, and healthy controls (88 subjects, 69,752 samples). Note: this benchmark uses a subject-dependent split, whereas the other three use strict subject-independent splits.
  • PTB: 2-class cardiovascular ECG dataset (198 subjects, 64,356 samples).

Key Insights and Ideas

  • Energy is a routing rule, not a biomarker: Equating high signal energy with clinical importance is dangerous—a loud spike might just be a bumped wire, while a tiny ST-segment dip on an ECG can signal ischemia. Using energy strictly to decide how channels interact (attention vs. convolution) prevents loud artifacts from monopolizing the network while keeping quiet channels alive.
  • Calibration vs. global ranking tradeoffs: On the PTB ECG dataset, stability training sharpens the decision boundary—improving clean accuracy and probability calibration (lower Expected Calibration Error)—but actually lowers global ranking metrics like AUROC and AUPRC. Stability optimization changes the shape of the predictive distribution rather than uniformly boosting every metric.
  • Soft vs. hard routing: Replacing the deterministic TopK split with a differentiable soft energy gate yields slightly higher AUROC, proving that hard TopK is a reproducible compute/robustness operating point rather than a uniquely superior gating mechanism.

Key Results

Evaluated across 5 random seeds and compared against 11 Transformer baselines:

  • Clean Accuracy: ClinStab beats the local Medformer baseline across all four datasets: 79.34% (+2.35 points) on APAVA, 90.00% (+1.92) on TDBrain, 98.29% (+0.81) on ADFTD, and 82.12% (+2.28) on PTB (though PTB remains slightly below iTransformer's 83.89% and Medformer's previously published 83.50%).
  • Perturbation Robustness: Under heavy Gaussian noise ($\sigma = 3.0$), ClinStab outperforms Medformer by +6.14 accuracy points on APAVA (though slipping by -0.15 on PTB). Across five structured corruptions (like channel dropout and baseline drift), ClinStab reduces accuracy drops by an average of 2.05 points across all datasets.
  • Teacher-Guided Compression: Guided by a full-data teacher, a ClinStab student trained on just 30% of APAVA data hits 75.64% accuracy, nearly matching the 100%-data Medformer baseline (76.99%).
Figure 3: Reported Gaussian-noise degradation on APAVA. The horizontal axis is the injected noise standard deviation in the normalized input space.

Limitations and Future Work

The authors are refreshingly candid about what ClinStab doesn't do:

  • Training overhead: Generating AutoPGD perturbations inside the training loop increases training time by roughly 1.8$\times$ (though inference speed is unaffected).
  • Synthetic noise proxies: Bounded $L_p$ adversarial perturbations and simulated corruptions are mathematical stress tests, not exact physical models of clinical hardware failures.
  • ECG ranking dip: Lowering robustness loss weights can partially recover the lost AUROC on PTB, but at the cost of clean accuracy and noise resilience.
  • Not pure few-shot learning: Because the frozen teacher saw 100% of the clean training split, the reduced-data experiments only validate offline compression or site-adaptation scenarios, not true low-resource learning from scratch.

While the authors frame explicit stability-oriented design as a promising direction for medical time-series modeling, specific concrete steps for future work are not discussed in detail in the main text.

Summary updated

BibTeX
@inproceedings{chen2026clinstab,
  author = {Wenshuo Chen and Haoxuan Xu and Yi Liu and Songning Lai and Ninghui Feng and Jiayu Yang and Haoang Li and Yutao Yue},
  title = {{ClinStab: Stability-Oriented Learning for Medical Time Series via Dual-Stream Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pLj36IwQSC},
}
Figure