DeepClair: Utilizing Market Forecasts for Effective Portfolio Selection

Donghee Choi, Jinkyu Kim, Mogan Gim, Jinho Lee, Jaewoo Kang · DOI

TL;DR

This paper introduces DEEPCLAIR, a novel framework that combines advanced time-series forecasting with deep reinforcement learning for more effective portfolio selection. By pre-training a Transformer-based forecasting model and then fine-tuning it with a parameter-efficient technique called LoRA, DEEPCLAIR significantly outperforms traditional and existing deep learning portfolio selection methods, especially during volatile market periods.

What Problem Does This Paper Address?

Optimizing investment portfolios is a complex challenge, especially in dynamic financial markets. Traditional portfolio selection methods often struggle to adapt to unforeseen market shifts, potentially leading to significant losses. While deep reinforcement learning (RL) has shown promise in creating adaptive trading strategies, incorporating accurate market forecasts remains a key hurdle. Existing RL approaches often rely on current market conditions, which can be insufficient for predicting future trends. This paper addresses the gap of effectively integrating sophisticated market forecasting capabilities into an RL-driven portfolio selection framework to achieve superior investment performance and risk management.

Methods

DEEPCLAIR employs a two-stage approach:

  1. Market Price Forecasting (Task 1): A Transformer-based time-series forecasting model, specifically FEDformer, is pre-trained using supervised learning on historical market data. FEDformer is chosen for its ability to capture global time-series trends through seasonal-trend decomposition. This task aims to minimize the error between predicted and actual future market prices.
  2. Portfolio Selection (Task 2): A deep reinforcement learning framework is used for portfolio optimization. This framework includes:
  3. Asset Scoring Module (ASM): Evaluates assets based on historical price data.
  4. Portfolio Selection Module (PSM): Determines long and short position vectors based on asset scores.
  5. Market Scoring Module (MSM): Integrates the output from the pre-trained forecasting model to inform decision-making.

A crucial innovation is the use of Low-Rank Adaptation (LoRA) to fine-tune the pre-trained FEDformer model for the portfolio selection task. LoRA efficiently adapts the large forecasting model by training only a small number of low-rank matrices, preserving the forecasting knowledge while allowing it to specialize for the RL objective. This parameter-efficient fine-tuning is key to bridging the gap between supervised forecasting and RL-based decision-making. The RL agent is trained using a reward function that maximizes portfolio returns, incorporating both long and short positions, and an auxiliary reward to leverage the confidence scores from the ASM.

Datasets

The paper uses two primary datasets for evaluation:

  • Nasdaq and Dow Jones Stock Market Data: These datasets consist of historical stock prices for the top 26 stocks by market capitalization, spanning from January 1992 to December 2022. This data is used for both the forecasting (Task 1) and portfolio selection (Task 2) experiments.
  • ETTh1 (Electricity Transformer Temperature) and Electricity Datasets: These are publicly available time-series datasets used to evaluate the performance of different forecasting modules (Task 1) in isolation.

Key Insights and Ideas

  • Forecasting as a Bridge: The core idea is that accurate market forecasts, when effectively integrated, can significantly enhance portfolio selection strategies beyond what current market conditions alone can provide.
  • LoRA's Crucial Role: LoRA proves to be a highly effective technique for adapting large pre-trained forecasting models to the downstream RL task. It allows for efficient fine-tuning without catastrophic forgetting of forecasting capabilities, striking a balance between specialized RL adaptation and general forecasting knowledge.
  • FEDformer's Suitability: FEDformer's architecture, particularly its seasonal-trend decomposition and frequency-domain analysis, makes it well-suited for capturing market patterns relevant to long-term forecasting and thus beneficial for portfolio selection.
  • Adaptive Behavior: DEEPCLAIR demonstrates remarkable adaptability, adjusting its investment strategies (long/short positions) effectively during both bearish (e.g., 2008 financial crisis) and bullish (e.g., post-COVID recovery) market periods, outperforming static or less adaptive approaches.

Key Results

  • Superior Performance: DEEPCLAIR significantly outperformed baseline models (including benchmark indices, traditional strategies like CSM and BLSW, and other deep RL methods like EIIE, HADAPS, and DeepTrader) across multiple metrics, including Annualized Return (ARR), Sharpe Ratio (ASR), Calmar Ratio (CR), and Sortino Ratio (SoR). For instance, on the Nasdaq dataset, DEEPCLAIR achieved an ARR of 15.22% and an ASR of 0.659, significantly higher than baselines.
  • Forecasting Module Efficacy: FEDformer was shown to be the best-performing forecasting module among Transformer variants (Transformer, Informer, Autoformer) across various datasets, demonstrating lower MAE, RMSE, and MAPE.
  • LoRA Optimization: Applying LoRA specifically to the encoder module of FEDformer yielded the best results for DEEPCLAIR, suggesting that fine-tuning the core feature extraction layers is more beneficial than altering other components or unfreezing the entire model.
  • Qualitative Analysis: Visualizations of market periods (e.g., 2008 crisis, 2019-2021) show DEEPCLAIR dynamically adjusting its position parameters, indicating its adaptive nature.

Limitations and Future Work

  • Interpretability: The authors acknowledge that, like many deep learning models, understanding the causal relationship between inputs and investment decisions in DEEPCLAIR can be challenging.
  • Realistic Settings: Future work aims to incorporate more realistic experimental settings, including transaction fees, diversification into other asset classes (gold, cash, cryptocurrencies), and exploring different train/validation/test splits.
  • Causal Inference: Investigating the interpretability of the backbone Transformer attention architecture is a planned future direction.

Summary updated

BibTeX
@inproceedings{choi2024deepclair,
  author = {Donghee Choi and Jinkyu Kim and Mogan Gim and Jinho Lee and Jaewoo Kang},
  title = {{DeepClair: Utilizing Market Forecasts for Effective Portfolio Selection}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3680008},
}
Figure