Optimal Portfolio Construction — A Reinforcement Learning Embedded Bayesian Hierarchical Risk Parity (RL-BHRP) Approach
In brief
The problem. Choosing a portfolio from forecasts of returns is fragile, because the forecasts are noisy, while risk parity, which gives every holding the same share of the risk, is steadier but ignores expected returns altogether.
The idea. RL-BHRP lets a learned policy decide each month how much goes to each of 11 sectors and to each stock inside them, rewarding the month’s return after trading costs and charging for risk shares that stray from equal among stocks and among sectors.
What happened. On one test — 48 large US stocks, February 2020 to August 2025, a period kept out of the model’s design — $1 grew to $2.20, against $2.01 for BHRP (Bayesian hierarchical risk parity, the paper’s static model) and $1.91 for an equal-weight mix of 11 sector funds.
The catch. The edge over BHRP, about 1.8 percentage points a year, came with more volatility and, by the paper’s count, a deeper worst fall, rests on one path through one market, and has not been tested against chance.
Abstract · in the paper’s own words
We propose a two-level, learning-based portfolio method (RL-BHRP) that spreads risk across sectors and stocks, and adjusts exposures as market conditions change. Using U.S. Equities from 2012 to mid-2025, we design the model using 2012 to 2019 data, and evaluate it out-of-sample from 2020 to 2025 against a sector index built from exchange-traded funds and a static risk-balanced portfolio. Over the test window, the adaptive portfolio compounds wealth by approximately 120 percent, compared with 101 percent for the static comparator and 91 percent for the sector benchmark. The average annual growth is roughly 15 percent, compared to 13 percent and 12 percent, respectively. Gains are achieved without significant deviations from the benchmark and with peak-to-trough losses comparable to those of the alternatives, indicating that the method adds value while remaining diversified and investable. Weight charts show gradual shifts rather than abrupt swings, reflecting disciplined rebalancing and the cost-aware design. Overall, the results support risk-balanced, adaptive allocation as a practical approach to achieving stronger and more stable long-term performance.
Three phrases in it need the table beside them (Table 1 below, which is the paper’s Table 2). The “comparable” drawdown is RL-BHRP’s fall of 20.33%, the deepest of the three by the paper’s count. The “more stable” performance swung more than BHRP’s and about as much as the benchmark’s. And the paper runs no test that would support “adds value” (paper §5.5).
Notation
The page keeps the paper’s symbols and defines each where it first appears; this table is for looking back. Equation numbers are the paper’s, and its (1), the sectors’ covariance matrix, is in the note beside (2).
| Symbol | Meaning |
|---|---|
| The number of stocks and of sectors: 48 and 11 in the test. | |
| Stock , one of the stocks in sector . is the sector stock belongs to. | |
| The portfolio: is the fraction of the money in stock . Weights are never negative and add up to 1 (long-only and fully invested). | |
| Sector weight: the fraction of the money in sector . | |
| Within-sector weight: the fraction of sector ’s money that goes to stock . is sector ’s whole set of them. | |
| The stocks’ returns over month . | |
| The Bayesian layer’s estimate of stock ’s average return, pulled toward its sector’s. | |
| The covariance matrix of returns: variances on the diagonal, co-movements off it. is the estimate made at month-end ; is the block of for the stocks of sectors and . | |
| The covariance matrix of the sectors, each sector held at its inside weights . | |
| The variance of the portfolio’s return, : the measure of risk that everything here balances. | |
| The risk contribution of stock , and of sector : its share of . | |
| Trading cost per unit of turnover: 5 basis points, or 0.05% of every dollar traded, in the test. | |
| How unequal the risk contributions are: across all 48 stocks (as the paper defines it, not within each sector), among the 11 sectors. Each is zero when its contributions are equal; with sectors of different sizes the two cannot both be zero (see the note after (4)). | |
| How heavily the reward charges for unequal risk, and how that charge is split between the two terms. The paper does not report either value. | |
| The reward for month : the return, less costs, less the charge for unequal risk. | |
| The policy’s parameters, which PPO adjusts. |
1The question
How should money be divided among stocks when the one input everyone wants — how much each will return — is the one nobody can estimate well?
The textbook answer is mean–variance allocation (Markowitz, 1952): choose the weights with the best trade-off between expected return and risk. In its simplest form the solution multiplies the expected returns by the inverse of the covariance matrix, which magnifies small errors in either and pushes the weights to extremes, an effect sometimes called “error maximization” (paper §1).
Risk-based methods leave the forecasts out. Risk parity (Maillard et al., 2008) chooses weights so that each holding contributes the same share of risk, which needs only the covariance matrix. Hierarchical risk parity (López de Prado, 2016) splits risk down a tree, between groups and then within them, and so never inverts the full matrix. Bayesian hierarchical models let a stock with little data lean on its sector’s average (Feng and He, 2022), and risk parity has been used as the starting allocation that a Bayesian model then revises with an investor’s views (Cooper et al., 2020).
What these leave out is any view of returns: risk parity treats expected returns as noise, which, the paper argues, leaves performance on the table when markets shift (paper §2). Reinforcement-learning allocators do respond to markets, but without explicit risk budgets — a target share of risk for each holding, which risk parity sets equal — they tend to concentrate and trade heavily. An earlier combination puts a learning agent over hierarchical risk parity, but only lets it switch between twelve precomputed portfolios and cash (Millea and Edalat, 2022).
The paper combines the pieces. Its static model, BHRP, applies risk parity at two levels — equal risk across the 11 sectors, and equal risk among the stocks inside each — using a shrunk estimate of the covariance matrix. RL-BHRP replaces that fixed rule with a policy that chooses both levels of weights every month and is charged for trading costs and for unequal risk. The policy is, in effect, a view on returns; the charge for unequal risk is what is meant to keep it from drifting to mean–variance’s extreme weights. The question is whether that freedom adds return while the charge keeps the risk from bunching up in a few stocks or sectors.
2Method
RL-BHRP has three layers: estimate, balance, and learn. Each month-end a Bayesian layer turns past returns into estimates; risk parity, applied to stocks and to sectors, defines what balanced risk means; and a policy chooses the actual weights. The policy may choose any weights, but every month it pays for letting risk drift away from equal shares.
Estimates. At each month-end the Bayesian layer does two things. It estimates each stock’s average return and pulls it toward its sector’s average, harder when the stock’s own history is erratic — Bayesian shrinkage, under a three-level normal model of returns (market, sector, stock) in which how far each level may stray from the one above is fixed in advance (paper Defs. 3.1.3–3.1.6, §5.2). And it estimates the covariance matrix with Ledoit–Wolf shrinkage (Ledoit and Wolf, 2004).
Two levels of weights. A portfolio is described by its weights: the fraction of the money in each stock, never negative, adding up to one. RL-BHRP writes each stock’s weight as two choices multiplied together — how much goes to its sector, and how much of the sector’s money goes to that stock:
where is the share of the money in stock ’s sector and is the share of that sector’s money in stock .
Risk contributions. Risk here means the variance of the portfolio’s return, . To balance it, the paper needs to say how much of it each stock is responsible for:
where , the -th entry of , is the covariance of stock ’s return with the portfolio’s, and is the stock’s risk contribution (Def. 3.1.10). A sector’s contribution is the sum over its stocks.
The contributions add up exactly to the portfolio’s variance (a lemma in the paper’s §3.1.10):
That identity is what makes “equal risk” a precise target. Flat risk parity asks each of the stocks to carry of the variance; BHRP asks each of the 11 sectors to carry an equal share, and each stock within a sector an equal part of its sector’s.
Theorem 3.1.11 (two-level variance and sector risk decomposition). In words first:
Fix how each sector divides its money among its own stocks. Then each sector behaves like a single asset — a fund made of its stocks — and the portfolio’s variance, and each sector’s risk contribution, are exactly those of an ordinary 11-asset portfolio of these funds. So once each sector’s inside weights are fixed, balancing risk across sectors is ordinary risk parity on 11 assets.
In symbols, with the final weights built from and as above,
and, for each sector ,
where is the sectors’ covariance matrix and the -th entry of . Equation (3) has the same form as a single asset’s risk contribution in a -asset portfolio, and that is the paper’s corollary to the theorem: equal sector risk is flat risk parity on . The proof is two lines of block-matrix algebra.
BHRP. A fixed rule, applied at each month-end to the latest : the portfolio at which both conditions hold at once — equal risk across sectors, and equal risk among the stocks inside each. The paper finds it by alternating the two steps until neither moves (Alg. 1–2), and it is the comparator in the results. Despite the name, its weights use only , which the paper calls the posterior covariance but computes by Ledoit–Wolf, so the Bayesian means reach only the policy.
The learning layer. Each month the policy sees recent returns, the Bayesian estimates and its own previous weights, and chooses and . After the month it is scored:
where is the portfolio’s return over the month; is the trading cost, per unit of turnover; and the bracket measures how unequal the risk contributions are — across all 48 stocks, among the 11 sectors, both computed from , the covariance estimate at month-end , and each zero exactly when its contributions are equal (Def. 3.2.3) — weighted by , with splitting the charge between the two.
A catch in the definition. As written (Def. 3.2.3), compares each stock with the average over all 48 stocks, not over its own sector as the paper’s Alg. 1 does. With sectors of 2 to 10 stocks the two terms cannot both be zero: equal risk per stock gives the 10 technology stocks 21% of the risk, equal risk per sector gives them 9%. So the charge pulls toward a compromise that sets, not toward BHRP, and BHRP itself would be charged. The reproduction tried both readings; for its main policy design the results barely differ (average growth of 14.55% and 14.54% a year).
The policy outputs a score for each sector and for each stock within it, and a softmax turns each set of scores into weights, so whatever it outputs is a valid portfolio (paper §3.2.4). It is trained by proximal policy optimization (PPO; Schulman et al., 2017) on 2012–2019 data and is not retrained during the test (Alg. 4, paper §5.4). That is at most 96 monthly decisions to learn from (fewer if the first years go to the estimates’ rolling window), replayed in every training iteration; the paper gives no network size, iteration count or number of training runs.
In the paper: the Bayesian update is Alg. 3; the sectors’ covariance is Def. 3.1.9, eq. (1); the within-sector equal-risk condition follows Theorem 3.1.11; the two penalty terms are Def. 3.2.3; the softmax policy and its feasibility are §3.2.4–3.2.5; training is Alg. 4.
3Results
The test asks what would have happened to money run by each rule over the 5.6 years the model never saw.
$1 invested at the start of February 2020 grew to $2.20 under RL-BHRP by mid-August 2025, against $2.01 under BHRP and $1.91 under the benchmark. BHRP is the paper’s static two-level risk parity; the benchmark is a simple, investable yardstick — equal amounts in the 11 SPDR sector ETFs, exchange-traded funds that each hold one sector. It is not the whole market: it gives every sector the same money whatever the sector’s size, and the paper makes no comparison with the market as a whole. The test is one out-of-sample path of 67 monthly returns on 48 large US stocks across 11 sectors, rebalanced at each month-end, through a window that takes in the 2020 crash and the 2022 sell-off. RL-BHRP pays 5 basis points on every dollar it trades; the benchmark pays no trading costs, and the paper does not say what BHRP pays.
As a steady yearly rate — the compound annual growth rate, or CAGR — that is 15.16% for RL-BHRP, 13.36% for BHRP and 12.33% for the benchmark. RL-BHRP’s edge over BHRP is about 1.8 percentage points a year, and over the benchmark about 2.8.
| Date | RL-BHRP, median of 10 runs | Lowest of the runs | Highest of the runs | BHRP | Benchmark |
|---|---|---|---|---|---|
| Start of February 2020 | $1.00 | $1.00 | $1.00 | $1.00 | $1.00 |
| End of February 2020 | $0.92 | $0.92 | $0.92 | $0.92 | $0.91 |
| End of March 2020 | $0.80 | $0.79 | $0.80 | $0.79 | $0.78 |
| End of April 2020 | $0.89 | $0.88 | $0.89 | $0.88 | $0.88 |
| End of May 2020 | $0.92 | $0.91 | $0.93 | $0.92 | $0.92 |
| End of June 2020 | $0.93 | $0.92 | $0.94 | $0.93 | $0.93 |
| End of July 2020 | $0.97 | $0.96 | $0.98 | $0.97 | $0.97 |
| End of August 2020 | $1.02 | $1.00 | $1.03 | $1.01 | $1.02 |
| End of September 2020 | $0.99 | $0.98 | $1.00 | $0.99 | $0.99 |
| End of October 2020 | $0.97 | $0.95 | $0.97 | $0.96 | $0.97 |
| End of November 2020 | $1.08 | $1.07 | $1.09 | $1.07 | $1.08 |
| End of December 2020 | $1.11 | $1.10 | $1.12 | $1.10 | $1.11 |
| End of January 2021 | $1.10 | $1.09 | $1.11 | $1.09 | $1.10 |
| End of February 2021 | $1.14 | $1.12 | $1.15 | $1.12 | $1.15 |
| End of March 2021 | $1.22 | $1.21 | $1.23 | $1.20 | $1.22 |
| End of April 2021 | $1.27 | $1.26 | $1.28 | $1.25 | $1.27 |
| End of May 2021 | $1.29 | $1.28 | $1.31 | $1.26 | $1.30 |
| End of June 2021 | $1.31 | $1.30 | $1.32 | $1.28 | $1.31 |
| End of July 2021 | $1.34 | $1.33 | $1.35 | $1.31 | $1.33 |
| End of August 2021 | $1.36 | $1.34 | $1.37 | $1.33 | $1.36 |
| End of September 2021 | $1.31 | $1.30 | $1.33 | $1.28 | $1.31 |
| End of October 2021 | $1.41 | $1.39 | $1.43 | $1.38 | $1.39 |
| End of November 2021 | $1.40 | $1.38 | $1.42 | $1.36 | $1.36 |
| End of December 2021 | $1.48 | $1.46 | $1.50 | $1.45 | $1.45 |
| End of January 2022 | $1.45 | $1.44 | $1.46 | $1.42 | $1.40 |
| End of February 2022 | $1.39 | $1.38 | $1.40 | $1.36 | $1.37 |
| End of March 2022 | $1.45 | $1.43 | $1.46 | $1.42 | $1.44 |
| End of April 2022 | $1.37 | $1.35 | $1.38 | $1.35 | $1.35 |
| End of May 2022 | $1.39 | $1.38 | $1.40 | $1.37 | $1.36 |
| End of June 2022 | $1.28 | $1.27 | $1.29 | $1.27 | $1.24 |
| End of July 2022 | $1.38 | $1.36 | $1.39 | $1.36 | $1.34 |
| End of August 2022 | $1.32 | $1.31 | $1.33 | $1.30 | $1.30 |
| End of September 2022 | $1.19 | $1.18 | $1.20 | $1.17 | $1.18 |
| End of October 2022 | $1.32 | $1.30 | $1.33 | $1.29 | $1.28 |
| End of November 2022 | $1.42 | $1.40 | $1.44 | $1.39 | $1.36 |
| End of December 2022 | $1.39 | $1.37 | $1.40 | $1.36 | $1.29 |
| End of January 2023 | $1.46 | $1.44 | $1.47 | $1.42 | $1.37 |
| End of February 2023 | $1.40 | $1.38 | $1.42 | $1.36 | $1.32 |
| End of March 2023 | $1.44 | $1.43 | $1.46 | $1.41 | $1.35 |
| End of April 2023 | $1.48 | $1.46 | $1.49 | $1.44 | $1.37 |
| End of May 2023 | $1.44 | $1.42 | $1.45 | $1.39 | $1.33 |
| End of June 2023 | $1.52 | $1.50 | $1.53 | $1.46 | $1.42 |
| End of July 2023 | $1.57 | $1.54 | $1.58 | $1.51 | $1.47 |
| End of August 2023 | $1.55 | $1.53 | $1.57 | $1.49 | $1.44 |
| End of September 2023 | $1.49 | $1.47 | $1.51 | $1.43 | $1.38 |
| End of October 2023 | $1.46 | $1.44 | $1.47 | $1.40 | $1.34 |
| End of November 2023 | $1.57 | $1.54 | $1.58 | $1.50 | $1.45 |
| End of December 2023 | $1.64 | $1.61 | $1.66 | $1.57 | $1.51 |
| End of January 2024 | $1.66 | $1.63 | $1.68 | $1.58 | $1.51 |
| End of February 2024 | $1.73 | $1.70 | $1.75 | $1.63 | $1.57 |
| End of March 2024 | $1.79 | $1.77 | $1.82 | $1.70 | $1.63 |
| End of April 2024 | $1.73 | $1.70 | $1.75 | $1.65 | $1.57 |
| End of May 2024 | $1.80 | $1.78 | $1.82 | $1.72 | $1.63 |
| End of June 2024 | $1.83 | $1.80 | $1.85 | $1.73 | $1.64 |
| End of July 2024 | $1.89 | $1.86 | $1.91 | $1.79 | $1.70 |
| End of August 2024 | $1.94 | $1.91 | $1.96 | $1.85 | $1.74 |
| End of September 2024 | $1.98 | $1.95 | $2.01 | $1.88 | $1.78 |
| End of October 2024 | $1.95 | $1.92 | $1.98 | $1.86 | $1.76 |
| End of November 2024 | $2.03 | $2.00 | $2.06 | $1.93 | $1.86 |
| End of December 2024 | $1.93 | $1.90 | $1.96 | $1.83 | $1.76 |
| End of January 2025 | $2.03 | $2.00 | $2.06 | $1.92 | $1.82 |
| End of February 2025 | $2.07 | $2.04 | $2.10 | $1.97 | $1.83 |
| End of March 2025 | $2.00 | $1.97 | $2.02 | $1.92 | $1.78 |
| End of April 2025 | $1.93 | $1.90 | $1.95 | $1.84 | $1.74 |
| End of May 2025 | $1.99 | $1.96 | $2.02 | $1.89 | $1.81 |
| End of June 2025 | $2.06 | $2.03 | $2.09 | $1.94 | $1.86 |
| End of July 2025 | $2.08 | $2.04 | $2.11 | $1.96 | $1.88 |
| 13 August 2025, where the data end | $2.13 | $2.10 | $2.17 | $2.01 | $1.91 |
results/shared-global.Against BHRP, the extra return came with extra risk. RL-BHRP was more volatile than BHRP — 17.37% a year against 16.52% — and about as volatile as the benchmark, at 17.28%. By the paper’s count it also had the deepest maximum drawdown, a fall of 20.33% from its peak, against 19.10% for BHRP and 18.32% for the benchmark. Those falls are measured from the first month-end, so they leave out February 2020, the first month of the COVID crash. Counted from the start, in the reproduction’s matching series, BHRP’s deepens to 20.53% and the benchmark’s to 21.93%; RL-BHRP’s own cannot be recounted, because the paper does not release its monthly series, so for the paper’s run the order on that count is not known. The reproduction is the one place all three are counted from the start, and there the median of its runs (Figure 2’s red line) falls 20.45%, less than BHRP’s 20.53%, while the runs themselves fall on both sides of BHRP’s, from 19.95% to 20.83%. Per unit of risk RL-BHRP still comes out ahead, by margins the paper does not test: its Sharpe ratio is 0.90, against 0.85 and 0.76, and its growth per unit of worst fall (the Calmar ratio) is the highest, 0.75. Table 1 gives every row of the paper’s Table 2.
| Metric | RL-BHRP | BHRP | Benchmark |
|---|---|---|---|
| Periods | 67 | 67 | 67 |
| Start | 2020-02-29Feb 2020 | 2020-02-29Feb 2020 | 2020-02-29Feb 2020 |
| End | 2025-08-31Aug 2025 | 2025-08-31Aug 2025 | 2025-08-31Aug 2025 |
| Total cumulative return (%) | 119.96 | 101.37 | 91.41 |
| CAGR, geometric annualised (%) | 15.16 | 13.36 | 12.33 |
| Annual return, mean × 12 (%) | 15.72 | 13.97 | 13.19 |
| Annual volatility (%) | 17.37 | 16.52 | 17.28 |
| Sharpe ratio | 0.90 | 0.85 | 0.76 |
| Sortino ratio | 1.65 | 1.53 | 1.37 |
| Maximum drawdown (%) | −20.33 | −19.10 | −18.32 |
| Calmar ratio | 0.75 | 0.70 | 0.67 |
| Tracking error (%) | 3.69 | 3.58 | 0.00 |
| Information ratio | 0.69 | 0.22 | —a |
| Beta | 0.98 | 0.94 | 1.00 |
| Jensen alpha (%) | 2.76 | 1.64 | 0.00 |
| VaR 5%, one period (%) | −7.41 | −6.72 | −8.00 |
| CVaR 5%, one period (%) | −10.24 | −9.70 | −10.34 |
| Hit rate, months above 0 (%) | 64.18 | 64.18 | 62.69 |
Source: Table 2 of arXiv:2508.11856v1, rounded to two decimals. 67 monthly periods, 2020-02-29 to 2025-08-31; the last month is partial (daily data end 2025-08-13); annualised over 12 periods. The benchmark is an equal-weight portfolio of the 11 SPDR sector ETFs, rebalanced monthly. Costs: RL-BHRP pays 5 bps one-way on turnover; the benchmark pays no trading costs; the paper does not state BHRP’s cost basis. Conventions, which the paper does not state and the reproduction recovered from the benchmark column: rf = 0; population standard deviations; drawdown measured from the first month-end, so February 2020’s loss is not counted; Sortino’s denominator is std(min(r, 0)).
a Undefined: the benchmark’s tracking error against itself is zero. The paper prints NaN.
Is it luck? All of this is one path through one market. Neither gap has been shown to be more than chance. Against the benchmark, RL-BHRP’s information ratio of 0.69 over 5.6 years corresponds to a t-statistic of about 1.6, short of the 1.96 a conventional test at the 5% level asks for. The gap to BHRP cannot be tested from the paper’s table at all, because a test needs the two monthly return series side by side, and the paper runs no formal test of either difference (paper §5.5).
Costs. In the paper’s run RL-BHRP trades a good deal: its turnover averaged 0.60 a month, buys and sells together worth 60% of the portfolio (95th percentile 0.85; paper §4.2). At 5 bps per dollar traded that is about 3 bps a month, roughly 0.36 percentage points a year, already in its 15.16%, since its returns carry the cost model (paper §4.1). BHRP trades far less — 0.014 a month in the reproduction — so whether or not it pays costs moves its return by about 0.008 points a year.
Concentration. The 15 names with the largest average weight held about half the money (0.50 on average, range 0.40–0.61; paper §4.2). For scale, any 15 of the 48 at equal weights would hold 31%, and in the reproduction BHRP’s own top 15 hold 51%.
Balance. Neither the paper nor this page measures how close to equal the risk contributions stayed, so the second half of the question — whether the charge kept the risk from bunching up — is not answered here.
4What it implies, and where it stops
The paper offers a design and one test of it.
The design’s point is that learning need not replace a risk model. The policy is free to choose any weights, but the charge in (4) prices its departures from a target risk managers already understand, equal shares of risk — which the paper offers as an answer to the usual complaint that reinforcement learning in finance is a black box (paper §6). And Theorem 3.1.11 turns each sector step into an ordinary 11-asset risk-parity problem, so standard solvers and intuition carry over, though the paper does not prove that alternating the two steps has a solution, that the solution is unique, or that the steps converge (paper §5.6).
Whether the learning reliably adds return is a separate question, and one path cannot settle it. Most of the limits below are the paper’s own (paper §5); where one is this page’s reading, it says so.
-
The stocks. The paper notes that Yahoo Finance, its price source, can omit delisted companies (paper §5.1). Separately, and this is this page’s reading rather than the paper’s: the paper’s 48 names, listed in its sector map, are one fixed list, all still listed and large in 2025, and the paper does not say when they were chosen. It holds that its screen, set in advance each quarter, avoids look-ahead (paper §4, §6), but a fixed list can still leave out firms that failed along the way. Both are forms of survivorship bias. The benchmark is the only one of the three not drawn from that list, so the gap to it is the number most exposed. A policy that follows returns may also lean into the list’s later winners more than BHRP does.
-
One split. One training period, 2012–2019, and one test period, 2020–2025, with no repeated tests over other windows (paper §5.5).
-
Costs. A flat 5 bps per dollar traded: no allowance for the price moving against a large trade and no test at higher costs (paper §5.3, §5.5), against a benchmark that pays nothing (paper §4.1).
-
The model of returns. Returns are modelled as normally distributed, though real returns have fat tails and volatility that comes in clusters, and how far each level of the model may stray from the one above is set by hand rather than learned (paper §5.2).
-
The learning. PPO is sensitive to how the reward is scaled and tuned, and it maximises expected return rather than guarding against losses (paper §5.4); it learns from at most 96 monthly decisions; the charge for unequal risk encourages equal contributions without guaranteeing them (paper §5.3), and neither the paper nor this page measures how close they came; and the policy is not retrained after 2019 (paper §5.4).
-
Unreported settings. The paper gives no values for , , the policy network or the number of training iterations, and the original run’s training seed has been lost (the second author’s note, in the reproduction), so the paper’s RL-BHRP column cannot be re-run exactly.
-
Proofs and tests. No statistical test of the performance differences (paper §5.5), and, as above, no proof about the two-level balancing procedure (paper §5.6).
-
The last month. The data end on 13 August 2025, so the final month is partial, which slightly perturbs the annual figures (paper §5.1).
What comes next (paper §5.7): repeat the test on survivorship-free, point-in-time data and wider universes; compare monthly, weekly and daily rebalancing with realistic trading costs; build fat-tailed, time-varying risk models into the hierarchy and pair them with learning objectives that care about losses; turn the balancing step into a layer the policy can be trained through, instead of a penalty; and release reproducible code with ablations and formal statistical tests.
Read the full paper
This page explains the paper; the paper is the full account — every definition, proof and algorithm, and the weight figures (the paper’s Figs. 2–3) left out here.
- arXiv:2508.11856the abstract page and every version
- PDFversion 1, submitted 16 August 2025
- Code (reproduction)IngTian/rl-bhrp — the second author’s reproduction, rebuilt from the paper
References
Five of the six works in the paper’s bibliography (the sixth, a work by Ninsin listed with no venue or year, is not drawn on here), plus three it names in its text without citing.
- [1]Harry Markowitz. “Portfolio selection.” The Journal of Finance 7(1): 77–91, 1952. doi.org/10.1111/j.1540-6261.1952.tb01525.x Named in the paper (§1) but not in its bibliography; added here.
- [2]Sébastien Maillard, Thierry Roncalli and Jérôme Teïletche. “On the properties of equally-weighted risk contributions portfolios.” SSRN, 2008.
- [3]Marcos López de Prado. “Building diversified portfolios that outperform out-of-sample.” Journal of Portfolio Management, 2016.
- [4]Guanhao Feng and Jingyu He. “Factor investing: a Bayesian hierarchical approach.” Journal of Econometrics 230(1): 183–200, 2022.
- [5]Ricky Cooper, Marat Molyboga and Georgiy Molyboga. “Black-Litterman, exotic beta, and varying efficient portfolios: an integrated approach.” SSRN, 2020.
- [6]Adrian Millea and Abbas Edalat. “Using deep reinforcement learning with hierarchical risk parity for portfolio optimization.” International Journal of Financial Studies 11(1): 10, 2022.
- [7]Olivier Ledoit and Michael Wolf. “A well-conditioned estimator for large-dimensional covariance matrices.” Journal of Multivariate Analysis 88(2): 365–411, 2004. doi.org/10.1016/S0047-259X(03)00096-4 Named in the paper (Alg. 3) but not in its bibliography; added here.
- [8]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford and Oleg Klimov. “Proximal policy optimization algorithms.” arXiv:1707.06347, 2017. arxiv.org/abs/1707.06347 Named in the paper (Alg. 4) but not in its bibliography; added here.
Cite
Cited as: Shaofeng Kang and Zeying Tian. Optimal Portfolio Construction — A Reinforcement Learning Embedded Bayesian Hierarchical Risk Parity (RL-BHRP) Approach. arXiv:2508.11856v1 [q-fin.PM], 2025. doi:10.48550/arXiv.2508.11856
@misc{kang2025rlbhrp,
title = {Optimal Portfolio Construction -- A Reinforcement Learning Embedded Bayesian Hierarchical Risk Parity (RL-BHRP) Approach},
author = {Kang, Shaofeng and Tian, Zeying},
year = {2025},
eprint = {2508.11856},
archivePrefix = {arXiv},
primaryClass = {q-fin.PM},
url = {https://arxiv.org/abs/2508.11856}
} Corrections to v1, noted (arXiv lists v1 only)
§4.1 gives the test window as “Feb - 2020 to Aug - 2020”; it is February 2020 to August 2025. The caption of Figure 3 reads “EL-BHRP” for RL-BHRP. §6 quotes BHRP’s CAGR as 13.37%, where its Table 2 gives 0.133563, that is 13.36%. §3.2.2 refers to the two-level weights as “Definition ??”, an unresolved reference. Def. 3.2.3 centres the within-sector penalty over all 48 stocks, while Alg. 1’s stopping test measures that dispersion within each sector; with sectors of different sizes the two disagree (see “A catch in the definition”, under eq. (4)).