What Data Augmentation Do We Need for Deep-Learning-Based Finance?

Ziyin Liu, Kentaro Minami, Kentaro ImajoarXiv 2021 · OpenReview

TL;DR

This paper bridges the gap between theory and practice in deep learning for finance by developing a theoretical framework for data augmentation in portfolio construction. Their key insight is that a specific type of multiplicative noise augmentation, proportional to the magnitude of past returns, significantly outperforms naive noise injection and no augmentation, offering a theoretically grounded approach to improving financial model robustness.

What Problem Does This Paper Address?

The field of applying deep learning to finance has seen a surge in empirical studies, yet it largely lacks a theoretical foundation to justify the design choices of algorithms. Specifically, for the fundamental problem of portfolio construction, existing deep learning approaches often rely on generic machine learning techniques or ad-hoc data augmentation strategies without clear theoretical backing. This paper aims to address this gap by providing a theoretical framework that explains why and how data augmentation should be used in quantitative finance, particularly for portfolio construction, grounded in traditional financial utility theory.

Methods

The authors propose a theoretical framework for understanding data augmentation in deep learning for finance, rooted in Markowitz's portfolio theory and utility maximization. They analyze the problem by framing portfolio construction as a utility maximization task, where the utility function is a mean-variance objective. The core of their contribution lies in deriving theoretically motivated data augmentation strategies. They investigate different types of noise injection, including:

  • No data augmentation: The baseline strategy.
  • Additive Gaussian noise: Injecting random noise of a fixed variance.
  • Multiplicative Gaussian noise: Injecting noise whose variance is proportional to the current price or return.

Through mathematical derivations based on geometric Brownian motion (GBM) and the Heston model, they derive optimal data augmentation strategies and their corresponding theoretical utilities. A key finding is that a multiplicative noise augmentation, specifically with a strength proportional to the magnitude of past returns ($\sqrt{|r_{t-1}|}$), is theoretically superior. They also explore the equivalence of this noise injection to L2 regularization on the model output.

Datasets

  • Synthetic data: Generated using Geometric Brownian Motion (GBM) for controlled experiments.
  • Real-world data: S&P 500 stock prices from 2016-2020, covering 365 stocks.

The paper does not introduce new benchmark datasets but uses standard synthetic models and publicly available financial data.

Key Insights and Ideas

  • Theory-driven data augmentation is crucial for finance: Generic machine learning techniques (like weight decay) and naive data augmentation strategies often fail to improve performance in financial tasks because they don't capture the specific inductive biases of financial data.
  • Multiplicative noise is key: The theoretical framework strongly suggests that data augmentation should mimic the multiplicative nature of financial price dynamics. Injecting noise proportional to the magnitude of past returns ($\sqrt{|r_{t-1}|}$) is shown to be theoretically optimal.
  • Data augmentation as regularization: The proposed multiplicative noise injection can be mathematically shown to be equivalent to L2 regularization on the model's output, providing a theoretical link between data augmentation and regularization techniques.
  • Utility theory provides a lens: Applying classical financial utility theory (like mean-variance utility) to analyze deep learning objectives offers a powerful way to understand and design financial algorithms.
  • Simplicity can be effective: The theoretically motivated multiplicative noise augmentation is a relatively simple algorithm that outperforms more complex or generic methods.

Key Results

  • Theoretical superiority: The paper mathematically proves that the proposed multiplicative noise augmentation strategy yields a strictly higher mean-variance utility than no data augmentation and additive Gaussian noise augmentation, with probability 1.
  • Empirical validation: Experiments on both synthetic GBM data and real S&P 500 stock data demonstrate that the proposed method achieves significantly better Sharpe ratios compared to baselines, including no augmentation, weight decay, and a GAN-based augmentation (QuantGAN).
  • Improved risk management: A case study on the MSFT stock during the COVID-19 market crash shows that the learned portfolio effectively reduced investment during periods of excessive stock price increases, thus avoiding significant losses.
  • Performance on S&P 500: The proposed method consistently outperformed other strategies across various S&P 500 sectors, achieving the highest average Sharpe ratios.

Limitations and Future Work

  • Focus on noise injection: The current theoretical framework primarily focuses on data augmentation through noise injection. The authors acknowledge that other data augmentation techniques (e.g., time warp, magnify) might also be beneficial for financial time series and suggest extending the framework to analyze them.
  • Model assumptions: The theoretical derivations often rely on specific models like Geometric Brownian Motion (GBM) and the Heston model. While these are standard, real-world financial markets can exhibit more complex dynamics.
  • Multi-asset setting: Extending the theory to multi-asset portfolio construction is hindered by the lack of a universally agreed-upon standard model for the co-motion of multiple stocks. The paper tentatively suggests a form for noise injection but leaves its theoretical justification for future work.
  • Non-Gaussian noise: While the current utility function is indifferent to higher moments, if utility functions involve higher moments, the choice of noise distribution might become critical.
  • Practical implementation: The authors recommend treating the training points with positive and negative returns equally by taking the absolute value of the augmentation strength, as the theoretical optimal strength can sometimes approach infinity, which is unnatural for real markets.

The authors express hope that their work will motivate further research into the theoretical aspects of machine learning in finance, leading to more robust and effective algorithms.

Summary updated

Abstract

The task we consider is portfolio construction in a speculative market, a fundamental problem in modern finance. While various empirical works now exist to explore deep learning in finance, the theory side is almost non-existent. In this work, we focus on developing a theoretical framework for understanding the use of data augmentation for deep-learning-based approaches to quantitative finance. The proposed theory clarifies the role and necessity of data augmentation for finance; moreover, our theory implies that a simple algorithm of injecting a random noise of strength $\sqrt{|r_{t-1}|}$ to the observed return $r_{t}$ is better than not injecting any noise and a few other financially irrelevant data augmentation techniques.
BibTeX
@misc{liu2021what,
  author = {Ziyin Liu and Kentaro Minami and Kentaro Imajo},
  title = {{What Data Augmentation Do We Need for Deep-Learning-Based Finance?}},
  year = {2021},
  eprint = {2106.04114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.04114},
}

Loading related content...

Figure