arXiv:2608.23393q-fin.PMAug 2026

Manuscript Offprint

arXiv:2608.23393

KellyBoost: Growth-Optimal Portfolio Construction with Gradient-Boosted Trees

Jiayu Li

Abstract

End-to-end portfolio learning — mapping features directly to portfolio weights under a financial objective, with no intermediate return forecast — has so far required backpropagation, shutting out gradient-boosted decision trees, the workhorse of tabular machine learning. We build the missing formulation. KELLYBOOST is a single multi-output XGBoost model whose softmax output is the portfolio: with y the vector of per-asset holding-period returns, the training loss is −log⁡(1+w⊤y)-\log(1 + w^{\top}y) — the negative log growth rate, so the fitted model is the growth-optimal (Kelly) allocation conditioned on the features. The objective is exact rather than a surrogate: we derive the gradient, the analytic diagonal Hessian and the full Hessian in closed form, verify them by finite differences, and ship a dependency-free reference engine. On a 23-year, eight-asset public-data testbed under a strictly separated selection/estimation protocol, we test the objective with a 2×22 \times 2 design — {boosted tree, MLP} ×\times {growth objective, classification surrogate} — and the growth objective improves deployed log growth over the surrogate within both learner classes, in both of two independently built feature pipelines: four of four cells — and, because the growth objective also trades less in every cell, transaction costs widen the gap rather than eroding it. We are equally explicit about the objective's boundary, because the same testbed measures it: faithfully optimizing an estimated conditional full-Kelly allocation concentrates aggressively, and in this regime the end-to-end learners trail the classic two-stage predict-then-optimize pipeline, whose squared-error forecasts shrink toward zero and whose optimizer therefore holds mild portfolios. The exact Hessian beats its first-order substitutes on the selection protocol by a factor of three and loses to them deployed: the optimizer is not the problem; the estimated full-Kelly target is. Code, data and scripts regenerate every number from one committed CSV without an API key.

1 Introduction

Portfolio construction is a decision problem, but most machine-learning treatments of it are prediction problems with a decision bolted on: a model is trained to forecast returns under a statistical loss, and the forecasts are then handed to an optimizer, together with a separately estimated covariance matrix [20]. The mismatch is well documented. Small forecast errors are amplified by the optimizer in exactly the directions the optimizer cares about; expected returns are the quantity financial data identifies worst [22]; and the two stages optimize different objectives, so improving the first need not improve the second [9].

End-to-end (decision-focused) learning removes the seam: train the model directly on the decision objective. In portfolio management this line of work has been carried almost exclusively by neural networks [24–26], which directly optimize Sharpe-ratio or utility objectives by gradient descent — because gradient descent is what the formulation requires. Gradient-boosted decision trees (GBDTs), the workhorse of tabular machine learning and of quantitative practice [11, 12], have been shut out of this line of work entirely: a tree ensemble is not trained by backpropagation, so a practitioner who wants boosted trees on an allocation problem has had to route them through a surrogate — forecast returns, or classify the best asset — and accept the seam. What has been missing is the bridge: a tree-boosting formulation of the end-to-end allocation problem, so that the choice of learner class and the choice of training objective stop being one decision.

This paper builds that bridge, and it turns out to require nothing approximate. Whether the bridge is worth crossing — whether the decision objective beats the surrogates a practitioner would otherwise use — is an empirical question, and answering it cleanly, in both directions, is the paper’s second half. Our contributions:

  1. An exact growth-optimal objective for boosted trees (Section 3). One multi-output XGBoost model [4] produces a logit vector per row; its softmax is a long-only, fully-invested portfolio on the simplex; the per-row loss is −log⁡(1+w⊤y)-\log(1 + w^{\top}y), whose sample mean is the negative log growth rate — the Kelly criterion [2, 16]. We derive the gradient and the analytic diagonal Hessian in closed form (verified by finite differences in the accompanying test suite), so the model trains with true second-order boosting steps. The tuning metric is the training loss itself: nothing in the pipeline optimizes a proxy.

  2. A deployment recipe for tree instability (Section 3.4). We show that two boosted fits whose training sets differ by a single dropped row can disagree materially in the allocation they produce — near-tied split points flip, and the perturbation saturates at one row. A single fit is a draw from a distribution, not its centre. We deploy a leave-one-out ensemble: K members, each fitted on the data minus one row, at unchanged hyperparameters — unlike bagging, the perturbation is too small to change effective capacity, so parameters tuned for a single fit remain valid.

  3. A cleanly separated evaluation protocol (Section 3.6). Hyperparameters are selected on a development segment (ending 2012) with a purged single-row-block walk-forward whose score is treated strictly as a selection signal; performance is then measured once, on the untouched evaluation segment (2013–2026), by a deployment walk-forward with frozen parameters, expanding windows, and an end-anchored decision grid. The distinction between selection signals and performance estimates is enforced throughout.

  4. A fully reproducible testbed (Section 4). Eight asset legs, a 7,871-column candidate feature set, and a joint (hyperparameter, feature list) search shared by every learned method (Section 3.5), over 2003–2026 — built exclusively from freely downloadable public market data (no API keys), with causality guaranteed by construction: every input is a same-day market close, every transform is backward-looking, and the raw snapshot is committed to the repository.

Out of sample, over 13.6 years, the comparisons that isolate the loss all land the same way. The study’s 2×22 \times 2 design — {boosted tree, MLP} ×\times {growth objective, classification surrogate} — holds the learner class fixed and swaps only the training loss, and the growth objective wins within both learner classes, in both feature pipelines: four of four cells, with a pooled paired effect of +0.18 per 20-day decision ( ×100\times 100) that rises to +0.25 under 20 bps of transaction costs, because the growth objective also trades less in every cell (Section 6). That is the paper's claim, and it is the whole claim. Comparisons across learner classes (tree versus MLP at fixed loss) are confounded by capacity and optimization geometry, land within bootstrap noise, and we draw no conclusion from them. The comparisons against differently-shaped pipelines mark the objective's boundary rather than its value: the two-stage predict-then-optimize pipeline beats every end-to-end learner in this regime (no single pairwise gap clears its bootstrap interval — thirteen years of monthly decisions is a small sample, and we say so). The ablations give that boundary its mechanism: the exact Hessian wins the development-segment selection score by a factor of three over a constant-curvature substitute and then loses to it out of sample (Section 7). Optimization skill transfers; the estimated full-Kelly target does not. Every mechanism in the study that shrinks allocations toward diversification — the two-stage pipeline's near-zero squared-error forecasts, the constant Hessian's undersized steps — improves deployed performance, which locates the boundary squarely in the growth-optimal objective's interaction with estimation error [7, 19], not in trees, boosting, or the derivations. Our code, data and scripts regenerate every table and figure from one committed CSV.