Predicting the behavior of sequences in presence of long-tailed distributions is an important task in many applied industries, especially in medicine. Transformers and LSTM networks are most often used as handlers for this purpose, but the main efforts are aimed at suppressing deviations from normality rather than at their informative use. The paper discusses an alternative approach - the possibility of solving an auto-regression problem under conditions of input distributions with heavy tails while preserving information about significant deviations. Namely, we theoretically and experimentally consider the impact of the choice of loss function for processing sequences with heavy-tailed distributions performed by transformers and LSTMs. As a loss function, we analyze the Mean Squared Error (MSE), Mean Absolute Error (L1 Loss), and Cauchy Loss functions. On synthetic and real (COVID-19) data we showed that Cauchy and MAE losses perform 40% better than MSE loss according to sMAPE metric.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Loss Function Role in Processing Sequences with Heavy-Tailed Distributions

  • Mikhail Gritskikh,
  • Artem Isakov,
  • Natalia Gusarova,
  • Dmitriy Dobrenko,
  • Ivan Tomilov,
  • Aleksandra Vatian

摘要

Predicting the behavior of sequences in presence of long-tailed distributions is an important task in many applied industries, especially in medicine. Transformers and LSTM networks are most often used as handlers for this purpose, but the main efforts are aimed at suppressing deviations from normality rather than at their informative use. The paper discusses an alternative approach - the possibility of solving an auto-regression problem under conditions of input distributions with heavy tails while preserving information about significant deviations. Namely, we theoretically and experimentally consider the impact of the choice of loss function for processing sequences with heavy-tailed distributions performed by transformers and LSTMs. As a loss function, we analyze the Mean Squared Error (MSE), Mean Absolute Error (L1 Loss), and Cauchy Loss functions. On synthetic and real (COVID-19) data we showed that Cauchy and MAE losses perform 40% better than MSE loss according to sMAPE metric.