Presenting a Memory-Instance-Based Gated Transformer (MIGT) Algorithmic Approach for Portfolio Management
Keywords:
Portfolio management, gated Transformer algorithm, memory instancesAbstract
The objective of this study is to propose an efficient framework for portfolio management that can optimize investment returns while effectively controlling risk under both normal and highly volatile market conditions. The primary focus is on improving the accuracy of asset return forecasting. In this research, a memory-instance-based gated Transformer model is employed to predict asset returns. Financial data from the Iranian capital market covering the period 2016 to 2024 were collected and, after preprocessing, cleaning, and feature extraction, were entered into the modeling process. The mean absolute error in the test period was 0.0068, and the root mean squared error was 0.0100; in cross-validation, these values exhibited a standard deviation of less than 0.0004, indicating the stability of the forecasts. The paired Wilcoxon test used to compare the proposed model with benchmark methods produced statistics exceeding the significance threshold (p = 0.005), demonstrating a statistically significant improvement in the performance of the proposed model. The robustness of the results across different temporal subsamples and the preservation of acceptable performance under turbulent market conditions indicate that this approach possesses strong generalizability and practical applicability.
Downloads
References
1. Antony A. Behavioral Finance and Portfolio Management: Review of Theory and Literature. Journal of Public Affairs. 2019;20(2). doi: 10.1002/pa.1996.
2. Hadbaa H. Behavioral Biases Influencing the Decision Making of Portfolio Managers of Capital Securities and Traders in Morocco. Financial Markets Institutions and Risks. 2019;3(1):92-105. doi: 10.21272/fmir.3(1).92-105.2019.
3. Bahramian M. Behavioral Portfolio Management: Tehran Stock Exchange Brokers Administration; 2022.
4. Montazeralhaj N, Rezaei Shouraki M, editors. Investigating the impact of investor sentiment on investment returns and financial performance in companies listed on the Tehran Stock Exchange2023.
5. Ayari Salah GH. A meta-analysis of supervised and unsupervised machine learning algorithms and their application to active portfolio management. Expert Systems with Applications. 2025;271:126611. doi: 10.1016/j.eswa.2025.126611.
6. Liu W, Suzuki Y, Du S. Forecasting the Stock Price of Listed Innovative SMEs Using Machine Learning Methods Based on Bayesian optimization: Evidence from China. Computational Economics. 2024;63(5):2035-68. doi: 10.1007/s10614-023-10393-4.
7. Han Y, Liu Y, Zhou G, Zhu Y. Technical analysis in the stock market: A review. Handbook of Investment Analysis, Portfolio Management, and Financial Derivatives. 1-42024. p. 1893-928.
8. Johnson L, Moore K. Reinforcement Learning for Financial Portfolio Management. IEEE Transactions on Neural Networks and Learning Systems. 2019;30(5):1306-17ER -.
9. Liang Z, Chen H, Zhu J, Jiang K, Li Y. Adversarial deep reinforcement learning in portfolio management2018.
10. Chen S, Huang Y, Ge L. An early warning system for financial crises: A temporal convolutional network approach. Technological and Economic Development of Economy. 2024;30(3):688-711. doi: 10.3846/tede.2024.20555.
11. Liu L, Zhou S, Jie Q, Du P, Xu Y, Wang J. A robust time-varying weight combined model for crude oil price forecasting. Energy. 2024;299:131352. doi: 10.1016/j.energy.2024.131352.
12. Burkart N, Huber MF. A survey on the explainability of supervised machine learning. Journal of Artificial Intelligence Research. 2021;70:245-317. doi: 10.1613/jair.1.12228.
13. Wang N, Guo Z, Shang D, Li K. Carbon trading price forecasting in digitalization social change era using an explainable machine learning approach: The case of China as emerging country evidence. Technological Forecasting and Social Change. 2024;200:123178. doi: 10.1016/j.techfore.2023.123178.
14. Rouhi Sara M, Taheri Nia M, Zolqi H, Sarlak A. Proposing a predictive model for financial crises in the Iranian capital market using hybrid algorithms. [Journal not specified]. 2023.
15. Drenovak M, Ranković V, Urošević B, Jelic R. Bond Portfolio Management Under Solvency II Regulation. European Journal of Finance. 2020;27(9):857-79. doi: 10.1080/1351847x.2020.1850499.
16. Silvius G, Marnewick C. Interlinking sustainability in organizational strategy, project portfolio management and project management a conceptual framework. Procedia Computer Science. 2022;196:938-47. doi: 10.1016/j.procs.2021.12.095.
17. Langley P, Leyshon A. FinTech platform regulation: regulating with/against platforms in the UK and China. Cambridge Journal of Regions, Economy and Society. 2023;16(2):257-68. doi: 10.1093/cjres/rsad005.
Downloads
Published
Submitted
Revised
Accepted
Issue
Section
License
Copyright (c) 2025 Mohammad Haji Ebrahim Tehrani (Author); Amin Safarnejad Borujeni; Mohsen Hashemigohar, Sobhan Zafari, Hossein Alidadi (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.