Applied Research of Explainable Artificial Intelligence (XAI) in Portfolio Optimization
Abstract
Artificial intelligence made great changes in investment management Incorporating machine learning models into portfolio optimization to enhance the portfolio’s returns and decrease the risk. However, lacking in explanatory ability of decision making is also challenging to an investor who would like to understand how those automated processes work, to avoid losing too much. To solve this problem, this paper explains how we will use machine learning for portfolio allocation. This research uses SHAP (SHapley Additive exPlanations) to explain the outputs from a machine learning model. The model is trained on the results of a dynamic Markowitz portfolio optimization. CSI 300 market date is applied, the portfolio consists of 10 random stocks having over 1,000 trading days. conduct robustness analysis to see how different rolling windows would affect the explanation of the model. From the results, it is obvious that the framework can identify the drivers of portfolio weights and improve the transparency and understandability of the model.
References
- Markowitz, H. M., & Todd, G. P. (2000). Mean-variance analysis in portfolio choice and capital markets. John Wiley & Sons.
- Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 1135–1144. https: //doi.org/10.1145/2939672.2939778
- Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 30. https: //proceedings.neurips.cc/paper_files/paper/2017/file/8a20a8621978632d76c43dfd28b67767-Paper.pdf
- Black, F., & Litterman, R. (1992). Global Portfolio Optimization. Financial Analysts Journal, 48(5), 28–43. http: //www.jstor.org/stable/4479577
- Qian, E. (2005). On the Financial Interpretation of Risk Contribution: Risk Budgets Do Add Up. http: //dx.doi.org/10.2139/ssrn.684221
- Zhou, Z., Song, Z., Ren, T., & Yu, L. (2023). Two-Stage Portfolio Optimization Integrating Optimal Sharp Ratio Measure and Ensemble Learning. IEEE Access, 11, 1654–1670. https: //doi.org/10.1109/ACCESS.2022.3232281
- Behera, J., Pasayat, A. K., Behera, H., & Kumar, P. (2023). Prediction based mean-value-at-risk portfolio optimization using machine learning regression algorithms for multi-national stock markets. Engineering Applications of Artificial Intelligence, 120. https: //doi.org/10.1016/j.engappai.2023.105843
- Wang, C.-H., Zeng, Y., & Yuan, J. (2024). Two-stage stock portfolio optimization based on AI-powered price prediction and mean-CVaR models. Expert Systems With Applications, 255(124555). https: //doi.org/10.1016/j.eswa.2024.124555
- Lina, J., Banda, S. S., Paib, H.-T., & Rawal, B. S. (2024). EUDRL: Explainable Uncertainty-Based Deep Reinforcement Learning for Portfolio Management. 2024 15th International Conference on Computing Communication and Networking Technologies (ICCCNT), 1–7. https: //doi.org/10.1109/ICCCNT61001.2024.10723849
- Chorasiya, R., & Kinger, S. (2025). Portfolio Optimization of Indian Stock Market Using Reinforcement Learning and Explainable AI. Technische Sicherheit​, 25(6), 814–823. https: //technikwissen.eu/wp-content/uploads/62-TSJ2951.pdf
- Babaei, G., Giudici, P., & Raffinetti, E. (2022). Explainable artificial intelligence for crypto asset allocation. Finance Research Letters, 47(102941). https: //doi.org/10.1016/j.frl.2022.102941
- Kumar, E., Venkatasubramanian, S., Scheidegger, C., & Friedler, S. A. (2020). Problems with Shapley-value-based explanations as feature importance measures. International Conference on Machine Learning, 5491–5500. https: //proceedings.mlr.press/v119/kumar20e.html