AlphaBench: Benchmarking Large Language Models in Formulaic Alpha Factor Mining

Haochen Luo, Ho Tin Ko, Jiandong Chen, David Sun, Yuan Zhang, Chen LiuICLR 2026

Formulaic alpha factor mining (FAFM) is a cornerstone of quantitative investment. It involves designing interpretable mathematical formulas—combining metrics like price and volume—to extract predictive signals from historical financial data and forecast stock returns. Traditionally, discovering these "alpha factors" relied heavily on human expertise or computationally expensive genetic programming.

With the rapid advancement of Large Language Models (LLMs), researchers are exploring their potential to automate this mining process. However, a critical question remains: How capable are LLMs at generating, evaluating, and refining financial signals?

To answer this, researchers introduce AlphaBench, the first systematic benchmark designed to evaluate LLMs across the entire factor-mining workflow.

The AlphaBench Framework

AlphaBench provides a unified, standardized environment to test LLMs using a domain-specific language (DSL) compatible with Qlib, a popular quantitative investment platform. The benchmark decomposes the alpha mining process into three core tasks:

  1. Factor Generation: This tests an LLM's ability to translate natural language trading ideas into executable code (Text2Alpha) and to brainstorm novel factors based on specific themes, such as "volatility" or "momentum" (Directional Mining).
  2. Factor Evaluation: Here, the LLM acts as a judge. It is tasked with ranking a pool of factors or assigning quality scores based solely on their mathematical structure, without access to underlying market data.
  3. Factor Searching: This evaluates the model's ability to iteratively refine and improve formulas based on past backtest results.
The AlphaBench framework integrates task prompts, LLM generation, and Qlib-based evaluation to systematically benchmark factor mining capabilities.

Exploring Search Strategies

A key component of AlphaBench is testing how LLMs navigate the vast search space of mathematical expressions. The benchmark evaluates three distinct iterative search paradigms:

  • Chain-of-Experience (CoE): A sequential refinement process where a single factor is iteratively updated based on historical backtest feedback.
  • Tree-of-Thought (ToT): A branching exploration strategy where the model expands multiple factor ideas in parallel, pruning unsuccessful branches.
  • Evolutionary Algorithm (EA): A population-based approach that leverages LLMs to perform mutation and crossover operations on a pool of factors.
The Chain-of-Experience (CoE) search strategy iteratively refines a seed factor using historical backtest metrics as feedback for the LLM.

Key Findings: Writers, Not Critics

The comprehensive evaluation across various open-source and closed-source models yielded several surprising insights:

  • Strong Coders, Poor Judges: LLMs are highly reliable at generating syntactically correct formulaic code (often exceeding 90% reliability). However, they struggle significantly with "zero-shot" evaluation. Models generally cannot determine if a formula will be profitable simply by analyzing its mathematical structure; most scored below 0.40 on ranking tasks, barely outperforming random selection.
  • The "Word Salad" Phenomenon: When pushed with high "temperature" settings or overly complex Chain-of-Thought (CoT) prompts, even advanced models can lose coherence, generating nonsensical financial reasoning.
  • Evolution Wins at Scale: For large-scale factor discovery, the Evolutionary Algorithm (EA) paradigm proved to be the most effective, offering the best balance between search quality and token cost.
  • The Value of Fine-Tuning: While zero-shot evaluation is poor, Supervised Fine-Tuning (SFT) on a small dataset of labeled factors significantly boosted the models' ability to compare two factors (Pairwise Selection). This suggests that LLMs can acquire financial intuition when provided with targeted examples.
  • Cost Efficiency: Implementing prompt caching during large-scale search tasks reduced computational costs by up to 85%.

Limitations and the Path Forward

While AlphaBench marks a significant step forward, the current framework focuses primarily on daily equity factors, excluding high-frequency intraday data and other asset classes like crypto or futures. Additionally, the evaluation is inherently tied to the Qlib DSL.

Future iterations of AlphaBench may integrate Retrieval-Augmented Generation (RAG) to provide LLMs with historical performance context during the generation phase, potentially mitigating their current weakness as "critics." Expanding the benchmark to include multi-modal data, such as financial news and earnings transcripts, could further unlock the potential of LLMs in quantitative finance.

Summary updated

BibTeX
@inproceedings{luo2026alphabench,
  author = {Haochen Luo and Ho Tin Ko and Jiandong Chen and David Sun and Yuan Zhang and Chen Liu},
  title = {{AlphaBench: Benchmarking Large Language Models in Formulaic Alpha Factor Mining}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=d97Q8r7ZKZ},
}
Figure