arXiv:2610.29663q-fin.CPOct 2026

Manuscript Offprint

arXiv:2610.29663

Lineage-Aware Search Control for LLM-Based Evolutionary Factor Mining

Xintong Liu, Chenkai Zhang, Yanzhao Ma, Peng Yang

Abstract

Formulaic alpha factor mining searches for symbolic expressions that transform market data into predictive signals. Recent LLM-based evolutionary factor mining methods use large language models as semantic variation operators. Under the conventional LLM-EA paradigm, stochastic variation and fitness-based selection can leave the search weakly directed and concentrated around a narrow set of structurally similar factors. We argue that these limitations arise because current methods mainly organize search at the individual and population levels, leaving lineage-level control underused. A lineage connects successive factor variants through evolutionary descent. We propose LINEAGEEvo, which uses lineage in two coupled forms of search control: (1) lineage-conditioned LLM variation, which distills Lineage-Scoped Search Experience into operator-specific priors and fuses them with global operator priors, providing persistent, lineage-relevant guidance for LLM generation; and (2) lineage-stratified search allocation, which balances factor quality against lineage concentration by distributing the search budget across lineages during evolutionary search. Together, these mechanisms make semantic variation more direction aware and prevent branches from dominating the evolution, thereby promoting the discovery of predictive and diverse factors. We evaluate LINEAGEEvo on CSI 500 and S&P 500 in terms of factor predictiveness, portfolio performance, search efficiency, and lineage- and expression-level diversity. LINEAGEEvo achieves the strongest predictive performance on both markets, while LSPS produces a more balanced lineage distribution and a structurally broader factor pool. The results support lineage as a useful intermediate unit for controlling LLM-based evolutionary factor search.

Introduction

Formulaic alpha factor mining aims to discover mathematical expressions that transform raw market data into predictive signals for future asset returns (Kakushadze 2016). Such factors support portfolio construction and trading, yet the vast expression space and noisy, non-stationary data make predictive and stable factors difficult to discover.

Early factor discovery largely relied on human experts who designed signals based on financial intuition and empirical experience. To reduce such manual effort, automated factor mining methods have been developed, including genetic programming (GP), reinforcement learning (RL), and other machine learning approaches (Zhang et al. 2020; Yu et al. 2023; Chen et al. 2025). These methods expand the searchable factor space and enable systematic exploration beyond hand-crafted factors. However, they still rely mainly on fixed grammars, handcrafted operators, or scalar rewards, limiting semantic reasoning and adaptive reuse of search experience.

More recently, LLM-based factor mining has emerged as a promising paradigm, using pretrained models to generate and refine symbolic formulas through agent-based generation, tree search, and graph-aware evolution (Wang et al. 2023; Tang et al. 2025; Shi, Duan, and Li 2025; Guo et al. 2026; Luo et al. 2026a). Large-scale pretraining provides semantic priors over financial concepts, mathematical expressions, and programming patterns, supporting factor hypothesis generation and formula refinement. Among these approaches, LLM-based evolutionary algorithm (LLM-EA) factor mining is particularly appealing because it replaces purely syntactic genetic operators with LLM-based semantic mutation and recombination (Liu et al. 2023; Luo et al. 2026b; Ren et al. 2025; Han et al. 2026). However, two search-control challenges remain. First, LLM-based operators are flexible but weakly controllable, as the mapping from prompt context to offspring is implicit and difficult to steer persistently (Liu et al. 2023; Yin et al. 2024). Second, under limited budgets, fitness-based selection can lead to takeover, where currently strong individuals or branches receive disproportionate search opportunities, reducing diversity and risking premature convergence (Sudholt 2018; Gabor, Belzner, and Linnhoff-Popien 2018).

These challenges persist because current LLM-EA factor mining methods mainly organize search at the individual and population levels, while making limited use of lineage-level state. At the individual level, LLM operators modify selected parent factors; at the population level, evolutionary selection favors high-scoring candidates. Between them, a lineage is a descent-defined factor family whose membership follows primary evolutionary inheritance. Unlike an isolated individual or an unstructured population, a lineage preserves the continuity of local search across successive variation events, making it a natural stateful unit for both persistent operator guidance and search allocation. Conventional evolutionary algorithms have used genealogy and lineage information for diversity preservation, selection, and inheritance analysis (Burke et al. 2003; Gabor, Belzner, and Linnhoff-Popien

∗^{*}Corresponding author.

2018; Burlacu et al. 2013). However, using lineage as a shared scope for operator priors and search allocation remains underexplored in LLM-EA factor mining.

To address these issues, we propose LINEAGEEvo, a lineage-aware LLM-EA framework for formulaic factor mining. LINEAGEEvo represents evolutionary descent in a lineage DAG and uses lineage in two coupled forms of search control. First, it organizes Lineage-Scoped Search Experience (LSSE) into operator-specific lineage priors and fuses them with global operator priors to condition LLM-based mutation and crossover. Second, Lineage-Stratified Parent Selection (LSPS) allocates search opportunities at the lineage level before selecting parent factor(s), while a separate elite archive preserves high-quality discoveries. This design gives LLM variation a persistent local context and distributes subsequent search more evenly across evolutionary branches.

Experiments on CSI 500 and S&P 500 demonstrate the effectiveness of LINEAGEEvo across markets. Compared with the strongest baseline for each metric, LINEAGEEvo improves IC by 28.3% and 12.6%, and ICIR by 9.9% and 35.8% on CSI 500 and S&P 500, respectively, while achieving the strongest portfolio performance on both markets. Ablation results confirm the complementary roles of lineage-specific and global priors, while LSPS increases lineage entropy from 0.405 to 2.154 and average AST distance from 0.509 to 0.747, preserving a broader and less concentrated factor pool. The search curve further shows that LINEAGEEvo reaches a strong factor set rapidly, indicating efficient evolutionary search.

Our contributions are summarized as follows:

• We identify lineage-level search control as underexplored in LLM-EA factor mining and use it to connect individual-level semantic variation with population-level selection.

• We propose LINEAGEEvo, which represents descent-defined factor families in an evolutionary DAG and organizes Lineage-Scoped Search Experience into operator-specific lineage priors for LLM variation.

• We introduce lineage-stratified search allocation through LSPS, which balances lineage quality against lineage concentration, and decouple search allocation from solution preservation through a separate elite archive.

• Experiments on CSI 500 and S&P 500 show that LINEAGEEvo outperforms eight representative baselines in factor performance, while preserving greater lineage and structural diversity.

References (44)