QuantNet: Transferring Learning Across Systematic Trading Strategies

Adriano S. Koshiyama, Sebastian Flennerhag, Stefano B. Blumberg, Nick Firoozye, Philip C. TreleavenarXiv 2020 · arXiv

Abstract

In quantitative finance, models are traditionally trained on individual markets in isolation, often ignoring global interdependencies and suffering from overfitting due to data scarcity. We present QuantNet, a novel deep learning architecture that utilizes transfer learning to extract market-agnostic trends across 58 global equity markets. By employing an Encoder-Transfer-Decoder framework, the model forces market-specific data through a shared global bottleneck, significantly reducing overfitting. Empirical results demonstrate that QuantNet outperforms traditional baselines, yielding a 51% higher Sharpe ratio than non-transfer models.

Introduction

Most quantitative trading strategies operate as "lone wolves," trained on single markets like the S&P 500. However, modern financial markets are deeply interconnected; a liquidity crisis in one region often ripples globally. Traditional independent modeling ignores these contagion effects and macroeconomic drivers. QuantNet proposes a shift from local to global modeling, allowing trading strategies to share universal market truths while maintaining local expertise.

Problem Statement

The development of systematic trading strategies faces two primary hurdles:

  1. Inter-market Dependencies: Traditional models treat markets as independent entities, failing to capture global trends that influence all assets simultaneously.
  2. Data Scarcity and Overfitting: While major markets have extensive histories, many emerging markets possess limited data. Training complex deep learning models on small datasets typically leads to overfitting, where the model captures noise rather than signal.

Methodology: The Encoder-Transfer-Decoder Architecture

The core of QuantNet is a three-stage pipeline designed to facilitate knowledge transfer across diverse markets.

QuantNet Architecture: The Encoder-Transfer-Decoder pipeline.
  • Market-Specific Encoders: Each market (e.g., SPX, UKX) utilizes a dedicated Long Short-Term Memory (LSTM) encoder to represent local dynamics in an abstract latent form.
  • The Global Transfer Layer: Latent representations from all encoders pass through a single, shared linear layer. This "bottleneck" forces the network to identify commonalities—market-agnostic trends—that apply globally.
  • Market-Specific Decoders: Local decoders translate the global layer's output back into specific trading signals for the target market.
  • Objective Function: Unlike standard price-prediction models, QuantNet is trained to directly maximize the Sharpe Ratio, aligning the neural network's optimization with the goal of risk-adjusted returns.

Data and Experimental Setup

The study evaluates QuantNet across 3,103 assets in 58 global equity markets using data from 2000 to 2019. This includes major indices and emerging markets, providing a rigorous environment for testing transfer learning capabilities.

Key Insights: Emergent Geography

A striking discovery was that QuantNet "discovered" world geography without explicit input. By clustering the hidden representations from the encoders, the model naturally grouped markets by region, such as "Developed Asia" or "Small European" clusters.

Emergent Geography: Clustering of market representations reveals regional groupings.

Furthermore, the shared global layer acts as a powerful regularizer. By capturing signals from all markets, it filters out idiosyncratic noise, leading to more robust strategies. This benefit was most pronounced in data-poor markets, which "borrowed" intelligence from larger, data-rich markets.

Performance Results

QuantNet demonstrated significant superiority over both traditional finance baselines and standalone machine learning models:

  • Risk-Adjusted Returns: Compared to cross-sectional momentum, QuantNet achieved a 51% higher Sharpe ratio and a 69% higher Calmar ratio.
  • Ablation Study: To isolate the impact of transfer learning, the authors tested a "No Transfer" LSTM. QuantNet outperformed this variant by 15% in Sharpe and 41% in Calmar ratios.
  • Alpha Generation: Using the Fama-French 5-factor model, the authors confirmed that QuantNet generates genuine "alpha"—abnormal risk-adjusted returns not explained by general market trends.

Conclusion and Future Work

QuantNet proves that transfer learning can effectively mitigate data scarcity and capture global market dependencies. While highly effective for very small and very large markets, medium-sized markets saw less improvement, suggesting the global bottleneck may be too restrictive in some cases. Future research will explore more complex transfer layer architectures to optimize knowledge sharing across all market scales.

Summary updated

Abstract

Systematic financial trading strategies account for over 80% of trade volume in equities and a large chunk of the foreign exchange market. In spite of the availability of data from multiple markets, current approaches in trading rely mainly on learning trading strategies per individual market. In this paper, we take a step towards developing fully end-to-end global trading strategies that leverage systematic trends to produce superior market-specific trading strategies. We introduce QuantNet: an architecture that learns market-agnostic trends and use these to learn superior market-specific trading strategies. Each market-specific model is composed of an encoder-decoder pair. The encoder transforms market-specific data into an abstract latent representation that is processed by a global model shared by all markets, while the decoder learns a market-specific trading strategy based on both local and global information from the market-specific encoder and the global model. QuantNet uses recent advances in transfer and meta-learning, where market-specific parameters are free to specialize on the problem at hand, whilst market-agnostic parameters are driven to capture signals from all markets. By integrating over idiosyncratic market data we can learn general transferable dynamics, avoiding the problem of overfitting to produce strategies with superior returns. We evaluate QuantNet on historical data across 3103 assets in 58 global equity markets. Against the top performing baseline, QuantNet yielded 51% higher Sharpe and 69% Calmar ratios. In addition we show the benefits of our approach over the non-transfer learning variant, with improvements of 15% and 41% in Sharpe and Calmar ratios. Code available in appendix.
BibTeX
@misc{koshiyama2020quantnet,
  author = {Adriano S. Koshiyama and Sebastian Flennerhag and Stefano B. Blumberg and Nick Firoozye and Philip C. Treleaven},
  title = {{QuantNet: Transferring Learning Across Systematic Trading Strategies}},
  year = {2020},
  eprint = {2004.03445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.03445},
}
Figure