Decision-Focused Learning for Mean-Variance Portfolio Optimization via KKT-Based Reformulation
Summary
The paper proposes a single-level optimization formulation that incorporates KKT conditions into decision-focused learning for mean-variance portfolio optimization, improving performance in experiments on real-world ETF data.
View Cached Full Text
Cached at: 09/21/26, 09:35 AM
# Decision-Focused Learning for Mean–Variance Portfolio Optimization via KKT-Based Reformulation Source: [https://arxiv.org/html/2609.21427](https://arxiv.org/html/2609.21427) Kensei Nosaka🖂[https://orcid.org/0009-0007-3229-9392](https://orcid.org/0009-0007-3229-9392)Affiliation:University of Tsukuba, Tsukuba\-shi, Ibaraki 305\-8573, JapanE\-mail[s2620473@u\.tsukuba\.ac\.jp, ikeda@cs\.tsukuba\.ac\.jp, ytakano@sk\.tsukuba\.ac\.jp](mailto:[email protected],%[email protected],%[email protected])Shunnosuke Ikeda[https://orcid.org/0009-0004-4283-0819](https://orcid.org/0009-0004-4283-0819)Affiliation:University of Tsukuba, Tsukuba\-shi, Ibaraki 305\-8573, JapanE\-mail[s2620473@u\.tsukuba\.ac\.jp, ikeda@cs\.tsukuba\.ac\.jp, ytakano@sk\.tsukuba\.ac\.jp](mailto:[email protected],%[email protected],%[email protected])Yuichi Takano[https://orcid.org/0000-0002-8919-1282](https://orcid.org/0000-0002-8919-1282)Affiliation:University of Tsukuba, Tsukuba\-shi, Ibaraki 305\-8573, JapanE\-mail[s2620473@u\.tsukuba\.ac\.jp, ikeda@cs\.tsukuba\.ac\.jp, ytakano@sk\.tsukuba\.ac\.jp](mailto:[email protected],%[email protected],%[email protected]) ###### Abstract Mean–variance portfolio optimization \(MVO\) is a central framework in data\-driven asset management\. A widely adopted approach is a two\-stage framework that first predicts expected returns and then solves the optimization problem based on these predictions, with the predictive models trained by minimizing prediction errors\. However, this objective of prediction is not aligned with the quality of the downstream portfolio decision\. Decision\-focused learning \(DFL\), which directly minimizes the downstream decision loss within the learning process, has thus emerged as a promising direction\. However, existing DFL approaches to MVO rely on surrogate losses or constraint relaxations for tractability, creating a structural mismatch between predictive model training and the constrained MVO solved at evaluation\. We propose a single\-level optimization formulation that incorporates the Karush–Kuhn–Tucker \(KKT\) optimality conditions of the lower\-level MVO into the upper\-level learning problem\. This formulation explicitly preserves the budget and short\-sale constraints while remaining tractable for standard nonlinear optimization solvers\. Rolling\-window experiments on real\-world ETF \(Exchange Traded Funds\) data across two asset universes with different correlation structures show that our method achieved the best performance on multiple investment metrics and also demonstrated performance improvement due to the proposed regularization\. ###### Keywords: Decision\-focused learning Portfolio optimization Bilevel optimization Karush–Kuhn–Tucker conditions ## 1Introduction ### 1\.1Background Portfolio optimization is a central problem in asset management\. Markowitz mean–variance optimization \(MVO\)\[[17](https://arxiv.org/html/2609.21427#bib.bib17)\]is a fundamental framework that formulates the trade\-off between expected return and risk\. In data\-driven portfolio management, a two\-stage framework is widely used in both practice and research, where expected returns are predicted from historical data and then used as inputs to MVO\[[2](https://arxiv.org/html/2609.21427#bib.bib2),[12](https://arxiv.org/html/2609.21427#bib.bib12)\]\. However, prediction accuracy is not always aligned with downstream portfolio performance\[[5](https://arxiv.org/html/2609.21427#bib.bib5),[16](https://arxiv.org/html/2609.21427#bib.bib16)\]\. In MVO, constraints such as budget and short\-sale constraints determine portfolio allocation structures, and even small prediction errors may lead to substantial changes in portfolio weights and investment performance through optimization\[[3](https://arxiv.org/html/2609.21427#bib.bib3),[15](https://arxiv.org/html/2609.21427#bib.bib15)\]\. This discrepancy partly arises from the inherent separation between prediction and optimization in two\-stage frameworks\[[2](https://arxiv.org/html/2609.21427#bib.bib2)\]\. To address this issue, decision\-focused learning \(DFL\) directly minimizes the downstream decision loss rather than the prediction error itself by embedding the optimization problem into the learning process, thereby aligning predictive model training with the downstream decision quality\[[16](https://arxiv.org/html/2609.21427#bib.bib16),[21](https://arxiv.org/html/2609.21427#bib.bib21)\]\. Therefore, DFL is expected to improve portfolio performance in MVO\. ### 1\.2Related Work Several studies have investigated DFL for MVO and the influence of decision structures on predictive learning\[[15](https://arxiv.org/html/2609.21427#bib.bib15),[16](https://arxiv.org/html/2609.21427#bib.bib16)\]\. Elmachtoub and Grigas\[[8](https://arxiv.org/html/2609.21427#bib.bib8)\]proposed a framework called Smart Predict\-then\-Optimize \(SPO\+\), which uses a surrogate loss derived from downstream optimization objectives to emphasize prediction errors that affect decision quality\. However, because SPO\+ minimizes a surrogate loss, it does not directly minimize the decision loss\. Butler and Kwon\[[5](https://arxiv.org/html/2609.21427#bib.bib5)\]proposed Integrating Prediction and Optimization \(IPO\), which formulates the joint problem of return prediction and MVO as a bilevel optimization problem\. However, directly minimizing the decision loss leads to a nonconvex optimization problem requiring iterative gradient descent\. Iterative optimization can be avoided by using a closed\-form solution to the relaxed MVO problem without short\-sale constraints, introducing a structural mismatch between the relaxed MVO for portfolio construction and the constrained MVO for model evaluation\. These existing DFL approaches to MVO therefore rely on surrogate losses or constraint relaxations to improve tractability\. While computationally efficient, these approximations may fail to fully capture the problem structures governing portfolio allocation in MVO\[[21](https://arxiv.org/html/2609.21427#bib.bib21)\]\. Conversely, directly minimizing exact decision losses requires iterative optimization\[[1](https://arxiv.org/html/2609.21427#bib.bib1)\], which complicates the learning process and increases computational cost\. As a more general approach to DFL, regret minimization has also been studied\[[20](https://arxiv.org/html/2609.21427#bib.bib20)\]\. Bucarey et al\.\[[4](https://arxiv.org/html/2609.21427#bib.bib4)\]formulated the exact expected regret minimization as a pessimistic bilevel optimization problem\. They further reformulated this bilevel problem into a single\-level nonlinear optimization problem using the optimality conditions of the lower\-level problem, making it tractable for standard nonlinear optimization solvers\. However, this single\-level reformulation technique has not been adapted to the specific constraint structure of MVO, leaving a gap for an MVO\-based DFL formulation that reduces to a single\-level optimization problem solvable directly by standard nonlinear optimization solvers\. ### 1\.3Our Contribution We propose a single\-level nonlinear optimization formulation of MVO\-based DFL, derived from the Karush–Kuhn–Tucker \(KKT\) optimality conditions\. This formulation explicitly preserves the budget and short\-sale constraints of MVO during learning\. Specifically, building on the optimality\-condition\-based reformulation of Bucarey et al\.\[[4](https://arxiv.org/html/2609.21427#bib.bib4)\], we formulate the MVO\-based DFL as a bilevel optimization problem and convert it to a single\-level form using the KKT optimality conditions of the lower\-level MVO problem\. In addition, we introduce a regularization scheme that anchors the predictive model parameters to a reference solution, mitigating numerical instability and preventing overfitting\. To evaluate the effectiveness of our method, we conducted computational experiments using real\-world ETF \(Exchange Traded Funds\) data with two asset universes exhibiting different correlation structures\. Experimental results demonstrate that our method outperformed existing methods on multiple investment metrics\. Additionally, we show that the proposed regularization scheme consistently improved performance\. ## 2Proposed Method In this section, we first provide a brief overview of the MVO framework\. We then formulate MVO\-based DFL as a bilevel optimization problem and, following Bucarey et al\.\[[4](https://arxiv.org/html/2609.21427#bib.bib4)\], reformulate it into a single\-level nonlinear optimization problem using the KKT conditions of the lower\-level MVO\. Finally, we introduce a regularization scheme to enhance numerical stability\. We use\[n\]:=\{1,2,…,n\}\[n\]:=\\\{1,2,\\dots,n\\\}to denote the set of consecutive positive integers up tonn\. ### 2\.1Mean–Variance Portfolio Optimization We adopt the MVO framework proposed by Markowitz\[[17](https://arxiv.org/html/2609.21427#bib.bib17)\]as the basic portfolio optimization model\. Letnndenote the number of assets,𝒘∈ℝn\\bm\{w\}\\in\\mathbb\{R\}^\{n\}the portfolio allocation vector,𝒓¯∈ℝn\\bar\{\\bm\{r\}\}\\in\\mathbb\{R\}^\{n\}the expected return vector, and𝑽∈ℝn×n\\bm\{V\}\\in\\mathbb\{R\}^\{n\\times n\}the covariance matrix\. We assume that𝑽\\bm\{V\}is estimated from historical returns and satisfies positive definiteness \(𝑽≻𝑶\\bm\{V\}\\succ\\bm\{O\}\)\. This assumption is naturally satisfied by shrinkage covariance estimators, which produce positive definite estimates\[[13](https://arxiv.org/html/2609.21427#bib.bib13)\]and remain well\-conditioned even in finite samples\[[14](https://arxiv.org/html/2609.21427#bib.bib14)\]\. The feasible region defined by the budget and short\-sale constraints is𝒮:=\{𝒘∈ℝn∣𝟏⊤𝒘=1,𝒘≥𝟎\}\.\\mathcal\{S\}:=\\\{\\bm\{w\}\\in\\mathbb\{R\}^\{n\}\\mid\\bm\{1\}^\{\\top\}\\bm\{w\}=1,\\;\\bm\{w\}\\geq\\bm\{0\}\\\}\. The MVO problem is formulated as min𝒘∈𝒮c\(𝒘,𝒓¯,𝑽\):=δ2𝒘⊤𝑽𝒘−\(1−δ\)𝒓¯⊤𝒘,\\min\_\{\\bm\{w\}\\in\\mathcal\{S\}\}\\;c\(\\bm\{w\};\\bar\{\\bm\{r\}\},\\bm\{V\}\):=\\frac\{\\delta\}\{2\}\\bm\{w\}^\{\\top\}\\bm\{V\}\\bm\{w\}\-\(1\-\\delta\)\\bar\{\\bm\{r\}\}^\{\\top\}\\bm\{w\},\(1\)whereδ∈\(0,1\)\\delta\\in\(0,1\)is a risk\-aversion parameter controlling the relative importance of the expected return and risk terms\. Since𝑽≻𝑶\\bm\{V\}\\succ\\bm\{O\}, the objective function is strongly convex, and the problem has a unique global optimum\. Expected returns are estimated using asset\-wise predictive models\. Let𝒙ti∈ℝm\\bm\{x\}\_\{ti\}\\in\\mathbb\{R\}^\{m\}denote the feature vector for asseti∈\[n\]i\\in\[n\]at time periodt∈\[T\]t\\in\[T\], and define the augmented feature vector as 𝒙~ti:=\(𝒙ti⊤,1\)⊤∈ℝm\+1\.\\tilde\{\\bm\{x\}\}\_\{ti\}:=\(\\bm\{x\}\_\{ti\}^\{\\top\},1\)^\{\\top\}\\in\\mathbb\{R\}^\{m\+1\}\. For simplicity, we employ linear predictive models with regression coefficients𝜽i∈ℝm\+1\\bm\{\\theta\}\_\{i\}\\in\\mathbb\{R\}^\{m\+1\}, yielding predicted returns r^ti\(𝜽i\):=𝜽i⊤𝒙~ti\.\\hat\{r\}\_\{ti\}\(\\bm\{\\theta\}\_\{i\}\):=\\bm\{\\theta\}\_\{i\}^\{\\top\}\\tilde\{\\bm\{x\}\}\_\{ti\}\.Defining 𝚯:=\(𝜽i\)i∈\[n\]∈ℝ\(m\+1\)×n,\\bm\{\\Theta\}:=\(\\bm\{\\theta\}\_\{i\}\)\_\{i\\in\[n\]\}\\in\\mathbb\{R\}^\{\(m\+1\)\\times n\},the predicted and realized return vectors are respectively defined as 𝒓^t\(𝚯\):=\(r^ti\(𝜽i\)\)i∈\[n\]∈ℝn,𝒓t:=\(rti\)i∈\[n\]∈ℝn\.\\hat\{\\bm\{r\}\}\_\{t\}\(\\bm\{\\Theta\}\):=\(\\hat\{r\}\_\{ti\}\(\\bm\{\\theta\}\_\{i\}\)\)\_\{i\\in\[n\]\}\\in\\mathbb\{R\}^\{n\},\\qquad\\bm\{r\}\_\{t\}:=\(r\_\{ti\}\)\_\{i\\in\[n\]\}\\in\\mathbb\{R\}^\{n\}\.The predictive model parameters𝚯\\bm\{\\Theta\}are typically learned by minimizing the sum of squared prediction errors\. We refer to this conventional two\-stage framework as prediction\-focused learning \(PFL\)\[[16](https://arxiv.org/html/2609.21427#bib.bib16)\]\. ### 2\.2Bilevel Optimization Model We introduce a bilevel optimization model for DFL in which the MVO problem with predicted returns is the lower\-level problem, while the upper\-level problem determines the parameters𝚯\\bm\{\\Theta\}that minimize the associated MVO decision loss\. Given the predicted return vector𝒓^t\(𝚯\)\\hat\{\\bm\{r\}\}\_\{t\}\(\\bm\{\\Theta\}\)and the covariance matrix𝑽t\\bm\{V\}\_\{t\}, an optimal portfolio allocation𝒘^t\(𝚯\)\\hat\{\\bm\{w\}\}\_\{t\}\(\\bm\{\\Theta\}\)at time periodt∈\[T\]t\\in\[T\]is defined as 𝒘^t\(𝚯\)∈argmin𝒘t∈𝒮c\(𝒘t,𝒓^t\(𝚯\),𝑽t\)\.\\hat\{\\bm\{w\}\}\_\{t\}\(\\bm\{\\Theta\}\)\\in\\underset\{\\bm\{w\}\_\{t\}\\in\\mathcal\{S\}\}\{\\arg\\min\}\\;c\\\!\\left\(\\bm\{w\}\_\{t\};\\hat\{\\bm\{r\}\}\_\{t\}\(\\bm\{\\Theta\}\),\\bm\{V\}\_\{t\}\\right\)\.\(2\)We also define the ground\-truth optimal allocation based on the realized return vector𝒓t\\bm\{r\}\_\{t\}as 𝒘toracle∈argmin𝒘t∈𝒮c\(𝒘t,𝒓t,𝑽t\)\.\\bm\{w\}\_\{t\}^\{\\mathrm\{oracle\}\}\\in\\underset\{\\bm\{w\}\_\{t\}\\in\\mathcal\{S\}\}\{\\arg\\min\}\\;c\\\!\\left\(\\bm\{w\}\_\{t\};\\bm\{r\}\_\{t\},\\bm\{V\}\_\{t\}\\right\)\.\(3\)Although𝒘toracle\\bm\{w\}\_\{t\}^\{\\mathrm\{oracle\}\}is unavailable in practical investment settings, it serves as a reference solution for defining the learning objective\. In general, the allocation𝒘^t\(𝚯\)\\hat\{\\bm\{w\}\}\_\{t\}\(\\bm\{\\Theta\}\)obtained from predicted returns differs from the ground\-truth optimal allocation𝒘toracle\\bm\{w\}\_\{t\}^\{\\mathrm\{oracle\}\}\. We define the decision loss as the gap between these objective values under realized returns: ℓt\(𝚯\):=c\(𝒘^t\(𝚯\),𝒓t,𝑽t\)−c\(𝒘toracle,𝒓t,𝑽t\)\.\\ell\_\{t\}\(\\bm\{\\Theta\}\):=c\\\!\\left\(\\hat\{\\bm\{w\}\}\_\{t\}\(\\bm\{\\Theta\}\);\\bm\{r\}\_\{t\},\\bm\{V\}\_\{t\}\\right\)\-c\\\!\\left\(\\bm\{w\}\_\{t\}^\{\\mathrm\{oracle\}\};\\bm\{r\}\_\{t\},\\bm\{V\}\_\{t\}\\right\)\.\(4\)Since the second term does not depend on𝚯\\bm\{\\Theta\}, only the first term is used as the learning objective\. The MVO\-based DFL problem is then formulated as min𝚯\\displaystyle\\min\_\{\\bm\{\\Theta\}\}\\quad1T∑t=1Tc\(𝒘^t\(𝚯\),𝒓t,𝑽t\)\\displaystyle\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}c\\\!\\left\(\\hat\{\\bm\{w\}\}\_\{t\}\(\\bm\{\\Theta\}\);\\bm\{r\}\_\{t\},\\bm\{V\}\_\{t\}\\right\)\(5\)s\. t\.𝒘^t\(𝚯\)∈argmin𝒘t∈𝒮c\(𝒘t,𝒓^t\(𝚯\),𝑽t\),∀t∈\[T\]\.\\displaystyle\\hat\{\\bm\{w\}\}\_\{t\}\(\\bm\{\\Theta\}\)\\in\\underset\{\\bm\{w\}\_\{t\}\\in\\mathcal\{S\}\}\{\\arg\\min\}\\;c\\\!\\left\(\\bm\{w\}\_\{t\};\\hat\{\\bm\{r\}\}\_\{t\}\(\\bm\{\\Theta\}\),\\bm\{V\}\_\{t\}\\right\),~\\forall t\\in\[T\]\.\(6\)This problem is difficult to handle directly because it contains theargmin\\arg\\minoperator in the lower\-level problem\. ### 2\.3Single\-level Reformulation Following Bucarey et al\.\[[4](https://arxiv.org/html/2609.21427#bib.bib4)\], we reformulate the bilevel optimization problem \([5](https://arxiv.org/html/2609.21427#S2.E5)\)–\([6](https://arxiv.org/html/2609.21427#S2.E6)\) as a single\-level optimization problem by incorporating the optimality conditions of the lower\-level problem\. The lower\-level problem \([6](https://arxiv.org/html/2609.21427#S2.E6)\) minimizes a strongly convex objective function underδ\>0\\delta\>0and𝑽t≻𝑶\\bm\{V\}\_\{t\}\\succ\\bm\{O\}, and its feasible region𝒮\\mathcal\{S\}is convex\. Thus, the optimal solution is unique\. Moreover, since there exists a feasible solution satisfying𝟏⊤𝒘t=1\\bm\{1\}^\{\\top\}\\bm\{w\}\_\{t\}=1and𝒘t\>𝟎\\bm\{w\}\_\{t\}\>\\bm\{0\}, Slater’s condition holds, and the KKT conditions are necessary and sufficient for optimality\. Letμt∈ℝ\\mu\_\{t\}\\in\\mathbb\{R\}and𝝀t∈ℝ≥0n\\bm\{\\lambda\}\_\{t\}\\in\\mathbb\{R\}\_\{\\geq 0\}^\{n\}denote the Lagrange multipliers associated with the equality constraint𝟏⊤𝒘t=1\\bm\{1\}^\{\\top\}\\bm\{w\}\_\{t\}=1and the short\-sale constraint𝒘t≥𝟎\\bm\{w\}\_\{t\}\\geq\\bm\{0\}, respectively\. Replacing the lower\-level problem \([6](https://arxiv.org/html/2609.21427#S2.E6)\) with the corresponding KKT conditions yields the following single\-level reformulation: min𝚯,\{𝒘t,μt,𝝀t\}t=1T\\displaystyle\\min\_\{\\bm\{\\Theta\},\\\{\\bm\{w\}\_\{t\},\\mu\_\{t\},\\bm\{\\lambda\}\_\{t\}\\\}\_\{t=1\}^\{T\}\}\\quad1T∑t=1T\(δ2𝒘t⊤𝑽t𝒘t−\(1−δ\)𝒓t⊤𝒘t\)\\displaystyle\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}\\left\(\\frac\{\\delta\}\{2\}\\bm\{w\}\_\{t\}^\{\\top\}\\bm\{V\}\_\{t\}\\bm\{w\}\_\{t\}\-\(1\-\\delta\)\\bm\{r\}\_\{t\}^\{\\top\}\\bm\{w\}\_\{t\}\\right\)\(7\)s\. t\.δ𝑽t𝒘t−\(1−δ\)𝒓^t\(𝚯\)−μt𝟏−𝝀t=𝟎,∀t∈\[T\],\\displaystyle\\delta\\bm\{V\}\_\{t\}\\bm\{w\}\_\{t\}\-\(1\-\\delta\)\\hat\{\\bm\{r\}\}\_\{t\}\(\\bm\{\\Theta\}\)\-\\mu\_\{t\}\\bm\{1\}\-\\bm\{\\lambda\}\_\{t\}=\\bm\{0\},\\quad\\forall t\\in\[T\],\(8\)𝟏⊤𝒘t=1,𝒘t≥𝟎,∀t∈\[T\],\\displaystyle\\bm\{1\}^\{\\top\}\\bm\{w\}\_\{t\}=1,\\quad\\bm\{w\}\_\{t\}\\geq\\bm\{0\},\\quad\\forall t\\in\[T\],\(9\)𝝀t≥𝟎,∀t∈\[T\],\\displaystyle\\bm\{\\lambda\}\_\{t\}\\geq\\bm\{0\},\\quad\\forall t\\in\[T\],\(10\)𝝀t⊙𝒘t=𝟎,∀t∈\[T\],\\displaystyle\\bm\{\\lambda\}\_\{t\}\\odot\\bm\{w\}\_\{t\}=\\bm\{0\},\\quad\\forall t\\in\[T\],\(11\)where⊙\\odotdenotes the Hadamard product\. ### 2\.4Regularization The single\-level problem \([7](https://arxiv.org/html/2609.21427#S2.E7)\)–\([11](https://arxiv.org/html/2609.21427#S2.E11)\) is generally nonconvex because it contains complementarity conditions \([11](https://arxiv.org/html/2609.21427#S2.E11)\), and its solution may depend on initialization and numerical optimization settings\. To mitigate this numerical instability and to prevent overfitting, we augment the upper\-level objective \([7](https://arxiv.org/html/2609.21427#S2.E7)\) with a squaredℓ2\\ell\_\{2\}\-norm regularization term that anchors𝚯\\bm\{\\Theta\}to a reference parameter𝚯ref\\bm\{\\Theta\}\_\{\\mathrm\{ref\}\}, yielding the regularized formulation: min𝚯,\{𝒘t,μt,𝝀t\}t=1T\\displaystyle\\min\_\{\\bm\{\\Theta\},\\\{\\bm\{w\}\_\{t\},\\mu\_\{t\},\\bm\{\\lambda\}\_\{t\}\\\}\_\{t=1\}^\{T\}\}\\quad1T∑t=1T\(δ2𝒘t⊤𝑽t𝒘t−\(1−δ\)𝒓t⊤𝒘t\)\+η‖vec\(𝚯−𝚯ref\)‖22\\displaystyle\\frac\{1\}\{T\}\\sum\_\{t=1\}^\{T\}\\left\(\\frac\{\\delta\}\{2\}\\bm\{w\}\_\{t\}^\{\\top\}\\bm\{V\}\_\{t\}\\bm\{w\}\_\{t\}\-\(1\-\\delta\)\\bm\{r\}\_\{t\}^\{\\top\}\\bm\{w\}\_\{t\}\\right\)\+\\eta\\left\\\|\\mathrm\{vec\}\(\\bm\{\\Theta\}\-\\bm\{\\Theta\}\_\{\\mathrm\{ref\}\}\)\\right\\\|\_\{2\}^\{2\}\(12\)s\. t\.Eqs\.\([8](https://arxiv.org/html/2609.21427#S2.E8)\)–\([11](https://arxiv.org/html/2609.21427#S2.E11)\),\\displaystyle\\text\{Eqs\.~\}\\eqref\{eq:dfl\_kkt\_stationarity\}\\text\{\-\-\}\\eqref\{eq:dfl\_kkt\_complementarity\},\(13\)whereη≥0\\eta\\geq 0is a regularization parameter andvec\(⋅\)\\mathrm\{vec\}\(\\cdot\)denotes matrix vectorization\. The reference parameter𝚯ref\\bm\{\\Theta\}\_\{\\mathrm\{ref\}\}is assumed to be obtained from a computationally efficient existing predictive method\. ## 3Numerical Experiments This section evaluates the effectiveness of our method through numerical experiments using real\-world ETF data\. We compare portfolio performance against existing methods across two asset universes with different correlation structures and examine the effect of regularization\. ### 3\.1Experimental Setup We used monthly return data from January 2003 to December 2025, computed from adjusted closing prices obtained from Yahoo\! Finance \(https://finance\.yahoo\.com/\), across two ETF universes with different correlation structures\. For an internationally diversified setting, we used eight developed\-market country equity ETFs following DeMiguel et al\.\[[7](https://arxiv.org/html/2609.21427#bib.bib7)\]: the United States, Canada, France, Germany, Italy, Japan, Switzerland, and the United Kingdom\. For a highly correlated setting, we considered a sector universe consisting of nine S&P 500 sector ETFs, corresponding to the Global Industry Classification Standard \(MSCI and S&P Dow Jones Indices,https://www\.msci\.com/indexes/index\-resources/gics\) that were available throughout the experimental period: Information Technology, Financials, Health Care, Energy, Consumer Discretionary, Consumer Staples, Industrials, Utilities, and Materials\. These two universes contrast within\-country sectoral exposure with cross\-country diversification, and the former is known to exhibit higher inter\-asset correlation\[[9](https://arxiv.org/html/2609.21427#bib.bib9)\]\. Model training and portfolio rebalancing were performed in a rolling\-window manner\. Input features consisted of 1\-, 3\-, and 12\-month average returns together with 12\-month volatility at each rebalancing date \(m=4m=4\), including an intercept term\. All input features were computed using only information available up to the rebalancing date, and the training target for each rebalancing window strictly excluded the current period to prevent look\-ahead bias\. At each rebalancing date, the prediction model parameters𝚯\\bm\{\\Theta\}were trained using the most recent 48 months of data and then fixed for the subsequent one\-month investment period\. The training window was shifted forward monthly and the model was retrained repeatedly\. The risk\-aversion parameter was fixed atδ=0\.5\\delta=0\.5for all methods\. The covariance matrix𝑽t\\bm\{V\}\_\{t\}was estimated by applying oracle approximating shrinkage\[[6](https://arxiv.org/html/2609.21427#bib.bib6)\]to an exponentially weighted moving average covariance estimator with decay factorα=0\.97\\alpha=0\.97\[[10](https://arxiv.org/html/2609.21427#bib.bib10)\], computed from the most recent 48 months of returns\. All methods used the same covariance estimation procedure\. The regularization parameterη\\etawas selected via grid search on the validation period from January 2011 to December 2015\. The value yielding the highest validation Sharpe Ratio was selected from\{0,0\.01,0\.05,0\.1,0\.5,1,5,10,50,100,500\}\\\{0,0\.01,0\.05,0\.1,0\.5,1,5,10,50,100,500\\\}\. Final performance was evaluated over the test period from January 2016 to December 2025\. We evaluated investment performance using the following metrics: - •Sharpe Ratio \(SR\): annualized return divided by annualized volatility\. - •Final Wealth \(FW\): cumulative wealth at the end of the evaluation period, with initial wealth normalized to one\. - •Cumulative Decision Loss \(CDL\): cumulative sum of the decision lossℓt\\ell\_\{t\}in Eq\. \([4](https://arxiv.org/html/2609.21427#S2.E4)\) fort∈\[T\]t\\in\[T\]; lower values indicate higher decision quality\. - •CVaR95: average loss over the worst 5% of return observations\[[18](https://arxiv.org/html/2609.21427#bib.bib18)\]\. - •Turnover \(TO\): average portfolio turnover per rebalancing period, as defined in DeMiguel et al\.\[[7](https://arxiv.org/html/2609.21427#bib.bib7)\]\. We compared the performance of the following methods: - •DFL\-KKT: our KKT\-based single\-level DFL formulation \([12](https://arxiv.org/html/2609.21427#S2.E12)\)–\([13](https://arxiv.org/html/2609.21427#S2.E13)\)\. - •SPO\+: a DFL method minimizing a convex upper bound of decision loss\[[8](https://arxiv.org/html/2609.21427#bib.bib8)\]\. - •IPO\-CF: a closed\-form DFL method derived from IPO for relaxed lower\-level MVO without short\-sale constraints\[[5](https://arxiv.org/html/2609.21427#bib.bib5)\]\. - •IPO\-GRAD: an integrated prediction\-and\-optimization method using gradient\-based updates through the lower\-level MVO problem\[[5](https://arxiv.org/html/2609.21427#bib.bib5)\]\. - •PFL: a two\-stage prediction\-focused method that feeds least\-squares return predictions into MVO\[[12](https://arxiv.org/html/2609.21427#bib.bib12),[16](https://arxiv.org/html/2609.21427#bib.bib16)\]\. - •1/N: an equal\-weight portfolio allocating uniformly across all assets\[[7](https://arxiv.org/html/2609.21427#bib.bib7)\]\. - •S&P 500: a passive buy\-and\-hold strategy investing in the S&P 500 ETF\. The DFL\-KKT problem \([12](https://arxiv.org/html/2609.21427#S2.E12)\)–\([13](https://arxiv.org/html/2609.21427#S2.E13)\) was solved directly using the nonlinear optimization solver KNITRO 15\.0 and the optimization modeling language Pyomo in Python\. Each solve used feasibility and optimality tolerances of10−610^\{\-6\}, an iteration budget of up to 20,000 iterations, and a per\-solve time limit of 500 seconds, with no convergence failures across any reported rebalancing window\. Residuals for the KKT system \([8](https://arxiv.org/html/2609.21427#S2.E8)\)–\([11](https://arxiv.org/html/2609.21427#S2.E11)\) remained below6\.6×10−96\.6\\times 10^\{\-9\}across all training configurations, with no violation of dual feasibility\. PFL used asset\-wise ordinary least squares regression, and IPO\-CF used the closed\-form solution of the relaxed MVO\. IPO\-GRAD and SPO\+ trained their predictive model parameters with Adam at a learning rate of10−310^\{\-3\}for up to 500 epochs with early stopping \(patience of 50\)\. At each iteration, IPO\-GRAD solved the lower\-level MVO problem with qpth, a PyTorch\-based differentiable quadratic optimization layer, while SPO\+ solved the linear program constructed from its surrogate loss with Clarabel 0\.11\.1\. Since SPO\+ was originally designed for linear objective functions, we adopted a reformulation in which the variance term of the MVO objective \([1](https://arxiv.org/html/2609.21427#S2.E1)\) is moved to a constraint, with the upper bound\(𝒘toracle\)⊤𝑽t𝒘toracle\(\\bm\{w\}\_\{t\}^\{\\mathrm\{oracle\}\}\)^\{\\top\}\\bm\{V\}\_\{t\}\\bm\{w\}\_\{t\}^\{\\mathrm\{oracle\}\}\. At each rebalancing date, the MVO problem with each method’s predictions and the common covariance estimator was solved with Clarabel 0\.11\.1\. ### 3\.2Portfolio Performance across Asset Universes We evaluated investment performance through rolling\-window backtesting on real market data\. For DFL\-KKT, IPO\-GRAD, and SPO\+, the IPO\-CF solution at each rebalancing date served as the warm\-start initialization\. For DFL\-KKT, the regularization reference parameter𝚯ref\\bm\{\\Theta\}\_\{\\mathrm\{ref\}\}was set to the IPO\-CF solution at each period\. The regularization parameterη\\etawas selected separately for each asset universe according to Section[3\.1](https://arxiv.org/html/2609.21427#S3.SS1); the selected values wereη=0\.5\\eta=0\.5for the international universe andη=0\.01\\eta=0\.01for the sector universe\. Tables[1](https://arxiv.org/html/2609.21427#S3.T1)and[2](https://arxiv.org/html/2609.21427#S3.T2)give the main evaluation metrics for the international universe and sector universe, respectively\. In each column, the best value across all methods is highlighted in bold\. Table 1:Performance comparison on the international universe\. In each column, the best value is highlighted in bold\.Table 2:Performance comparison on the sector universe\. In each column, the best value is highlighted in bold\.On the international universe, DFL\-KKT achieved the highest SR and FW and the lowest CDL, with the second\-lowest CVaR95after IPO\-GRAD\. On the sector universe, DFL\-KKT again achieved the highest SR and FW together with the lowest CDL\. For CVaR95, DFL\-KKT \(9\.454\) was substantially lower than the other learning\-based methods \(i\.e\., IPO\-GRAD, SPO\+, PFL\) and close to the passive strategies S&P 500 \(9\.246\) and 1/N \(9\.450\)\. The uniformly larger CDL of all methods on the sector universe reflected the higher difficulty of this setting\. In both universes, DFL\-KKT exhibited higher turnover than IPO\-GRAD and SPO\+, though lower turnover than IPO\-CF and PFL\. ### 3\.3Effect of Regularization To examine the effect of the regularization term in the DFL\-KKT problem \([12](https://arxiv.org/html/2609.21427#S2.E12)\)–\([13](https://arxiv.org/html/2609.21427#S2.E13)\), we varied the regularization parameterη\\etaand the reference parameter𝚯ref\\bm\{\\Theta\}\_\{\\mathrm\{ref\}\}, which also served as the warm\-start initialization and was set to either the PFL or IPO\-CF solution\. Following the grid search procedure in Section[3\.1](https://arxiv.org/html/2609.21427#S3.SS1),η=0\.5\\eta=0\.5was selected for the international universe under both references, whileη=0\.01\\eta=0\.01andη=0\.1\\eta=0\.1were selected for the sector universe under the IPO\-CF and PFL references, respectively\. For the unregularized variant,η\\etawas set to zero\. The other settings followed Section[3\.1](https://arxiv.org/html/2609.21427#S3.SS1)\. \(a\)International×\\times𝚯IPO\-CF\\bm\{\\Theta\}\_\{\\mathrm\{IPO\\text\{\-\}CF\}\}\(η=0\.5\\eta=0\.5\)\(b\)Sector×\\times𝚯IPO\-CF\\bm\{\\Theta\}\_\{\\mathrm\{IPO\\text\{\-\}CF\}\}\(η=0\.01\\eta=0\.01\)\(c\)International×\\times𝚯PFL\\bm\{\\Theta\}\_\{\\mathrm\{PFL\}\}\(η=0\.5\\eta=0\.5\)\(d\)Sector×\\times𝚯PFL\\bm\{\\Theta\}\_\{\\mathrm\{PFL\}\}\(η=0\.1\\eta=0\.1\) Figure 1:Cumulative wealth trajectories of DFL\-KKT with and without regularization, under different choices of the reference parameter𝚯ref\\bm\{\\Theta\}\_\{\\mathrm\{ref\}\}\.Figure[1](https://arxiv.org/html/2609.21427#S3.F1)shows that DFL\-KKT with regularization consistently outperformed the unregularized variant in both universes, maintaining a higher cumulative wealth for most of the evaluation period under both the PFL and IPO\-CF references\. These results suggest that the regularization term stabilized the learning of DFL\-KKT by anchoring the learned parameters to the reference, with this benefit robust to the choice of reference solution\. ## 4Conclusion We proposed a KKT\-based single\-level nonlinear optimization formulation of DFL for MVO that explicitly preserves the budget and short\-sale constraints during learning\. The single\-level formulation was derived by replacing the lower\-level MVO with its KKT optimality conditions, making it tractable for standard nonlinear optimization solvers\. We further introduced a regularization scheme that anchors the predictive model parameters to a reference solution\. Rolling\-window experiments on real\-world ETF data across two asset universes with different correlation structures showed that our method achieved the best performance on multiple investment metrics\. The proposed regularization improved performance under different choices of the reference parameter\. Several promising directions remain for future work\. First, developing heuristic or approximation methods would help reduce the computational cost at larger asset dimensions, where the specialized solver may become impractical\. Second, robustness against poor local minima arising from the nonconvex complementarity conditions could be enhanced through advanced initialization or smoothing techniques\. Third, it would be worthwhile to extend the proposed method to incorporate cardinality constraints, coherent risk measures, and robust optimization\[[11](https://arxiv.org/html/2609.21427#bib.bib11),[19](https://arxiv.org/html/2609.21427#bib.bib19)\]\. ## References - \[1\]Amos, B\., Kolter, J\.Z\.: OptNet: Differentiable optimization as a layer in neural networks\. In: Proceedings of the 34th International Conference on Machine Learning \(ICML 2017\)\. pp\. 136–145 \(2017\) - \[2\]Bertsimas, D\., Kallus, N\.: From predictive to prescriptive analytics\. Management Science66\(3\), 1025–1044 \(2020\) - \[3\]Best, M\.J\., Grauer, R\.R\.: Sensitivity analysis for mean\-variance portfolio problems\. Management Science37\(8\), 980–989 \(1991\) - \[4\]Bucarey, V\., Calderón, S\., Muñoz, G\., Semet, F\.: Decision\-focused predictions via pessimistic bilevel optimization: A computational study\. In: Integration of Constraint Programming, Artificial Intelligence, and Operations Research \(CPAIOR 2024\)\. Lecture Notes in Computer Science, vol\. 14742, pp\. 127–135\. Springer \(2024\) - \[5\]Butler, A\., Kwon, R\.H\.: Integrating prediction in mean–variance portfolio optimization\. Quantitative Finance23\(3\), 429–452 \(2023\) - \[6\]Chen, Y\., Wiesel, A\., Eldar, Y\.C\., Hero, A\.O\.: Shrinkage algorithms for MMSE covariance estimation\. IEEE Transactions on Signal Processing58\(10\), 5016–5029 \(2010\) - \[7\]DeMiguel, V\., Garlappi, L\., Uppal, R\.: Optimal versus naive diversification: How inefficient is the 1/N portfolio strategy? The Review of Financial Studies22\(5\), 1915–1953 \(2009\) - \[8\]Elmachtoub, A\.N\., Grigas, P\.: Smart predict, then optimize\. Management Science68\(1\), 9–26 \(2022\) - \[9\]Heston, S\.L\., Rouwenhorst, K\.G\.: Does industrial structure explain the benefits of international diversification? Journal of Financial Economics36\(1\), 3–27 \(1994\) - \[10\]J\. P\. Morgan/Reuters: RiskMetrics — Technical Document\. Tech\. Rep\. Fourth Edition, J\. P\. Morgan and Reuters, New York \(1996\) - \[11\]Kobayashi, K\., Takano, Y\., Nakata, K\.: Cardinality\-constrained distributionally robust portfolio optimization\. European Journal of Operational Research309\(3\), 1173–1182 \(2023\) - \[12\]Lahoud, A\.A\., Khan, A\.S\., Schaffernicht, E\., Trincavelli, M\., Stork, J\.A\.: Predict\-and\-optimize techniques for data\-driven optimization problems: A review\. Neural Processing Letters57\(2\), 40 \(2025\) - \[13\]Ledoit, O\., Wolf, M\.: Improved estimation of the covariance matrix of stock returns with an application to portfolio selection\. Journal of Empirical Finance10\(5\), 603–621 \(2003\) - \[14\]Ledoit, O\., Wolf, M\.: A well\-conditioned estimator for large\-dimensional covariance matrices\. Journal of Multivariate Analysis88\(2\), 365–411 \(2004\) - \[15\]Lee, J\., Jeon, H\., Bae, H\., Lee, Y\.: Return prediction for mean–variance portfolio selection: How decision\-focused learning shapes forecasting models\. In: Proceedings of the 6th ACM International Conference on AI in Finance \(ICAIF ’25\)\. pp\. 114–122 \(2025\) - \[16\]Mandi, J\., Kotary, J\., Berden, S\., Mulamba, M\., Bucarey, V\., Guns, T\., Fioretto, F\.: Decision\-focused learning: Foundations, state of the art, benchmark and future opportunities\. Journal of Artificial Intelligence Research80, 1623–1701 \(2024\) - \[17\]Markowitz, H\.: Portfolio selection\. The Journal of Finance7\(1\), 77–91 \(1952\) - \[18\]Rockafellar, R\.T\., Uryasev, S\.: Conditional value\-at\-risk for general loss distributions\. Journal of Banking & Finance26\(7\), 1443–1471 \(2002\) - \[19\]Takano, Y\., Gotoh, J\.: Dynamic portfolio selection with linear control policies for coherent risk minimization\. Operations Research Perspectives10, 100262 \(2023\) - \[20\]Tan, S\., Frazier, P\.I\.: Regret bounds and experimental design for estimate\-then\-optimize\. arXiv preprint arXiv:2210\.15576 \(2022\) - \[21\]Wilder, B\., Dilkina, B\., Tambe, M\.: Melding the data\-decisions pipeline: Decision\-focused learning for combinatorial optimization\. In: Proceedings of the AAAI Conference on Artificial Intelligence\. vol\. 33, pp\. 1658–1665 \(2019\)
Similar Articles
Decision-focused Sparse Tangent Portfolio Optimization
This paper proposes an end-to-end decision-focused learning framework for sparse tangent portfolio optimization that replaces discrete asset selection with a smooth top-k operator, enabling gradient flow through prediction and optimization to directly maximize Sharpe ratio.
Deep Reinforcement Learning for Reliability Based Bi-Objective Portfolio Optimization
This paper proposes a deep reinforcement learning framework (MORP-DRL) for multi-objective reliability-based portfolio optimization, jointly optimizing expected return and downside risk using CVaR and EVaR under practical constraints, and demonstrates performance on global equity indices across different market regimes.
Learning Predictive Ambiguity Sets for Decision-Focused Distributionally Robust Optimization
Proposes learned predictive ambiguity sets (LPAS) for distributionally robust optimization, where a deep contextual model outputs a nominal scenario distribution, state-dependent Wasserstein radius, and ground metric, trained with decision loss and calibration. Applied to portfolio optimization on S&P 500 data, the method achieves higher returns and Sharpe ratio with reduced conservatism compared to fixed-radius baselines.
Robust Average-Reward Markov Decision Processes: Minimax-Optimal Learning via Plug-in Reductions
This paper studies the sample complexity of robust average-reward Markov decision processes, deriving minimax-optimal learning rates via plug-in reductions under total-variation uncertainty sets.
CVPO: Enhancing LLM Reinforcement Learning Reasoning via Value-Variance Adaptation and Dynamic Curriculum Learning
This arXiv paper introduces CVPO, a reinforcement learning method for LLMs that adapts value-variance for advantage estimation and uses dynamic curriculum learning to match question difficulty, achieving better reasoning performance than VAPO on math tasks.