Multi-Task Learning for Stock Selection

Joumana Ghosn, Yoshua Bengio

In the world of quantitative finance, the "Holy Grail" is a model that can accurately predict stock returns while navigating the noise and non-stationarity of the markets. A classic dilemma arises: Should you build a unique model for every single stock, or one giant model that treats all stocks the same?

In this classic paper, Joumana Ghosn and Yoshua Bengio explore a middle ground using Multi-Task Learning (MTL). By sharing some parts of a neural network across different stocks while letting other parts remain specialized, they achieved returns significantly higher than standard market benchmarks.

TL;DR

The authors demonstrate that treating the prediction of different stocks as related "tasks" in a Multi-Task Learning framework significantly improves portfolio performance. By sharing hidden layers across stock models, they achieved yearly returns more than 14% above benchmarks, proving that partial parameter sharing provides a superior inductive bias compared to completely independent or completely identical models.

What Problem Does This Paper Address?

Predicting stock returns is notoriously difficult because financial time-series data is "noisy" (lots of random fluctuations) and "non-stationary" (the rules of the game change over time).

Researchers usually face two extremes:

  1. Independent Models: Build one network per stock. This allows for specialization but suffers from high variance because there is relatively little data for any single stock.
  2. Global Models: Build one network for all stocks. This provides plenty of data but introduces high bias, as it assumes every company reacts to economic variables in exactly the same way.

The authors ask: Is there a "sweet spot" where models can share general market knowledge while retaining stock-specific nuances?

Methods

The researchers employed Artificial Neural Networks (ANNs) with two specific architectures (5-3-1 and 5-3-2-1) and tested four levels of parameter sharing:

  • Share Everything: A single model for all 35 stocks.
  • Share Hidden Layers: Stocks share the same feature extraction layers but have unique output layers (specialized decision-making).
  • Share Output Layer: Stocks have unique feature extractors but share the same final decision logic.
  • No Sharing: Completely independent models for each stock.

Crucially, they didn't just train the networks to minimize Mean Squared Error (MSE) on price predictions. Instead, they used a differentiable trading module to directly optimize for a financial criterion (maximizing profit). This allowed the gradient descent process to "understand" the impact of transaction costs and portfolio weighting.

Datasets

The study focused on a universe of 36 assets:

  • 35 Risky Assets: Large-capitalization Canadian stocks from the Toronto Stock Exchange (TSE).
  • 1 Risk-Free Asset: 90-day Canadian treasury bills.
  • Timeframe: 8 years of monthly data (1986–1994).
  • Features: 5 explanatory variables, including 2 macro-economic indicators (bond yields, CPI) and 3 micro-economic indicators (dividend yields, price-to-book ratios).

Key Insights and Ideas

  • The Power of Inductive Bias: Sharing the first hidden layer acts as a regularizer. It forces the network to learn a "universal language" of financial features that are useful across the entire market, which prevents the model from over-fitting to the noise of a single stock.
  • Profit > Accuracy: Training the model to maximize total return (including transaction costs) yielded roughly 4% better annual returns than training it to simply predict the next price point via MSE.
  • Consistency is Key: While independent models sometimes performed well, the MTL models (shared parameters) were much more consistent across different architectures. This suggests that MTL makes the learning process more robust to the "luck of the draw" in model initialization.

Key Results

The results were striking, particularly for the 5-3-1 architecture, demonstrating a clear advantage for partial parameter sharing over both isolated models and broad market benchmarks.

Cumulative portfolio returns over time comparing different sharing strategies and benchmarks.
  • Superior Returns: The MTL models (sharing hidden or output layers) achieved yearly returns of 23.4% to 24.8%.
  • Beating the Benchmarks: This was significantly higher than the "Buy-and-Hold" benchmark (8.3%) and the TSE300 Index (4.4%).
  • Risk-Adjusted Performance: The "Reward to Variability" (Sharpe Ratio) for the shared-layer models was roughly 23-25%, compared to a meager 0.9% for the buy-and-hold strategy.
  • Alpha: The models produced a high "Alpha" (excess return adjusted for market risk), with t-statistics suggesting the results were statistically significant and not due to random chance.
Performance metrics for the 5-3-1 architecture across different sharing schemes.

Limitations and Future Work

The authors acknowledge a few areas for expansion:

  • Market Scope: The study was limited to 35 Canadian stocks. Testing on larger, more diverse markets (like the NYSE) would be necessary to prove the approach's universality.
  • Automating the "Sharing": In this paper, the authors manually decided which layers to share. They suggest future work using "Family Discovery," where the model automatically learns a manifold of parameters to determine exactly how much "sharing" should happen between any two specific stocks.
  • Feature Set: The model only used 5 variables. Modern iterations would likely benefit from a much wider array of alternative data and technical indicators.

Summary updated

BibTeX
@inproceedings{ghosn1996multi,
  author = {Joumana Ghosn and Yoshua Bengio},
  title = {{Multi-Task Learning for Stock Selection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1996},
}
Figure