PRISM: A Frozen-Backbone Framework for Cross-Distribution Generalization in Longitudinal Behavioral Data

Ahatsham Hayat, Mohammad Rashedul HasanNeurIPS 2026

TL;DR

Models trained to predict mental health or behavior from smartphone and wearable data notoriously collapse when tested on new populations. Instead of fine-tuning massive foundation models—which end up memorizing cohort-specific quirks—PRISM keeps its vision and language backbones completely frozen, using them as rigid "coherence judges" that force upstream behavioral representations to capture universal human patterns. The result is a lightweight framework that trains in under three hours on a single GPU and shatters out-of-distribution benchmarks across depression, anxiety, and schizophrenia forecasting.

What Problem Does This Paper Address?

Imagine training a model on passive sensor data (sleep, steps, phone usage) and survey responses from college freshmen in 2019 to forecast depression. When you deploy that model on a new university cohort two years later, accuracy plummets to ~52.8%—barely better than a coin flip.

This is the cross-distribution generalization problem in longitudinal behavioral modeling. Standard classification gives sparse feedback (just a 0 or 1 label per person), letting models latch onto brittle, cohort-specific shortcuts. Recently, researchers tried reformulating this by fine-tuning Large Language Models (LLMs) to generate future behavioral narratives. While richer, fine-tuning creates a new trap: the LLM co-adapts with the data, bending its definition of a "coherent story" to fit the quirks of the training population. To generalize across human populations, we need representations constrained by an unshakeable prior—one that training data cannot warp.

Methods

PRISM (Prospective Reasoning through Integrated Spectral-temporal Multimodal Learning) keeps all foundation models strictly frozen, using lightweight trainable bridges (~18M parameters total) to translate behavioral trajectories into a shared representation.

Figure 1: The PRISM framework. Three input streams (left, longitudinal numeric data; center, CWT scalogram; right, meta-narrative text) are processed through modality-specific encoders that produce token-level sequence representations. The temporal encoder is fully trainable; the CLIP vision and text encoders are frozen, with trainable input-side adaptation layers. Directed pairwise cross-attention with learned sigmoid gates produces a compact fused representation Ffused, which feeds two output paths. Path A uses a prediction MLP for fast outcome forecasting; Path B projects the fused embedding into soft prompt tokens consumed by a frozen LLaMA-3 decoder for prospective narrative generation. Both paths train jointly through homoscedastic task uncertainty weighting. Solid borders indicate trainable components; dashed borders indicate frozen components.

First, PRISM splits each person's data into three complementary views:

  1. Temporal Stream (Standard/Trainable): A small two-layer Transformer trained from scratch on raw multivariate numbers to capture exact values and correlations.
  2. Spectral Stream (Novel Adaptation): Human routines aren't clean sine waves like electricity grids; habits shift abruptly. Instead of standard Fourier transforms, PRISM uses Continuous Wavelet Transform (CWT) scalograms to capture when and at what frequency behavior shifts. Trainable convolutions adapt these scalograms into visual features for a frozen CLIP vision encoder.
  3. Semantic Stream: Offline LLM-generated "meta-narratives" (contextualizing the raw numbers) pass through a trainable MLP adapter into a frozen CLIP text encoder.

Next, Directed Cross-Modal Fusion integrates the streams asymmetrically: semantic and numeric representations query the visual/temporal evidence (rather than treating all modalities symmetrically), weighted by instance-specific sigmoid gates that can mute noisy channels.

Finally, the Dual-Path Training Objective splits into two heads balanced automatically via homoscedastic uncertainty weighting:

  • Path A (Prediction): A simple MLP predicting the binary outcome.
  • Path B (Narrative Generation, Primary): Soft-prompt tokens feed into a frozen LLaMA-3 8B decoder to generate a prospective behavioral narrative, from which the final forecast is parsed. Because LLaMA-3 cannot change its weights, the upstream encoders are forced to organize behavioral features into universally coherent concepts.

Datasets

No new datasets are introduced; PRISM is evaluated on four established longitudinal benchmarks split across cohorts or time periods to test out-of-distribution (OOD) transfer:

  • GLOBEM: Multi-year university smartphone/wearable data for depression forecasting (Years 1–2 train $\rightarrow$ Years 3–4 OOD).
  • LifeSnaps: Four months of Fitbit and survey data for anxiety prediction (Months 1–2 $\rightarrow$ Months 3–4).
  • MFAFY: Cross-year categorical self-reports from undergraduate STEM students forecasting educational engagement.
  • CrossCheck: Passive smartphone sensing forecasting symptoms in individuals with schizophrenia spectrum disorders (2015 enrollees $\rightarrow$ 2016–2017 enrollees).

