Goal-Oriented Time-Series Forecasting: Foundation Framework Design

Luca-Andrei Fechete, Mohamed Sana, Fadhel Ayed, Nicola Piovesan, Wenjie Li, Antonio De Domenico, Tareq Si Salem

TL;DR

Traditional time-series forecasting treats all prediction errors equally, but downstream applications often care about specific ranges (e.g., extreme weather or low network traffic). This paper introduces a novel training framework that enables a single forecasting model to dynamically focus on arbitrary, application-specified regions of interest at inference time without retraining.

What Problem Does This Paper Address?

Standard time-series forecasting (TSF) models optimize for overall accuracy, typically minimizing Mean Squared Error (MSE) or Mean Absolute Error (MAE) across the entire data range. However, in real-world decision-making systems, forecasts are fed into downstream optimization tasks where the cost of an error is not uniform.

For instance, a wireless network operator might prioritize high accuracy during low-traffic hours to safely deactivate base stations for energy savings, while power allocation strategies require precision during peak traffic extremes.

Overview of goal-oriented forecasting in a wireless network application

Existing "Predict-then-Optimize" or end-to-end methods require knowing these target ranges beforehand or retraining a completely new model for every single scenario. This paper tackles the challenge of building a flexible, "foundation-like" forecasting framework that can adapt to any user-defined interval on the fly during inference.

Methods

The authors propose a progression of training policies, culminating in the Patching-Augmented Discretized Training Policy ($D_L^*$-Policy). Instead of treating the target interval as static, they feed the interval boundaries into the model as covariates.

The core architecture consists of four main components:

  1. Discretization: The continuous data domain is split into $L$ fine-grained, disjoint segments during training.
  2. Soft Boundaries: To prevent edge artifacts and boundary uncertainties, they introduce a decay function that smoothly reduces a sample's loss contribution based on its distance from the interval center.
  3. Dual-Task Learning: The forecasting model is modified with a dual head to perform both regression (predicting the future values) and classification (estimating the probability that the true value falls within the target interval).
  4. Patching at Inference: When a user requests an arbitrary interval at inference time, the framework uses a patching strategy—either an Averaging Strategy (weighted by classification probabilities) or a Maximum Confidence Strategy—to dynamically combine the fine-grained segments into the desired target range.
Impact of the soft boundary decay function on interval overlap

Datasets

The framework was evaluated across five distinct datasets:

  • SynthDS: A synthetic dataset designed by the authors to test if models can distinguish between different underlying signal patterns across different ranges.
  • BLW-TrafficDS: A newly introduced public dataset containing wireless beam-level measurements across 100 beams over $10^3$ timesteps, capturing real-world telecom traffic dynamics.
  • Traffic: A standard benchmark containing hourly road occupancy rates on San Francisco freeways.
  • Electricity: Hourly electricity consumption data for 321 clients.
  • Weather: A dataset containing 21 meteorological variables recorded every 10 minutes.

Key Insights and Ideas

  • The "Averaging" Trap: Standard baseline models optimize globally and often default to predicting the global conditional mean or median. This completely misses critical local patterns within specific sub-ranges where downstream applications actually operate.
  • Continuous vs. Discrete Sampling: Simply feeding arbitrary continuous intervals into a model during training makes the learning task too complex. Restricting training to a discrete set of intervals ($D_L$-Policy) and patching them together at inference time provides a much stronger inductive bias.
  • Soft Boundaries Matter: Using a hard indicator function for interval membership introduces high variance. The soft decay function acts as an ensemble-like noise reduction mechanism, smoothing out transitions across neighboring regions.

Key Results

  • Substantial Accuracy Gains: Across four state-of-the-art architectures (iTransformer, DLinear, PatchTST, TimeMixer), the proposed $D_L^*$-Policy consistently outperformed standard baseline training within the regions of interest, showing massive MAE reductions (often exceeding 40–70% improvements on benchmarks like SynthDS and Traffic).
  • Downstream Impact: In a realistic wireless network energy-saving optimization task, the goal-oriented framework reduced sleep duration error by a factor of three ($\times 3$) compared to the baseline. This optimization translated directly into reducing daily energy saving errors from 0.950 kW down to just 337 watts.

Limitations and Future Work

  • Foundation Model Integration: The current framework requires modifying and training models from scratch. The authors note that a promising future direction is fine-tuning existing large time-series foundation models (like Chronos or Timer) using this methodology.
  • Theoretical Justification: While the empirical results are robust, the paper highlights the need for a deeper theoretical analysis—potentially leveraging PAC-learning frameworks—to formally explain the performance gap between continuous and discretized interval training policies.

Summary updated

BibTeX
@inproceedings{fechete2026goal,
  author = {Luca-Andrei Fechete and Mohamed Sana and Fadhel Ayed and Nicola Piovesan and Wenjie Li and Antonio De Domenico and Tareq Si Salem},
  title = {{Goal-Oriented Time-Series Forecasting: Foundation Framework Design}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i25.39249},
}
Figure