Cubic-Regularized Newton for Spectral Constrained Matrix Optimization and its Application to Fairness

Casey Garner, Gilad Lerman, Shuzhong ZhangarXiv 2022 · DOI

Introduction

In modern machine learning and statistical modeling, researchers frequently encounter optimization problems where the variables are matrices subject to specific spectral constraints. A common example is the requirement that a covariance matrix remains positive definite ($X \succ 0$). Traditionally, enforcing these constraints has relied on barrier functions or penalty methods. However, these approaches often suffer from computational inefficiency or numerical instability, particularly when the objective function is complex or non-convex.

Simultaneously, the field of algorithmic fairness has highlighted a critical flaw in standard statistical estimators: they are often biased toward majority groups. Robust covariance estimators, such as Tyler’s M-estimator (TME), tend to fit the majority subgroup well while providing a poor representation of minority subgroups. This paper addresses both the optimization challenge and the fairness gap by introducing a novel mathematical framework that transforms constrained matrix problems into unconstrained ones, solvable via high-order optimization methods.

The Optimization Framework

Matrix Functions for Unconstrained Optimization

To bypass the difficulties of constrained optimization, the authors utilize matrix functions $G(X)$ to map an unconstrained symmetric matrix $X$ into the desired constrained space. For instance, using $G(X) = X^2 + \alpha I$ or $G(X) = e^X$ ensures that the resulting matrix is always positive definite. This transformation allows the use of standard unconstrained optimization algorithms on the underlying matrix $X$.

A Novel Second-Order Chain Rule

While first-order methods (like gradient descent) are straightforward to apply to these transformed problems, they often converge slowly. Second-order methods, such as Newton’s method, offer much faster convergence but require the Hessian (the second derivative) of the objective function.

Computing the Hessian for functions involving matrix transformations is notoriously difficult. The authors fill a significant gap in matrix calculus literature by proving a new second-order chain rule identity for matrix functions. This mathematical breakthrough makes it possible to compute the necessary derivatives to implement advanced second-order algorithms.

Cubic-Regularized Newton Method

With the Hessian computable, the authors employ a cubic-regularized Newton method. This algorithm is particularly powerful for non-convex optimization because it is designed to escape saddle points and reliably find local minima. By regularizing the Newton step with a cubic term, the method ensures global convergence and provides stronger theoretical guarantees than standard Newton or gradient-based approaches.

Application: Fair Tyler’s M-Estimator (Fair TME)

The authors apply this framework to a new statistical model called the Fair Tyler’s M-estimator (Fair TME). The goal of Fair TME is to calculate a robust covariance matrix that represents all demographic subgroups equitably.

The model formulates an objective function that measures the TME error across multiple subgroups. Instead of simply minimizing the average error, Fair TME minimizes the overall error while explicitly penalizing the "Fairness Value"—defined as the maximum absolute difference between the errors of any two subgroups. This ensures that the model does not achieve high overall accuracy by sacrificing the performance of minority groups.

Experimental Evaluation

Datasets

The framework was evaluated on both synthetic and real-world datasets:

  • Synthetic Data: Simulated elliptical subgroups in $\mathbb{R}^{30}$ with intentional population imbalances.
  • Wine Dataset: Subgroups based on wine type and quality.
  • Skills Dataset: Video game tracking data partitioned by player skill level (novice to professional).
  • Credit Dataset: Default credit card data partitioned by gender, marital status, and education.

Key Results

  • Algorithmic Performance: The cubic-regularized Newton method demonstrated significant superiority over first-order methods. It consistently reached second-order stationary points in fewer than 25 iterations. In contrast, standard gradient descent and conjugate gradient methods often failed to converge even after 2,000 iterations.
  • Fairness Gains: Fair TME drastically improved equity across all tests. On synthetic data, the fairness value was reduced by factors ranging from 100 to 10,000. On the real-world Credit dataset, fairness improved by up to 16x compared to standard TME.
  • Accuracy Preservation: Crucially, fairness did not come at the cost of utility. In the Skills dataset, Fair TME actually achieved lower absolute errors for all subgroups compared to the standard TME applied to pooled data, proving that fairness constraints can lead to more robust and accurate models overall.

Limitations and Future Directions

The primary limitation of the current approach is the computational cost of the matrix subproblem. Solving for the cubic Newton step requires computing the Hessian at multiple basis matrices, which can be expensive as the matrix dimensions increase.

Future research will focus on developing "matrix-free" approaches, such as Lanczos-based solvers, to handle the cubic subproblem without explicit vectorization. Additionally, the authors suggest extending this second-order framework to non-square matrices and higher-order tensor optimization problems, potentially broadening the impact of the new chain rule to a wider array of machine learning applications.

Summary updated

BibTeX
@misc{garner2022cubic,
  author = {Casey Garner and Gilad Lerman and Shuzhong Zhang},
  title = {{Cubic-Regularized Newton for Spectral Constrained Matrix Optimization and its Application to Fairness}},
  year = {2022},
  eprint = {2209.01229},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.01229},
}
Figure