Manuscript Offprint
arXiv:2610.13574Feature Selection via Monte Carlo Tree Search in High-Dimensional Financial Regression
Abstract
Feature selection is a central problem in high-dimensional financial regression, where large numbers of engineered variables and strong correlations among predictors reduce model stability and interpretability. regularization (Lasso) is widely used for sparse regression, but its shrinkage can be restrictive when informative signals are spread across correlated variables. Exact sparse regression avoids this shrinkage but requires solving a combinatorial optimization problem that is computationally difficult and is typically fit to minimize in-sample rather than out-of-sample error.
This paper presents a feature selection framework based on Monte Carlo Tree Search with Generalized Nested Rollout Policy Adaptation (GNRPA). Feature selection is formulated as a sequential decision process, and candidate subsets are scored by their out-of-sample validation performance rather than their training error. The method also supports a lexicographic objective that accounts for subset size and multicollinearity during the search.
We study this approach on a contemporaneous explanatory regression task – explaining, rather than forecasting, the weekly return of the NASDAQ-100 index from 1,072 engineered features spanning market, macroeconomic, and factor data – since this setting isolates the value of subset selection under multicollinearity from the separate problem of predictive return forecasting. On this task, the proposed method identifies sparse feature subsets with higher out-of-sample explanatory power than an optimized Lasso baseline, reaching an out-of-sample of 0.6961 versus 0.6313 for Lasso. These results suggest that Monte Carlo Tree Search is a practical alternative to convex regularization for sparse explanatory feature selection in financial regression, with potential value for factor attribution and risk decomposition, where explanatory transparency matters as much as out-of-sample fit.
CCS Concepts
• Computing methodologies → Reinforcement learning; • Applied computing → Economics.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
ICAIF '26, Milan, Italy
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM ISBN 978-1-4503-XXXX-X/2026/11
https://doi.org/XXXXXXX.XXXXXXX
Tristan Cazenave
LAMSADE, Université Paris Dauphine-PSL, CNRS
Paris, France
tristan.cazenave@lamsade.dauphine.fr
ACM Reference Format:
Cameron Mouangue and Tristan Cazenave. 2026. Feature Selection via Monte Carlo Tree Search in High-Dimensional Financial Regression. In Proceedings of ACM International Conference on AI in Finance (ICAIF '26). ACM, New York, NY, USA, 8 pages. https://doi.org/XXXXXXX.XXXXXXX
1 Introduction
The growing availability of financial and macroeconomic data has increased the dimensionality of empirical financial models. Quantitative models often include hundreds or thousands of engineered variables from prices, macroeconomic indicators, technical signals, and factor data. Because many of these variables are highly correlated, feature selection is crucial for improving model interpretability, reducing estimation variance, and limiting overfitting .
Lasso regression [36] is one of the most widely used approaches for feature selection because it produces sparse solutions via an penalty. However, this penalty’s shrinkage can be restrictive in financial applications. Many economically meaningful signals, such as spreads, distributed lags, and momentum measures, are represented by combinations of correlated variables. In these cases, Lasso can discard relevant variables or over-shrink coefficients, potentially reducing explanatory power. Coefficient shrinkage also introduces bias into the estimated regression parameters.
Exact sparse regression, usually formulated as an optimization problem, avoids coefficient shrinkage by selecting a subset of predictors. Identifying the optimal subset, however, is computationally difficult because the problem is NP-hard. Existing exact and approximate solvers typically minimize penalized training error, which can lead to overfitting in noisy financial datasets where the focus is out-of-sample performance rather than in-sample fit.
This paper presents a feature selection framework based on Monte Carlo Tree Search (MCTS) [24, 34]. We adapt the Montparnasse algorithm [10]—an extension of Generalized Nested Rollout Policy Adaptation (GNRPA) [9]—to formulate sparse feature selection as a sequential decision problem. Candidate feature subsets are evaluated using validation performance during the search, so the algorithm optimizes for out-of-sample explanatory power. It also incorporates a lexicographic objective that accounts for subset size and multicollinearity, and supports both fixed-cardinality and adaptive stopping strategies.
The framework is evaluated on a high-dimensional financial dataset containing 1,072 engineered features for modeling weekly NASDAQ-100 returns. As in Section 3.1, exogenous predictors (macro, volatility, and factor variables) are observed at the same
Cameron Mouangue and Tristan Cazenave
time as the target return; the task is therefore one of explanatory regression rather than out-of-sample return prediction, and reported values should be interpreted accordingly. Our results indicate that, on this dataset, the method identifies smaller feature subsets while improving out-of-sample explanatory performance relative to optimized convex regularization methods. The main contributions of this paper are as follows.
- We formulate sparse feature selection as a sequential decision problem and apply GNRPA to approximate optimization using validation-guided tree search.
• We introduce a search framework that supports a lexicographic objective, including sparsity, multicollinearity, and endogenous stopping.
• We evaluate the method on a high-dimensional financial regression problem and show improved out-of-sample explanatory performance compared with optimized Lasso and related baselines.
The remainder of this paper is organized as follows. Section 2 reviews related work on sparse regression and Monte Carlo Tree Search. Section 3 presents the proposed methodology. Section 4 reports the empirical results, and Section 5 concludes.
2 Related Work
2.1 Feature Selection for Financial Regression
Feature selection has long been an important topic in financial machine learning because modern financial datasets often contain large numbers of correlated explanatory variables. Applications including empirical asset pricing, return prediction, and macro-financial modeling commonly rely on feature selection to improve model interpretability and reduce overfitting . As the number of available market, macroeconomic, and technical indicators has increased, selecting informative predictors has become increasingly important, particularly in high-dimensional settings where multicollinearity is common .
Several approaches have been proposed for this problem. Feature extraction methods such as principal component analysis reduce dimensionality but replace the original variables with latent components, creating opaque models that limit interpretability [33]. More recently, neural-network architectures such as Temporal Fusion Transformers [27] and LassoNet [26] incorporate feature selection into the learning process itself. Although these methods improve predictive performance in many applications, they generally do not produce the globally sparse linear models that remain common in financial analysis and regulatory settings.
Sparse linear regression methods remain widely used because they retain the original explanatory variables. Lasso regression [36] performs feature selection using an penalty and has become a standard baseline in high-dimensional financial regression [12]. However, shrinkage-based methods can become unstable when predictors are highly correlated and may attenuate economically meaningful signals [16, 37]. Exact subset selection, commonly formulated as an optimization problem, avoids coefficient shrinkage and has received renewed attention using mixed-integer optimization [4] and coordinate-descent algorithms [22]. While these methods improve the scalability of sparse regression, neither directly optimizes out-of-sample performance, as both minimize penalized training error. Furthermore, they face distinct limitations in high dimensions. Mixed-integer solvers guarantee global in-sample optimality but can quickly become computationally prohibitive. Conversely, coordinate-descent methods scale well but rely on local updates; in highly collinear financial data requiring coordinated multi-variable changes, they can become trapped in suboptimal solutions.
Recent work has also explored reinforcement learning for combinatorial optimization problems [3]. These approaches provide an alternative to deterministic optimization by learning search policies over large discrete spaces. Motivated by this direction, we formulate feature selection as a sequential decision problem and score candidate subsets by validation performance over training error.
2.2 Monte Carlo Tree Search and GNRPA
Monte Carlo Tree Search (MCTS) is a search algorithm for sequential decision problems that estimates the value of candidate actions using repeated simulations [13, 24]. MCTS has been successfully applied to a variety of combinatorial optimization problems because it balances exploration and exploitation while avoiding exhaustive search [6]. More recently, it has been extended beyond board games to optimization tasks with large discrete search spaces [3].
Nested Rollout Policy Adaptation (NRPA) [32] extends rollout-based search by learning a stochastic policy that gradually increases the probability of actions appearing in high-quality solutions. Subsequent work introduced selective policies to improve search efficiency by reducing exploration of less promising trajectories [8]. Generalized Nested Rollout Policy Adaptation (GNRPA) [9] extends this framework by incorporating temperature control and heuristic biases, making it suitable for higher-dimensional search spaces.
Given a state s and the set of available actions , the probability of selecting action is defined as
where W denotes the policy weights, is the temperature parameter, and represents heuristic domain knowledge. During policy adaptation, the weights are updated according to
where is the learning rate and denotes the action selected in the best rollout sequence.
GNRPA has shown promising results in combinatorial optimization, but its application to sparse financial regression has received limited attention. In this study, we adapt GNRPA to feature subset selection by formulating sparse regression as a sequential decision process and evaluating candidate subsets using out-of-sample validation performance.
3 Methodology
This section describes the feature selection framework. We first introduce the dataset and feature construction process, then formulate sparse feature selection as a Markov Decision Process (MDP). The search procedure and adaptive stopping mechanism, driven by the Montparnasse algorithm, are presented in the following subsections. Figure 1 provides an overview of the framework.

Figure 1: Overview of the proposed search framework.
3.1 Dataset
A daily financial dataset covering January 2000 through March 2026 (T = 6,260 observations) was constructed from publicly available sources. The response variable is the contemporaneous weekly return of the NASDAQ-100 index, defined as the five-day rolling sum of daily returns,
Predictor variables were obtained from three sources: (1) Market data, including price, trading volume, and volatility indices (NASDAQ-100, CBOE VIX, USD Index) via Yahoo Finance; (2) Macroeconomic data, including interest rates, yield spreads, inflation, and labor metrics via FRED; and (3) Factor data, comprising the Fama–French five factors [15] and momentum [7].
The final design matrix contains engineered features. These include technical indicators, interaction terms, and rolling statistics computed over lookback windows trading days. Technical indicators derived from the NASDAQ-100 with lookback periods shorter than five trading days were excluded to avoid information leakage. Exogenous variables, including macroeconomic indicators, volatility measures, yield spreads, and factor returns, were retained at time because they represent contemporaneously observed explanatory variables. We note that this contemporaneous alignment is deliberate rather than an oversight: aggregates returns over a five-day window, while several exogenous predictors (e.g., , ) are single-day changes. Consequently, the model is exploiting same-day and near-term co-movement between volatility/credit markets and equity returns—consistent with the well-documented leverage effect [5]—rather than a genuine lead-lag forecasting relationship. We flag this here because it bears on how the figures reported in Section 4 should be interpreted.
3.2 Problem Formulation
Sparse linear regression seeks a parameter vector that minimizes the residual sum of squares subject to a cardinality constraint,
where denotes the design matrix restricted to the selected feature subset S. Candidate feature subsets are evaluated on a validation set rather than the training set.
The method supports two search modes: (1) Fixed-cardinality search, which limits subset size to a predefined K, and (2) Adaptive search, which uses an endogenous stopping mechanism and a lexicographic reward to determine subset size automatically.
Feature selection is formulated as an episodic Markov Decision Process (MDP) [31] defined by the tuple . Figure 1 summarizes the overall approach.
State. Let denote the candidate features. Although the selected subset is unordered, the search constructs it sequentially. The state is , where is the current subset and is the most recently selected feature. Tracking allows the policy matrix to capture pairwise feature synergies, such as variables forming spread signals. The initial state is .
Action. At each state, the agent may select any feature that is not already contained in the current subset or terminate the search,
Reward. Rewards are evaluated only at terminal states. For a feature subset S, the regression coefficients are estimated by ordinary least squares using a ridge-stabilized matrix inversion via NumPy [20],
where provides numerical stability. The resulting model is evaluated on a separate validation set, and the corresponding validation performance defines the reward used during search.
3.3 Search Heuristics
The complete search space contains possible subsets. Even when constrained to a maximum capacity of features (the upper bound of our evaluations), the combinatorial space still exceeds valid subsets. To effectively navigate this space, we incorporate a Minimum Redundancy Maximum Relevance (mRMR) [30] heuristic into the GNRPA bias term defined in Eq. (1).
For a candidate feature and the current subset , let denote the sample Pearson correlation. The relevance is defined as the absolute correlation with the target . To penalize localized correlation clusters rather than the average redundancy
Cameron Mouangue and Tristan Cazenave
across the whole subset, we use a top-k RMS metric. Let be the set of absolute correlations between candidate and the already selected features. Denoting as the m-th largest order statistic of , the redundancy is calculated over the k most correlated variables:
The top-k-RMS expression above is the general form of the redundancy term; the search treats the redundancy metric as a categorical hyperparameter with three settings, tuned independently per configuration (Table 2). The mean variant averages over all of (equivalently, with a mean rather than root-mean-square reduction); the rms variant takes the root-mean-square over the full subset; and top-k-rms restricts the sum to the most correlated features as defined above. The fixed- and tuned-cardinality configurations use the mean and rms variants respectively, while the endogenous-stopping configuration uses top-k-rms with . The heuristic score combines relevance and redundancy using a trade-off parameter , and is scaled by a magnitude parameter to give the bias used in Gibbs sampling:
3.4 Adaptive Search
A limitation of standard implementations is the requirement to pre-specify the target cardinality . We address this by allowing the search policy to determine the stopping depth automatically, so that sparsity is endogenous to the search rather than fixed in advance. Algorithm 1 outlines this mechanism within the search procedure.
To balance feature addition against termination during Gibbs sampling (Algorithm 1, Line 6), the heuristic bias for is formulated as a piecewise function that grows with the subset's proximity to the minimum required size ( ) and the maximum capacity ( ):
where is a hyperparameter that scales the stopping bias, and the exponent is an empirically chosen constant. This piecewise function increases the bias toward as the subset size approaches , while allowing exploration when the subset size is close to .
Alongside endogenous stopping, the Montparnasse algorithm introduces a dual-learning-rate mechanism to stabilize learning in noisy environments. At the base level of the search tree, a conservative learning rate ( ) prevents stochastic, single-rollout evaluations from prematurely skewing the policy. At higher nesting levels, where trajectories have been filtered using repeated simulations, a larger learning rate ( ) is used to reinforce proven, high-quality sequences. Algorithm 1 shows the general two-rate form used for the endogenous-stopping configuration. The fixed- and tuned-cardinality configurations are the special case , i.e. a single global learning rate, consistent with the “(global)” entries in Table 2.
To avoid committing every run to a fixed number of root-level iterations, the level-1 loop (the outermost iteration in Algorithm 1 at L = 1) is terminated early once the best lexicographic score fails to improve for P consecutive iterations. Here P is the level-1 patience hyperparameter (Table 2). This is why the root-level iteration count is reported as variable (“var.”) rather than fixed: individual runs may stop before exhausting their maximum iteration budget once no further improvement is observed. Level-1 patience was itself included in the Optuna search space for the endogenous-stopping configuration.
To improve model stability, the scalar reward evaluated at the terminal state is replaced by a lexicographic tuple:
where denotes the validation rounded to three decimal places. Ties are broken by prioritizing smaller subsets, followed by minimizing the maximum Variance Inflation Factor (MaxVIF). MaxVIF is a standard econometric diagnostic for multicollinearity [2] and can be computed from the empirical correlation matrix
Algorithm 1 GNRPA with Endogenous Stopping
Require: Level L, State s, Policy W, Max Iters , Patience P 1: Global Hyperparameters: Learning rates , Temperature 2: function GNRPA(L, s, W) 3: if L == 0 then 4: return ROLLOUT(s, W) 5: end if 6: if L == 1 else 7: best_score 8: best_seq , no_improve , 9: while True do 10: seq, score GNRPA(L - 1, s, W) 11: if score > best_score (lexicographically) then 12: best_score score 13: best_seq seq 14: no_improve 15: else 16: no_improve no_improve + 1 17: end if 18: 19: if L == 1 and no_improve then 20: break 21: end if 22: if L > 1 and then 23: break 24: end if 25: Update weights W toward best_seq via Eq. (2) using 26: end while 27: return best_seq, best_score 28: end function
29: function ROLLOUT(s, W) 30: while not selected and do 31: COMPUTEHEURISTICS(s, F) 32: Sample action using W, 33: 34: end while 35: return s, EVALUATESTATE(s, , ) 36: end function
▶ Eq. 8, 9
▶ Eq. 1
▶ Updates both and
▶ Eq. 10
of the variables in subset :
By evaluating VIF as a tie-breaker inside the search tree, the algorithm penalizes highly collinear subsets that convex penalties might fail to separate.
4 Experimental Results
We evaluate the method to: (1) compare GNRPA-based selection against convex penalties to highlight shrinkage limitations; (2) assess the trade-offs between fixed, tuned, and endogenous-stopping configurations under varying search budgets; and (3) examine subset interpretability and ensemble stability. We address these objectives using an out-of-sample test on a held-out NASDAQ-100 window (January 2024–March 2026), with walk-forward cross-validation on pre-2024 data for hyperparameter tuning and validation.
4.1 Experimental Setup and Baselines
The proposed method was evaluated on the contemporaneous modeling task of explaining the weekly return (5-day rolling sum) of the NASDAQ-100 index. To avoid data leakage, the dataset was partitioned chronologically at December 31, 2023. The final 562 trading days (January 2024 to March 2026) were held out entirely as an out-of-sample (OOS) test set. All OOS values are computed using the standard coefficient of determination, where the residual variance is normalized by the variance of the test sample itself.
The search procedure used only data preceding this split date. The 1,890-day training window is not tuned for the method. It is the lookback period selected by cross-validating the Lasso baseline (described later in this section), and is reused unchanged as a fixed window for the fixed- and tuned-cardinality GNRPA configurations. Only in the final, endogenous-stopping configuration is the training window itself included in the Optuna search space (Table 2), where a shorter 1,000-day window was found to perform best jointly with the other search hyperparameters.
To compute the validation-guided reward, the search environment used a continuous block of historical data comprising the training window immediately followed by a 562-day internal validation window, positioned immediately before the 2024–2026 test period. This is deliberate rather than incidental: because market regimes shift over time, we validate the search against the period most similar in time – and presumably most similar in regime – to the eventual test period, mirroring the same logic used for the final train/test split itself. This trades some protection against regime change for a validation signal more representative of the conditions the final model is actually evaluated on; we return to this trade-off in Section 5. The final OLS models were then evaluated only on the post-2024 hold-out period.
Hyperparameter selection itself never accesses this hold-out period: Optuna’s objective is computed by averaging validation across three non-overlapping walk-forward folds constructed entirely from pre-2024 data, with zero temporal overlap between folds. The post-2024 test window used for all figures reported in Table 1 is therefore untouched by both the GNRPA search and the outer hyperparameter tuning loop. We note that the best-trial CV objective (Table 2, up to 0.761) exceeds the corresponding true test (0.643–0.668); this gap is the expected signature of the optimizer’s curse [35] that arises whenever hyperparameters are chosen as the argmax over many noisy trials, and does not imply leakage, given the temporal separation of the test period.
As benchmarks, we evaluated standard penalized linear models [29]. Ridge regression ( penalty) [23] stabilized coefficient estimation but did not perform feature selection, retaining all 1,072 predictors (OOS ).
For sparse feature selection, we used Lasso regression ( penalty) [36]. Cross-validation selected a 1,890-day lookback window and , yielding an OOS of 0.6313 with 60 selected features. Increasing to obtain a GNRPA-comparable subset (14–16 features) reduced OOS to 0.39–0.43, compared with 0.6648 for GNRPA, illustrating the trade-off between sparsity and coefficient shrinkage.
To test whether combining the two penalties could address this collinearity, we evaluated an Elastic Net baseline over a grid of 180 hyperparameter combinations. Cross-validation selected an ratio of 0.990 (the maximum grid bound prior to pure Lasso), giving 55 features and an OOS of 0.6243. This suggests that the penalty's tendency to distribute weights across correlated variables may be suboptimal for this dataset, possibly because it restricts the large, opposing coefficients used to capture spread signals.
As a discrete baseline for selection, we implemented a forward stepwise selection (greedy ) algorithm [21]. Using the same 3-fold cross-validation procedure, the algorithm stopped at features, giving an OOS of only 0.2489.
4.2 Explanatory Performance
We evaluated the method across three configurations, using the Optuna framework [1] to tune the search hyperparameters. Table 1 summarizes the comparative out-of-sample fit and statistical significance of the models.
The greedy baseline illustrates the limitation of myopic feature selection in a highly collinear setting, since it does not account for interactions between features chosen jointly. In the fixed-cardinality configuration, the search was constrained to select exactly 60 features per run (341 unique features across the ensemble). The mean out-of-sample of individual GNRPA runs (0.6428) exceeded the Lasso baseline, suggesting that MCTS is better able to identify variable combinations that myopic or shrinkage-based methods might obscure.
To estimate the underlying sparsity of the dataset, we then tuned the target cardinality with Optuna. This tuned-cardinality configuration selected 15 features per run (74 across the ensemble) and reached an OOS of 0.6648, suggesting that a small subset captures the primary explanatory signal.
Finally, the endogenous-stopping configuration removes the cardinality constraint; individual runs converged on an average subset size of 18.6 features (59 across the ensemble). Iteration budgets were scaled across configurations based on empirical convergence observed during preliminary tuning: while the fixed configuration plateaued quickly, the richer learning dynamics of the endogenous mechanism benefited from deeper exploration. Endogenous stopping combined with an additional exploration budget and
Cameron Mouangue and Tristan Cazenave
Table 1: Out-of-sample explanatory performance, execution time, and sparsity over the 562-day test window.
| Model | Feat. | Time (s) | Mean Indiv. | Ens. |
|---|---|---|---|---|
| Baselines | ||||
| Ridge () | 1,072 | < 1.0 | 0.5250 | - |
| Lasso () | 60 | < 1.0 | 0.6313 | - |
| Elastic Net | 55 | < 1.0 | 0.6243 | - |
| Greedy () | 5 | 17.1 | 0.2489 | - |
| Proposed framework | ||||
| Fixed cardinality | 60 | 52.9 | 0.6428 | 0.6855 |
| Tuned cardinality | 15 | 106.9 | 0.6648 | 0.6908 |
| Endogenous stopping | 18.6 | 1671.6 | 0.6682 | 0.6961 |
the lexicographic reward reduced the variance between runs relative to the tuned-cardinality configuration. The tuned-cardinality configuration is faster and reaches a similar ensemble (mean 0.6648, vs. Lasso via one-sample -test), though its worst run drops to 0.519. Endogenous stopping reaches a mean of 0.6682 ( vs. Lasso), and even its worst run (0.650, Table 3) beats Lasso.
Most of the additional search time for the endogenous-stopping configuration (1671.6 seconds, versus <1s for Lasso) appears to come from the level-1 patience hyperparameter, which controls exploration at the root of the search, rather than from the stopping mechanism itself. The results therefore illustrate a trade-off between computational cost, subset size, and variation across runs: a single endogenous-stopping run gives a sparse model (18.6 features on average) that already outperforms Lasso, while combining runs into an ensemble by soft voting gives the highest out-of-sample (0.6961) at the cost of a larger combined feature set (59 variables).
4.3 Implementation Details and Hyperparameter Optimization
Hyperparameter tuning was conducted with the Optuna framework [1]; optimal values for all three configurations are reported in Table 2. Optuna budgets were 15, 50, and 20 trials for the fixed-, tuned-, and endogenous-stopping configurations respectively, corresponding to total hyperparameter-search wall-clock times of 0.41, 4.08, and 11.27 hours on a 16-core workstation (in addition to the ensemble-building time in Table 1). The optimal hyperparameters differed across configurations: the fixed-cardinality configuration required a higher temperature () for broader exploration, while the tuned-cardinality configuration favored more exploitation (). For the endogenous-stopping configuration, the training window itself was included in the search space, unlike the other two configurations, where it is fixed to the window selected by the Lasso baseline (Section 4.1). This configuration converged to a shorter 1,000-day trailing period, with a two-level learning rate: small at the root () and larger at deeper levels ().
To improve the reliability of the results, we used an ensemble of independent runs. Runs were executed in batches of six and combined by averaging (soft voting). The ensemble was extended until the aggregate validation stabilized (change below 0.01 across two consecutive batches). Because Lasso and Elastic Net are deterministic given a fixed regularization strength, they admit no equivalent notion of an ensemble. Consequently, Table 1 compares these single models against both the expected performance of a single stochastic-search run and the combined soft-voted ensemble. Table 3 reports the full ensemble statistics and the number of unique features selected globally.
4.4 Interpretability and Ensemble Stability
Interpretability is an important property for financial models. As the Elastic Net results suggest, convex penalties can struggle to preserve interactions between variables because they penalize the size of the coefficients. Because selection limits only the number of features and applies no shrinkage, OLS can assign large, opposing weights to correlated variables to construct spread signals.
To check this intuition, we inspected the best-performing individual run from the tuned-cardinality ensemble (15 features, OOS ). We highlight this specific run qualitatively to illustrate the underlying mechanism, not as our headline result; treating a post hoc “best draw” as the primary metric conflates expected performance with selection bias. Consequently, the ensemble-averaged in Table 1 remains our primary evaluation metric throughout this paper, reflecting the reliable performance an independent user can expect. Figure 2 and Table 4 show that this subset forms an interpretable distributed-lag model spanning several economic mechanisms.
The selected variables suggest economic mechanisms that continuous penalties may attenuate. (1) Volatility spread construction: The subset pairs the rolling mean with a longer lag consistent with capturing short-term volatility persistence and mean reversion. Continuous penalties shrink these opposing coefficients, which can attenuate the pattern, whereas unshrunk OLS preserves it. (2) Credit spreads: The daily change in the High Yield spread is selected alongside its first three lags. All four coefficients are negative and similarly sized (), capturing a cumulative drag where credit spread changes affect returns over consecutive days. (3) Factor exposures: The Conservative-Minus-Aggressive factor is included alongside its one-day lag (). The search retains both, with the lag appearing to act as a temporal smoothing term.
To reduce the variance of the stochastic search, we averaged the predictions of the independent OLS regressions (soft voting). Unlike a tree-based ensemble, the average of linear regressions is itself a single linear equation:
which preserves linear performance attribution. The endogenous-stopping ensemble used 59 unique variables in total out of the 1,072 candidate features, fewer than the 74 unique features used by the tuned-cardinality ensemble, even though its individual runs selected slightly larger subsets. This suggests that endogenous stopping leads independent runs to converge on a more consistent set of features, yielding an out-of-sample of 0.6961. Future work could formalize this consistency using stability selection metrics, such as selection frequency and inter-run Jaccard similarity [28].
Table 2: Optimal hyperparameters per configuration, selected via Optuna on pre-2024 data only.
| Hyperparameter | Fixed card. | Tuned card. | Endogenous stopping |
|---|---|---|---|
| Training window (days) | 1,890 (from Lasso CV) | 1,890 (from Lasso CV) | 1,000 (GNRPA-tuned) |
| Target features | 60 (fixed) | 15 | endogenous (mean 18.6) |
| Redundancy metric | mean | rms | top-3-rms |
| Trade-off | 0.666 | 0.772 | 0.811 |
| Magnitude | 24.82 | 14.97 | 13.72 |
| Stop gravity | - | - | 0.909 |
| Temperature | 1.520 | 0.868 | 1.515 |
| Learning rates () | 1.514 (global) | 2.003 (global) | 0.177, 2.212 |
| Tree iters. () | var. | ||
| Level-1 patience | - | - | 63 |
| Best CV validation | 0.7089 | 0.7491 | 0.7607 |
Table 3: Ensemble diagnostics (soft-voted average of independent runs).
| Model | Runs | Ens. build time (s) | Val | Indiv. OOS (, range) | Global feat. |
|---|---|---|---|---|---|
| Fixed cardinality | 18 | 166 | 0.702 | 0.643 ± 0.030 [0.575, 0.686] | 341 |
| Tuned cardinality | 18 | 343 | 0.723 | 0.665 ± 0.039 [0.519, 0.698] | 74 |
| Endogenous stopping | 12 | 2127 | 0.755 | 0.668 ± 0.009 [0.650, 0.682] | 59 |
Table 4: Composition of the 15-feature subset analyzed above
| Selected Feature | Coefficient () |
|---|---|
| Volatility Metrics | |
| +0.0513 | |
| -0.0621 | |
| +0.0109 | |
| -0.0095 | |
| -0.0043 | |
| -0.0023 | |
| Credit Stress | |
| -0.0044 | |
| -0.0052 | |
| -0.0046 | |
| -0.0041 | |
| Factor Exposures | |
| -0.0056 | |
| +0.0005 | |
| -0.0080 | |
| +0.0024 | |
| +0.0014 | |

Figure 2: Correlation matrix of the best performing individual 15-feature GNRPA subset.
Cameron Mouangue and Tristan Cazenave
5 Discussion and Conclusion
This paper presents a feature selection framework, based on reinforcement learning, for high-dimensional financial regression. By formulating validation-guided subset selection as a sequential Markov Decision Process, the approach avoids the shrinkage bias of convex regularization methods such as Lasso, while retaining the interpretability of linear models [14, 33].
The contributions of this study are threefold. First, it introduces an adaptive search framework that optimizes discrete subsets for out-of-sample performance, avoiding convex shrinkage. Second, it demonstrates that Monte Carlo Tree Search readily accommodates domain-specific feature selection objectives, using the maximum Variance Inflation Factor to favor subsets with lower internal multicollinearity when explanatory performance is similar. Third, it shows that the method finds sparse, interpretable feature subsets that outperform the convex baselines out of sample on this dataset, and that a linear ensemble of these subsets reaches an out-of-sample while preserving additive performance attribution.
The improved out-of-sample fit comes at a higher computational cost and tuning burden than convex baselines, though reported Python runtimes on a single workstation are conservative and could be reduced via compiled languages, parallelized ensembles, and ablating the root-level patience parameter P.
Finally, while our evaluation uses a single index and out-of-sample window (January 2024–March 2026), the consistent validation and test gains over convex baselines support the method's efficacy. Extending this benchmark across rolling test windows, additional asset classes, and non-convex penalties (e.g., SCAD, MCP) remains an important direction for future work.
A natural extension of this work is applying MCTS to other combinatorial problems in finance, such as cardinality-constrained index tracking . Unlike traditional metaheuristics such as genetic algorithms or simulated annealing , which mutate complete candidate solutions, GNRPA builds a solution incrementally and adapts its policy during the search. Comparing these approaches under long-only and fully-invested portfolio constraints would help clarify the practical value of reinforcement learning for this class of problem in quantitative finance.
References
[1] Takuya Akiba, Shotaro Sano, Toshihiko Yanase, Takeru Ohta, and Masanori Koyama. 2019. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD international conference. 2623–2631.
[2] David A Belsley, Edwin Kuh, and Roy E Welsch. 1980. Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. John Wiley & Sons.
[3] Yoshua Bengio, Andrea Lodi, and Antoine Prouvost. 2021. Machine learning for combinatorial optimization: a methodological tour d'horizon. European Journal of Operational Research 290, 2 (2021), 405–421.
[4] Dimitris Bertsimas, Angela King, and Rahul Mazumder. 2016. Best subset selection via a modern optimization lens. The annals of statistics 44, 2 (2016), 813–852.
[5] Fischer Black. 1976. Studies of stock price volatility changes. In Proceedings of the 1976 Meetings of the American Statistical Association. 177–181.
[6] Cameron B Browne, Edward Powley, et al. 2012. A survey of monte carlo tree search methods. IEEE Transactions on Computational Intelligence and AI in games 4, 1 (2012), 1–43.
[7] Mark M Carhart. 1997. On persistence in mutual fund performance. The Journal of finance 52, 1 (1997), 57–82.
[8] Tristan Cazenave. 2017. Nested rollout policy adaptation with selective policies. In Computer Games: 5th Workshop. Springer, 44–56.
[9] Tristan Cazenave. 2020. Generalized nested rollout policy adaptation. In Monte Carlo Search–First Workshop, MCS 2020. Springer, 71–83.
[10] Tristan Cazenave. 2026. The Montparnasse Algorithm for RNA Design. arXiv preprint arXiv:2606.07562 (2026).
[11] Tsung-Juing Chang, Nigel Meade, John E Beasley, and YM Sharaiha. 2000. Heuristics for cardinality constrained portfolio optimisation. Computers & Operations Research 27, 13 (2000), 1271–1302.
[12] Alex Chinco, Adam D Clark-Joseph, and Mao Ye. 2019. Sparse signals in the cross-section of returns. The Journal of Finance 74, 1 (2019), 449–492.
[13] Rémi Coulom. 2006. Efficient selectivity and backup operators in Monte-Carlo tree search. In International conference on computers and games. Springer, 72–83.
[14] Marcos Lopez De Prado. 2018. Advances in financial machine learning. John Wiley & Sons.
[15] Eugene F Fama and Kenneth R French. 2015. A five-factor asset pricing model. Journal of financial economics 116, 1 (2015), 1–22.
[16] Björn Fastrich, Sandra Paterlini, and Peter Winker. 2015. Constructing optimal sparse portfolios using regularization methods. Computational Management Science 12, 3 (2015), 417–434.
[17] Guanhao Feng, Stefano Giglio, and Dacheng Xiu. 2020. Taming the factor zoo: A test of new factors. The Journal of Finance 75, 5 (2020), 2227–2270.
[18] Joachim Freyberger, Andreas Neuhierl, and Michael Weber. 2020. Dissecting characteristics nonparametrically. The Review of Financial Studies 33, 5 (2020), 2326–2377.
[19] Shihao Gu, Bryan Kelly, and Dacheng Xiu. 2020. Empirical asset pricing via machine learning. The Review of Financial Studies 33, 5 (2020), 2223–2273.
[20] Charles R Harris et al. 2020. Array programming with NumPy. Nature 585, 7825 (2020), 357–362.
[21] Trevor Hastie, Robert Tibshirani, and Jerome Friedman. 2009. The Elements of Statistical Learning: Data Mining, Inference, and Prediction (2nd ed.). Springer Science & Business Media.
[22] Hussein Hazimeh and Rahul Mazumder. 2020. Fast best subset selection: Coordinate descent and local combinatorial optimization algorithms. Operations Research 68, 5 (2020), 1517–1537.
[23] Arthur E Hoerl and Robert W Kennard. 1970. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics 12, 1 (1970), 55–67.
[24] Levente Kocsis and Csaba Szepesvári. 2006. Bandit based monte-carlo planning. In European conference on machine learning. Springer, 282–293.
[25] Serhiy Kozak, Stefan Nagel, and Shrihari Santosh. 2020. Shrinking the cross-section of premiums. Journal of Financial Economics 135, 2 (2020), 271–292.
[26] Ismael Lemhadri, Feng Ruan, Louis Abraham, and Robert Tibshirani. 2021. LassoNet: A Neural Network with Feature Sparsity. Journal of Machine Learning Research 22, 127 (2021), 1–29.
[27] Bryan Lim, Sercan Ö Arık, Nicolas Loeff, and Tomas Pfister. 2021. Temporal Fusion Transformers for interpretable multi-horizon time series forecasting. International Journal of Forecasting 37, 4 (2021), 1748–1764.
[28] Nicolai Meinshausen and Peter Bühlmann. 2010. Stability selection. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 72, 4 (2010), 417–473.
[29] Fabian Pedregosa, Gaël Varoquaux, et al. 2011. Scikit-learn: Machine learning in Python. the Journal of machine Learning research 12 (2011), 2825–2830.
[30] Hanchuan Peng, Fuhui Long, and Chris Ding. 2005. Feature selection based on mutual information criteria of max-dependency, max-relevance, and min-redundancy. IEEE Transactions on pattern analysis and machine intelligence 27, 8 (2005), 1226–1238.
[31] Martin L Puterman. 1994. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons.
[32] Christopher D Rosin. 2011. Nested rollout policy adaptation for Monte Carlo tree search. In IJCAI, Vol. 11. 649–654.
[33] Cynthia Rudin. 2019. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence 1, 5 (2019), 206–215.
[34] David Silver, Aja Huang, et al. 2016. Mastering the game of Go with deep neural networks and tree search. nature 529, 7587 (2016), 484–489.
[35] James E Smith and Robert L Winkler. 2006. The optimizer's curse: Skepticism and postdecision surprise in decision analysis. Management Science 52, 3 (2006), 311–322.
[36] Robert Tibshirani. 1996. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological) 58, 1 (1996), 267–288.
[37] Hui Zou and Trevor Hastie. 2005. Regularization and variable selection via the elastic net. Journal of the royal statistical society: series B (statistical methodology) 67, 2 (2005), 301–320.