Deep Recurrent Factor Model: Interpretable Non-Linear and Time-Varying Multi-Factor Model

Kei Nakagawa, Tomoki Ito, Masaya Abe, Kiyoshi IzumiarXiv 2019

TL;DR

Institutional investors love linear factor models for their transparency but struggle with their inability to capture complex market dynamics. This paper introduces the Deep Recurrent Factor Model, which combines LSTMs with Layer-wise Relevance Propagation (LRP) to create a non-linear, time-varying stock return model that remains fully interpretable. When tested on the Japanese stock market, this approach significantly outperformed traditional linear models and standard deep learning techniques, particularly in risk-adjusted returns.

What Problem Does This Paper Address?

Multi-factor models (such as the classic Fama–French model) are the bedrock of quantitative equity portfolio management. They explain and predict stock returns using specific corporate attributes like company size, valuation ratios, and price momentum. However, traditional models assume these relationships are linear and static over time—assumptions that frequently fail in real-world financial markets.

While modern deep learning models (like standard deep neural networks or LSTMs) can capture non-linearities and time-varying patterns, they operate as "black boxes." Institutional asset managers cannot easily deploy them because they owe fiduciary accountability to clients and regulators; they must be able to explain why a model recommends buying or selling a stock. The authors tackle this critical trade-off between predictive power and interpretability.

Methods

The authors propose the Deep Recurrent Factor Model (DRFM), which splits the task into a return model (for prediction) and a risk model (for interpretation):

  1. Prediction via LSTM: The model uses a Long Short-Term Memory (LSTM) network to process sequential data, capturing how the relationships between 16 factor descriptors and stock returns evolve over time.
  2. Interpretation via LRP: To open the black box, the authors apply Layer-wise Relevance Propagation (LRP). LRP backpropagates the network's final output return down to the input layer, assigning a "relevance score" to each input factor.

This process effectively linearizes the LSTM at each specific time step, generating time-varying sensitivity coefficients ($\beta$) that mimic traditional, easily understood risk models. The authors adapted standard LRP rules to handle the unique gating mechanisms (multiplicative connections) inherent to LSTM architectures.

Figure 1: Deep recurrent factor model

Datasets

The model was evaluated using historical data from the Japanese stock market:

  • Target Universe: Constituents of the TOPIX500 index, which covers the large and mid-cap segments of the Tokyo Stock Exchange.
  • Inputs: 16 factor descriptors mapping to 5 overarching investment styles: Risk (e.g., volatility, beta), Quality (e.g., ROE, leverage), Momentum, Value (e.g., PBR, PER), and Size (market capitalization).
  • Timeframe: Monthly data spanning from December 1990 to March 2015. The models were trained on rolling 5-year windows (60 months) and tested on the prediction period from April 2007 to March 2015.

Key Insights and Ideas

  • Time-Dependency is Crucial: The LSTM-based models consistently outperformed standard deep neural networks (DNNs). This indicates that factor relationships in financial markets are not just non-linear, but deeply dependent on historical context and time.
  • The Linearization Paradox: Interestingly, while linearizing the LSTM via LRP slightly degraded raw point-prediction accuracy (MAE/RMSE) compared to the pure LSTM, it significantly improved real-world trading performance. Extracting clean, interpretable factor exposures appears to help construct more robust, market-neutral portfolios.
  • Sanity-Checking the AI: The LRP attribution showed that Value and Size factors accounted for more than half of the model's predictive weight. This aligns perfectly with empirical finance literature showing that the Japanese market is historically driven by value investing, providing crucial validation for practitioners.
Figure 2: Factor contributions to the prediction by linear, deep factor, and deep recurrent factor models

Key Results

The models were evaluated both on statistical accuracy and their performance in a simulated long/short quintile trading strategy:

  • Statistical Accuracy: The pure LSTM model achieved the highest raw predictive accuracy, with the lowest Mean Absolute Error (MAE = 0.07492) and Root Mean Squared Error (RMSE = 0.09830), beating the baseline linear model (MAE = 0.08033).
  • Trading Performance: When translated into an investment strategy, the interpretable LSTM+LRP model was the clear winner. It achieved an annualized return of 15.18% and a exceptional Sharpe ratio of 1.31. For comparison, the pure LSTM achieved a 13.20% return (Sharpe 0.88), while the traditional linear model yielded only a 6.02% return (Sharpe 0.45). The LSTM+LRP model also demonstrated the lowest overall volatility (11.60%).

Limitations and Future Work

  • Geographic Scope: The empirical analysis was strictly confined to the Japanese stock market. The authors note that further study is required to confirm if these performance gains hold true in other global equity markets.
  • Feature Constraints: The model currently only considers firm-specific equity descriptors. The authors suggest that incorporating broader macroeconomic variables—such as foreign exchange rates, interest rates, and the consumer price index (CPI)—could further enhance the model's time-varying capabilities across different economic regimes.

Summary updated

BibTeX
@misc{nakagawa2019deep,
  author = {Kei Nakagawa and Tomoki Ito and Masaya Abe and Kiyoshi Izumi},
  title = {{Deep Recurrent Factor Model: Interpretable Non-Linear and Time-Varying Multi-Factor Model}},
  year = {2019},
  eprint = {1901.11493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.11493},
}
Figure