Skip to content

Official Implementation of AutoAR proposed in the paper “Specialized Foundation Models Struggle to Beat Supervised Baselines”

License

Notifications You must be signed in to change notification settings

Zongzhe-Xu/AutoAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dbf742d · Mar 24, 2025

History

8 Commits
Oct 19, 2024
Oct 28, 2024
Mar 24, 2025
Oct 19, 2024
Oct 28, 2024
Oct 19, 2024
Oct 19, 2024
Oct 28, 2024

Repository files navigation

Auto-AR

Original PyTorch implementation of AutoAR from the paper "Specialized Foundation Models Struggle to Beat Supervised Baselines"

Setup

Set up conda environment by running:

conda create --name autoar --file requirements.txt
conda activate autoar

Data

All datasets used up to this point are forecasting datasets.

Raw data consists of csv files where each file corresponds to a single dataset, the columns are channels, and the rows are timesteps. The contents should include

  • ETT-small datasets (4 of them): ETTh1, ETTh2, ETTm1, ETTm2
  • Electricity
  • Illness
  • Traffic
  • Weather

Experiments

To replicate results for ETTh1 with a forcasting length of 96, simply run

python3 autoar.py --dataset ETTh1_96 --new_metric --kpss

--kpss: Use KPSS test to determine the num_diff for the dataset provided. Set num_diff = 0 if not provided.

--new_metric: Use Bayesian Information Criteria (BIC) for choosing the input length. Use validation set for selection if not provided

--dataset: The dataset argument is formatted as "dataset name"_"forecasting length". For example, to run on ETTh1 with forecasting length of 720, use ETTh1_720.

--use_ols: Whether to use OLS for fitting the linear model. Default to True.

Citation

If you find this repository useful, please consider citing our paper:

@inproceedings{
  xu2025specializedfoundationmodelsstruggle,
  title={Specialized Foundation Models Struggle to Beat Supervised Baselines},
  author={Zongzhe Xu and Ritvik Gupta and Wenduo Cheng and Alexander Shen and Junhong Shen and Ameet Talwalkar and Mikhail Khodak},
  booktitle={The Thirteenth International Conference on Learning Representations},
  year={2025},
  url={https://openreview.net/forum?id=JYTQ6ELUVO}
}

About

Official Implementation of AutoAR proposed in the paper “Specialized Foundation Models Struggle to Beat Supervised Baselines”

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published