TSFM Meets LLM: Context as Covariates
Organizations: The University of Texas at Austin, Austin, TX, 78712.
Abstract
Textual information is ubiquitous in real-world time series datasets, appearing as news, reports, and annotations that hold key predictive signals not deducible from numerical history alone. Large Language Models (LLMs) interpret text but lack numerical precision, while Time Series Foundation Models (TSFMs) are quantitatively accurate but cannot reason about the effects of text. Moreover, the lack of large-scale paired multimodal datasets limits progress in bridging this gap. In this work, we address this challenge by providing a scalable approach for generating realistic multimodal datasets by annotating real-world time series with LLMs. Building on this, we propose Context as Covariates (CoCo), a forecasting framework in which an LLM distills its textual reasoning into numerically grounded forecast and confidence covariates that guide a TSFM backbone, thereby exploiting the strengths of both LLMs and TSFMs. We align the two models in stages, first fine-tuning the LLM via Group Relative Policy Optimization (GRPO) with a reward tied to covariate-induced improvement in forecasting performance, and then fine-tuning the TSFM on covariates generated by the aligned LLM. Our experiments show that models trained on our synthetic multimodal corpus generalize to real benchmarks spanning finance, economics, weather, traffic, and security. Notably, CoCo with Qwen3-4B-Instruct-2507 as the LLM and Chronos2 as the TSFM achieves up to 12% MAE improvement over state-of-the-art TSFMs and LLM forecasters, such as GPT-4o. Code, checkpoints, and the evaluation datasets are publicly available.
Figures & tables
| Mean MAE ( ) | Aggregate Performance | ||||||||||||||
| 64–16 Setting | 128–16 Setting | 256–16 Setting | Native | Overall | Average | ELO | CoCo | Wilcoxon | |||||||
| Model | Media Cloud | FNSPID | TimeMMD | Media Cloud | FNSPID | TimeMMD | Media Cloud | FNSPID | TimeMMD | TimeMMD ∗ | MAE | Rank | Rating | Wins | |
| CoCo (Ours) | 0.809 | 0.907 | 0.811 | 0.567 | 0.613 | 0.672 | 0.446 | 0.453 | 0.678 | 1.329 | 0.719 | 5.24 | 1838 | – | – |
| Zero-shot Unimodal | |||||||||||||||
| TiRex1 | 0.835 | 0.915 | 0.824 | 0.580 | 0.616 | 0.696 | 0.450 | 0.450 | 0.738 | 1.352 | 0.735 | 7.26 | 1750 | 60/95 | 5.0e-04 |
| Chronos2 | 0.847 | 0.942 | 0.832 | 0.590 | 0.631 | 0.701 | 0.461 | 0.462 | 0.718 | 1.362 | 0.745 | 10.18 | 1643 | 81/95 | 2.0e-12 |
| Mean MAE ( ) | Aggregate Performance | ||||||||||||||
| 64–16 Setting | 128–16 Setting | 256–16 Setting | Native | Overall | Average | ELO | CoCo | Wilcoxon | |||||||
| Model | Media Cloud | FNSPID | TimeMMD | Media Cloud | FNSPID | TimeMMD | Media Cloud | FNSPID | TimeMMD | TimeMMD ∗ | MAE | Rank | Rating | Wins | |
| CoCo (Ours) | 0.809 | 0.907 | 0.811 | 0.567 | 0.613 | 0.672 | 0.446 | 0.453 | 0.678 | 1.329 | 0.719 | 5.24 | 1838 | – | – |
| Unimodal Fine-tuning | |||||||||||||||
| Chronos2 | 0.851 | 0.924 | 0.810 | 0.583 | 0.637 | 0.670 | 0.460 | 0.469 | 0.675 | 1.389 | 0.738 | 9.18 | 1677 | 64/95 | 1.2e-05 |
| AutoTimes | 0.851 | 0.916 | 0.901 | 0.585 | 0.633 | 0.773 | 0.515 | 0.473 | 0.784 | 1.337 | 0.763 | 11.75 | 1588 | 78/95 | 3.2e-10 |
| Fine-tuning | Both + | |
|---|---|---|
| Only | 0.21 | 1.64 |
| Only | 2.45 | 2.55 |
| Both and | 2.6 | 3.36 |
| Model | Mean RCRPS |
|---|---|
| Qwen3-4B | 0.358 |
| Qwen3-4B + Reasoning | 0.189 |
| Qwen3-4B (CoCo) | 0.301 |
| Qwen3-4B (CoCo) + Reasoning | 0.161 |
| Chronos2 (Unimodal) | 0.265 |
| CoCo | 0.256 |
Appendix figures & tables31 assets
Supplementary material from the paper’s appendix.
Appendix
| MAE ( ) | ||
|---|---|---|
| Dataset | LLM Forecast ( ) | CoCo ( ) |
| Raw | 0.878 | 0.858 |
| Rephrased | 0.875 | 0.859 |
| Perturbation | % Change in the LLM Forecast ( ) MAE ( ) |
|---|---|
| Rephrased | 0.3 |
| Random Word Deletion ( ) | 0.8 |
| Less Verbose Annotations | 1.1 |
| Sentence Reordering | 1.02 |
| Using Annotations From Other Datasets | 5.0 |
| Misleading Text | 7.9 |
| Domain | Mean Distance Between Real and True Forecast Description Representation | Mean Distance Between Synthetic and True Forecast Description Representation | Mean |
|---|---|---|---|
| All domains | 0.3715 | 0.3774 | +0.0059 |
| Agriculture | 0.3718 | 0.3735 | +0.0017 |
| Energy | 0.3744 | 0.3745 | +0.0001 |
| Macro Indicators | 0.3720 | 0.3805 | +0.0085 |
| Retail | 0.3759 | 0.3744 | -0.0015 |
| Finance | 0.3707 | 0.3775 | +0.0068 |
| Average | Intemporal | Historical | Future | Covariate | Causal | |
| Model | RCRPS | Information | Information | Information | Information | Information |
| Qwen3-4b (Base) | 0.358 ± 0.031 | 0.390 ± 0.045 | 0.247 ± 0.023 | 0.301 ± 0.042 | 0.310 ± 0.035 | 0.700 ± 0.149 |
| Qwen3-4b (CoCo Fine-tuned) | 0.301 ± 0.027 | 0.306 ± 0.040 | 0.219 ± 0.019 | 0.276 ± 0.036 | 0.280 ± 0.033 | 0.675 ± 0.142 |
| Qwen3-4b (Base) + Reasoning | 0.189 ± 0.036 | 0.159 ± 0.011 | 0.134 ± 0.011 | 0.088 ± 0.012 | 0.204 ± 0.047 | 0.523 ± 0.214 |
| Qwen3-4b (CoCo Fine-tuned) + Reasoning | 0.161 ± 0.013 | 0.154 ± 0.010 | 0.130 ± 0.012 | 0.090 ± 0.012 | 0.171 ± 0.016 | 0.378 ± 0.064 |
| Chronos2 (Unimodal) | 0.265 ± 0.016 | 0.254 ± 0.021 | 0.166 ± 0.017 | 0.293 ± 0.031 | 0.239 ± 0.018 | 0.438 ± 0.066 |
| CoCo MAE ( ) | |
|---|---|
| 0.00 | 0.810 |
| 0.05 | 0.801 |
| 0.25 | 0.802 |
| 0.50 | 0.805 |
| 1.00 | 0.814 |
| Source | Frequency | Datasets | Samples |
| FRED | Daily | 95 | 107,993 |
| Weekly | 91 | 97,010 | |
| Monthly | 807 | 433,750 | |
| Quarterly | 93 | 18,891 | |
| Annual | 52 | 3,176 | |
| EIA Data | Daily | 118 | 252,581 |
| Text Source | Dataset | Target Source | Frequency | Date Range | Total | 2024-06 |
| Media Cloud | Apple Stock Price | Google Finance | Daily | 2024-01 – 2025-12 | 503 | 398 |
| Copper Futures Price | Google Finance | Daily | 2025-01 – 2026-01 | 258 | 258 | |
| Crude Oil Price | FRED | Daily | 2024-01 – 2026-01 | 500 | 395 | |
| Egg Price | Trading Economics | Daily | 2025-02 – 2025-12 | 223 | 223 | |
| Google Stock Price | Google Finance | Daily | 2024-01 – 2025-12 | 502 | 398 | |
| NASDAQ Electricity | FRED | Daily | 2024-01 – 2025-12 | 523 | 413 |
| Forecast | MAE (mean std) |
|---|---|
| LLM Rollout ( ) | |
| LLM Rollout Median ( ) | |
| CoCo ( ) |
| Mean MAE ( ) | ||||||||||
| Group | Dataset | CoCo | TiRex1 | Chronos2 | Moirai | TimesFM2.5 | Toto | TabPFN2.5 | TimeMoE | PANDA |
| Media Cloud | Crude Oil Price | 0.700 | 0.682 | 0.690 | 0.687 | 0.663 | 0.703 | 0.777 | 0.770 | 0.774 |
| S&P500 Index | 0.594 | 0.601 | 0.641 | 0.625 | 0.652 | 0.667 | 0.778 | 0.835 | 0.816 | |
| Apple Stock | 0.637 | 0.666 | 0.666 | 0.651 | 0.676 | 0.683 | 0.760 | 0.797 | 0.846 | |
| Copper Futures | 0.682 | 0.735 | 0.727 | 0.679 | 0.751 | 0.701 | 0.781 | 0.775 | 0.941 | |
| Egg Price | 0.604 | 0.587 | 0.583 | 0.607 | 0.587 | 0.583 | 0.655 | 0.598 | 0.865 | |
| Mean MAE ( ) | |||||||||
| Group | Dataset | CoCo | TimesFM2.5+GPT4o | Chronos2+GPT4o | Chronos2 MV | Toto MV | GPT-4o | Qwen3-30B | TimeOmni |
| Media Cloud | Crude Oil Price | 0.700 | 0.625 | 0.645 | 0.707 | 0.646 | 0.713 | 0.842 | 0.887 |
| S&P500 Index | 0.594 | 0.634 | 0.649 | 0.693 | 0.724 | 0.723 | 0.655 | 0.785 | |
| Apple Stock | 0.637 | 0.682 | 0.692 | 0.715 | 0.706 | 0.770 | 0.754 | 0.876 | |
| Copper Futures | 0.682 | 0.685 | 0.685 | 0.748 | 0.740 | 0.725 | 0.736 | 0.853 | |
| Egg Price | 0.604 | 0.579 | 0.572 | 0.594 | 0.577 | 0.599 | 0.672 | 0.809 | |
| Mean MAE ( ) | ||||||||
| Group | Dataset | CoCo | Chronos2 (FT) | AutoTimes | PatchTST | S2IP-LLM | iTransformer | TEST |
| Media Cloud | Crude Oil Price | 0.700 | 0.681 | 0.691 | 0.707 | 0.723 | 0.763 | 0.769 |
| S&P500 Index | 0.594 | 0.660 | 0.652 | 0.626 | 0.661 | 0.740 | 0.764 | |
| Apple Stock | 0.637 | 0.683 | 0.669 | 0.683 | 0.698 | 0.772 | 0.827 | |
| Copper Futures | 0.682 | 0.729 | 0.731 | 0.717 | 0.776 | 0.779 | 0.767 | |
| Egg Price | 0.604 | 0.623 | 0.705 | 0.698 | 0.774 | 0.765 | 0.805 | |
| Mean MAE ( ) | ||||||||
| Group | Dataset | CoCo | Chronos2 MV (FT) | VoT | TaTS | S2IP-LLM | AutoTimes | TEST |
| Media Cloud | Crude Oil Price | 0.700 | 0.680 | 0.667 | 0.698 | 0.715 | 0.699 | 0.704 |
| S&P500 Index | 0.594 | 0.641 | 0.679 | 0.694 | 0.666 | 0.682 | 0.727 | |
| Apple Stock | 0.637 | 0.657 | 0.661 | 0.702 | 0.698 | 0.730 | 0.699 | |
| Copper Futures | 0.682 | 0.679 | 0.707 | 0.730 | 0.755 | 0.755 | 0.732 | |
| Egg Price | 0.604 | 0.667 | 0.709 | 0.592 | 0.737 | 0.781 | 0.749 | |
| Mean MAE ( ) | |||||||||||
| Group | Setting | Dataset | N | CoCo | TimesFM2.5+GPT4o | Chronos2+GPT4o | Chronos2 MV | Toto MV | GPT-4o | Qwen3-30B | TimeOmni |
| Media Cloud | 64-16 | Crude Oil Price | 316 | 0.802 | 0.752 | 0.758 | 0.817 | 0.760 | 0.877 | 0.924 | 1.082 |
| S&P500 Index | 280 | 0.759 | 0.797 | 0.805 | 0.904 | 0.929 | 0.883 | 0.859 | 0.978 | ||
| Apple Stock | 319 | 0.903 | 0.977 | 0.977 | 1.043 | 1.014 | 1.089 | 1.059 | 1.467 | ||
| Copper Futures | 179 | 0.775 | 0.784 | 0.769 | 0.893 | 0.914 | 0.824 | 0.824 | 1.004 | ||
| Egg Price | 144 | 0.701 | 0.651 | 0.669 | 0.673 | 0.644 | 0.714 | 0.778 | 0.902 | ||
| Geometric Mean MASE ( ) | |||||||||||||||
| 64–16 Setting | 128–16 Setting | 256–16 Setting | Native | ||||||||||||
| Model | Media Cloud | FNSPID | TimeMMD | Media Cloud | FNSPID | TimeMMD | Media Cloud | FNSPID | TimeMMD | TimeMMD ∗ | Overall MASE | Avg. Rank | ELO | CoCo Wins | Wilcoxon |
| CoCo | |||||||||||||||
| CoCo | 3.064 | 3.136 | 1.605 | 3.009 | 3.056 | 1.533 | 2.817 | 2.961 | 1.530 | 1.915 | 2.455 | 5.21 | 1845 | – | – |
| Zero-shot Unimodal | |||||||||||||||
| TiRex1 | 3.136 | 3.175 | 1.621 | 3.075 | 3.064 | 1.609 | 2.857 | 2.950 | 1.662 | 1.936 | 2.506 | 6.62 | 1782 | 59/95 | 9.4e-04 |
| Average Rank ( ) | |||||
| Model | MAE | MSE | MAPE | MAE Unscaled | MASE |
| CoCo | |||||
| CoCo | 5.24 | 5.98 | 6.39 | 5.81 | 5.21 |
| Zero-shot Unimodal | |||||
| TiRex1 | 7.26 | 8.63 | 6.92 | 6.97 | 6.62 |
| Chronos2 | 10.18 | 11.16 | 9.81 | 10.11 | 9.56 |
| Mean MAE ( ) | ||||||||||||
| Group | Setting | Dataset | N | CoCo | TimesFM2.5+GPT4o | Chronos2+GPT4o | Chronos2 MV | Toto MV | GPT-4o | Qwen3-30B | TimeOmni | GPT-5 |
| Media Cloud | 64-16 | Crude Oil Price | 421 | 0.877 | 0.817 | 0.831 | 0.853 | 0.816 | 0.930 | 1.027 | 1.160 | 0.859 |
| S&P500 Index | 384 | 0.797 | 0.827 | 0.843 | 0.944 | 0.998 | 0.896 | 0.855 | 0.979 | 0.766 | ||
| Apple Stock | 424 | 0.872 | 0.948 | 0.945 | 1.008 | 1.003 | 1.043 | 0.961 | 1.325 | 0.854 | ||
| Copper Futures | 179 | 0.775 | 0.784 | 0.769 | 0.893 | 0.914 | 0.824 | 0.824 | 1.004 | 0.787 | ||
| Egg Price | 144 | 0.701 | 0.651 | 0.669 | 0.673 | 0.644 | 0.714 | 0.778 | 0.902 | 0.729 | ||
| MAE ( ) | ||
|---|---|---|
| CoCo Fine-tuned | CoCo | CoCo |
| Chronos2 | (With Misleading Text) | (With Truthful Text) |
| 2.929 | 3.025 | 2.802 |
| LLM Forecast | Chronos2 Forecast | CoCo | CoCo | |||||
| LLM | MAE ( ) | Rank ( ) | MAE ( ) | Rank ( ) | MAE ( ) | Rank ( ) | MAE ( ) | Rank ( ) |
| Zeroshot | 1.270 | 8.842 | 0.980 | - | 1.028 | 2.579 | 1.110 | 4.676 |
| Qwen3-4b Fine-tuned | 1.078 | 3.816 | 0.980 | - | 0.978 | 2.632 | 0.964 | 2.684 |
| Chronos2 Fine-tuned | 1.270 | 8.842 | 0.959 | 2.342 | 0.956 | 2.459 | 0.955 | 2.459 |
| Both Fine-tuned | 1.078 | 3.816 | 0.959 | 2.342 | 0.954 | 2.263 | 0.947 | 2.184 |
| CoCo Forecast | ||
| MAE ( ) | Rank ( ) | |
| 5 | 0.845 | 1.833 |
| 9 | 0.845 | 1.867 |
| 15 | 0.846 | 1.900 |
| LLM Forecast ( ) | ||||
|---|---|---|---|---|
| Qwen3-4b Fine-tuning | Overall MAE ( ) | TimeMMD MAE ( ) | FNSPID MAE ( ) | Rank ( ) |
| Supervised Fine-tuning | 1.187 | 1.635 | 1.050 | 8.289 |
| CoCo Fine-tuning without Text | 1.172 | 1.543 | 0.954 | 4.395 |
| CoCo Fine-tuning with Synthetic Text | 1.087 | 1.365 | 0.903 | 3.974 |
| CoCo Fine-tuning with Real Text | 1.140 | 1.528 | 0.891 | 3.605 |
| CoCo Fine-tuning with Real and Synthetic Text | 1.078 | 1.354 | 0.894 | 3.737 |
| Mean MAE ( ) | |||||
|---|---|---|---|---|---|
| M-TSFM | LLM | ||||
| Chronos2 | GPT-OSS-120B | 0.885 | 0.847 | 0.828 | 0.842 |
| Qwen3-30B | 0.949 | 0.847 | 0.816 | 0.851 | |
| Gemma3-27B | 0.871 | 0.847 | 0.821 | 0.827 | |
| Qwen3-4B | 1.019 | 0.847 | 0.824 | 0.895 | |
| Qwen3-4B (FT) | 0.862 | 0.847 | 0.818 | 0.801 | |
| Mean MAE ( ) | |||||||
| TSFM | TSFM MV | CoCo (With Toto) | CoCo (With Toto) | ||||
| Group | Setting | Dataset | N | Toto | Toto | Only Forecast Covariate | Both Covariates |
| Suite | 64-16 | Crude Oil Price | 421 | 0.900 | 0.816 | 0.899 | 0.899 |
| S&P500 Index | 384 | 0.926 | 0.998 | 0.959 | 0.948 | ||
| Apple Stock | 424 | 0.959 | 1.003 | 0.951 | 0.941 | ||
| Copper Futures | 179 | 0.827 | 0.914 | 0.814 | 0.815 | ||
| Annotations | Direction | Magnitude Tertile | Argmax Bucket |
|---|---|---|---|
| Media Cloud (Real) | 0.533 | 0.344 | 0.301 |
| FNSPID (Real) | 0.544 | 0.340 | 0.279 |
| Synthetic (LLM generated with ground truth future values) | 0.555 | 0.316 | 0.272 |
| Synthetic (LLM generated without ground truth future values) | 0.491 | 0.376 | 0.346 |
| Fine-tuned Components | Mean MAE ( ) | Avg. Rank among Baselines ( ) | ELO among Baselines ( ) | Avg. Rank among Variants ( ) | ELO among Variants ( ) |
| M-TSFM & LLM | 0.719 | 5.24 | 1829 | 1.87 | 1535 |
| LLM | 0.732 | 6.44 | 1785 | 1.93 | 1508 |
| M-TSFM | 0.724 | 7.16 | 1758 | 2.19 | 1457 |
| Model | Latency (ms/sample) |
|---|---|
| Chronos2 | 11.43 7.18 |
| Toto | 31.15 39.67 |
| TimesFM 2.5 | 37.08 52.43 |
| Chronos MV | 75.77 54.26 |
| TabPFN 2.5 | 270.17 28.62 |
| CoCo | 280.07 21.96 |
Time Series Forecasting
Time series forecasting predicts future values from ordered observations using statistical, neural, and probabilistic models to support decisions under uncertainty.
See all 910 papers