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
11/3/2026
q-fin.CPcs.AIcs.LG

Official code: wzhmtldswz/CosmosAlpha (2 stars, Python, MIT, last commit 2026-11-04).

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

MIT

LLM-driven alpha factor mining with Chain, MCTS, and Graph Search

20PythonNov 3, 20263 weeks agoMIT

Similar Papers

Cite this paper

@article{wang2026cosmosalpha,
  title  = {CosmosAlpha: Multi-Relational Graph Search with Pareto-Guided Exploration for LLM-Driven Alpha Mining},
  author = {Zhan-He Wang and Zi-Yang Lang and Yi-Yang Li and Qing-Yu Lan and Yun-Song Piao},
  year   = {2026},
  eprint = {2611.04555},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.04555v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.04555.svg)](https://codeofpaper.com/paper/2611.04555)

Discussion