LLM-Assisted Semantic Pruning for Genetic Programming-Based Alpha Factor Discovery
Source abstract
Abstract
Genetic programming (GP) has been widely used in quantitative finance for discovering formulaic alpha factors that can predict asset returns. However, GP often produces overgrown expressions that are difficult to interpret and expensive to evaluate. This paper proposes a large language model (LLM)-assisted pruning framework that reviews expression trees generated by GP, with the LLM acting as a semantic reviewer that flags redundant or financially implausible branches based on structural complexity and contextual reasoning. The proposed method is formalized as a closed-loop Trigger–Evaluate–Decide–Execute (TEDE) process. We present mathematical formulations, algorithmic design, and examples showing how redundant nested functions can be simplified while monitoring predictive performance. Experiments with high-frequency cryptocurrency market data, using DeepSeek-V4-Flash as the semantic engine, show lower expression complexity and higher rubric-based interpretability scores for the pruned symbolic factors. Under the reported test setup, the LLM-pruned configuration has higher Information Ratio (IR) values than the listed baselines and more compact expression trees than the GP baselines.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Evolutionary Algorithms and Applications · Stock Market Forecasting Methods · Machine Learning and Data Classification
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Economics and Management, China University of Geosciences, No. 68, Jincheng Road, Donghu High and New Technical Development Zone, Wuhan 430074, China
Lodestar X-LAB, Wuhan 430074, China
References (28)
Show source-provided references
1. Cramer, N.L. (1985, January 24–26). A Representation for the Adaptive Generation of Simple Sequential Programs. Proceedings of the 1st International Conference on Genetic Algorithms, Pittsburgh, PA, USA.
2. Augusto, D., and Barbosa, H. (2000, January 22–25). Symbolic regression via genetic programming. Proceedings of the Sixth Brazilian Symposium on Neural Networks, Rio de Janeiro, Brazil.
3. A comparison of linear genetic programming and neural networks in medical data mining10.1109/4235.910462 ↗
4. 101 formulaic alphas10.1002/wilm.10525 ↗
5. A five-factor asset pricing model10.1016/j.jfineco.2014.10.010 ↗
6. Grinold, R.C., and Kahn, R.N. (2000). Active Portfolio Management: A Quantitative Approach for Producing Superior Returns and Controlling Risk, McGraw-Hill. [2nd ed.].
7. OpenAI, Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., and Altman, S. (2024). GPT-4 Technical Report. arXiv.
8. Koza, J.R. (1993). Genetic Programming: On the Programming of Computers by Means of Natural Selection, MIT Press. Complex adaptive systems.10.1007/BF00175355 ↗
9. Cui, C., Wang, W., Zhang, M., Chen, G., Luo, Z., and Ooi, B.C. (2021, January 20–25). AlphaEvolve: A Learning Framework to Discover Novel Alphas in Quantitative Investment. Proceedings of the 2021 International Conference on Management of Data, Xi’an, China.10.1145/3448016.3457324 ↗
10. Yu, S., Xue, H., Ao, X., Pan, F., He, J., Tu, D., and He, Q. (2023, January 6–10). Generating Synergistic Formulaic Alpha Collections via Reinforcement Learning. Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Long Beach, CA, USA.10.1145/3580305.3599831 ↗
11. Zhang, T., Li, Y., Jin, Y., and Li, J. (2020). AutoAlpha: An Efficient Hierarchical Evolutionary Algorithm for Mining Alpha Factors in Quantitative Investment. arXiv.
12. Cao, L., Xi, Z., Liao, L., Yang, Z., and Cao, Z. (2025). Chain-of-Alpha: Unleashing the Power of Large Language Models for Alpha Mining in Quantitative Trading. arXiv.
13. Cao, B., Wang, S., Lin, X., Wu, X., Zhang, H., Ni, L.M., and Guo, J. (2025). From Deep Learning to LLMs: A Survey of AI in Quantitative Investment. arXiv.
14. Xu, F., Yin, Y., Zhang, X., Liu, T., Jiang, S., and Zhang, Z. (2024). Alpha2: Discovering Logical Formulaic Alphas using Deep Reinforcement Learning. arXiv.
15. A comparison of bloat control methods for genetic programming10.1162/evco.2006.14.3.309 ↗
16. Simplification of genetic programs: A literature survey10.1007/s10618-022-00830-7 ↗
17. Wong, P., and Zhang, M. (2006, January 8–12). Algebraic simplification of GP programs during evolution. Proceedings of the 8th Annual Conference on Genetic and Evolutionary Computation, Seattle, WA, USA.10.1145/1143997.1144156 ↗
18. Murano, K., Yoshida, S., Harada, T., and Thawonmas, R. (2018, January 5–8). A study on multimodal genetic programming introducing program simplification. Proceedings of the 2018 Joint 10th International Conference on Soft Computing and Intelligent Systems (SCIS) and 19th International Symposium on Advanced Intelligent Systems (ISIS), Toyama, Japan.10.1109/SCIS-ISIS.2018.00029 ↗
19. Burlacu, B., Kammerer, L., Affenzeller, M., and Kronberger, G. (2019, January 17–22). Hash-based tree similarity and simplification in genetic programming for symbolic regression. Proceedings of the International Conference on Computer Aided Systems Theory, Gran Canaria, Spain.10.1007/978-3-030-45093-9_44 ↗
20. Kinzett, D., Zhang, M., and Johnston, M. (2008, January 7–10). Using numerical simplification to control bloat in genetic programming. Proceedings of the Asia-Pacific Conference on Simulated Evolution and Learning, Melbourne, Australia.10.1007/978-3-540-89694-4_50 ↗
21. Pruning of genetic programming trees using permutation tests10.1007/s12065-020-00379-8 ↗
22. Bloat control operators and diversity in genetic programming: A comparative study10.1162/evco.2010.18.2.18206 ↗
23. Keijzer, M., and Babovic, V. (1999, January 13–17). Dimensionally aware genetic programming. Proceedings of the 1st Annual Conference on Genetic and Evolutionary Computation—Volume 2, San Francisco, CA, USA.
24. Li, Z., Song, R., Sun, C., Xu, W., Yu, Z., and Wen, J.R. (2024, January 11–16). Can Large Language Models Mine Interpretable Financial Factors More Effectively? A Neural-Symbolic Factor Mining Agent Model. Proceedings of the Findings of the Association for Computational Linguistics ACL 2024, Bangkok, Thailand.10.18653/v1/2024.findings-acl.233 ↗
25. Tang, Z., Chen, Z., Yang, J., Mai, J., Zheng, Y., Wang, K., Chen, J., and Lin, L. (2025, January 3–7). AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decay. Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining Volume 2, Toronto, Canada.10.1145/3711896.3736838 ↗
26. Wang, S., Yuan, H., Zhou, L., Ni, L.M., Shum, H.Y., and Guo, J. (2023). AlphaGPT: Human-AI Interactive Alpha Mining for Quantitative Investment. arXiv.
27. Book review: Genetic Programming II: Automatic Discovery of Reusable Programs by John R. Koza (The MIT Press 1994)10.1145/239616.1066351 ↗
28. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017, January 4–9). Attention is all you need. Proceedings of the 31st International Conference on Neural Information Processing Systems, Red Hook, NY, USA.