Learning from Expert Factors: Trajectory-level Reward Shaping for Formulaic Alpha Mining

Junjie Zhao, Chengxi Zhang, Chenkai Wang, Peng Yang
7/27/2025
cs.LGcs.AIq-fin.PM

No confident code implementation found for this paper.

Abstract

Reinforcement learning (RL) has successfully automated the complex process of mining formulaic alpha factors, for creating interpretable and profitable investment strategies. However, existing methods are hampered by the sparse rewards given the underlying Markov Decision Process. This inefficiency limits the exploration of the vast symbolic search space and destabilizes the training process. To address this, Trajectory-level Reward Shaping (TLRS), a novel reward shaping method, is proposed. TLRS provides dense, intermediate rewards by measuring the subsequence-level similarity between partially generated expressions and a set of expert-designed formulas. Furthermore, a reward centering mechanism is introduced to reduce training variance. Extensive experiments on six major Chinese and U.S. stock indices show that TLRS significantly improves the predictive power of mined factors, boosting the Rank Information Coefficient by 9.29% over existing potential-based shaping algorithms. Notably, TLRS achieves a major leap in computational efficiency by reducing its time complexity with respect to the feature dimension from linear to constant, which is a significant improvement over distance-based baselines.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2025learning,
  title  = {Learning from Expert Factors: Trajectory-level Reward Shaping for Formulaic Alpha Mining},
  author = {Junjie Zhao and Chengxi Zhang and Chenkai Wang and Peng Yang},
  year   = {2025},
  eprint = {2507.20263},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.20263v1}
}

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/2507.20263.svg)](https://codeofpaper.com/paper/2507.20263)

Discussion