This paper explores a fundamental tension in financial machine learning: the trade-off between data quantity (more observations to reduce variance) and data relevance (recent observations to reduce bias from market regime shifts). By testing various training history configurations against multiple intraday forecast horizons, the author demonstrates that "which past matters" depends entirely on how far into the future you are trying to predict.
TL;DR
The optimal training data strategy for equity Transformers is horizon-dependent: short-term forecasts (5–15 minutes) thrive on recent data, while longer-term intraday forecasts (up to 2 hours) benefit from broader, uniform historical sampling. There is no "universal" best training window; instead, training history should be treated as a hyperparameter tuned specifically to the target forecast horizon.
What Problem Does This Paper Address?
In financial markets, "concept drift" is the norm—relationships that worked yesterday might vanish today. To combat this, researchers often face a dilemma:
- Use a long history: This provides more examples of rare market states but risks "polluting" the model with obsolete relationships.
- Use a short, recent history: This ensures the model is tuned to current conditions but increases the risk of overfitting due to a smaller sample size.
While previous research has looked at this trade-off for one-step-ahead predictions, this paper asks if the balance shifts when predicting across different forecast horizons (e.g., 5 minutes vs. 2 hours). Does a 5-minute alpha decay so fast that it only needs the last few months of data, while a 2-hour trend requires years of context?
Methods
The author employs a cross-sectional Transformer architecture. Unlike standard Transformers that attend over time (sequences), this model attends across different stocks at a single point in time to capture lead-lag effects and peer relationships.
The core of the experiment is a grid of 12 configurations combining:
- Training Quantities ($T$): 6, 12, or 24 months of data.
- Sampling Policies:
- Contiguous (C): The most recent $T$ months.
- Uniform (U): $T$ months sampled randomly from a larger pool.
- Recency (R): $T$ months sampled with a preference for newer data (6-month half-life).
- Multi-recency (M): Similar to Recency but using three separate validation blocks to stabilize epoch selection.
The study uses a monthly walk-forward design, refitting the model 264 times to ensure no future-information leakage.
Datasets
- Source: US equity SIP one-minute and daily aggregate data (from Massive/Polygon).
- Universe: Up to 1,000 liquid US common stocks (ranked by dollar volume).
- Features: A library of 572 engineered features, including price momentum, volatility, liquidity context, and risk factor exposures.
- Evaluation Period: January 2025 through October 2026 (451 trading sessions).
- Target: Five-factor residual returns (removing market, size, value, etc., to isolate idiosyncratic alpha).
Key Insights and Ideas
- Horizon-Dependent Relevance: The "recency bias" is real but limited. For very short horizons (5–15 min), the R6 (6-month recency) model is the clear winner. However, as the horizon extends to 60–120 minutes, the Uniform sampling models (U12/U24) take the lead. This suggests that short-term noise requires the most "up-to-date" filtering, while longer-term signals are more structurally stable over years.
- More Data is Not Always Better: Increasing training quantity from 6 to 24 months did not uniformly improve results. In many cases, adding older data actually degraded performance for short-term targets.
- Ensemble Stability: An equal-weight ensemble of all 12 models was the most robust performer at intermediate horizons (15–25 min), but it was outperformed by specialized individual models at the extremes (very short or very long horizons).
- The "Aha" Moment: Training data selection isn't just about "cleaning" the data; it's a form of distributional design. By choosing which months to include, you are explicitly defining the "market regime" the model is allowed to learn from.
Key Results
The primary metric used is the Rank Information Coefficient (Rank IC), which measures the correlation between predicted and realized return rankings.
- Short Horizon (5m): R6 achieved a Rank IC of 1.90%, significantly beating the contiguous baseline (C6) at 1.35%.
- Medium Horizon (30m): M24 (Multi-recency) led with a Rank IC of 1.09%.
- Long Horizon (120m): U12 (Uniform) led with a Rank IC of 0.76%.
- Ensemble Performance: The ensemble exceeded every individual model's mean at the 15, 20, and 25-minute horizons, proving that diversity in training history can be as valuable as model architecture diversity.
Limitations and Future Work
- Causal Isolation: The study changes both the training quantity ($T$) and the historical pool breadth ($H$) simultaneously in some policies, making it hard to isolate exactly which factor drives the gain.
- Execution Costs: A secondary diagnostic showed that a naive strategy based on these forecasts would have a two-way turnover exceeding 2,000% of NAV daily. This highlights that while the predictions are accurate, turning them into a profitable strategy requires sophisticated execution and cost-aware optimization.
- Future Directions: The author suggests testing different "half-lives" for recency sampling (e.g., 1-month vs. 12-month) and exploring whether market-state features (like VIX levels) could be used to select training data more intelligently than simple calendar age.
Summary updated