Beyond Magnitude and Shape: A Direction-Aware Loss for Time Series Forecasting
SLSeunghan LeeJaehoon LeeJun SeoJunhyeok KangSHSangjun HanSungdong YooMKMinjae KimTae Yoon LimDongwan KangHwanil ChoiSoonyoung LeeWonbin Ahn
SLSeunghan Lee
Jaehoon Lee
Jun Seo
Junhyeok Kang
SHSangjun Han
Sungdong Yoo
MKMinjae Kim
Tae Yoon Lim
Dongwan Kang
Hwanil Choi
Soonyoung Lee
Wonbin Ahn
+12
Existing forecasting losses optimize magnitude or shape but not the direction of change, which is crucial for decision-making. The authors propose CosDir, a direction-aware loss that aligns the difference vectors of prediction and target via cosine similarity. This scale-invariant term keeps a directional gradient on small moves, where MSE fails. At only a plug-in cost, CosDir improves directional accuracy without sacrificing magnitude accuracy. An extension, CosDir-UW, makes the mixing ratio with magnitude loss adaptive per dataset, removing the need for hyperparameter tuning. Over 100K experiments confirm consistent gains.

arXiv ·
· August 3, 2026