Cardinality constrained mean-variance portfolios: a penalty decomposition algorithm

Ahmad Mousavi, George MichailidisComput. Optim. Appl 2025 · DOI

TL;DR

This paper introduces a novel penalty decomposition algorithm (CCMV-PD) for the cardinality-constrained mean-variance portfolio problem. It offers a computationally efficient and theoretically sound method to directly solve for portfolios with a precisely specified number of assets, outperforming existing methods in speed and convergence guarantees.

What Problem Does This Paper Address?

Investors aim to balance risk and return when constructing portfolios, a goal central to mean-variance optimization. A crucial, yet challenging, aspect of this is controlling the number of assets in the portfolio (cardinality constraint). This is important for managing transaction costs and simplifying portfolio management, especially with large numbers of potential assets. Existing methods often rely on approximations or regularization techniques that only implicitly control cardinality, leading to issues with hyperparameter tuning and increased problem dimensionality. This paper directly tackles the problem of finding optimal portfolios with an exact cardinality constraint, avoiding these drawbacks.

Methods

The authors propose a customized penalty decomposition algorithm (CCMV-PD). The core idea is to reformulate the original problem by introducing an auxiliary variable and then penalizing the equality constraint that links the original and auxiliary variables. This creates a sequence of penalty subproblems. Each subproblem is solved using a Block Coordinate Descent (BCD) method. A key innovation is that the subproblems within the BCD steps have closed-form solutions, making the algorithm computationally efficient. The algorithm iteratively increases the penalty parameter and refines the solution until convergence. Theoretical analysis demonstrates that this approach guarantees convergence to a local minimizer of the original problem.

Datasets

The paper evaluates the proposed CCMV-PD algorithm using real-world financial datasets. Specifically, they use monthly return data for stocks from the S&P index for the period 2016-2020, randomly selecting 133 stocks. They also mention using datasets from MIBTEL, S&P, and NASDAQ indexes for further comparison.

Key Insights and Ideas

  • Direct Cardinality Control: The algorithm directly addresses the cardinality constraint, allowing investors to specify the exact number of assets, unlike methods that only implicitly control it. This is a significant practical advantage.
  • Closed-Form Solutions in BCD: The BCD subproblems within the penalty decomposition have closed-form solutions. This is a major computational advantage, avoiding iterative solutions for each subproblem and leading to faster convergence.
  • Theoretical Guarantees: The paper provides theoretical guarantees for convergence to a local minimizer, addressing a weakness in some existing methods where convergence is not always assured or only to a saddle point.
  • Efficiency Gains: The CCMV-PD algorithm demonstrates significant speedups compared to existing methods, particularly for larger problem instances.

Key Results

The CCMV-PD algorithm was compared against the state-of-the-art CCMV-PADM method and the commercial solver Mosek.

  • Performance: CCMV-PD achieved comparable returns, risks, and Sharpe ratios to Mosek and CCMV-PADM.
  • Speed: CCMV-PD significantly outperformed both CCMV-PADM and Mosek in terms of CPU time, especially as the number of stocks and sparsity levels increased. For instance, in Figure 1, CCMV-PD shows substantially lower CPU times across different sparsity levels and problem sizes (n=226, 476, 2196).
  • Convergence: Theoretical analysis confirms that CCMV-PD converges to a local minimizer of the cardinality-constrained mean-variance portfolio problem.

Limitations and Future Work

  • Local Minimizer: The algorithm guarantees convergence to a local minimizer, not necessarily a global one. This is a common limitation for non-convex optimization problems.
  • Future Work: The authors suggest exploring extensions of this framework to other portfolio optimization problems and further enhancing computational efficiency.

Summary updated

BibTeX
@article{mousavi2025cardinality,
  author = {Ahmad Mousavi and George Michailidis},
  title = {{Cardinality constrained mean-variance portfolios: a penalty decomposition algorithm}},
  journal = {Comput. Optim. Appl.},
  year = {2025},
  doi = {10.1007/s10589-025-00653-4},
}
Figure