Research indexConference paper
Direction-Aware Hyperparameter Optimisation via Harmonic Error Aggregation
Hedroug
International Conference on Time Series and Forecasting (ITISE)18 Sep 2026Open access
NobleIDark:/48914/w1/20261105/44E7A3E1DOI10.3390/cmsf2026016004
Direction-Aware Hyperparameter Optimisation via Harmonic Error Aggregation
Hedroug · International Conference on Time Series and Forecasting (ITISE) · 2026
NobleIDark:/48914/w1/20261105/44E7A3E1DOI10.3390/cmsf2026016004
Free to read at the publisher
You can read the abstract here, or the full text at the publisher.
Abstract
Hyperparameter optimisation (HPO) pipelines for demand forecasting almost always minimise the magnitude of the error (MSE, MAPE, etc.), a metric that measures how large errors are but says nothing about their direction. A forecast can score well on MAPE while consistently missing whether demand is about to rise or fall. We propose the Harmonic Error–Direction (HED) objective, which folds a magnitude error metric and directional error (DE = (1 − DA) × 100) into a single scalar via their β-weighted harmonic mean, echoing the Fβ-score from information retrieval. To be clear about scope, this paper does not set out to find the best way to evaluate a forecasting model. MAPE’s shortcomings are well documented, and composites such as |forecast bias| + MAE already exist. What we offer instead is a plug-and-play template: any magnitude metric (MAPE, sMAPE, WAPE, MASE, etc.) drops into the harmonic core without touching the surrounding HPO infrastructure. In a controlled three-study experiment on the M4 monthly benchmark with a fixed LightGBM architecture, the HED-optimised model (β = 2.5) reaches MAPE = 11.83% and DA = 59.3%, strictly Pareto-dominating the MAPE-optimised baseline (MAPE = 12.39%, DA = 53.8%) at no infrastructure cost. Two complementary experiments probe the edges of the approach. A five-objective comparison of sMAPE-based variants (sHED) and a momentum-augmented variant (sMHED) leaves the original HED objective on top (HED = 20.67), though momentum does push DA to roughly 60% at the cost of magnitude accuracy. A 2 × 2 study of a direction-penalised LightGBM gradient (DirLoss) shows that the training loss is the wrong place to intervene: it degrades every configuration, because first-order differencing already encodes the directional signal. The recipe that emerges is simple. Keep the training loss standard; put directional preferences in the HPO objective through the HED template.