Temporal Fusion Transformer for Multi-Horizon Probabilistic Forecasting of Weekly Retail Sales
By: Santhi Bharath Punati , Sandeep Kanta , Udaya Bhasker Cheerala and more
Potential Business Impact:
Predicts store sales accurately for better stocking.
Accurate multi-horizon retail forecasts are critical for inventory and promotions. We present a novel study of weekly Walmart sales (45 stores, 2010--2012) using a Temporal Fusion Transformer (TFT) that fuses static store identifiers with time-varying exogenous signals (holidays, CPI, fuel price, temperature). The pipeline produces 1--5-week-ahead probabilistic forecasts via Quantile Loss, yielding calibrated 90\% prediction intervals and interpretability through variable-selection networks, static enrichment, and temporal attention. On a fixed 2012 hold-out dataset, TFT achieves an RMSE of \$57.9k USD per store-week and an $R^2$ of 0.9875. Across a 5-fold chronological cross-validation, the averages are RMSE = \$64.6k USD and $R^2$ = 0.9844, outperforming the XGB, CNN, LSTM, and CNN-LSTM baseline models. These results demonstrate practical value for inventory planning and holiday-period optimization, while maintaining model transparency.
Similar Papers
Multi-Task Temporal Fusion Transformer for Joint Sales and Inventory Forecasting in Amazon E-Commerce Supply Chain
Computational Engineering, Finance, and Science
Predicts what sells and what's in stock.
Quantum Temporal Fusion Transformer
Machine Learning (CS)
Quantum computer predicts future better than old ones.
Adaptive Temporal Fusion Transformers for Cryptocurrency Price Prediction
Statistical Finance
Predicts crypto prices better for trading.