NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Worst-Case Linear Discriminant Analysis

Yu Zhang, Dit-Yan Yeung

Executive Summary

Conventional Linear Discriminant Analysis (LDA) optimizes for the average separation between classes, which can inadvertently leave "difficult" class pairs overlapping. This paper introduces Worst-Case Linear Discriminant Analysis (WLDA), a method that instead maximizes the minimum separation between any two classes while minimizing the maximum within-class variance. This worst-case focus leads to significantly more robust dimensionality reduction for classification tasks.

Introduction: The Flaw in Average-Case Optimization

Dimensionality reduction is a cornerstone of machine learning, especially when dealing with the "curse of dimensionality" where features far outnumber data points. Linear Discriminant Analysis (LDA) is a classic supervised tool for this, aiming to find a projection where different classes are far apart and data points from the same class are tightly clustered.

However, standard LDA suffers from a fundamental flaw: its objective function relies on average-case scatter measures. In a multi-class scenario, LDA might produce a projection where most classes are well-separated, but a few "troublesome" classes remain heavily overlapped. Because the average separation remains high, LDA considers this a successful projection, even though a downstream classifier will struggle with those overlapping classes. WLDA shifts the focus from the average to the "weakest link" in the dataset.

The authors redefine the two core components of discriminant analysis to focus on worst-case scenarios:

  1. Between-class scatter ($\rho_b$): Instead of the average distance between all class means, WLDA uses the minimum pairwise distance between any two class means.
  2. Within-class scatter ($\rho_w$): Instead of the average variance across all classes, WLDA uses the maximum variance found within any single class.

The goal is to maximize the ratio $J(W) = \rho_b / \rho_w$. Because this objective is non-convex and difficult to solve directly, the authors propose two optimization strategies tailored to the scale of the data:

  • Small-scale data: The problem is relaxed into a convex Metric Learning framework. By defining a new variable $\Sigma = WW^T$, the task is transformed into a Semidefinite Programming (SDP) problem that can be solved globally.
  • Large-scale data: Because SDP does not scale well to high dimensions, the authors employ a Greedy Approach. They find one projection direction at a time using the Constrained Concave-Convex Procedure (CCCP) and Second-Order Cone Programming (SOCP), which are computationally much more efficient.

Experimental Setup

The authors evaluated WLDA against several variants (standard LDA, trace-ratio LDA, FSLDA, and MarginLDA) across two main categories of data:

  • UCI Machine Learning Repository: 10 diverse benchmark datasets including diabetes, heart, liver, sonar, spambase, balance-scale, iris, hayes-roth, waveform, and mfeat-factors.
  • Face and Object Databases: High-dimensional image datasets including ORL and AR (face recognition), PIE (faces with varying lighting/poses), and COIL-20 (object recognition from different angles).

Core Innovations

  • The "Weakest Link" Philosophy: The core insight is that classification accuracy is often bounded by the hardest-to-distinguish classes. By optimizing for the worst case, WLDA naturally lifts the overall performance floor.
  • Bayes Optimality Preserved: The authors prove that in a simple binary classification case with equal covariance matrices, WLDA reduces to the exact same solution as standard LDA. This ensures you get the benefits of the worst-case focus without losing the theoretical "correctness" of LDA in ideal scenarios.
  • Algorithmic Flexibility: By providing both an SDP relaxation for small data and a greedy CCCP/SOCP approach for large data, the method remains practically applicable regardless of whether the bottleneck is the number of samples ($n$) or the number of features ($d$).

Empirical Results

WLDA consistently outperformed or matched state-of-the-art methods across almost all tests.

UCI Datasets: WLDA achieved the lowest classification error in 8 out of 10 datasets. For example, on the liver dataset, WLDA reduced the error rate to 0.3779, compared to standard LDA's 0.4001.

Classification error rates on UCI datasets

Image Recognition: The improvements were even more pronounced on high-dimensional image data. On the ORL face dataset, WLDA reached an error rate of 0.0446, significantly better than standard LDA (0.1529). On the PIE dataset, it achieved 0.2469, nearly doubling the performance of standard LDA (0.4305).

Classification error rates on image datasets

Furthermore, the results suggest that WLDA is particularly effective when the training set is small, which is a common and challenging scenario in real-world face and object recognition tasks.

Limitations and Future Directions

While the paper demonstrates strong empirical results, a few areas remain open for future exploration:

  • Computational Cost: Even with the greedy approach, WLDA is more computationally intensive than standard LDA, which typically only requires solving a simple generalized eigenvalue problem.
  • Higher-Order Data: The current model handles flattened vectors. The authors suggest extending WLDA to handle tensors (2D or 3D data structures) directly, which would better preserve the spatial structure of images.
  • Unlabeled Data: The current version is strictly supervised. Investigating a semi-supervised extension could allow the model to leverage unlabeled data, which is often much more abundant than labeled data in practical applications.

Summary updated

BibTeX
@inproceedings{zhang2010worst,
  author = {Yu Zhang and Dit-Yan Yeung},
  title = {{Worst-Case Linear Discriminant Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2010},
}
Figure