Deep TPC: Temporal-Prior Conditioning for Time Series Forecasting
Organizations: University of Michigan, Ann Arbor, MI, USA · Independent Scientist · Capital One, McLean, VA, USA
Abstract
LLM-for-time series (TS) methods typically treat time shallowly, injecting positional or prompt-based cues once at the input of a largely frozen decoder, which limits temporal reasoning as this information degrades through the layers. We introduce Temporal-Prior Conditioning (TPC), which elevates time to a first-class modality that conditions the model at multiple depths. TPC attaches a small set of learnable time series tokens to the patch stream; at selected layers these tokens cross-attend to temporal embeddings derived from compact, human-readable temporal descriptors encoded by the same frozen LLM, then feed temporal context back via self-attention. This disentangles time series signal and temporal information while maintaining a low parameter budget. We show that by training only the cross-attention modules and explicitly disentangling time series signal and temporal information, TPC consistently outperforms both full fine-tuning and shallow conditioning strategies, achieving state-of-the-art performance in long-term forecasting across diverse datasets. Code available at: https://github.com/fil-mp/Deep_tpc
Figures & tables
| Method | TPC (ours) | AutoTimes | OFA | TimeLLM | IP-LLM | PatchTST | Dlinear | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE | |
| ETTh1 | 0.399 | 0.422 | 0.409 | 0.438 | 0.415 | 0.429 | 0.451 | 0.451 | 0.425 | 0.440 | 0.444 | 0.453 | 0.418 | 0.439 |
| ETTh2 | 0.355 | 0.399 | 0.365 | 0.403 | 0.367 | 0.402 | 0.355 | 0.398 | 0.358 | 0.403 | 0.381 | 0.411 | 0.502 | 0.481 |
| ETTm1 | 0.346 | 0.379 | 0.358 | 0.382 | 0.355 | 0.386 | 0.349 | 0.382 | 0.347 | 0.382 | 0.363 | 0.391 | 0.357 | 0.389 |
| ETTm2 | 0.265 | 0.323 | 0.281 | 0.330 | 0.265 | 0.328 | 0.271 | 0.332 | 0.261 | 0.326 | 0.267 | 0.325 | 0.275 | 0.340 |
| Weather | 0.230 | 0.267 | 0.243 | 0.278 | 0.237 | 0.270 | 0.230 | 0.268 | 0.229 | 0.267 | 0.225 | 0.264 | 0.248 | 0.300 |
| Method | ETTh1 | ETTm1 | Weather | |||
|---|---|---|---|---|---|---|
| MSE | MAE | MSE | MAE | MSE | MAE | |
| TPC (ours) | 0.399 | 0.422 | 0.346 | 0.379 | 0.230 | 0.267 |
| Pos. Embeddings | 0.409 | 0.438 | 0.358 | 0.382 | 0.243 | 0.278 |
| Prefix-prompts | 0.414 | 0.441 | 0.352 | 0.390 | 0.243 | 0.279 |
| Full Fine-Tuning | 0.404 | 0.435 | 0.357 | 0.381 | 0.235 | 0.273 |
| Partial Fine-Tuning | 0.407 | 0.437 | 0.365 | 0.393 | 0.234 | 0.270 |
LLM-Based Time Series Forecasting
LLM-based time series forecasting uses large language models to predict future values from numerical histories and contextual data.
See all 100 papers