arXiv:2611.05325cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05325

CATF: A Manager-Worker Framework for Context-Aware Time-Series Forecasting

Yueqiao Chen, Dongyu Liu

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

YUEQIAO CHEN, UC Davis, USA

DONGYU LIU, UC Davis, USA

We study context-aware time-series forecasting, in which a single target variable is predicted from its own history and a set of contextual variables, such as weather and calendar information. As the context becomes more diverse, a single model struggles to capture all of its regimes, while ensemble learning and Mixture-of-Experts approaches rely on manual data partitioning or soft routing, which increases the inference cost and hinders interpretability. We propose CATF, a Context-Aware Time-Series Forecasting framework built on a Manager-Worker architecture: a Transformer-based Manager routes each input to a single Worker based on the context, using hard routing during both training and inference. The Workers thus specialize without manual data partitioning, and any single-model forecaster can serve as a Worker. On five context-rich datasets, four horizons, and two normalization schemes, CATF improves over its standalone counterpart in 162 of 200 comparisons, the best CATF-enhanced model outperforms the best standalone baseline in 19 of 20 settings, and it outperforms the zero-shot Time-MoE foundation model in 15 of 20 settings. A case study on bike-sharing data shows that the Manager routes inputs by the calendar and that each Worker specializes in a different weekly pattern.

Additional Key Words and Phrases: Time-series Forecasting, Context-aware Learning, Exogenous Variables, Training Algorithm, Manager-Worker Architecture, Deep Learning

1 Introduction

Time-series forecasting is critical to applications such as weather prediction, electricity load management, traffic analysis, financial forecasting, and industrial monitoring [3, 5, 44, 58, 62]. However, growing temporal complexity and rich contextual dependencies make accurate forecasting increasingly difficult and computationally expensive. Contextual variables are often heterogeneous and dynamic, evolving abruptly or nonlinearly over time. For example, hourly bike-sharing demand depends on weather, temperature, and the calendar: on working days it peaks during the morning and evening commutes, whereas on weekends and holidays it follows a single midday peak, and a holiday on a weekday can switch the demand to the weekend pattern. In this work, we focus on such context-aware forecasting: the goal is to forecast a single target variable from its history and the contextual variables that drive it, a setting also known as forecasting with exogenous variables. This differs from the setting of most multivariate forecasting benchmarks [1], in which all variables are forecast jointly; here, the contextual variables serve only as inputs.

Recent advances in deep learning have led to impressive results in time-series forecasting. Convolutional networks [60], graph neural networks [30], and Transformer-based models [42] models have been adapted to capture complex temporal dependencies. More recently, large-scale time-series foundation models (TSFMs) [32, 48] have shown strong performance in zero-shot and few-shot settings. However, these models are expensive to fine-tune, struggle with distribution shifts, and often fail to generalize to domain-specific dynamics. To improve adaptability, researchers have explored alternatives such as retrieval-augmented forecasting [40], meta learning [46], and adaptive policies [22].

Hybrid forecasting approaches offer another promising direction by allowing model specialization under diverse conditions. Ensemble methods [23, 26] train specialized models on partitioned subsets and aggregate their predictions. However, they incur inference overhead and require

Authors' Contact Information: Yueqiao Chen, UC Davis, Davis, CA, USA, yeqchen@ucdavis.edu; Dongyu Liu, UC Davis, Davis, CA, USA, dyuliu@ucdavis.edu.

manual segmentation and weighting strategies. Mixture-of-Experts (MoE) models [33, 54] improve efficiency through sparse activation but demand careful gating design and are prone to expert under-utilization without strong regularization.

To address these challenges, we propose CATF, a Context-Aware Time-Series Forecasting framework based on a Manager-Worker (MW) architecture. CATF consists of a high-level transformer-based Manager and a set of Worker models trained via joint optimization. The Manager dynamically routes each input to a single specialized Worker based on contextual features, enabling each Worker to focus on a distinct subset of conditions. Inspired by economic specialization [29], we formulate training as a competitive yet cooperative process: the Manager learns to assign inputs to the most suitable Worker, while Workers specialize in minimizing error within their assigned contexts.

Unlike conventional MoEs, CATF employs hard routing, assigning each input to a single Worker during both training and inference. This improves interpretability, encourages Worker specialization, and eliminates the need for manual partitioning or complex gating mechanisms. In addition, CATF supports heterogeneous architectures, enabling seamless integration of state-of-the-art forecasting models with minimal tuning. We evaluated CATF on five real-world context-rich datasets across four forecasting horizons, observed improvements over strong single-model baselines, and analyze its routing decisions. Our key contributions are as follows.

  • Modular framework. We propose CATF, a Manager-Worker framework in which a Transformer-based Manager routes each input to one of several Worker models through hard routing, trained with a joint mechanism that lets the Workers specialize without manual data partitioning (Section 4). CATF is model-agnostic: any single-model forecaster can serve as a Worker without modification, in homogeneous or heterogeneous configurations, and we instantiate it with five representative architectures, Autoformer [61], Informer [67], FEDformer [68], TimesNet [60], and iTransformer [42].

  • Context-aware interpretation. Because each prediction is produced by a single, identifiable Worker, the routing decisions can be inspected and related to the context. In a case study on a real-world bike-sharing dataset, we show that the Manager learns to route inputs by the most relevant contextual variables (e.g., working days vs. weekends) and that the Workers specialize accordingly (Section 6); on synthetic data with known context-driven regimes, the same analysis recovers the ground truth (Appendix D.2).

  • Performance improvement. On five context-rich real-world datasets, four horizons, and two normalization schemes, CATF improves over its standalone counterpart in 162 of the 200 comparisons (81%), the best CATF-enhanced model outperforms the best standalone baseline in 19 of the 20 settings, CATF reduces the run-to-run variance of unstable baselines, and it outperforms the zero-shot Time-MoE foundation model [54] in 15 of the 20 settings (Section 5.2).

References (21)