Alpha$^2$: Discovering Logical Formulaic Alphas using Deep Reinforcement Learning
In quantitative finance, an "alpha" is a mathematical formula that transforms raw market data—such as price and volume—into predictive signals for future asset returns. While "black-box" models like deep neural networks offer high performance, the industry often prefers formulaic alphas for their transparency, interpretability, and robustness. However, the search space for these formulas is astronomical, estimated at $10^{63}$ possible combinations for even simple expressions.
This paper introduces Alpha$^2$, a novel framework that treats alpha discovery as a program construction task. By combining Deep Reinforcement Learning (DRL) with Monte Carlo Tree Search (MCTS) and enforcing logical constraints like dimensional consistency, Alpha$^2$ discovers diverse, high-performing trading signals more efficiently than traditional genetic programming.
The Alpha$^2$ Framework
The Alpha$^2$ system operates as a closed-loop discovery engine. It uses a DRL-guided search to navigate the vast space of mathematical expressions, evaluates the resulting "alphas" against historical market data, and uses these rewards to refine its search policy.
Methodology: Search and Logic
Alpha Discovery as Program Construction
Unlike previous methods that generate formulas as text strings, Alpha$^2$ assembles "alpha programs" instruction by instruction. This approach, inspired by AlphaDev, uses registers to store intermediate values, allowing for more structured and efficient formula generation.
MCTS Guided by DRL
The core of the search process is Monte Carlo Tree Search. A neural network provides two critical outputs: a policy (predicting which instruction to append next) and a value (estimating the potential quality of an alpha derived from the current branch). This guidance allows the system to focus its computational budget on high-potential regions of the search space.
Dimensional Consistency Pruning
A significant innovation in Alpha$^2$ is the enforcement of "dimensional logic." In finance, it is mathematically illogical to add a price (currency) to a volume (units). Alpha$^2$ assigns dimensions to every input and prunes the search tree by forbidding such operations. This hard constraint drastically reduces the search space before any backtesting occurs, ensuring that discovered formulas are physically and mathematically sound.
Diversity and Sparse Rewards
To address the "needle in a haystack" nature of financial signals, the authors implement two key strategies:
- Refined Value Estimation: Instead of using average performance, the RL agent focuses on the "power mean" of the top-$k$ results, helping it navigate sparse reward landscapes.
- Diversity-Aware Evaluation: The reward function penalizes formulas that are highly correlated with previously discovered alphas, forcing the agent to find unique signals that add value to a portfolio.
Experimental Results
The authors evaluated Alpha$^2$ using data from the Chinese A-shares market (CSI300 and CSI500 indices) from 2009 to 2023.
- Predictive Power: Alpha$^2$ achieved an Information Correlation (IC) of 0.0576 on the CSI300 index, significantly outperforming the previous state-of-the-art RL method, AlphaGen (0.0500), and standard Genetic Programming (0.0445).
- Lower Redundancy: The average correlation between alphas discovered by Alpha$^2$ was only 0.1376, compared to 0.3762 for AlphaGen and 0.7029 for GP. This indicates a much more diverse and robust set of signals.
- Backtest Performance: In out-of-sample simulated trading (2021–2023), strategies derived from Alpha$^2$ showed higher and more stable cumulative returns compared to both formulaic baselines and black-box models like XGBoost.
Conclusion and Future Work
Alpha$^2$ demonstrates that combining DRL-guided search with human-like logical constraints can significantly improve the discovery of interpretable trading signals. By filtering out "illogical" formulas and rewarding diversity, the framework finds a "team" of robust alphas rather than just a single high-performer. Future work may involve expanding the operator set to include complex temporal features and moving toward end-to-end optimization of the entire trading strategy.
Summary updated