Decision-Focused Fine-Tuning of Time Series Foundation Models for Dispatchable Feeder Optimization

Maximilian Beichter, Nils Friederich, Janik Pinter, Dorina Werling, Kaleb Phipps, Sebastian Beichter, Oliver Neumann, Ralf Mikut, Veit Hagenmeyer, Benedikt HeidricharXiv 2025 · DOI

TL;DR

This paper introduces Decision-Focused Fine-Tuning (DFF), a method that connects time-series foundation models with parameter-efficient fine-tuning (PEFT) to optimize forecasts directly for downstream decision costs rather than traditional prediction accuracy. When applied to a smart grid battery scheduling problem, DFF reduces average daily operational costs by up to 9.45% compared to standard prediction-focused methods and over 20% compared to zero-shot baselines.

What Problem Does This Paper Address?

Traditional time-series forecasting models are trained to minimize statistical metrics like Mean Squared Error (MSE) or Mean Absolute Error (MAE). However, in real-world applications like energy grid management, a forecast is rarely the end goal—it is an input to an optimization problem (e.g., scheduling a battery to minimize electricity costs and grid imbalances).

A forecast with low statistical error can still lead to terrible, high-cost downstream decisions if its errors occur at critical peak times. "Decision-focused learning" (DFL) solves this by training forecasting models to directly minimize downstream operational costs. Unfortunately, integrating complex optimization problems into the training loop of massive, modern time-series foundation models is computationally prohibitive. This paper tackles this scalability bottleneck, making decision-focused learning viable for large-scale foundation models.

Methods

The authors propose Decision-Focused Fine-Tuning (DFF), which combines three core components:

  1. Time-Series Foundation Model: They leverage Moirai, a state-of-the-art universal forecasting transformer.
  2. Parameter-Efficient Fine-Tuning (PEFT): To avoid the massive computational cost of updating Moirai’s 91 million parameters, they freeze the base model and add a tiny fraction (<0.7%) of trainable parameters using Low-Rank Adaptation (LoRA) and Directional Rank Adaptation (DoRA).
  3. Surrogate Neural Network: Because mathematical optimization functions are typically non-differentiable (preventing standard backpropagation), the authors train a neural network to act as a smooth, differentiable proxy of the downstream optimization problem.

During training, the downstream decision costs computed by the surrogate network are backpropagated through the tiny PEFT adapters, tuning the foundation model specifically to make cost-optimal predictions.

Figure 1: An overview of the decision-focused fine-tuning process which combines surrogate neural networks with Parameter Efficient Fine-Tuning (PEFT) methods. It employs the technique from [1] using a Surrogate Neural Network and its gradient to influence the weights of the PEFT with respect to the downstream optimization.

Datasets

The approach is evaluated using the public 'Ausgrid - Solar Home Electricity' dataset. This dataset contains 3 years of 30-minute interval electricity consumption and rooftop solar generation data from 300 residential buildings in Australia. The data was resampled to an hourly resolution to calculate "prosumption" (total load minus solar generation). The 300 buildings were split into distinct subsets: 50 for fine-tuning data strategies, 50 for training the surrogate network, and 200 unseen buildings reserved strictly for final evaluation.

Key Insights and Ideas

  • The Accuracy-Cost Paradox: Maximizing forecast quality does not equal minimizing decision costs. Models fine-tuned explicitly to minimize MAE actually resulted in the highest downstream financial costs. Because MAE is insensitive to outliers, it allowed large prediction spikes that overwhelmed the battery's capacity, triggering massive grid imbalance penalties.
  • PEFT is the Key to Scalable DFL: Restricting gradient updates to low-rank adapters (LoRA/DoRA) bypasses the need to compute complex optimization gradients across giant model architectures, providing a highly scalable blueprint for future DFL applications.
  • Global vs. Local Trade-offs: "Local" fine-tuning (training a tailored model per individual building) yields the lowest costs but scales poorly. "Global" fine-tuning (training one model across a group of buildings and deploying it to new ones) retains the majority of the cost savings while offering massive deployment advantages for real-world SaaS applications.

Key Results

  • Significant Cost Savings: DFF achieved an average daily total cost of €12.75 per building (using DoRA locally), outperforming standard Prediction-Focused Fine-Tuning (PFF via MSE), which cost €14.08—representing a 9.45% economic improvement.
  • Outperforming Zero-Shot: Compared to the completely un-tuned, zero-shot Moirai foundation model (€15.99), DFF reduced operational costs by 20.26%.
  • LoRA vs. DoRA: Both PEFT methods performed comparably in cost reduction, though LoRA proved slightly more parameter-efficient, requiring only 0.64% trainable parameters versus DoRA's 0.68%.

Limitations and Future Work

  • Surrogate Stability: The surrogate neural network does not mathematically guarantee convexity. This can occasionally lead to unstable gradient steps and sub-optimal solutions across highly diverse building profiles.
  • Lack of Exogenous Features: The current forecasting setup relies purely on historical prosumption data. Incorporating external variables like weather forecasts or day-of-the-week indicators could significantly stabilize and improve the foundation model's base predictions.
  • Granular Building Analysis: The study evaluates performance based on the average across 200 buildings. Future work is needed to analyze how DFF impacts individual "outlier" buildings that might deviate significantly from the average surrogate model.

Summary updated

BibTeX
@misc{beichter2025decision,
  author = {Maximilian Beichter and Nils Friederich and Janik Pinter and Dorina Werling and Kaleb Phipps and Sebastian Beichter and Oliver Neumann and Ralf Mikut and Veit Hagenmeyer and Benedikt Heidrich},
  title = {{Decision-Focused Fine-Tuning of Time Series Foundation Models for Dispatchable Feeder Optimization}},
  year = {2025},
  eprint = {2503.01936},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01936},
}
Figure