Multi-Task Temporal Fusion Transformer for Joint Sales and Inventory Forecasting in Amazon E-Commerce Supply Chain

Authors

  • Zheqi Hu University of Electronic Science and Technology of China, Chengdu, China Author
  • Yiwen Hu Heinz College, Carnegie Mellon University, Pittsburgh, USA Author
  • Hanwu Li Amazon.com Services LLC, 98004, USA Author

DOI:

https://doi.org/10.71222/7axx7m73

Keywords:

Amazon Supply Chain, Multi-Task Learning, Temporal Fusion Transformer, Sales Forecasting, Inventory Prediction, Stockout Detection, Deep Learning, Demand Planning

Abstract

Efficient inventory management and accurate sales forecasting are critical challenges in large-scale e-commerce platforms such as Amazon, where stockouts and overstocking can lead to substantial financial losses and operational inefficiencies. Traditional single-task forecasting models, which focus solely on sales or inventory, often fail to capture the complex temporal dependencies and cross-task interactions that characterize real-world supply chain dynamics. To address this limitation, this study proposes a Multi-Task Temporal Fusion Transformer (TFT-MTL) framework designed for joint sales and inventory forecasting within the Amazon e-commerce ecosystem. The model integrates heterogeneous data sources-including historical sales records, warehouse inventory levels, pricing, promotions, and event-driven factors such as holidays and Prime Day campaigns-through a unified deep learning architecture. A shared encoder captures long-term temporal patterns, while task-specific decoder heads predict sales volume, inventory turnover, and stockout probability simultaneously. Experiments on large-scale real-world datasets demonstrate that the proposed TFT-MTL model significantly outperforms baseline methods such as LSTM, GRU, and single-task TFT. Compared with the single-task TFT model, the proposed approach achieves a 6.2% reduction in Sales RMSE, a 12.7% decrease in Sales MAPE, a 6.4% reduction in Inventory RMSE, and a 12.4% decrease in Inventory MAPE. These results confirm the model's ability to effectively capture multi-dimensional dependencies across supply chain variables. The proposed framework provides an interpretable, data-driven decision support tool for optimizing Amazon's inventory scheduling and demand planning strategies.

References

1. M. S. Sodhi, and C. S. Tang, "Supply chain management for extreme conditions: Research opportunities," Journal of Supply Chain Management, vol. 57, no. 1, pp. 7-16, 2021. doi: 10.1111/jscm.12255

2. D. C. Bose, "Inventory management," PHI Learning Pvt. Ltd, 2006.

3. R. Luo, N. Wang, and X. Zhu, “Fraud detection and risk assessment of online payment transactions on e-commerce platforms based on LLM and GCN frameworks,” arXiv preprint arXiv:2509.09928, 2025.

4. F. Zohra Benhamida, O. Kaddouri, T. Ouhrouche, M. Benaichouche, D. Casado-Mansilla, and D. López-de-Ipina, "Demand forecasting tool for inventory control smart systems," Journal of Communications Software and Systems, vol. 17, no. 2, pp. 185-196, 2021.

5. C. Lewis, "Demand forecasting and inventory control," Routledge, 2012. doi: 10.4324/9781856179898

6. X. Ao, Y. Gong, and A. He, "A review of time series prediction models based on deep learning," IEEE Access, 2025. doi: 10.1109/access.2025.3602791

7. P. Ramos, N. Santos, and R. Rebelo, "Performance of state space and ARIMA models for consumer retail sales forecasting," Robotics and computer-integrated manufacturing, vol. 34, pp. 151-163, 2015. doi: 10.1016/j.rcim.2014.12.015

8. R. Gustriansyah, N. Suhandi, F. Antony, and A. Sanmorino, "Single exponential smoothing method to predict sales multiple products," In Journal of Physics: Conference Series, March, 2019, p. 012036. doi: 10.1088/1742-6596/1175/1/012036

9. Y. Ensafi, S. H. Amin, G. Zhang, and B. Shah, "Time-series forecasting of seasonal items sales using machine learning-A comparative analysis," International Journal of Information Management Data Insights, vol. 2, no. 1, p. 100058, 2022.

10. D.-M. Petroșanu, A. Pîrjan, G. Căruţaşu, A. Tăbușcă, D.-L. Zirra, and A. Perju-Mitran, "E-commerce sales revenues forecasting by means of dynamically designing, developing and validating a directed acyclic graph (DAG) network for deep learning," Electronics, vol. 11, no. 18, p. 2940, 2022.

11. O. Assaf, "Multivariate and multi-task deep learning architectures for improved stock market prediction and risk management (Doctoral dissertation, University of Reading)," 2024.

12. S. Xin, M. Ester, J. Bu, C. Yao, Z. Li, X. Zhou, and C. Wang, "Multi-task based sales predictions for online promotions," In Proceedings of the 28th ACM international conference on information and knowledge management, November, 2019, pp. 2823-2831. doi: 10.1145/3357384.3357823

13. G. Zakhidov, "Economic indicators: tools for analyzing market trends and predicting future performance," International Multidisciplinary Journal of Universal Scientific Prospectives, vol. 2, no. 3, pp. 23-29, 2024.

14. M. T. R. Mazumder, M. S. H. Shourov, I. Rasul, S. Akter, and M. K. Miah, "The Impact of Macroeconomic Factors on the US Market: A Data Science Perspective," Journal of Economics, Finance and Accounting Studies, vol. 7, no. 2, pp. 208-219, 2025.

15. Z. Li, X. Li, and X. Lin, “Design and implementation of a platform for business intelligence knowledge mining and graph construction based on deep learning,” in Proc. 2nd Int. Symp. Integrated Circuit Design and Integrated Systems, 2025, pp. 137–141.

16. B. Su, G. Gui, S. Xu, and S. Shen, “Study on real estate investment risk assessment and decision support system driven by fintech,” in Proc. 2nd Int. Symp. Integrated Circuit Design and Integrated Systems, pp. 168–174, 2025.

Downloads

Published

25 February 2026

Issue

Section

Article

How to Cite

Hu, Z., Hu, Y., & Li, H. (2026). Multi-Task Temporal Fusion Transformer for Joint Sales and Inventory Forecasting in Amazon E-Commerce Supply Chain. Journal of Computer, Signal, and System Research, 3(2), 47-55. https://doi.org/10.71222/7axx7m73