Randomized Iterative Algorithms for Fisher Discriminant Analysis

Agniva Chowdhury, Jiasen Yang, Petros Drineas

Abstract

Fisher discriminant analysis (FDA) is a widely used method for classification and dimensionality reduction. When the number of predictor variables greatly exceeds the number of observations, traditional FDA becomes computationally prohibitive and numerically unstable. Regularized FDA (RFDA) addresses stability but incurs high computational costs. This paper introduces a novel iterative, sketching-based algorithm for RFDA that combines randomized linear algebra with an iterative refinement process. We provide provable accuracy guarantees, showing that the approximation error decays exponentially with the number of iterations, while significantly reducing computational overhead compared to exact methods.

Introduction

Fisher Discriminant Analysis (FDA) seeks a projection that maximizes between-class variance relative to within-class variance. In high-dimensional settings where the number of features ($d$) is much larger than the number of observations ($n$), the scatter matrices are often singular. Regularized FDA (RFDA) introduces a penalty term ($\lambda$) to ensure well-posedness. However, the exact solution requires $O(n^2d + n^3)$ time, which is impractical for massive datasets. While previous "sketching" techniques—which project data into a lower-dimensional space—have been proposed, they often lack high precision or depend heavily on the data's condition number.

The Iterative RFDA Sketch Algorithm

The proposed approach, Algorithm 1: Iterative RFDA Sketch, moves beyond traditional one-step sketching. It employs an iterative refinement process similar to a preconditioned Richardson iteration:

  1. Sketching Phase: The high-dimensional data is compressed using a random sketching matrix $S$. The authors explore various sketching strategies, including oblivious methods (Count-Sketch, SRHT) and importance sampling based on ridge leverage scores.
  2. Iterative Refinement: In each step, the algorithm solves a smaller, sketched version of the RFDA problem. It then computes a residual error and updates the solution.
  3. Convergence: Theoretically, the approximation error decays exponentially ($ \epsilon^t $) over $t$ iterations. The necessary sketch size is determined not by the raw dimension $d$, but by the effective degrees of freedom ($d_\lambda$), which is typically much smaller.

Key Insights: Effective Degrees of Freedom and Precision

A central contribution of this work is the identification of $d_\lambda$ as the primary driver of complexity. As the regularization parameter $\lambda$ increases, $d_\lambda$ decreases, allowing for smaller sketches without sacrificing accuracy. Furthermore, the iterative nature of the algorithm allows it to achieve "high-precision" results—where the error vanishes exponentially—contrasting with the "coarse" approximations typical of standard randomized methods.

The authors also highlight the importance of approximating a matrix $G$ that preserves distances between projected points, rather than focusing solely on eigenvectors. This is particularly effective for distance-based classifiers like k-Nearest Neighbors.

Empirical Results

The algorithm was tested on high-dimensional datasets, including the ORL Database of Faces ($d=10,304$) and PEMS-SF traffic data ($d=138,672$).

Convergence and Accuracy

As shown in the experimental results, the relative approximation error for most sketching methods (except uniform sampling) drops precipitously, reaching $10^{-10}$ within 20 to 40 iterations.

Relative approximation error vs. number of iterations for a sketch size of 5000. Note the exponential decay for most methods and the divergence of uniform sampling.

In terms of practical classification performance, the sketched estimator quickly converges to the "Exact" RFDA accuracy. Even with relatively small sketch sizes, the algorithm matches the exact solution's accuracy within 4 to 6 iterations.

Classification accuracy vs. number of iterations for a sketch size of 5000. The iterative approach quickly reaches the performance of the exact RFDA solution.

Comparison with Prior Work

The iterative method significantly outperforms previous state-of-the-art randomized RFDA techniques. The authors demonstrate that earlier methods are essentially equivalent to the first iteration of their proposed algorithm, explaining why the iterative approach achieves much higher precision.

Conclusion and Future Directions

This work provides a robust framework for scaling RFDA to high-dimensional regimes. By leveraging iterative refinement and the concept of effective degrees of freedom, the algorithm offers a high-precision alternative to exact solvers. Future research may explore the statistical generalization error of these sketched estimators and extend the framework to other FDA variants, such as those utilizing the Moore-Penrose pseudo-inverse.

Summary updated

BibTeX
@inproceedings{chowdhury2019randomized,
  author = {Agniva Chowdhury and Jiasen Yang and Petros Drineas},
  title = {{Randomized Iterative Algorithms for Fisher Discriminant Analysis}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=3dhIINfCxj},
}
Figure