LLM-Integrated Bayesian State Space Models for Multimodal Time-Series Forecasting

Sungjun Cho, Changho Shin, Suenggwan Jo, Xinya Yan, Shourjo Aditya Chaudhuri, Frederic Sala

TL;DR

The LLM-Integrated Bayesian State Space Model (LBS) combines classical probabilistic state space models (SSMs) with pretrained Large Language Models (LLMs) to jointly forecast numerical time series and textual narratives. By grounding both modalities in a shared latent dynamical system, LBS improves numerical forecasting accuracy by 13.20% over prior state-of-the-art methods while quantifying uncertainty and producing coherent textual forecasts.

What Problem Does This Paper Address?

Real-world forecasting often relies on both quantitative data and unstructured contextual text—such as doctor's notes accompanying a patient's vitals or meteorological discussions accompanying temperature trends. Most existing approaches either ignore text altogether or rely on purely heuristic text-fusion mechanisms.

Probabilistic SSMs provide a strong inductive bias for physical and temporal dynamics as well as principled uncertainty estimation, but they cannot natively ingest or generate rich natural language. Meanwhile, LLMs excel at processing text but lack built-in temporal dynamics. Marrying the two poses two primary challenges:

  1. Text-conditioned posterior state estimation: Updating the SSM's latent state using textual observations via an LLM.
  2. Latent state-conditioned text generation: Steering the LLM to generate temporally grounded textual predictions conditioned on the SSM's latent trajectories.

Methods

LBS bridges these paradigms by treating latent state trajectories as a unified representation from which both numbers and text are emitted:

[Text D_t]   --> LLM Encoder (LoRA) --> <SUM> tokens --> MLP_post 
[Value y_t]  ------------------------------------------->   |
[Prior x_t]  ------------------------------------------->   v
                                                      Posterior x_hat_t
                                                            |
                                        +-------------------+-------------------+
                                        v                                       v
                                   MLP_val (y_hat_t)                   LLM Prefix (Text D_t)
  • SSM Backbone: A single-layer GRU (latent dimension 16) models the prior state dynamics $p(x_t \mid x_{t-1})$ as a multivariate Gaussian.
  • Text Compression for Posterior Updates: The vocabulary of a pretrained LLM (LLaMA-3.1-8B) is augmented with $K=8$ special <SUM> tokens. Given text $D_t$, the LLM encodes it, and the final hidden states of the <SUM> tokens are concatenated and projected to a summary vector $s_t$. A neural Kalman filter MLP combines $s_t$, numeric observation $y_t$, and prior hidden states to output the posterior distribution $q(x_t \mid y_t, s_t)$.
  • State-Conditioned Text Generation: Samples from the posterior $\hat{x}_t$ are projected through a linear layer into continuous prompt prefix tokens and prepended to text prompts, directing the LLM decoder to generate domain-appropriate text forecasts.
  • Shared Weights & Stateful Training: The same LLM backbone serves as both encoder and decoder (adapted via LoRA). Because calling the LLM twice per step over long horizons is computationally prohibitive, the authors use stateful single-step training, propagating latent states sequentially across batches.
  • Training Objective: Models are optimized end-to-end on a multimodal Evidence Lower Bound (ELBO) combining value reconstruction, text generation likelihood, and a KL-divergence temporal regularization term (with a "free nats" threshold to prevent early posterior collapse).

Datasets

The authors evaluate LBS on the TimeText Corpus (TTC) benchmark across an 80/10/10 temporal split:

  • TTC-CLIMATE: Daily temperature observations at Washington, D.C. accompanied by textual weather synopses (2014–2023).
  • TTC-MEDICAL: Daily heart rate time series from 73 hospitalized patients paired with clinical progress and nursing notes (averaging 104 days per patient).

Key Insights and Ideas

  • Text Stabilizes Long-Horizon Predictions: While adding text boosts performance across all horizons, its relative benefit grows as the forecast horizon lengthens. The contextual information in text helps anchor trajectories, mitigating compounding drift in autoregressive rollouts.
  • Bigger LLMs Aren't Automatically Better: Scaling experiments across Qwen2.5 (0.5B to 7B) and LLaMA-3 (1B to 8B) revealed that larger LLMs did not strictly improve time-series forecasting. The authors suggest that a compact SSM latent space creates an information bottleneck, and oversized LLMs risk memorizing training text patterns rather than learning transferable dynamical representations.
  • Transparent, Structured Latents: Applying t-SNE to learned latent trajectories showed clear seasonal periodic patterns that directly track ground-truth climate cycles.
  • Principled Uncertainty: By sampling from the prior distribution at inference time, LBS produces intuitive confidence bounds—widening during volatile transition seasons (e.g., early winter) and tightening during stable periods (e.g., summer).

Key Results

  • Superior Numerical Accuracy: LBS outperformed all unimodal (PatchTST, NLinear) and multimodal baselines (TSFLib, TT2TT, HybridMMF), reducing average test RMSE by 13.20% overall (5.13% on TTC-CLIMATE and 21.28% on TTC-MEDICAL).
  • Single Model for Arbitrary Horizons: Unlike baselines that require distinct models trained for each forecast horizon $H \in \{1, \dots, 7\}$, a single statefully trained LBS model generalized across all horizons.
  • Multimodal vs. Unimodal: Compared to an identical LBS variant without text inputs, multimodal LBS reduced RMSE by 3.82% on climate and 5.41% on medical data.
  • Qualitative Text Generation: Conditioned solely on the prior state embedding, LBS generated coherent meteorological discussions capturing specific regional pressure patterns (e.g., troughing/ridging) and rainfall predictions.

Limitations and Future Work

  • Latent Bottleneck: The SSM backbone was kept lightweight (16-dimensional GRU), which likely constrained larger LLMs from realizing their full representational power.
  • Sequential Computation: Although stateful training circumvents full multi-step LLM unrolling during backpropagation, training and inference still require sequential step-by-step LLM evaluations.
  • Future Directions: Developing capacity-aligned SSM architectures to match scale with multi-billion parameter LLMs, as well as refining posterior estimation strategies for richer multi-source textual data.

Summary updated

BibTeX
@inproceedings{cho2025llm,
  author = {Sungjun Cho and Changho Shin and Suenggwan Jo and Xinya Yan and Shourjo Aditya Chaudhuri and Frederic Sala},
  title = {{LLM-Integrated Bayesian State Space Models for Multimodal Time-Series Forecasting}},
  booktitle = {BERT2S @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=zNoJtd9bu9},
}
Figure