arXiv:2611.04555q-fin.CPNov 2026

Manuscript Offprint

arXiv:2611.04555

CosmosAlpha: Multi-Relational Graph Search with Pareto-Guided Exploration for LLM-Driven Alpha Mining

Zhan-He Wang, Zi-Yang Lang, Yi-Yang Li, Qing-Yu Lan, Yun-Song Piao

Abstract

Discovering predictive alpha factors from noisy financial data is a fundamental yet challenging problem in quantitative finance. LLM-driven formulaic alpha mining offers an attractive paradigm by combining interpretable symbolic expressions with iterative generation and refinement guided by quantitative feedback. However, existing generation-centric and tree-based search strategies primarily organize factors through generation lineage, leaving structural and statistical relationships across search branches underutilized. Consequently, information remains localized along parent-child trajectories, which can confine exploration to redundant regions. Moreover, effective factor discovery must account for multiple distinct objectives that cannot be adequately captured by a single search criterion. We introduce CosmosAlpha, a graph-based LLM factor-mining framework that represents discovered factors as a multi-relational graph encoding generation lineage, expression-structure similarity, and cross-sectional exposure correlation. A Graph Flow mechanism propagates search utilities across the graph, allowing each factor to be assessed using relational evidence from nearby factors rather than in isolation. Pareto-guided selection jointly considers quality, fertility and diversity, explicitly modeling their trade-offs within a multi-objective search framework. Across CSI 300 and CSI 500, CosmosAlpha-Graph achieves the best mean rank over seven predictive and portfolio metrics and outperforms its controlled CosmosAlpha-MCTS counterpart on every reported metric, showing a consistent advantage for relational graph search in LLM-driven factor mining. The source code is available at https://github.com/wzhmtldswz/CosmosAlpha.

1 Introduction

Alpha mining seeks to discover quantitative signals from market data for predicting future stock returns (Jensen, 1968; Fama and MacBeth, 1973; Gu et al., 2020). In modern quantitative research, an alpha factor is a predictive signal used to rank stocks by their expected future returns; its predictive value is commonly assessed by the alignment between factor scores and subsequent cross-sectional returns and by the performance of portfolios formed from those scores (Fama and French, 1992; Gu et al., 2020). In formulaic alpha mining, the factor is represented as an explicit mathematical expression over observable market variables, making its construction and evaluation transparent (Kakushadze, 2016; Yu et al., 2023). Such expressions can capture diverse patterns in price, volume, and other market data. Established handcrafted libraries such as Alpha158 provide fixed collections of interpretable factors and serve as reference points

Multi-Relational Graph Search → Graph Flow & Pareto-Guided Expansion → Factor Integration & Evaluation

Figure

Figure 1: Overview of CosmosAlpha. (1) Evaluated factors form a pool-level multi-relational graph with generation, structure, and exposure-correlation edges. (2) Graph Flow propagates Quality, Fertility, and Diversity, after which Pareto-guided selection chooses parents for LLM-driven mutation and evaluated children return to the graph. (3) The fixed factor pool is preprocessed and integrated with LightGBM for common predictive and portfolio evaluation.

for automated mining (Yang et al., 2020). Individual factors, whether handcrafted or automatically mined, are typically weak and noisy. Reliable discovery therefore requires searching a large expression space while controlling spurious correlations and redundant candidates (Harvey et al., 2016; Gu et al., 2020).

Automated alpha mining has progressively expanded both the symbolic search space and the feedback used to navigate it. Evolutionary approaches, including genetic programming (GP), search formula structures through mutation and selection; AutoAlpha and AlphaEvolve are representative examples of this direction (Zhang et al., 2020; Cui et al., 2021), while reinforcement-learning methods optimize expression construction or the quality of an emerging factor set (Yu et al., 2023; Zhao et al., 2025a;b; Zhu and Zhu, 2025). Large language models provide another route by introducing financial hypotheses, semantic reasoning, and iterative refinement from quantitative feedback (Li et al., 2024; Yu et al., 2026; Tang et al., 2025; Luo et al., 2026). Among recent LLM-based approaches, several systems also retain richer persistent search states: Alpha Jungle organizes refinements with Monte Carlo Tree Search (MCTS) (Shi et al., 2026), AlphaPROBE navigates a lineage-based directed acyclic graph (DAG) (Guo et al., 2026), QuantaAlpha evolves complete mining trajectories (Han et al., 2026), and AlphaAgentEvo learns multi-turn evolution through agentic reinforcement learning (Tang et al., 2026). Together, these developments move formulaic alpha mining from isolated generation toward iterative search that can reuse previous evaluations.

