FMTK: A Modular Toolkit for Composable Time Series Foundation Model Pipelines
Hetvi Shastri, Pragya Sharma, Walid A. Hanafy, Mani Srivastava, Prashant Shenoy
TL;DR
FMTK addresses the fragmentation in TSFM pipeline development by providing a standardized, modular toolkit that couples encoders, backbones, adapters, and decoders through a unified API. By decoupling components and enforcing consistent execution and evaluation semantics, it enables rapid, reproducible experimentation across diverse tasks and backbones with minimal code. The framework demonstrates usability, architectural adaptability, and competitive performance, including low overhead and memory benefits, while supporting runtime component switching and comprehensive benchmarking. This work offers a practical template for rigorously evaluating TSFM-based systems and lays groundwork for extending modular pipelines to broader foundation-model workflows.
Abstract
Foundation models (FMs) have opened new avenues for machine learning applications due to their ability to adapt to new and unseen tasks with minimal or no further training. Time-series foundation models (TSFMs) -- FMs trained on time-series data -- have shown strong performance on classification, regression, and imputation tasks. Recent pipelines combine TSFMs with task-specific encoders, decoders, and adapters to improve performance; however, assembling such pipelines typically requires ad hoc, model-specific implementations that hinder modularity and reproducibility. We introduce FMTK, an open-source, lightweight and extensible toolkit for constructing and fine-tuning TSFM pipelines via standardized backbone and component abstractions. FMTK enables flexible composition across models and tasks, achieving correctness and performance with an average of seven lines of code. https://github.com/umassos/FMTK
