AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decay

Ziyi Tang, Zechuan Chen, Jiarui Yang, Jiayao Mai, Yongsen Zheng, Keze Wang, Jinrui Chen, Liang Lin

Introduction

In quantitative finance, the search for "alpha factors"—mathematical signals capable of predicting stock returns—is a relentless pursuit. However, the industry faces a persistent challenge known as alpha decay: as profitable signals are discovered and exploited by more market participants, their predictive power diminishes, eventually vanishing entirely.

Traditional methods for factor mining, such as Genetic Programming (GP) or Reinforcement Learning (RL), often struggle with this phenomenon. These methods frequently produce factors that are overfitted to historical data or redundant with existing strategies. AlphaAgent is a new autonomous framework that leverages Large Language Models (LLMs) to discover "evergreen" trading signals by combining financial reasoning with rigorous mathematical regularization.

The Problem: Overfitting and Factor Crowding

Quantitative researchers typically encounter two primary hurdles when mining for alpha:

  1. Overfitting (p-hacking): Automated systems often find patterns in historical data that are purely coincidental and fail to persist in live trading.
  2. Factor Crowding: Even valid signals lose value if they are already widely known (e.g., standard RSI or Moving Averages).

Current LLM-based mining tools often lack the constraints necessary to ensure they aren't simply reinventing well-known formulas or generating "spurious" factors that lack underlying economic logic.

Methodology: The AlphaAgent Framework

AlphaAgent operates as a closed-loop system utilizing three specialized agents to ensure that discovered factors are both novel and logically sound:

  • The Idea Agent: Rather than starting with random mathematical permutations, this agent synthesizes market hypotheses based on established financial theories, such as mean reversion or liquidity dynamics.
  • The Factor Agent: This agent translates qualitative ideas into mathematical expressions. It utilizes a standardized Operator Library to prevent code "hallucinations" and ensure the resulting formulas are executable.
  • The Eval Agent: This agent conducts rigorous backtests on historical data and provides "reflective feedback" to the other agents, allowing the system to refine its hypotheses iteratively.

Regularized Exploration

To specifically combat alpha decay, AlphaAgent introduces three critical "guardrails" during the exploration phase:

  • Originality Enforcement: The system uses Abstract Syntax Trees (ASTs) to mathematically compare new factors against a library of known formulas (such as the Alpha101 set). If a proposed factor is structurally too similar to an existing one, it is penalized.
  • Hypothesis Alignment: The LLM evaluates "semantic consistency," ensuring the mathematical formula actually reflects the financial logic proposed by the Idea Agent. This filters out factors that might perform well by luck but lack a theoretical basis.
  • Complexity Control: By penalizing overly complex or "engineered" formulas, the system favors simpler models, which are statistically more robust and less prone to overfitting.

Experimental Results

The researchers evaluated AlphaAgent across the CSI 500 (China) and S&P 500 (U.S.) markets over a four-year period (2021–2024) using standard OHLCV (Open, High, Low, Close, Volume) data.

Key Performance Metrics

AlphaAgent demonstrated significant improvements over traditional baselines like LSTM, LightGBM, and existing LLM-based agents:

  • Annualized Excess Returns: The framework achieved an 11.0% excess return in the CSI 500 and 8.74% in the S&P 500.
  • Stability: While the predictive power (Information Coefficient) of traditional factors often plummeted toward zero during the test period, AlphaAgent’s factors remained remarkably stable, suggesting high resistance to decay.
  • Risk Management: The system maintained a Maximum Drawdown of less than 10% in both markets, indicating a favorable risk-return profile.
  • Efficiency: The inclusion of regularized constraints actually improved system efficiency, resulting in an 81% higher "hit ratio" for effective factors while consuming 30% fewer tokens compared to unconstrained agents.

Discussion and Limitations

The success of AlphaAgent suggests that financial rationale acts as a natural regularizer. Factors grounded in economic logic tend to decay much slower than those found through brute-force search.

However, some limitations remain:

  • Operator Constraints: The system is currently limited to a predefined library of mathematical operators, which may exclude highly exotic signals.
  • Data Scope: The current study relied on price and volume data. Future iterations could benefit from integrating alternative data, such as news sentiment or corporate earnings reports.
  • Market Impact: While the simulations account for transaction fees, real-world slippage and execution costs can vary.

Conclusion

AlphaAgent demonstrates that for LLMs to be effective in the high-stakes environment of quantitative finance, they must be more than just "smart"—they must be disciplined. By enforcing mathematical originality and logical consistency, AlphaAgent provides a robust path forward for autonomous, decay-resistant alpha mining.

Summary updated

BibTeX
@inproceedings{tang2025alphaagent,
  author = {Ziyi Tang and Zechuan Chen and Jiarui Yang and Jiayao Mai and Yongsen Zheng and Keze Wang and Jinrui Chen and Liang Lin},
  title = {{AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decay}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
}
Figure