IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2406.16505.html
   My bibliography  Save this paper

$\text{Alpha}^2$: Discovering Logical Formulaic Alphas using Deep Reinforcement Learning

Author

Listed:
  • Feng Xu
  • Yan Yin
  • Xinyu Zhang
  • Tianyuan Liu
  • Shengyi Jiang
  • Zongzhang Zhang

Abstract

Alphas are pivotal in providing signals for quantitative trading. The industry highly values the discovery of formulaic alphas for their interpretability and ease of analysis, compared with the expressive yet overfitting-prone black-box alphas. In this work, we focus on discovering formulaic alphas. Prior studies on automatically generating a collection of formulaic alphas were mostly based on genetic programming (GP), which is known to suffer from the problems of being sensitive to the initial population, converting to local optima, and slow computation speed. Recent efforts employing deep reinforcement learning (DRL) for alpha discovery have not fully addressed key practical considerations such as alpha correlations and validity, which are crucial for their effectiveness. In this work, we propose a novel framework for alpha discovery using DRL by formulating the alpha discovery process as program construction. Our agent, $\text{Alpha}^2$, assembles an alpha program optimized for an evaluation metric. A search algorithm guided by DRL navigates through the search space based on value estimates for potential alpha outcomes. The evaluation metric encourages both the performance and the diversity of alphas for a better final trading strategy. Our formulation of searching alphas also brings the advantage of pre-calculation dimensional analysis, ensuring the logical soundness of alphas, and pruning the vast search space to a large extent. Empirical experiments on real-world stock markets demonstrates $\text{Alpha}^2$'s capability to identify a diverse set of logical and effective alphas, which significantly improves the performance of the final trading strategy. The code of our method is available at https://github.com/x35f/alpha2.

Suggested Citation

  • Feng Xu & Yan Yin & Xinyu Zhang & Tianyuan Liu & Shengyi Jiang & Zongzhang Zhang, 2024. "$\text{Alpha}^2$: Discovering Logical Formulaic Alphas using Deep Reinforcement Learning," Papers 2406.16505, arXiv.org, revised Jun 2024.
  • Handle: RePEc:arx:papers:2406.16505
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2406.16505
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Tianping Zhang & Yuanqi Li & Yifei Jin & Jian Li, 2020. "AutoAlpha: an Efficient Hierarchical Evolutionary Algorithm for Mining Alpha Factors in Quantitative Investment," Papers 2002.08245, arXiv.org, revised Apr 2020.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Quechen Yang, 2024. "Blending Ensemble for Classification with Genetic-algorithm generated Alpha factors and Sentiments (GAS)," Papers 2411.03035, arXiv.org.
    2. Shuo Sun & Rundong Wang & Bo An, 2021. "Reinforcement Learning for Quantitative Trading," Papers 2109.13851, arXiv.org.
    3. Tao Ren & Ruihan Zhou & Jinyang Jiang & Jiafeng Liang & Qinghao Wang & Yijie Peng, 2024. "RiskMiner: Discovering Formulaic Alphas via Risk Seeking Monte Carlo Tree Search," Papers 2402.07080, arXiv.org, revised Feb 2024.
    4. Bruno Gav{s}perov & Marko {DJ}urasevi'c & Domagoj Jakobovic, 2024. "Finding Near-Optimal Portfolios With Quality-Diversity," Papers 2402.16118, arXiv.org.
    5. Hang Yuan & Saizhuo Wang & Jian Guo, 2024. "Alpha-GPT 2.0: Human-in-the-Loop AI for Quantitative Investment," Papers 2402.09746, arXiv.org.
    6. Saizhuo Wang & Hang Yuan & Leon Zhou & Lionel M. Ni & Heung-Yeung Shum & Jian Guo, 2023. "Alpha-GPT: Human-AI Interactive Alpha Mining for Quantitative Investment," Papers 2308.00016, arXiv.org.
    7. Hao Shi & Weili Song & Xinting Zhang & Jiahe Shi & Cuicui Luo & Xiang Ao & Hamid Arian & Luis Seco, 2024. "AlphaForge: A Framework to Mine and Dynamically Combine Formulaic Alpha Factors," Papers 2406.18394, arXiv.org, revised Dec 2024.
    8. Chuheng Zhang & Yuanqi Li & Xi Chen & Yifei Jin & Pingzhong Tang & Jian Li, 2020. "DoubleEnsemble: A New Ensemble Method Based on Sample Reweighting and Feature Selection for Financial Data Analysis," Papers 2010.01265, arXiv.org, revised Jan 2021.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2406.16505. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.