ALFFLLM·FINANCE

The List / Trading, Investment, and Portfolio Management / paper

Navigating the Alpha Jungle: An LLM-Powered MCTS Framework for Formulaic Factor Mining

Yu Shi; Yitong Duan; Jian Li

2025Proceedings of the AAAI Conference on Artificial Intelligencecites 11P1arXiv ↗DOI ↗Semantic Scholar ↗Source ↗

Abstract

Alpha factor mining is pivotal in quantitative investment for identifying predictive signals from complex financial data. While traditional formulaic alpha mining relies on human expertise, contemporary automated methods, such as those based on genetic programming or reinforcement learning, often struggle with search inefficiency or yield alpha factors that are difficult to interpret. This paper introduces a novel framework that integrates Large Language Models (LLMs) with Monte Carlo Tree Search (MCTS) to overcome these limitations. Our framework leverages the LLM's instruction-following and reasoning capability to iteratively generate and refine symbolic alpha formulas within an MCTS-driven exploration. A key innovation is the guidance of MCTS exploration by rich, quantitative feedback from financial backtesting of each candidate factor, enabling efficient navigation of the vast search space. Furthermore, a frequent subtree avoidance mechanism is introduced to enhance search diversity and prevent formulaic homogenization, further improving performance. Experimental results on real-world stock market data demonstrate that our LLM-based framework outperforms existing methods by mining alphas with superior predictive accuracy and trading performance. The resulting formulas are also more amenable to human interpretation, establishing a more effective and efficient paradigm for formulaic alpha mining.

In one sentence

The paper proposes an LLM-powered Monte Carlo Tree Search framework for formulaic alpha mining that integrates multi-dimensional backtesting feedback and frequent subtree avoidance to discover interpretable, high-performing alpha factors.

Summary

The paper addresses the challenge of automated formulaic alpha mining, where traditional genetic programming and reinforcement learning methods often produce opaque, hard-to-interpret factors or suffer from inefficient search spaces. The authors propose a novel framework that models alpha discovery as a tree search problem, leveraging Large Language Models (LLMs) to iteratively generate and refine symbolic alpha formulas. This approach aims to balance predictive power with human interpretability, addressing the 'black box' nature of neural network-based alphas and the structural homogeneity of genetic programming outputs. By framing the task as a reasoning problem guided by financial feedback, the method seeks to navigate the vast space of possible mathematical expressions more effectively than previous automated techniques. The core methodology integrates an LLM with Monte Carlo Tree Search (MCTS). The LLM acts as a generative prior, proposing refinements to candidate alpha formulas based on multi-dimensional evaluation scores derived from financial backtesting, including effectiveness, stability, turnover, diversity, and overfitting risk. A key innovation is the Frequent Subtree Avoidance (FSA) mechanism, which identifies common structural motifs in successful alphas and explicitly instructs the LLM to avoid them, thereby enhancing search diversity. The system uses a relative ranking approach to evaluate new alphas against an evolving repository of effective factors. Experiments are conducted on Chinese A-share markets (CSI 300 and CSI 1000 indices) using 10-day and 30-day return prediction targets, comparing the method against baselines like Genetic Programming, Deep Symbolic Optimization, AlphaGen, and other LLM-based approaches such as Chain-of-Thought and Tree-of-Thought. Experimental results demonstrate that the proposed framework outperforms all baselines in predictive accuracy (IC, RankIC) and trading performance (Annualized Excess Return, Information Ratio). The ablation studies confirm the individual contributions of MCTS, multi-dimensional feedback, and FSA to the overall performance. Notably, the method achieves superior out-of-sample generalization, indicating reduced overfitting compared to competitors. The mined alphas also exhibit high interpretability, ranking second only to Chain-of-Thought in human-logic assessments, while significantly outperforming non-LLM baselines in this regard. The framework offers flexibility in LLM choice, allowing for a trade-off between performance and computational cost, with lightweight models achieving competitive results at a fraction of the cost of larger models like GPT-4.1.

Research problem

Automated formulaic alpha mining faces two primary limitations: poor interpretability of discovered factors and inefficient search processes that lead to overfitting or structural homogeneity. Traditional methods like genetic programming often generate complex, opaque formulas, while neural approaches lack transparency. The paper seeks to develop a method that can efficiently search the vast space of symbolic alpha formulas while ensuring the resulting factors are both highly predictive and interpretable to human practitioners.

Core contributions

  • Proposes an LLM-Powered MCTS framework that models alpha mining as a tree search reasoning problem.
  • Introduces multi-dimensional backtesting feedback (effectiveness, stability, turnover, diversity, overfitting) to guide LLM refinement.
  • Designs a Frequent Subtree Avoidance (FSA) mechanism to prevent formulaic homogenization and enhance search diversity.
  • Demonstrates superior predictive performance and trading profitability compared to GP, DSO, AlphaGen, and other LLM baselines.
  • Validates the interpretability of mined alphas, showing they are more understandable than non-LLM methods while maintaining high performance.

Method

  • Models alpha mining as a Monte Carlo Tree Search (MCTS) problem.
  • Uses LLM to generate and refine symbolic alpha formulas at each node.
  • Selects nodes for expansion using Upper Confidence Bound for Trees (UCT).
  • Evaluates alphas via backtesting, computing scores for effectiveness, stability, turnover, diversity, and overfitting risk.
  • Uses relative ranking against an evolving 'Alpha Zoo' repository for adaptive evaluation.
  • Applies Frequent Subtree Avoidance (FSA) to identify and forbid common structural motifs.
  • LLM generates refinement suggestions based on low-scoring dimensions, then translates them into formulas.
  • Backpropagates rewards to update Q-values in the search tree.

Results & findings

  • Outperforms all baselines in IC, RankIC, AER, and IR across both CSI 300 and CSI 1000 indices.
  • Ablation study confirms MCTS, multi-dimensional feedback, and FSA each contribute to performance gains.
  • FSA significantly improves search efficiency and out-of-sample generalization.
  • Turnover feedback improves practical trading metrics (AER, IR) by reducing transaction costs.
  • Mined alphas rank second in interpretability only to CoT, significantly better than GP/DSO.
  • Lightweight LLMs (e.g., Gemini-2.0-flash-lite) achieve high Information Ratios (1.27) at low cost ($7.5).
  • Framework shows consistent improvement in out-of-sample performance as search progresses.

Data & experiments

  • Datasets: Chinese A-share market data, specifically CSI 300 (large-cap) and CSI 1000 (small/mid-cap) indices.
  • Prediction targets: 10-day and 30-day future stock returns.
  • Time periods: Training (2011-2020), Testing (2021-2024).
  • Baselines: GP, DSO, AlphaGen, AlphaForge, CoT, ToT, FAMA.
  • Metrics: Information Coefficient (IC), Rank IC, Annualized Excess Return (AER), Information Ratio (IR).
  • Evaluation: Backtesting using top-k/drop-n portfolio strategy on Qlib platform.

Limitations & caveats

  • Experiments focused on Chinese A-share markets; US market results are in appendix but not detailed in main text.
  • Interpretability assessed via LLM ranking, which may introduce bias compared to human studies.
  • Dependence on LLM quality and cost; performance varies significantly with model choice.
  • Search space limited to predefined operators and data fields.
  • Potential for data leakage in LLMs is acknowledged but not fully resolved in the methodology.

Curator notes

Discovery status: institutional_trading_round2_promoted. Source links: From Natural Language to Executable Option Strategies via Large Language Models