Stable Alpha: Adversarial Invariant Representation Learning for Nonlinear Asset Pricing under Temporal Distribution Shifts

Xiaokang Wang, Zihe Liu, Xinghan Qin, Qinxuan Zhang, Xiushuo Hu, Jidong Yuan, Zihao YinNeurIPS 2026

TL;DR

Deep learning models in finance often fall into a classic trap: they memorize fleeting market quirks—like bull-market euphoria—that vanish or flip when the economy shifts. CASH solves this by pitting an asset-pricing network against a two-headed adversary that ruthlessly strips away transient market noise while stress-testing predictions against simulated regime shifts. The result is a model that uncovers stable, underlying drivers of stock returns without ever needing human-labeled market eras.

What Problem Does This Paper Address?

Financial markets are relentlessly non-stationary. A signal like high trading turnover might mean surging momentum during a bull market, yet indicate panic selling in a bear market. Standard deep learning models assume data is independent and identically distributed (i.i.d.). When trained on historical stock data, they happily latch onto spurious, regime-specific shortcuts that look brilliant in-sample, only to watch their predictive power evaporate when the market mood changes.

You might think standard Out-of-Distribution (OOD) techniques like Invariant Risk Minimization (IRM) could fix this. However, those methods usually require explicit "environment labels" (e.g., Regime A: High Inflation, Regime B: Tech Boom). Financial transitions are gradual, overlapping, and invisible until hindsight kicks in. The challenge is to build a factor pricing model—which predicts stock returns by multiplying market-wide risk factors ($\mathbf{f}$) by a stock's sensitivity to them ($\boldsymbol{\beta}$)—that isolates timeless economic drivers from noisy, shifting market regimes, completely unassisted by environment labels.

Methods

Enter CASH (Causality-inspired Asset pricing under temporal distribution SHifts). It marries standard financial architecture with a clever, information-theoretic minimax game.

Figure 1: The overall architecture of CASH.

First, the standard components: a Variational Autoencoder (VAE) compresses cross-sectional stock returns into compact latent market risk factors ($\mathbf{f}$), while an iTransformer backbone encodes a stock’s historical characteristics into a latent representation ($\mathbf{z}$). A simple neural network maps $\mathbf{z}$ into dynamic factor sensitivities ($\boldsymbol{\beta}$), and the inner product $\boldsymbol{\beta}^\top \mathbf{f}$ predicts future returns. (At test time, to avoid peeking into the future, $\mathbf{f}$ is estimated via a rolling average of recent historical factors).

What’s new is how CASH purifies $\mathbf{z}$ using a dual-adversarial mechanism trained end-to-end via a Gradient Reversal Layer:

  1. The Purge (Minimality Head, $D_{\text{cls}}$): A discriminator tries to tell whether a pair of raw inputs ($\mathbf{x}$) and latent representations ($\mathbf{z}$) actually belong together or were randomly shuffled in the batch. By training the encoder to fool this discriminator, CASH minimizes mutual information $I(\mathbf{x}; \mathbf{z})$, actively purging redundant, environment-specific noise.
  2. The Stress-Test (Sufficiency Head, $D_{\text{pred}}$): To stop the encoder from throwing the baby out with the bathwater (collapsing $\mathbf{z}$ to zero), a perturbation generator $T_\psi$ invents worst-case shifts in latent space (anchored to a target norm so it doesn't get lazy). The encoder and prediction head must forecast returns accurately despite these simulated structural shocks.

Caught between an adversary punishing excess baggage and another punishing fragility, $\mathbf{z}$ settles into a "Goldilocks" equilibrium: minimally sufficient and invariant across regimes.

Datasets

No new benchmarks were introduced; the authors evaluated CASH on two established real-world equity panels split chronologically (70% train, 10% validation, 20% test):

  • CSI 300 Index (China): Daily observations from Oct 2020 to Oct 2025, featuring 312 stock covariates from the Tonglian Data Platform.
  • NASDAQ Index (US): Monthly observations spanning 1990–2021 with 95 stock characteristics.

Key Insights and Ideas

  • Why baselines flatline: Under noisy daily shifts, standard deep models don't just overfit—they structurally underfit at test time, collapsing to near-zero constant predictions because they fail to find signals that survive across time periods.
  • Game theory prevents information collapse: Ablating either adversarial head hurts performance significantly. You need both—one to destroy spurious correlations, and one to protect predictive signal—to achieve invariance without explicit regime labels.
  • Order matters more than magnitude: Almost every model, including CASH, gets near-zero or negative predictive $R^2$ ($R_{\text{predict}}$) on daily return magnitudes. Yet CASH builds highly profitable portfolios. Why? Because ranking stocks accurately relative to each other—measured by Information Coefficient (IC)—is invariant to scale errors and is what actually drives long-only portfolio construction.
Figure 2: In-sample and out-of-sample fitting curves on the CSI 300 index. The black line denotes realized returns, orange denotes in-sample fitted returns, blue denotes out-of-sample predictions, and the dashed vertical line marks the train-test split.

Key Results

CASH outperforms seven baselines (including FactorVAE, FactorGCL, and Transformer) across prediction, stability, and trading simulations:

  • Predictive Power: On the CSI 300, CASH boosts the Information Coefficient (IC, correlation between predicted and actual cross-sectional returns) more than fourfold over the best baseline, jumping from 0.036 (Transformer) to 0.158, with Rank IC rising from 0.019 to 0.129. On NASDAQ, it achieves the top IC (0.013) and ICIR (0.082).
  • Regime Robustness: Measured by the relative drop in IC from train to test ("IC Gap"), CASH degrades the least: 0.29 on CSI 300 and 0.23 on NASDAQ, whereas several baselines suffer gaps exceeding 1.0 (total signal inversion).
  • Real-World Trading: In simulated top-50 stock portfolios factoring in realistic frictions (turnover caps and 30 bps transaction costs), CASH delivers the highest annualized Sharpe ratios (1.657 on CSI 300; 1.967 on NASDAQ) and the highest Fama-French 3-factor alphas (0.324% and 11.530%, respectively).
Table 1: Prediction performance on the CSI 300 Index and NASDAQ Index. Larger IC, ICIR, Rank IC, Rtotal, and Rpredict indicate better performance; values in parentheses are standard deviations.

Limitations and Future Work

The authors note that their empirical validation is restricted entirely to equity markets (stocks). Whether this adversarial invariance framework generalizes to other asset classes with vastly different macro-dynamics—such as bonds, commodities, currencies, or derivatives—remains an open question left for future exploration. Additionally, hyperparameter analysis shows a mild trade-off: pushing adversarial regularization too hard can eventually degrade out-of-sample stability.

Summary updated

BibTeX
@inproceedings{wang2026stable,
  author = {Xiaokang Wang and Zihe Liu and Xinghan Qin and Qinxuan Zhang and Xiushuo Hu and Jidong Yuan and Zihao Yin},
  title = {{Stable Alpha: Adversarial Invariant Representation Learning for Nonlinear Asset Pricing under Temporal Distribution Shifts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NZHuWIlAUx},
}
Figure