Key Insights and Ideas

  • Language as a "physics-like" constraint: Much like physics-informed neural networks use fixed physical laws to prevent impossible solutions, PRISM uses a frozen LLM's pre-trained language prior as an unmovable coherence standard.
  • Freezing beats fine-tuning for domain shifts: A LoRA fine-tuned Vision-Language Model (Bimodal VLM) achieves strong raw accuracy, but suffers a wide drop between In-Distribution (ID) and OOD data. Freezing the backbones slashes this generalization gap by up to 5.95$\times$.
  • Generation unlocks hidden structure at test time: Even though Path A (MLP) and Path B (LLaMA-3) read from the exact same fused vector, decoding a narrative beats the MLP by 8 to 15.5 percentage points at inference—showing autoregressive generation extracts relational nuance a single forward pass misses.
  • Both losses need each other: Training with only narrative generation produces diffuse representations; training with only classification invites shortcuts. Combining them yields bidirectional regularization.

Key Results

PRISM's generative path ($\text{PRISM}_{\text{gen}}$) sets new OOD accuracy highs across all four datasets:

Table 1: Cross-distribution generalization results (DT →DT ′). Bold indicates best OOD performance per dataset. Shaded cells indicate PRISM results.
  • GLOBEM: Achieves 79.93% OOD accuracy—leaping +27.13 percentage points (pp) over the long-standing 52.8% classification SOTA and +12.53 pp over the best text-only LLM baseline, with a tiny 1.24 pp ID-to-OOD gap.
  • Broad Dominance: Hits 81.25% on LifeSnaps (+9.37 pp over next-best), 73.71% on MFAFY (+7.14 pp), and 84.97% on CrossCheck (+5.36 pp).
  • Not just LLM magic: Zero-shot prompting frozen LLaMA-3 8B on the exact same meta-narratives trails PRISM by 8.47–14.27 pp, proving the multimodal architecture and soft-prompt training do heavy lifting.
  • Efficiency: Trains in <3 hours on a single NVIDIA A40 GPU (vs. >24 hours on 8$\times$A40s for the fine-tuned VLM) and runs faster with nearly half the peak VRAM (9.8 GB vs. 18.6 GB) at inference.

Limitations and Future Work

  • Offline LLM dependency: The semantic stream relies on offline GPT-4o-generated meta-narratives (though an ablation swapping in open-weights Llama-3-8B-Instruct stayed within 1–2 accuracy points).
  • Binary scope & single-seed runs: Experiments only test binary classification (leaving multi-class and continuous targets untested) and use single fixed-seed runs due to the prohibitive cost of running multi-seed VLM baselines—notable on small test splits like LifeSnaps (64 OOD samples).
  • Unverified fusion asymmetry: While directed cross-attention makes intuitive sense, it was not experimentally ablated against standard symmetric attention.
  • Domain boundaries: The authors note this frozen-language-constraint paradigm likely won't help purely numerical stationary tasks (like traffic forecasting) that lack rich linguistic meaning.

Summary updated

Abstract

Cross-distribution generalization remains a major challenge in longitudinal behavioral modeling, as models trained on one cohort often perform poorly on new populations. Existing approaches based on feature-distribution alignment, increased model capacity, or generative reformulations have achieved limited improvements. We investigate this limitation from the perspective of representational constraints during training. Our approach uses a frozen language model to impose a fixed coherence criterion on representations during training. We introduce PRISM, a frozen-backbone framework that integrates temporal, spectral, and semantic representations through directed cross-attention with instance-specific gating. A dual-path training objective combines discriminative supervision with narrative-generation constraints on the shared representation. On GLOBEM, a cross-cohort benchmark for behavioral health prediction, PRISM achieves 79.93\% out-of-distribution (OOD) accuracy, improving the previous classification-based benchmark by 27.13 percentage points and the strongest LLM-based result by 12.53 points, with an in-distribution to OOD (ID-to-OOD) accuracy gap of 1.24 points. PRISM also achieves the highest OOD accuracy on three additional datasets spanning anxiety, educational engagement, and schizophrenia symptom forecasting, with consistently smaller ID-to-OOD gaps than fine-tuned VLM baselines. A frozen-LLM direct-prediction control trails PRISM's generation path by 8.47--14.27 points, while comparisons of PRISM's two paths show an additional inference-path advantage for the generative route in this setup.
BibTeX
@inproceedings{hayat2026prism,
  author = {Ahatsham Hayat and Mohammad Rashedul Hasan},
  title = {{PRISM: A Frozen-Backbone Framework for Cross-Distribution Generalization in Longitudinal Behavioral Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ioWVlKwBW2},
}
Figure