arXiv:2609.39741cs.LGSep 2026

Manuscript Offprint

arXiv:2609.39741

The Nixtlaverse: An Open-Source Ecosystem for Forecasting

Olivier Sprangers, Max Mergenthaler Canseco, Marco Peixeiro, Saul Caballero Ramirez, Mariana Menchero García, Jing-Qiang Goh, Han Wang, Nikhil Gupta, Rogelio Melo, Senbong Gee, Cristian Challu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large forecasting applications often combine statistical, machine-learning, and neural models. These model families solve the same problem, but they differ in their fitted state, their training procedures, and the way they parallelize work. Forecasting software must therefore either hide these differences behind a single estimator interface, or keep the families in separate packages, which forces users to rewrite data preparation and evaluation for every package.

In this paper, we present the Nixtlaverse, an ecosystem of open-source Python libraries for time series forecasting, as a case study of a third design: all libraries share the same long-format panel data and keyed forecast outputs, while every model family keeps its own specialized implementation. We demonstrate the behavior and benefits of this design through three use cases on the public M5 competition data. First, we evaluate statistical, machine-learning, and neural models, as well as an external engine from a separate ecosystem, in a single rolling-origin evaluation. The shared outputs make per-series and hierarchy-weighted accuracy metrics cheap to compute side-by-side. Second, we profile runtime and peak memory from 100 to 30,490 series and locate the bottleneck of each family: statistical fitting scales approximately linearly in the number of series, feature construction dominates machine-learning memory, and neural training time is nearly independent of panel size under a fixed training budget. Third, we reconcile the forecasts of multiple engines, including the external one, over all 42,840 series of the M5 hierarchy, using sparse reconciliation where dense implementations exhausted the memory of our machine.

These use cases establish the costs and boundaries of the design and demonstrate the utility of shared data and output contracts for cross-family evaluation and reconciliation. The success of these design choices, and by extension the Nixtlaverse itself, has been validated by the substantial public distribution, scholarly reuse, and adoption through other forecasting frameworks. The Nixtlaverse is released under permissive open-source licenses, with public datasets, reproducible examples, and verifiable benchmark artifacts.

Keywords: forecasting software, open-source frameworks, panel time series, hierarchical forecasting, reproducibility, scalability

arXiv:2609.39741v1

1. Introduction

Large forecasting applications require more than fitting a model: practitioners prepare temporal panels, generate multi-step forecasts, evaluate methods over historical origins, and often aggregate forecasts for downstream decisions, frequently combining local statistical methods, global regressors, and neural models. These families solve the same problem but differ in fitted state, feature construction, training loops, preferred hardware, and natural unit of parallelism. Software can expose them through one estimator abstraction, which must accommodate those differing semantics, or through independent packages, which forces users to rewrite data preparation and evaluation. We study a third design that shares panel and forecast-output contracts while retaining specialized model-family implementations.

We state three design commitments. First, shared panel and output contracts can support cross-family evaluation even when model construction and behavioral defaults remain engine-specific. Second, scalability should be implemented within each model family because its bottleneck and natural unit of parallelism are properties of the method. Third, downstream operations should consume keyed forecasts rather than fitted models, so that evaluation and reconciliation remain independent of the producing engine. The first commitment applies a general interface principle to forecasting by standardizing a narrow data contract while leaving implementations free behind it. What makes the contract forecasting-specific is its explicit representation of series, time, and forecast

*Open-source project repositories: https://github.com/Nixtla.*Corresponding author.

Email addresses: olivier@nixtla.io (Olivier Sprangers), max@nixtla.io (Max Mergenthaler Canseco), marco@nixtla.io (Marco Peixeiro), saul@nixtla.io (Saul Caballero Ramirez), mariana@nixtla.io (Mariana Menchero García), jq@nixtla.io (Jing-Qiang Goh), han@nixtla.io (Han Wang), nikhil@nixtla.io (Nikhil Gupta), rogelio@nixtla.io (Rogelio Melo), senbong@nixtla.io (Senbong Gee), cristian@nixtla.io (Cristian Challu) origin.

The Nixtlaverse is a collection of interoperable forecasting libraries composed of StatsForecast, MLForecast, NeuralForecast, CoreForecast, UtilsForecast, HierarchicalForecast, and DatasetsForecast. Together, they implement these commitments through a shared long-panel representation and keyed forecast dataframes. 1^{1} StatsForecast (Garza Ramirez et al., 2022), MLForecast, and NeuralForecast (Olivares et al., 2022) provide specialized forecasting engines; CoreForecast supplies grouped numerical operations; and UtilsForecast and HierarchicalForecast (Olivares et al., 2024) consume forecast outputs for evaluation and reconciliation.

We evaluate these commitments through three concrete use cases on the public M5 dataset (Makridakis et al., 2022). Each represents a task faced by forecasting practitioners and examines the behavior and boundaries of one commitment. The first applies a common rolling-origin evaluation across all three model families and an engine external to the ecosystem (Section 4). The second profiles resource use as a workflow scales from a 100-series pilot to the complete 30,490-series panel (Section 5). The third performs hierarchical reconciliation over all 42,840 series in the M5 hierarchy, independently of the engines that produced the base forecasts (Section 6). The complete experimental protocol, including datasets, method configurations, and measurement procedures, is provided in Appendix A.

The contributions of this work are:

  1. a comprehensive model-family boundary that specifies what the shared panel, input and output contracts guarantee, with functional semantics (e.g., training, forecasting, reconciling) deliberately remaining engine-specific;

  2. measurements, organized as an evaluation use case (Section 4) and a scaling use case (Section 5), connecting that boundary to common rolling-origin evaluation across heterogeneous engines and to the distinct runtime and memory bottlenecks of local statistical, global machine-learning, and global neural methods;

  3. a hierarchical use case (Section 6) demonstrating that output-level interoperability supports common metrics and sparse hierarchical reconciliation while exposing differences between per-series, weighted, and coherent forecasts, and the memory boundary at which the tested dense reconcilers stop being feasible. In addition, as a direct test of extensibility, we tested an engine external to the ecosystem entering both the evaluation and reconciliation paths through the same keys; and

  4. a descriptive contribution: a license and public-infrastructure inventory of the ecosystem, and an account of the release-coordination and reproducibility obligations its multi-repository design implies.

References (73)