Despite this progress, many recent LLM-based methods still organize persistent search state primarily around provenance or trajectory. A generation edge records who generated whom, but it does not reveal whether factors from otherwise distant search paths reuse similar subexpressions or induce nearly identical exposure profiles across stocks. LLM-based systems address parts of this problem in different ways: AlphaAgent regularizes originality at the abstract syntax tree (AST) level, Alpha Jungle suppresses frequent subtrees, and AlphaPROBE reasons over global lineage (Tang et al., 2025; Shi et al., 2026; Guo et al., 2026). In a complementary GFlowNet-based approach, AlphaSAGE uses a structure-aware encoder for each expression's AST while promoting diverse generation (Chen et al., 2026). These approaches expose complementary signals, but they do not jointly treat generation history, structure similarity, and empirical cross-sectional exposure correlation as coexisting relation types between complete evaluated factors. As a result, evidence obtained along one search path remains difficult to reuse for otherwise distant factors that share similar structures or cross-sectional exposure profiles, which can keep exploration localized in redundant regions.

Selecting which factors to expand remains a difficult part of automated alpha mining. We argue that a candidate parent should be assessed along three complementary dimensions: current quality, fertility, and diversity. Current quality measures a factor's present predictive value; fertility measures whether its previous expansions produced high-quality descendants; and diversity measures whether it occupies a less redundant region of the factor pool. Existing methods often either prioritize quality alone or reduce these criteria to a fixed scalar, which can obscure meaningful trade-offs among candidate parents. Structure similarity and cross-sectional exposure correlation provide direct measures of redundancy for diversity estimation, while generation links preserve search provenance for relational propagation. Pareto-based multi-objective selection can then retain non-dominated trade-offs without collapsing these criteria to a single scalar (Zitzler and Thiele, 1999; Deb et al., 2002).

We introduce CosmosAlpha, an LLM-driven framework that treats the evaluated factor pool as an active multi-relational search state (Figure 1). Each node is a complete factor, and three relation types capture generation lineage, expression structure, and cross-sectional exposure correlation among factors. Graph Flow propagates node utilities through these typed neighborhoods so that parent assessment reflects both local measurements and evidence from related factors. Pareto-guided selection then preserves trade-offs among quality, fertility, and diversity, and the selected factors serve as parents for subsequent LLM-guided mutations. After evaluation, valid children enter the graph and update the state used by the next round. The factor archive is thus no longer a passive record of past attempts; it becomes the state that organizes subsequent exploration.

We evaluate CosmosAlpha on CSI 300 and CSI 500 under a common data and downstream LightGBM integration protocol. CosmosAlpha-Graph achieves the best overall mean rank on both universes and outperforms the controlled CosmosAlpha-MCTS counterpart on every reported predictive and portfolio metric. Component and relation ablations support the contributions of relational propagation and multi-objective selection, while experiments across three LLM backbones and three independent runs show that the overall advantage is not confined to a single model or stochastic run.

Our contributions are summarized as follows:

  • We formulate LLM-driven formulaic alpha mining as iterative expansion over a pool-level multi-relational graph that jointly represents generation lineage, expression structure, and empirical exposure correlation between complete factors.

  • We develop Graph Flow and Pareto-guided expansion to combine relational evidence with distinct quality, fertility, and diversity criteria, preserving useful search trade-offs without fixed scalarization.

  • We provide a controlled evaluation in which CosmosAlpha-Graph and CosmosAlpha-MCTS share the factor language, evaluator, LLM backbone, and downstream modeling protocol, thereby isolating the effect of relational graph search; cross-universe comparisons, ablations, LLM sensitivity, and multi-run analysis further test the robustness of the design.

References (81)