Skip to main content
QUICK REVIEW

[Paper Review] Spectral Algorithms for Computing Fair Support Vector Machines

Matt Olfat, Anil Aswani|arXiv (Cornell University)|Oct 16, 2017
Face and Expression RecognitionComputer Science22 references8 citations
TL;DR

This paper proposes spectral algorithms to compute fair support vector machines (SVMs) by imposing a nonconvex quadratic constraint on covariance matrices conditioned on protected classes, using iterative spectral decomposition to handle nonconvexity. The method achieves high prediction accuracy while ensuring fairness across all thresholds, outperforming baseline methods in both synthetic and real-world datasets with minimal accuracy loss and improved fairness control.

ABSTRACT

Classifiers and rating scores are prone to implicitly codifying biases, which may be present in the training data, against protected classes (i.e., age, gender, or race). So it is important to understand how to design classifiers and scores that prevent discrimination in predictions. This paper develops computationally tractable algorithms for designing accurate but fair support vector machines (SVM's). Our approach imposes a constraint on the covariance matrices conditioned on each protected class, which leads to a nonconvex quadratic constraint in the SVM formulation. We develop iterative algorithms to compute fair linear and kernel SVM's, which solve a sequence of relaxations constructed using a spectral decomposition of the nonconvex constraint. Its effectiveness in achieving high prediction accuracy while ensuring fairness is shown through numerical experiments on several data sets.

Motivation & Objective

  • To address fairness in machine learning classifiers, particularly SVMs, by ensuring fairness across all decision thresholds, not just a single one.
  • To develop computationally tractable algorithms that maintain high predictive accuracy while reducing bias against protected classes (e.g., gender, race).
  • To reformulate fairness using receiver operating characteristic (ROC) curves for better visualization and analysis of fairness across thresholds.
  • To introduce a nonconvex quadratic constraint based on conditional covariance matrices to enforce fairness in linear and kernel SVMs.
  • To design an iterative optimization framework using spectral decomposition that converges to a local minimum under the fairness constraint.

Proposed method

  • Formulates fairness via constraints on the covariance matrices of input features conditioned on protected classes, leading to a nonconvex quadratic constraint in the SVM optimization problem.
  • Uses spectral decomposition of the nonconvex constraint to construct a sequence of convex relaxations that are iteratively solved.
  • Applies an iterative algorithm that updates the SVM parameters by solving convex subproblems derived from the spectral decomposition, ensuring convergence to a local minimum.
  • Adapts the kernel trick by replacing inner products with kernel functions, enabling application to nonlinear kernel SVMs.
  • Introduces a regularization parameter μ to control the trade-off between fairness and accuracy, with μ=0 equivalent to the baseline ZSVM method.
  • Employs cross-validation to tune hyperparameters (e.g., λ for LSVM) and ensures fair comparison between SSVM and ZSVM across datasets.

Experimental results

Research questions

  • RQ1Can fairness in SVMs be enforced across all decision thresholds, not just a single threshold, using a principled optimization framework?
  • RQ2How can nonconvex fairness constraints based on conditional covariance matrices be efficiently solved in SVM training?
  • RQ3What is the trade-off between predictive accuracy and fairness when enforcing fairness across all thresholds using spectral relaxation?
  • RQ4How does the proposed spectral algorithm compare to existing fair SVM methods (e.g., Zafar et al.) in terms of fairness and accuracy?
  • RQ5Can the proposed method improve fairness without significantly reducing predictive accuracy, and can it even enhance accuracy in some cases?

Key findings

  • The proposed SSVM method achieves significantly improved fairness (lower DP-Δ) compared to standard linear SVM and ZSVM, especially as the fairness parameter d increases.
  • For both synthetic and real-world datasets (wine quality and German credit), SSVM maintains high AUC (area under the ROC curve) while strictly improving fairness across all thresholds.
  • Small increases in the regularization parameter μ in SSVM often improve both fairness and accuracy, indicating effective control over the fairness-accuracy trade-off.
  • When μ=0, SSVM reduces to ZSVM, confirming equivalence with the baseline method, and the method shows sensitivity to μ and d, allowing fine-tuned fairness control.
  • The algorithm converges to a local minimum, and numerical results show that fairness can be enhanced with minimal loss in predictive accuracy—some cases even show slight accuracy gains with increased fairness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.