Deflation-Free Sparse Optimal Scoring Sharmin Afroz1 and Brendan Ames2
arXiv:2604.25664v1 [stat.ML] 28 Apr 2026
1
Department of Computational & Informational Sciences, Stillman College, Tuscaloosa, AL, USA, [email protected] 2 School of Mathematical Sciences, University of Southampton, Southampton, UK, [email protected] April 29, 2026 Abstract Sparse Optimal Scoring (SOS) reformulates linear discriminant analysis to enable feature selection through elastic net regularization, making it well-suited for high-dimensional settings where the number of features exceeds observations. Most existing SOS methods use deflation-based strategies that compute discriminant vectors sequentially, which can propagate errors and produce suboptimal solutions. We propose a novel approach that estimates all discriminant vectors simultaneously under an explicit global orthogonality constraint, which we call Deflation-Free Sparse Optimal Scoring (DFSOS). DFSOS combines Bregman iteration with orthogonality-constrained optimization, decomposing the problem into tractable subproblems for scoring vectors, discriminant vectors, and orthogonality enforcement. We establish convergence to stationary points of the augmented Lagrangian under mild conditions. Extensive experiments using synthetic data and real-world time series data demonstrate that DFSOS achieves classification accuracy comparable to or better than existing deflation-based methods. These results indicate that deflation-free approaches offer a robust and effective framework for sparse discriminant analysis in high-dimensional problems.
1
Introduction
Linear Discriminant Analysis (LDA) is a classical supervised learning technique widely used for classification, dimension reduction, and data visualization. Given a dataset with n observations, p features, and K classes, LDA seeks a low-dimensional linear subspace in which class separation is maximized. Under the multivariate Gaussian model, LDA assumes that observations from class i follow a normal distribution N (µi , Σ) with a common covariance matrix across classes. Classification is performed by maximizing posterior class probabilities, which leads to linear decision boundaries. This Bayesian formulation yields discriminant functions of the form 1 δi (x) = xT Σ−1 µi − µTi Σ−1 µi + log πi . 2 where πi denotes the prior probability of class i. We will focus on an equivalent framework for LDA based on optimal scoring [16, 15]. Here, LDA is reformulated as a linear regression problem with numerical scores assigned to class labels. Under appropriate constraints, this optimal scoring approach is known to coincide with the Bayesian formulation (see [17, Section 4.3] and [26]). Fisher proposed an alternative formula of LDA based on maximizing the Rayleigh quotient of the between-class and within-class scatter matrices of the training data. This reduces LDA to a generalized eigenvalue problem. Unfortunately, when the number of features p is larger than the number of observations n, the sample covariance matrix and sample within-class scatter matrices are singular; in this case, the change of basis/variables needed to perform LDA is impossible to compute. This shortcoming of LDA inspired penalized or sparse discriminant analysis (SDA) approaches which introduce regularization, particularly sparsity-inducing penalties, into the discriminant analysis framework so that only a subset of informative features is used for classification [15, 38, 30, 12, 27, 14, 7, 36, 9]. Many existing sparse discriminant analysis methods find multiple discriminant directions using a deflationary process. After each discriminant direction is computed, the next one is forced to be orthogonal to the previous ones. While this step-by-step process is relatively easy to implement, it has important 1
limitations. Error in the early directions can carry over and affect the later ones, which can hurt both interpretability and classification performance. In addition, this sequential procedure makes parallel computation difficult and hides the overall structure of the optimization problem. These limitations motivate the development of deflation-free methods. Instead of computing discriminant vectors one at a time, these methods estimate all directions at once while directly enforcing orthogonality between them. This method maintains sparsity while avoiding the numerical and statistical problems caused by sequential deflation.
1.1
Contribution
We propose a novel formulation for sparse discriminant analysis that jointly estimates multiple discriminant vectors under a global orthogonality constraint, eliminating the need for sequential deflation and avoiding error propagation inherent in deflation-based approaches. This approach is based on a modification of the sparse optimal scoring approach considered in [9, 2]. Specifically, we reformulate the deflation-based sparse optimal scoring problem using a global orthogonality constraint. We then propose and analyse a block-coordinate descent method for solution of this orthogonality-constrained optimization problem. We establish conditions for convergence of this heuristic and observe via empirical trials that it is competitive in terms of classification performance and computational complexity.
1.2
Outline
In Section 2, we review sparse optimal scoring and existing deflation-based block coordinate descent approaches, including their optimization properties and limitations. In Section 3, we introduce the proposed deflation-free sparse optimal scoring formulation and present the DFSOS algorithm, including detailed derivations of each subproblem, implementation details, and convergence analysis. In Section 4, we evaluate the empirical performance of DFSOS on synthetic Gaussian data and real time-series classification benchmarks, comparing accuracy, sparsity, and computational efficiency with existing methods. Finally, Section 5 concludes the paper with a discussion of implications, limitations, and directions for future research.
2
Sparse Optimal Scoring
2.1
The Optimal Scoring Problem
As mentioned previously, the optimal scoring problem seeks to recast the classification problem as a regression problem by using a sequence of scorings to turn the categorical class-labels into quantitative variables. Here, we formally discuss the specialization of this framework to linear discriminant analysis. Let X ∈ Rn×p denote a data matrix with rows encoding n observations of p-dimensional data vectors and let Y be an n × K indicator matrix for the K classes. It is defined as Yij = 1 if the ith observation belongs to the jth class, Yij = 0 otherwise. Let θ i ∈ RK denote the ith scoring vector and β i ∈ Rp be the ith discriminant vector. The optimal scoring problem seeks to jointly optimize the scoring-discriminant vector (θ i , β i ) so that the sum of squared differences between class labels encoded by θ i and the linear regression model encoded by β i is minimized: min
∥Y θ i − Xβ i ∥2
s.t.
T 1 T n θi Y Y θi = 1 T T θi Y Y θℓ = 0
β i ,θ i
(1) ∀ℓ < i.
We assume that the scoring vector θ i is normalized and orthogonal to the previously computed i − 1 scoring vectors to make the problem well-posed. This process is inherently deflationary as we must compute scoring-discriminant vector pairs one by one. LDA has been observed to yield accurate classifiers when applied to data with a small number of predictor variables, particularly for Gaussian data when each class has a shared population covariance matrix. However, it can overfit the data in problems with large numbers of highly correlated variables. Conversely, when the class boundaries are nonlinear it can underfit the data [15]. Moreover, when the number of features p is much larger than the number of observations n i.e., p > n, the sample covariance matrix Σ, proportional to X T X, does not have full rank. To address these issues, Clemmensen et al. [9]
2
introduce regularization in the form of an elastic net penalty function [38]. This yields the sparse or penalized optimal scoring problem (SOS): min
∥Y θ i − Xβ i ∥2 + γβ Ti Ωβ i + λ∥β i ∥1
s.t.
T 1 T n θi Y Y θi = 1 T T θi Y Y θℓ = 0
β i ,θ i
(2) ∀ℓ < i.
It utilizes both the lasso penalty (ℓ1 -norm), to induce sparsity, and the ridge penalty (ℓ2 -norm), to encourage selection of clusters of correlated variables [38]. More details on the use of the naive elastic net penalty can also be found in [17, Section 18.4]. Note that the generalized elastic net penalty differs from the naive elastic net only in the use of the ℓ2 -norm with respect to a different basis.
2.2
A Block Coordinate Descent Approach for Sparse Optimal Scoring
Clemmensen et al. [9] propose a heuristic for solving (1) using block coordinate descent with respect to θ i and β i . To update θ i , we fix β i and solve the problem minθi s.t.
∥Y θ i − Xβ i ∥2 T 1 T n θi Y Y θi = 1 T T θ i Y Y θ ℓ = 0 ∀ℓ < i.
(3)
Although this is a non-convex quadratic program in θ i , (3) admits a closed-form solution, given in the following theorem. Theorem 1. The problem (3) has optimal solution θ new = s(I − Qi QTi D)D −1 Y T Xβ i i
(4)
where D = n1 Y T Y , Qi is the K × i matrix with columns consisting of the previous i − 1 scoring vectors θ 1 , θ 2 , ..., θ i−1 and the all-ones vector 1 ∈ RK , and s is a proportionality constant ensuring that θ Ti Dθ i = 1. In particular, θ i is given by w = (I − Qi QTi D)D −1 Y T Xβ i ,
θi = √
w wT Dw
.
(5)
After updating θ i , we fix θ i and solve the β-subproblem = argmin ∥Y θ i − Xβ∥2 + γβ T Ωβ + λ∥β∥1 . β new i
(6)
β
This is a convex optimization problem in β and can be solved efficiently using iterative methods. Clemmensen et al. propose the use of least angle regression (LARS) [11, 38, 28] to solve (6). Alternately, Atkins et al. [2] consider solution of (6) using the accelerated proximal gradient method and the alternating direction of method of multipliers. In either case, we solve (6) and then use this new value of β to update θ and so on. We repeat this process until the iterates (θ i , β i ) converge. After finding the optimal scoring-discriminant vector pairs, classification is performed using nearest centroid classification on the projection of the data onto the space spanned by the discriminant vectors, given by [Xβ 1 . . . Xβ q ] where q < K [9]. This iterative approach for updating θ and β is summarized in Algorithm 1. The following theorem establishes that the sequence of function values for SOS given by Algorithm 1 is convergent; see [2, Theorem 2.4]. Theorem 2. Suppose that the sequence of iterates {(θ t , β t )}∞ t=0 is generated by Algorithm 1. Then the defined by F (θ, β) := ∥Y θ−Xβ∥2 +γβ T Ωβ+λ∥β∥1 sequence of objective function values {F (θ t , β t )}∞ t=0 is convergent. It can also be established that every convergent subsequence of {(θ t , β t )}∞ t=1 converges to a stationary point of (2), see [2, Theorem 2.5]. tℓ tℓ ∞ Theorem 3. Let {(θ t , β t )}∞ t=1 be the sequence of points generated by Algorithm 1. Suppose that {(θ , β )}ℓ=1 t t ∞ ∗ ∗ ∗ ∗ is a convergent subsequence of {(θ , β )}t=1 with limit (θ , β ). Then (θ , β ) is a stationary point of (2): (θ ∗ , β ∗ ) is feasible for (2) and there exists ψ ∗ ∈ R and ν ∗ ∈ Rj−1 such that 0 ∈ ∂L(θ ∗ , β ∗ , ψ ∗ , ν ∗ ), where ∂L(θ, β, ψ, ν) denotes the subdifferential of the Lagrangian function L with respect to the primal variables (θ, β).
3
Algorithm 1 Sparse Discriminant Analysis [9, 2] 1: Given stopping tolerance ϵ and maximum number of iterations N . ∗ ∗ ∗ ∗ ∗ ∗ 2: return scoring-discriminant vector pairs (θ 1 , β 1 ), (θ 2 , β 2 ), . . . , (θ K−1 , β K−1 ). 3: for j = 1, 2, . . . , K − 1 do 4: Initialize θ 0j :
θ 0j = 5: 6: 7: 8:
1 I − Qj QTj Y T Y (Y T Y )−1 z, n
√
θ 0j =
nθ 0j
∥Y θ 0j ∥
.
Calculate the jth scoring and discriminant vector pair (θ ∗j , β ∗j ): for i = 0, 1, 2 . . . N do Update β ij as the solution of (6) with θ = θ ij . Update θ i+1 by j w=
I−
1 Q QT Y T Y n j j
√
(Y T Y )−1 Y T Xβ ij ,
θ i+1 =
nw ; ∥Y w∥
9:
Converged if the residual between consecutive iterates is smaller than tolerance:
10:
if max
∥θ i+1 −θ ij ∥ ∥β i+1 −β ij ∥ j j ∥θ i+1 ∥ j
,
∥β i+1 ∥ j
< ϵ then
11: The algorithm has converged. 12: Increment j and break 13: end if 14: end for 15: end for
3
Deflation-Free Sparse Optimal Scoring
Most existing SOS algorithms rely on deflation-based strategies. Deflation-based methods impose orthogonality implicitly and locally, rather than enforcing a global orthogonality constraint across all discriminant vectors. As a result, the final set of discriminant directions may be sensitive to initialization, ordering, and numerical errors, and may fail to optimally capture class separation in a joint sense. These challenges become more pronounced in high-dimensional settings ( p ≫ n), where sparse regularization already introduces nonconvexity and instability. To overcome these limitations, deflation-free methods reformulate SOS as a single orthogonality-constrained optimization problem, allowing all discriminant and scoring vectors to be computed simultaneously. By enforcing orthogonality at the matrix level and avoiding sequential deflation, deflation-free approaches eliminate error accumulation, improve numerical stability, and yield more coherent discriminant subspaces. This motivates the development of algorithms such as Deflation-Free Sparse Optimal Scoring (DFSOS), which leverage splitting techniques and Bregman iteration to efficiently handle orthogonality constraints while preserving sparsity and scalability in high-dimensional settings. We consider the following variant of the sparse optimal scoring problem, which we call deflation-free sparse optimal scoring: min
J(θ, β) := ∥Y θ − Xβ∥2F + γβ T β + λ∥β∥1
s.t.
T 1 T n θ Y Y θ = I.
θ∈RK×q ,β∈Rp×q
(7)
Note that (7) requires minimization of a quadratic function in (θ, β) over the manifold of K ×q orthogonal matrices (with respect to the inner product ⟨θ1 , θ2 ⟩ = n1 θ1 T Y T Y θ2 ). Note further that we substitute Ω = I in the ridge regression term in (2); our problem and algorithm can be modified to allow generalized Tikhonov regression, but we focus on this specialization for the sake of model and algorithmic simplicity. This problem is non-convex. Moreover, optimization over the manifold of orthogonal matrices is NP-hard; see [21, 22] and the set of reductions given in [19, Section 1].
4
3.1
A Splitting Method for Deflation-Free Sparse Optimal Scoring
Due to this worst-case intractability, much recent research has focused on the design of heuristics for solving orthogonally-constrained optimization problems [1, 20, 35, 13, 23, 25, 18, 8, 4, 3, 37]. In particular, we will leverage a method recently proposed by Lai and Osher [20] to approximately solve (7). This approach uses matrix splitting and Bregman iteration, to generate a sequence of approximate solutions of (7) from the solution of easier to solve subproblems. We introduce the primal variable P = √1n Y θ. Then the DFSOS problem can be written as arg min
J(θ, β)
θ∈RK×q ,β∈Rp×q
P = √1n Y θ,
s.t.
(8)
P T P = I.
Using Bregman iteration the optimal solution of (8) can be found iteratively using the update formulas ρ (θ k , β k , P k ) = arg min J(θ k , β k ) + ∥LX − P k−1 + B k−1 ∥2F , 2 θ, β, P ∈Rn
s.t.
P T P = I,
B k = B k−1 + LX k − P k ,
(9) (10)
where L := √1n Y . We will approximately solve the subproblem (9) using block-coordinate descent, where we minimize with respect to each primal variable θ, β, and P individually with the others fixed.
3.2
The θ sub-problem
We first fix β, P , B and describe the process for updating θ. In this case, θ new is the solution of min θ
s.t.
q X
∥Y θ i − Xβ i ∥2 + γ∥β∥2 + λ∥β∥1 +
i=1 T T
θ Y Y 1 = 0,
ρ 1 √ Y θi − P i + B i 2 n
2
i = 1, 2, ...., q.
, the ith column of θ or ith This problem is separable with respect to the columns of θ. Thus, θ new i scoring vector, is the minimizer of min θ
s.t.
q X
∥Y θ i − Xβ i ∥2 + γ∥β i ∥2 + λ∥β i ∥1 +
i=1 θ Ti Y T Y 1 = 0.
ρ 1 √ Y θi − P i + B i 2 n
2
The objective function of Equation (11) is a convex quadratic in θ i : ρ 1 T T 2 T T T T T T √ θ Y Y θi − θ Y (P i − B i ) + C F (θ i ) = θ i Y Y θ i − 2θ i Y Xβ i + 2 n i n i
(11)
(12)
where C represents all the constant terms depending only on β, P and B. Therefore, the sub-problem for θ i can be reformulated as: T T ρ min 1 + 2n θ i Y Y θ i − 2θ Ti Y T Xβ i + 2√ρ n (P i − B i ) + C θi (13) s.t. θ Ti Y T Y 1 = 0. This is a strongly convex quadratic program in θ i . Therefore, the unique solution of the Karush-KuhnTucker conditions is the unique minimizer. Enforcing the KKT conditions yields the following linear system for (θ i , vi ), where vi is the Lagrange multiplier corresponding to the equality constraint: T 2Y (Xβ i + 2√ρ n (P i − B i )) 2I + nρ Y T Y −Y T Y 1 θi = (14) . T T v 1 Y Y 0 0 i Thus, we update θ i as the solution of linear system (14) using the current values of β i , P i , B i for each i = 1, 2, ...., q. Note that the coefficient matrix in (14) depends only on the parameter ρ and the matrix Y T Y ; we can pre-compute a Cholesky factorization and use it to update each θ i until ρ is changed. This update scheme is also amenable to parallelization as we can update all θ i simultaneously. 5
Algorithm 2 DFSOS Algorithm 0
0
1: Initialize: Given regularization parameter λ > 0 and initial θ , β , set B
0
= 0, P 0 = LX, where
L = √1n Y . 2: while “not converged” do 3: (θ k , β k ) = arg min J(θ k−1 , β k−1 ) + ρ2 ∥ √1n Y θ k−1 − P k−1 + B k−1 ∥2F .
Compute the SVD Lθ k + B k−1 = U DV T . 5: P k = U I n×m V T . 6: B k = B k−1 + Lθ k − P k 7: k ←k+1 8: end while 4:
3.3
Updating β
We update β new as the solution of the following unconstrained optimization problem min β
q X
∥Y θ i − Xβ i ∥2 + γ∥β i ∥2 + λ∥β i ∥1 ,
(15)
i=1
with θi fixed, where βi denotes the ith column of β. This objective function is separable in βi . Each βi can be updated independently using the iterative methods outlined in Section 2.2. In the experimental analysis found later in this manuscript, we will focus on the use of the accelerated proximal gradient method proposed by Atkins et al. [2]; however, any efficient iterative method for non-smooth convex minimization may be used. Again, we can parallelize this update and compute all new βi simultaneously.
3.4
Updating P
Finally, we update P new by minimizing the augmented Lagrangian of (8) with respect to P with θ and β fixed. The following theorem gives a closed-form solution for P new . Theorem 4 ([20, Theorem 2.1]). The constrained quadratic problem: 1 ∥Q − Y ∥2F , Q∈Rn×m 2
Q∗ = arg min
s.t.
QT Q = I
(16)
has an analytical solution Q∗ = U I n×m V T , where U ∈ Rn×n , V ∈ Rm×m are orthogonal matrices and D ∈ Rn×m is a diagonal matrix satisfying the singular value decomposition (SVD) Y = U DV T . Moreover, if rank(Y ) = m, then Q∗ = Y Ṽ D̃
−1/2
T
Ṽ ,
where V ∈ Rm×m is an orthogonal matrix and D̃ ∈ Rm×m is a diagonal matrix satisfying the SVD T Y T Y = Ṽ D̃ Ṽ . Note that P new = argmin ∥P − (Lθ + B)∥2F
s.t.
PTP = I
P ∈Rk×q
for fixed iterates (θ, β, B). Theorem 4 suggests an algorithm for updating P : compute the singular value decomposition Lθ + B = U DV T ; then let P new = U I k×q V T .
3.5
(17)
A Heuristic for Deflation-Free Optimal Scoring
Each iteration of our proposed algorithm DFSOS updates (θ, β, P ) using (14), (15), and (17), followed by the approximate dual ascent step (10). We summarize the steps of the DFSOS Algorithm in Alg. 2.
6
3.6
Convergence of DFSOS
Convergence of our algorithm follows directly from Corollary 2 given in [34, Section 5]. We have the following theorem: Theorem 5. Let {(θ k , β k )}∞ k=1 be the sequence of points generated by Algorithm 2. Then DFSOS (Algorithm 2) is convergent for sufficiently large choice of r. In this case, each set of iterates {(θ k , β k )}∞ k=1 is bounded, has at least one limit point, and each limit point (θ ∗ , β ∗ ) is a stationary point of the augmented Lagrangian L(θ, β, P ), i.e., 0 ∈ ∂L(θ ∗ , β ∗ , P ∗ ). Proof. The objective function J(θ, β) is strongly convex and differentiable. For l1 -constrained optimization, Bregman iteration coincides with the general ADMM Algorithm. It is easy to see that both ADMM and Bregman Iteration are bounded and the augmented Lagrangian is lower bounded at a critical point [34, 24]. Moreover, each set of the sequence {(θ k , β k )}∞ k=1 generated by Algorithm 2 is a bounded set and J(θ, β) is lower bounded on the feasible set. This shows that Algorithm 2 and the problem (8) satisfy the hypothesis of Corollary 2 [34]. This establishes the stated convergence of Algorithm 2.
3.7
Practical Implementation Details
We conclude this section with a discussion of practical details guiding usage of our heuristic for deflationfree sparse optimal scoring. 3.7.1
Range of Regularization Parameters
We want to choose λ so we that are guaranteed a non-trivial solution in the β subproblem. If we set λ = 0, the β-subproblem (15) becomes min β
q X
∥Y θ i − Xβ i ∥2 + γ∥β i ∥2 ,
(18)
i=1
where θ is fixed. Expanding gives the equivalent problem min β
q X
β Ti X T Xβ i − 2β Ti X T Y θ i + γ∥β i ∥2 .
(19)
i=1
Applying stationarity and taking partial derivatives with respect to β shows that β ∗ is a solution of the linear system 2 X T X + γI β ∗ = 2X T Y θ (20) This linear system has unique solution −1 β ∗ = X T X + γI X T Y θi .
(21)
Substituting β ∗ into the original objective function (19) gives the minimum value q X
∗ ∗T T T T T β ∗T X X + γI β − 2β X Y θ + θ Y Y θ + λ∥β ∥ , i i 1 i i i i i
(22)
i=1
where we have θ Ti Y T Y θ i = n by feasibility of θ. Now, rearranging we have a nontrivial β solution if β ∗ has value at most nq. Therefore, we need q X
T β ∗T X T X + γI β ∗i − 2β ∗T i i X Y θ i + λ∥β i ∥1 ≤ 0.
(23)
i=1
Thus, it is sufficient to choose Pq λ≤
T T T T i=1 β i (X X + γI)β i − 2β i X Y θ i
∥β∥1 7
,
(24)
Algorithm 3 Pseudocode for initializing θ 1: Input random θ ∈ Rk×q . 2: for i = 1, 2, . . . do 3: D = n1 (Y T Y ) 4: t = u − Qj (QTj Du) 5: a = tT Dt √ 6: θ i = t/ a 7: end for to ensure there exists at least one solution β ∗ with objective value strictly less than the value of the trivial solution β = 0. A more flexible approach is to assign a different regularization term λi for each column of β: min β
q X
∥Y θ i − Xβ i ∥2 + γ∥β i ∥2 + λi ∥β i ∥1 .
(25)
i=1
In this case, we can ensure a non-trivial solution by choosing λ1 , λ2 , . . . , λq to satisfy λi ≤
β Ti (X T X + γI)β i − 2β Ti X T Y θ i ∥β i ∥1
for all i = 1, 2, . . . , q. 3.7.2
Initialization
We randomly initialize θ and apply an orthogonalization process based on modification of the GramSchmidt process to ensure that our initial iterate θ satisfies θ T Y T Y θ = nI. Details of this process are given in Algorithm 3. On the other hand, we calculate initial β from the initial orthogonal θ and the data matrix X using the Sherman-Morrison-Woodbury process. Lemma 6 (Sherman-Morrison-Woodbury). If A = E + U V , then A−1 = (E + U V )−1 = E −1 − E −1 U (I + V E −1 U )−1 V E −1 .
(26)
After temporarily setting the ℓ1 -penalty parameter λ = 0, (21) is equivalent to min β
q X
β Ti X T Xβ i − 2β Ti X T Y θ ∗i + γ∥β i ∥2 .
(27)
i=1
Here θ ∗i is the orthogonal initial θ. Applying stationarity and taking partial derivatives of (27) with respect to β i gives optimum β ∗ such that 2 X T X + γI β ∗i = 2X T Y θ ∗i . (28) Applying the Sherman-Morrison-Woodbury formula (26), shows that −1 β ∗i = X T X + γI X T Y θ ∗i −1 ! 12 T 1 1 T I− X I + XX X X T Y θ ∗i = γ γ γ ! −1 1 1 T 1 T = M− X I + XX (XM ) , γ γ γ where M = X T Y θ ∗i . This process is summarized in Alg. 4.
8
Algorithm 4 Pseudocode for β ∗ 1: Input X, θ , Y , γ ∗ T 2: Calculate B = X Y θ i 3: Compute XB T 4: Compute I + γ1 XX 5: Using Cholesky factorization solve
I + γ1 XX T V = XB
1. RT R = I + γ1 XX T 2. Solve RT RV = XB for RV ⇒ temp = RV = RT \(XB) 3. Solve V = R\temp T 6: Compute β = γ1 B − γ1 X V . Algorithm 5 Update of penalty parameter ρ 0
1: Input η < 1, σ > 1, initial ρ, initial orthogonal primal variable P 0 = Lθ . 2: Initialize v0 = 2∥P 0 ∥2F = 2q.
3: At iteration k: Compute v = ∥P − Lθ∥2F 4: if v < ηvk then 5: vk+1 = v 6: else 7: ρk+1 = σρk 8: vk+1 = vk 9: end if
3.7.3
An Alternative Factorization
The matrix Y T Y is a diagonal matrix with ith diagonal entry equal to the number of observations ni belonging to class i. We can perform the matrix-splitting given in (8) using the matrix √ n1 √ n2 1 (29) L= √ .. n . √ nK . This factorization can be more computationally efficient than that outlined above as the matrix L is k × k, rather than n × n. Moreover, products involving L only require scaling according to the diagonal entries of L. 3.7.4
The Augmented Lagrangian Parameter
We dynamically update the augmented Lagrangian parameter r each iteration. If the residual ∥P k − Lθ k ∥2F following iteration k does not decrease a sufficient amount, then we increase r to accelerate convergence of the Bregman iteration scheme as suggested in [6, Section 3.1]. Details for this update process are given in Alg. 5.
4
Empirical Analysis
We next compare the empirical performance of our deflation-free optimal scoring methods with existing methods for SOS, as well as standard classification methods, for a variety of data.
4.1
Gaussian Data
We first investigate the performance of our algorithm for classifying Gaussian data. We performed the following experiment 10 times for each (K, r)-pair for K ∈ {3, 6} and r ∈ {0.1, 0.5, 0.9}. In each experiment, we sample p-dimensional vectors from K multivariate normal distributions for p = 1000. For each dataset, we apply sparse optimal scoring to perform dimension reduction, and validate this 9
transformation by performing nearest centroid classification following projection onto the span of the learned discriminant vectors. 4.1.1
Distribution of Gaussian Data
We generate training data corresponding to the ith class, i = 1, 2, ..., K, by sampling ntrain = 100 observations from the multivariate normal distribution with mean µi ∈ Rp satisfying ( 0.7 if 100(i − 1) < j ≤ 100i [µi ]j = 0 otherwise for all j = 1, 2, ..., K and covariance matrix Σ ∈ Rp×p with all features correlated defined by ( r, if i ̸= j, Σij = 1, if i = j for fixed scalar r ∈ [0, 1). In each experiment, we sampled ntest = 1000 testing observations from each class. For each combination of (K, r), we produced 10 training-validation pairs of data. 4.1.2
Methods for Comparison and Choice of Parameters
We apply the DFSOS method proposed in Section 3 to fit discriminant vectors using each training data 1/2 set. We consider two variants based on solving (8) with L = √1n Y (DFSOS-1 ) and L = √1n Y T Y (DFSOS-2 ). We use the accelerated proximal gradient heuristic proposed in [2] to solve (10) and update β in each version of DFSOS. We compare our deflation-free approach with the accelerated proximal gradient (APG) and alternating direction method of multipliers (ADMM) heuristics for sparse optimal scoring proposed in [2]. We use 5-fold cross validation to choose ℓ1 -penalty parameter λ in DFSOS, APG, and ADMM from 7 possible choices on the exponential grid −3 −2 −1 2 , 2 , 2 , 1, 2, 22 , 23 × λmax , where λmax is chosen as in Section 3.7.1. We also compare our classification results using support vector machine (SVM) and k-nearest neighbour (KNN) classifiers for k = 1, 5, 10. DFSOS requires choice of stopping criteria for the inner optimization of β and the overall optimization iteration. We terminate the inner optimization if a 10−5 suboptimal solution is found or a maximum of 50 iterations are performed; we stop the β-update proximal gradient step after a 10−4 suboptimal solution is found or after 100 iterations. We terminate the outer loop after a maximum of 500 iterations or a 10−4 suboptimal solution is found. We use scaling parameters η = 0.25, σ = 2, and initial ρ = 5 to dynamically update the augmented Lagrangian parameter in DFSOS as described in Section 3.7.4. We choose initial β and θ as in Section 3.7.2. The ADMM and APG heuristics require choice of the regularization parameters Ω, γ, and λ. In each experiment, we set Ω = I and γ = 10−1 . We choose λ by 5-fold cross validation from an exponential grid equivalent with that used for DFSOS. These heuristics require stopping criteria for inner optimization of β and the outer optimization loop. We terminate the inner loop after a maximum of 100 iterations or if a 10−4 suboptimal solution is found. We terminate the outer loop if a 10−4 suboptimal solution is found or a maximum of 500 iterations have been performed. The augmented Lagrangian parameter for ADMM was set at µ = 2 for all experiments. 4.1.3
Computational Environments
All experiments were performed with Matlab R2023a [32] using a single serial node of the IRIDIS 5 High Performance Computing Facility at the University of Southampton. Matlab implementations of the DFSOS and ASDA methods are shared at Dr. Ames’s Github repository1 . We used default settings for the support vector machine and nearest neighbours functions from Matlab’s Statistics and Machine Learning Toolbox [33, 31].
4.2
Discussion of Experiments involving Gaussian Data
Summary statistics for our experiments involving Gaussian data can be found in Table 1. 1 https://github.com/bpames/Deflation-Free-SOS
10
Data
Measure
DFSOS-1
DFSOS-2
APG
ADMM
SVM
1-NN
5-NN
10-NN
K=3 r = 0.1
Accuracy Run-time (s) Cardinality
1.0 (0.0) 4.325 (1.107) 0.119 (0.0)
0.999 (0.0) 3.948 (0.512) 0.113 (0.0)
0.999 (0.0) 2.462 (0.127) 0.118 (0.0)
1.0 (0.0) 2.626 (0.25) 0.166 (0.023)
1.0 (0.0) 0.174 (0.014) –
0.92 (0.0) 0.021 (0.0) –
0.978 (0.0) 0.029 (0.001) –
0.988 (0.0) 0.022 (0.0) –
K=3 r = 0.5
Accuracy Run-time (s) Cardinality
1.0 (0.0) 5.084 (1.373) 0.084 (0.0)
1.0 (0.0) 4.783 (0.635) 0.085 (0.0)
0.999 (0.0) 2.87 (0.068) 0.097 (0.0)
0.998 (0.0) 3.099 (0.265) 0.093 (0.0)
1.0 (0.0) 0.17 (0.012) –
0.98 (0.0) 0.021 (0.0) –
0.981 (0.0) 0.027 (0.001) –
0.973 (0.0) 0.021 (0.0) –
K=3 r = 0.9
Accuracy Run-time (s) Cardinality
1.0 (0.0) 5.022 (1.783) 0.097 (0.001)
1.0 (0.0) 4.695 (0.656) 0.113 (0.001)
0.588 (0.002) 2.446 (0.059) 0.012 (0.0)
0.614 (0.007) 2.554 (0.234) 0.012 (0.0)
1.0 (0.0) 0.167 (0.012) –
0.991 (0.0) 0.022 (0.0) –
0.976 (0.0) 0.028 (0.001) –
0.962 (0.0) 0.021 (0.0) –
K=6 r = 0.1
Accuracy Run-time (s) Cardinality
0.996 (0.0) 12.095 (0.561) 0.168 (0.0)
0.994 (0.0) 11.283 (0.482) 0.17 (0.0)
0.992 (0.0) 12.761 (0.177) 0.141 (0.0)
0.993 (0.0) 12.737 (0.545) 0.144 (0.0)
1.0 (0.0) 0.66 (0.015) –
0.855 (0.0) 0.036 (0.0) –
0.949 (0.0) 0.045 (0.001) –
0.978 (0.0) 0.034 (0.0) –
K=6 r = 0.5
Accuracy Run-time (s) Cardinality
0.999 (0.0) 15.44 (0.876) 0.191 (0.001)
0.999 (0.0) 14.614 (0.536) 0.203 (0.001)
0.942 (0.001) 16.253 (0.276) 0.069 (0.0)
0.951 (0.001) 16.179 (1.285) 0.069 (0.0)
1.0 (0.0) 0.655 (0.014) –
0.969 (0.0) 0.038 (0.0) –
0.977 (0.0) 0.046 (0.001) –
0.972 (0.0) 0.035 (0.0) –
K=6 r = 0.9
Accuracy Run-time (s) Cardinality
1.0 (0.0) 17.329 (0.992) 0.123 (0.002)
1.0 (0.0) 16.439 (0.668) 0.124 (0.002)
0.942 (0.003) 14.416 (0.401) 0.094 (0.0)
0.943 (0.003) 14.24 (0.935) 0.095 (0.0)
1.0 (0.0) 0.64 (0.014) –
0.99 (0.0) 0.036 (0.0) –
0.975 (0.0) 0.044 (0.001) –
0.966 (0.0) 0.032 (0.0) –
Table 1: Out-of-sample prediction accuracy, run-time in seconds, and fraction of non-zero features for discriminant vectors and classifiers for a selection of Gaussian data constructed as described in Section 4.1.1. Data is reported in the format mean (variance) over 10 experiments for each (K, r)-pair. 4.2.1
Comparison of Classifiers
Our proposed deflation-free methods consistently provide more accurate classifiers than the deflationary approaches based on the ASDA algorithm, with comparable run-times. Run-times for all four methods were within a few seconds of each other in all experiments, while discriminant vectors computed using DFSOS tended to be slightly more dense than those given by ASDA. Moreover, both DFSOS methods matched or exceeded the accuracy of the SVM and KNN classifiers in all experiments. We must note that SVM and KNN classifiers required much less time to fit, as they do not require any training of regularization parameters. This phenomenon was starkest when the data was highly correlated, e.g., when r = 0.9. For example, when r = 0.9 and K = 3, the ASDA classifiers both struggled to identify meaningful discriminant directions. In each case, the ASDA method converged to a pair of discriminant vectors with a modest number of relatively small non-zero entries. To illustrate, we consider a random set of Gaussian data constructed as described in Section 4.1 with K = 3 and r = 0.9. The discriminant vectors β given by each method for these data are visualised in Fig. 1. We can see that the discriminant vectors found using ASDA have much smaller magnitude compared to those found using DFSOS. Moreover, the support of the pairs of discriminant vectors found by ASDA differ from those found by DFSOS, which have many more nonzero entries; we should also note that while the discriminant vectors found by DFSOS-1 and DFSOS-2 appear to differ, this is due to rotational symmetry in the paired scoring vectors and the dimension reduction and classifiers for the two DFSOS approaches behave very similarly. This shrinkage of ASDA discriminant vectors to 0 leads to significant degradation of classification performance. We visualise decision boundaries of the nearest centroid classifier following projection onto the span of discriminant vectors in Fig. 3. We can clearly observe that there is minimal separation between classes in the space spanned by the discriminant vectors found by ASDA (see Fig. 3c and Fig. 3d). This is largely avoided when we use DFSOS. Here, observations in each class are well-separated in the discriminant vector space. We compared this behaviour with that for a set of Gaussian data constructed as described in Section 4.1 with K = 3 and r = 0.5. Visualisations of discriminant vectors and classification boundaries are given in Fig. 2 and Fig. 4 respectively. We can see that all found methods give roughly the same discriminant vectors, decision boundaries, and predictions, up to rotational symmetry. However, even in this case, we see that the test data is better separated in the span of the discriminant vectors given by DFSOS. 4.2.2
Hypothesis Tests for Gaussian Data
For each (K, r)-pair, we performed one-sided Wilcoxon tests to compare pairs of classification methods in terms of prediction error, run-times, and cardinality. For measure f , we test the null hypothesis H0 : f (i) = f (j) against the one-sided alternative Ha : f (i) < f (j) for each pair of methods i and j. The
11