UniCA: Adapting Time Series Foundation Model to General Covariate-Aware Forecasting
June 30, 2025 ยท View on GitHub
Official implementation of UniCA, a unified framework for adapting Time Series Foundation Models (TSFMs) to general covariate-aware forecasting tasks, including heterogeneous and multimodal inputs.
๐ง Overview
Time Series Foundation Models (TSFMs) achieve impressive generalization through large-scale pretraining, but struggle to handle heterogeneous covariates (e.g., categorical features, images, text).
UniCA addresses this limitation via:
- Covariate Homogenization: Transforms diverse covariates into a high-order homogeneous representation.
- Attention-based Fusion: Integrates covariate features while preserving TSFMโs temporal modeling capacity.
- Plug-and-Play Adaptation: UniCA acts as an adapter module that does not modify pretrained TSFM parameters.

UniCA supports a wide range of scenarios: single-modal, multimodal, homogeneous, and heterogeneous covariates.
๐ Datasets
We evaluate UniCA on both unimodal and multimodal datasets:
- 12 datasets, e.g. M5, Retail, EPF ... (unimodal time series)
- Time-MMD (text + time series)
- MMSP (image + time series)
๐ Quick Start
1. Environment
create a new conda environment and install dependencies:
conda create -n unica python=3.10
conda activate unica
pip install -r requirements.txt
define the path to your pretrained model and dataset:
export MODEL_PATH=/your/pretrained/model/path
export DATA_PATH=/your/dataset/path
2. Pretrained Model
In the paper, we apply UniCA on the following two TSFMs:
You can download the pretrained models from Hugging Face and place them in the [MODEL_PATH] directory.
3. Data Preparation
Download the datasets from drive and place them in the [DATA_PATH] directory. The directory structure should
look like this:
[DATA_PATH]/
โโโ hog/
โโโ epf/
โโโ pdb/
โโโ ...
4. Reproduce results in paper
This repo uses wandb to log the training process. You can set up your wandb account and login before running the
code:
wandb login
To reproduce the results in the paper, run the following command:
- For unimodal time series forecasting:
bash scripts/unimodal.sh
- For EPF subsets time series forecasting:
bash scripts/epf_sub.sh
- For MMSP (image + time series) multimodal forecasting:
bash scripts/mmsp.sh
- For Time-MMD (text + time series) multimodal forecasting:
bash scripts/time-mmd.sh
The results are logged to the Datasets Evaluation table.
๐งช Results
UniCA consistently improves performance over strong TSFM baselines across multiple metrics (MAE, MAPE, CRPS, etc.) and covariate setups. See full results in our paper.