MIGT: Memory Instance Gated Transformer Framework for Financial Portfolio Management

Fengchen Gu, Angelos Stefanidis, Ángel F. García-Fernández, Jionglong Su, Huakang Li · DOI

Deep Reinforcement Learning (DRL) has demonstrated remarkable success in complex environments like Go and StarCraft. However, the global stock market remains a significantly more challenging domain. Unlike games with static rules, financial markets are chaotic systems influenced by geopolitical shifts, economic cycles, and investor sentiment. Traditional DRL models often struggle with "Black Swan" events or fail to generalize when market regimes shift abruptly from bull to bear.

The research paper "MIGT: Memory Instance Gated Transformer Framework for Financial Portfolio Management" introduces a specialized architecture designed to navigate this inherent volatility. By rethinking how Transformers process financial time-series data, the authors developed a framework that significantly outperforms traditional statistical strategies and state-of-the-art DRL models.

The Challenges of Financial DRL

Portfolio management involves continuously rebalancing assets to maximize returns while minimizing risk. While DRL agents are theoretically suited for such sequential decision-making, they face three primary hurdles:

  1. Volatility: Sudden price movements (outliers) can disrupt the model’s learning process.
  2. Non-stationarity: Market dynamics change constantly; strategies effective in 2019 often failed in 2020.
  3. Feature Dominance: In high-dimensional data, certain indicators can overwhelm the model, leading to poor generalization.

Existing frameworks often rely on generic neural networks not optimized for the low signal-to-noise ratio characteristic of financial data.

The MIGT Architecture

The core innovation is the Memory Instance Gated Transformer (MIGT). It departs from standard Transformer designs to better handle the temporal dependencies and noise of the stock market.

The MIGT framework architecture, featuring the Lite Gate Unit (LGU) and memory trajectory mechanism.

As shown in the architecture diagram, the model incorporates several key components:

  • Memory Trajectory: To address the limitations of fixed-window inputs, MIGT uses a recursive mechanism that "caches" previous hidden states. This allows the agent to fuse current market data with long-term historical memory.
  • Lite Gate Unit (LGU): The researchers replaced standard residual connections with a simplified gating mechanism. This acts as a "fan-in" layer that facilitates smoother convergence during training, preventing the erratic updates common in RL.
  • PPO Integration: The MIGT architecture serves as the policy network for Proximal Policy Optimization (PPO), ensuring stable and reliable learning.

Gated Instance Attention (GIA)

A critical breakthrough in the MIGT framework is the Gated Instance Attention (GIA) block. While standard Transformers use Layer Normalization, MIGT adopts Instance Normalization.

Detailed view of the Gated Instance Attention (GIA) block, highlighting the use of Instance Normalization.

Instance Normalization helps the network focus on global trends while dampening the impact of individual sample outliers, such as a single day's flash crash. By retaining the differences between samples while reducing noise, the model becomes significantly more robust to "Black Swan" events. This normalization strategy is the "secret sauce" that allows MIGT to maintain stability where other models falter.

Experimental Results

The framework was evaluated using the Dow Jones Industrial Average (DJIA) 30 stocks across three distinct periods: 2019 (pre-COVID), 2020 (extreme volatility), and 2021 (recovery). MIGT was tested against 15 other strategies, including traditional mean-reversion tactics and established DRL frameworks like FinRL and EIIE.

The results were compelling:

  • Cumulative Returns: MIGT outperformed the best competing strategy by at least 9.75% across all test sets.
  • Risk-Adjusted Performance: The model saw a minimum 2.36% increase in risk-return ratios (Sharpe, Sortino, and Omega), indicating more efficient trading rather than just higher risk-taking.
  • Long-term Dominance: In a three-year backtest (2019-2021), MIGT achieved 126.21% more cumulative returns than its closest competitors.

Interestingly, the results revealed an "adaptation gap"—a 3–8 month period where the DRL agent learns the specific market regime before its performance begins to significantly diverge from simpler strategies.

Conclusion and Future Directions

The MIGT framework demonstrates that specialized architectural choices, particularly in normalization and gating, can drastically improve DRL performance in volatile markets. By prioritizing training stability, the model achieves superior financial outcomes.

However, limitations remain. The current model is "long-only," and its advantage in downside risk protection (Omega ratio) is less pronounced than its lead in pure returns. Future work may involve integrating sentiment analysis from news or social media to further enhance predictive accuracy.

Reference: Gu, F., Stefanidis, A., et al. (2025). MIGT: Memory Instance Gated Transformer Framework for Financial Portfolio Management. arXiv:2502.07280v1.

Summary updated

BibTeX
@misc{gu2025migt,
  author = {Fengchen Gu and Angelos Stefanidis and Ángel F. García-Fernández and Jionglong Su and Huakang Li},
  title = {{MIGT: Memory Instance Gated Transformer Framework for Financial Portfolio Management}},
  year = {2025},
  eprint = {2502.07280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07280},
}
Figure