Abstract
One of the most important tasks in quantitative investment research is mining new alphas (effective trading signals or factors). Traditional alpha mining methods, either hand-crafted factor synthesis or algorithmic factor mining (e.g., search with genetic programming), have inherent limitations, especially in implementing the ideas of quant researchers. In this work, we propose a new alpha mining paradigm by introducing human-AI interaction, and a novel prompt engineering algorithmic framework to implement this paradigm by leveraging the power of large language models. Moreover, we develop Alpha-GPT, a new interactive alpha mining system framework that provides a heuristic way to "understand" the ideas of quant researchers and outputs creative, insightful, and effective alphas. We demonstrate the effectiveness and advantage of Alpha-GPT via a number of alpha mining experiments. In particular, we evaluated Alpha-GPT's performance in the WorldQuant International Quant Championship 2024, where it demonstrated results comparable to those of top-performing human participants, ranking among top-10 over 41,000 teams worldwide. These findings suggest Alpha-GPT's significant potential in generating highly effective alphas that may surpass human capabilities in quantitative investment strategies.
Introduction
In quantitative investment, an "alpha" is a mathematical expression used to predict stock returns. Historically, the process of mining these signals has followed two primary paths: manual synthesis and algorithmic mining. Manual synthesis relies on human intuition and experience but is labor-intensive and slow. Algorithmic mining, often utilizing Genetic Programming (GP), can search vast spaces but frequently produces "black-box" formulas that lack interpretability and fail to incorporate specific researcher insights.
Alpha-GPT addresses the "translation gap" between vague human trading ideas and precise mathematical formulas by introducing a third paradigm: interactive alpha mining. By leveraging Large Language Models (LLMs), specifically Llama 3 70B, the system acts as a mediator that transforms natural language intuition into effective quantitative signals.
Methodology
The Alpha-GPT framework employs an agentic workflow designed to bridge the gap between trading intuition and quantitative implementation. The system is structured into three core stages:
- Ideation (Trading Idea Polisher): This stage takes natural language input from a researcher and uses Retrieval-Augmented Generation (RAG) against a financial knowledge library to refine the idea into a structured prompt.
- Implementation (Quant Developer): The LLM generates mathematical "seeds" based on the polished idea. These seeds are then fed into an Alpha Compute Framework, which uses symbolic search to iteratively evolve and optimize the formulas.
- Review (Analyst): After backtesting, an agent summarizes the performance results. A key feature, the "Thought De-compiler," translates complex evolved formulas back into human-readable explanations, allowing researchers to understand the underlying logic and provide feedback for further refinement.
To manage large-scale databases with over 10,000 fields, Alpha-GPT utilizes a Hierarchical RAG strategy. This approach avoids the curse of dimensionality by first querying high-level categories (e.g., Price-Volume) and narrowing down to specific data fields only when relevant to the trading idea.
Results
Alpha-GPT's effectiveness was demonstrated through several high-stakes evaluations:
- WorldQuant International Quant Championship 2024: The system ranked in the top 10 out of more than 41,000 teams globally, showing performance on par with elite human quants.
- Efficiency Gains: In high-frequency trading scenarios, Alpha-GPT reached the performance level of the top 5% of human participants in just one day—a task that typically requires a month of manual effort.
- Formula Quality: In head-to-head comparisons against junior quant researchers, Alpha-GPT’s formulas were judged superior 86.6% of the time by a GPT-4 evaluator, demonstrating higher Information Coefficients (IC).
Conclusion
Alpha-GPT represents a significant advancement in quantitative research by combining the creative intuition of humans with the computational power and linguistic understanding of LLMs. While currently focused on symbolic formulaic alphas, future developments may include the integration of multi-modal alternative data. The system successfully transforms the alpha mining process from a "black box" search into a transparent, interactive, and highly efficient "glass box" discovery engine.
Summary updated