Manuscript Offprint
arXiv:2611.04479A Parametric Linear Conic Projection for Structured Sparse Attention
Abstract
Structured sparsity has become a fundamental ingredient for scaling modern Transformer and Large Language Model (LLM) architectures, where dense attention matrices remain one of the primary bottlenecks in both memory footprint and computational cost. While many existing approaches rely on heuristic pruning or fixed sparse attention patterns, they generally lack a principled geometric formulation and strong optimization guarantees.
In this paper, we introduce the Cone Alignment Index (CAI), a scale-invariant sparsity measure associated with a Lorentz-cone geometry. We provide a probabilistic analysis of the distribution of the CAI score, including a general theorem and explicit corollaries for Gaussian and uniform distributions. As a consequence, we show that, in the high-sparsity regime, the probability that the samples lie within the convex cone tends to one. Building upon this formulation, we derive two complementary projections: the Parametric Linear Conic Projection (PLCP), an efficient closed-form approximation, and the Parametric Euclidean Conic Projection (PECP), the exact Euclidean projection onto the cone boundary.
Our analysis establishes several fundamental theoretical properties. We prove that PLCP and PECP are collinear, differ only by a positive radial scaling factor, and induce exactly the same sparsity threshold, thereby preserving an identical active support. Furthermore, we derive a support-identification theorem showing that, for any prescribed sparsity level , the number of coefficients discarded at each iteration is theoretically controlled.
These results lead to a simple and scalable two-stage algorithm. First, the active support is identified through a provably correct thresholding rule. Second, the final projection is obtained by a closed-form support-aware extrapolation coefficient, yielding an efficient bilevel projection algorithm whose computational complexity is essentially linear in the active support size.
Building on this theoretical foundation, we develop a bilevel PLCP framework for structured matrix sparsification. The proposed method naturally generates hardware-friendly structured sparsity patterns, including row-wise, column-wise, and diagonal masks, making it particularly well suited for accelerating Transformer attention mechanisms.
Experiments on large synthetic matrices and Transformer attention layers validate both the theoretical and practical advantages of the proposed approach. On GPUs, PLCP achieves a computational complexity comparable to structured pruning while providing up to a quadratic speed-up over GSP-Hybrid. On GLUE and SuperGLUE benchmarks, PLCP reaches up to 90% attention sparsity with only minor accuracy degradation, consistently outperforming GSP, structured pruning, and fixed sparse-attention architectures such as BigBird at high sparsity levels.
Beyond sparse attention, the proposed framework provides a general geometric and optimization-based methodology for structured matrix sparsification, opening promising directions toward scalable, hardware-aware, and energy-efficient deep learning.
1 State of the art of neural network sparsification
To address these challenges, a large body of research has focused on neural network sparsification, i.e., reducing the number of nonzero weights in a model. We distinguish three main classes of methods for sparsifying attention matrices: pruning methods, architecture-based methods, and projection-based methods. One of the earliest and most widely adopted approaches to induce sparsity in neural networks is pruning [23, 2, 19, 8]. Classical pruning methods [43], RigL [16], and SparseGPT [21] eliminate weights using magnitude-based or gradient-based heuristics [27]. While effective in practice, these approaches yield em-pirical sparsity without enforcing explicit geometric constraints. More recent structured pruning methods [57, 3] attempt to overcome some of the inefficiencies of classical pruning techniques.
Among large-scale matrix applications, attention matrices in transformer architectures constitute a particularly important use case. Sparse transformer architectures such as BigBird [61] reduce attention complexity through predefined sparse patterns including local windows, block structures, and random-global connections. While computationally efficient, these masks remain largely hand-crafted and may fail to adapt to the structure of the data. Note that BigBird was designed for large attention matrices.
The Least Absolute Shrinkage and Selection Operator (LASSO) [51, 24] promotes sparsity through an -norm penalty. The norm, which directly counts the number of nonzero weights, provides exact sparsity control and is scale-invariant, but it is non-differentiable [33]. projection-based approaches directly enforce sparsity by projecting weight vectors onto norm balls, typically the ball, using efficient algorithms [14, 11]. While such methods enjoy linear-time complexity, they are not scale-invariant and do not naturally induce structured sparsity. Since many modern hardware architectures implement multiply-add operations as a single instruction, such irregular sparsity patterns fail to translate into practical speed-ups and are poorly suited for efficient parallel execution.
1.2 Background on structured sparsity.
A key limitation of pruning-based methods, as well as - and -induced sparsity, is their unstructured nature, which typically produces randomly distributed zero-valued weights. To overcome the inefficiency of unstructured sparsity, research has increasingly turned toward structured sparsity methods [55], which aim to remove entire groups of parameters, such as filters, channels, or neurons. Group LASSO and its variants introduce regularizers that enforce sparsity at the group level [60, 31, 45, 59, 47, 35, 36, 9]. Of particular interest is the projection, which promotes structured sparsity by enforcing group-wise shrinkage, for instance, by setting entire columns of a weight matrix to zero. Recent works have proposed efficient projection algorithms based on proximal methods [4]. However, their worst-case time complexity remains for a matrix in , which may limit their scalability to very large neural networks.
An alternative is the Hoyer score [25], which balances sparsity and scale invariance. It has been successfully applied in a variety of contexts, including blind deconvolution [40], nonnegative least squares [15, 22], neural network regularization [58, 36, 50]. Nevertheless, these existing projections remain non-convex and typically require iterative numerical procedures.
Motivated by these limitations, we investigate whether a scale-invariant geometric constraint can provide a unified framework for structured matrix sparsification. Our objective is to derive a projection operator that simultaneously admits a closed-form solution, promotes structured sparsity, and remains computationally efficient at large scale. As a representative application, we demonstrate its effectiveness for sparsifying transformer attention matrices, while the proposed framework naturally extends to broader classes of matrix sparsification problems, including neural network parameter matrices and inverse problems.
1.3 Contributions and Organization of this Work
In summary, this paper makes the following contributions:
-
We introduce the Cone Alignment Index (CAI), a novel sparsity constraint whose level sets naturally define a Lorentz-cone geometry. Based on this formulation, we develop a new conic projection framework through a parametric optimization model.
-
We provide a probabilistic analysis of the distribution of the CAI score, including a general theorem and explicit corollaries for Gaussian and uniform distributions. As a consequence, we show that, in the high-sparsity regime, the probability that the samples lie within the convex cone tends to one.
-
We derive two complementary projections: the Parametric Linear Conic Projection (PLCP), an efficient closed-form approximation, and the Parametric Euclidean Conic Projection (PECP), the exact Euclidean projection onto the cone boundary. We prove that PLCP and PECP are collinear, differ only by a positive radial scaling factor, and induce exactly the same sparsity threshold and active support.
-
Building upon these theoretical results, we propose a closed-form conic projection algorithm requiring only a single support-aware extrapolation step after support identification. We further extend this framework to structured matrix sparsification through a bilevel projection strategy that naturally generates hardware-friendly row-wise, column-wise, and diagonal sparsity patterns.
-
We perform an experimental evaluation on large-scale matrix sparsification and Transformer attention layers. PLCP is benchmarked against Group Lasso projections, structured pruning, GSP, and the widely used sparse-attention baseline BigBird. The proposed method achieves computational complexity comparable to structured pruning while providing up to a quadratic speed-up over GSP-Hybrid, and consistently delivers a superior accuracy-sparsity trade-off on GLUE and SuperGLUE benchmarks.
2 A new Cone Alignment Index (CAI)
We use the mathematical notation file math-commands.tex from the textbook, Deep Learning Goodfellow et al. (2016).
2.1 Definition and Geometric Interpretation
We define the Cone Alignment Index (CAI) constraint for a vector (nonnegative orthant) as
where 1 denotes the all-ones vector in and is the constraint level. Note that, in the nonnegative orthant, the ratio
differs from the Hoyer score [25], while being closely related to the scale-invariant sparsity regularization term introduced in [58]. By construction, CAI is scale-invariant.
Lemma 2.1 (Geometric structure). Consider now the constraint in Equation 2. It defines a homogeneous convex cone when restricted to the nonnegative orthant.
This equation corresponds to the interior of a revolution cone with apex at the origin and axis along the diagonal direction and aperture angle .
The interior of the cone is convex, whereas its boundary and exterior (Equation 3) are not:
Note that is precisely the set satisfying the CAI constraint of Equation 1. The two regions are complementary within : is the (convex) region violating the constraint, while is the (non-convex) feasible region, i.e.,
For , the quantity measures the alignment of with the diagonal axis: when is collinear with , whereas its minimum value is attained for a one-sparse vector.
2.2 Geometric Interpretation of the CAI Projection
To compute the CAI projection, we first map the original data to the nonnegative orthant by setting
We then distinguish two cases depending on the position of y with respect to the CAI cone.
Case 1: Points satisfying the constraint. If satisfies the constraint then already lies in the feasible set and no projection is required. In this case, the point remains unchanged.
Case 2: Points violating the constraint. If then lies strictly inside the CAI cone, which is a convex set, and must be projected onto its boundary.
2.3 Distribution of the CAI score
The objective of this section is to investigate the properties of the CAI score distribution.
Theorem 2.2 (Asymptotic distribution of the CAI score). Let be i.i.d. random variables such that
and define
Let
Then
Moreover,
where
Therefore, for large n,
See proof in Appendix A.1
Corollary 2.3 (Gaussian case). Let with . Then
is uniformly distributed on the unit sphere.
Then
Hence
and
The linear-in-n parametrization naturally follows from the relation between the CAI parameter l and the normalized sparsity. Indeed, for a vector of dimension n, the CAI parameter satisfies , and the normalized sparsity level is approximately characterized by the dimensionless ratio
Keeping a prescribed normalized sparsity level as the dimension increases requires l to scale linearly with n. This motivates the use of l/n as the natural dimension-independent parameter for comparing sparsity regimes across different dimensions. Therefore the normalized distribution is given by:
Gaussian high-sparsity regime Applying Theorem 2.2, to i.i.d. Gaussian samples, we obtain the following high-sparsity regime:
with a fixed positive margin, then
Consequently, almost all samples lie inside the convex CAI cone with probability tending to one in the high-sparsity regime
Figure 1 shows the excellent agreement between the asymptotic distribution and the empirical distribution obtained from Gaussian data.

Figure 1: CAI score asymptotic distribution.
Corollary 2.4 (Uniform distribution). Let be i.i.d. random variables with
Then
Moreover, for sufficiently large ,
Equivalently,
Uniform high-sparsity regime For i.i.d. uniformly distributed samples, if
with a fixed positive margin, then
Consequently, asymptotically, the samples lie inside the convex CAI cone and violate the target sparsity constraint .
In particular, in the high-sparsity regime
almost all samples lie inside the CAI cone with probability tending to one.
Remark 2.5. Note that the random variable where can be equivalently defined as the L1 norm of a vector sampled uniformly over the unit sphere. This relates our result to [30, Theorem 3.6] and the particular case for of [37, Theorem 1.1] which studies .
Since Theorem 2.2 considers the square of , our result can be derived from theirs by applying the delta method.
For large , the second-order correction to the mean of the squared CAI score becomes negligible compared with the leading-order term. Moreover, the second-order shift also becomes negligible compared with the standard deviation when is large.
See proof in Appendix A.2
3 PLCP and PECP with Common Active-Set Selection
3.1 Sparse Active-Set Selection
We introduce a unified formulation of a Parametric Linear Conic Projection (PLCP) and a Parametric Euclidean Conic Projection (PECP). Both methods share the same CAI geometry and the same active-set selection procedure. In particular, they use the same threshold and therefore identify the same active support.
They differ only in the final geometric projection. PLCP uses an affine parametric construction characterized by the extrapolation factor , whereas PECP performs a Euclidean projection characterized by the parameter , or equivalently by the radial scaling factor . Let denote the CAI score of the original input by
Since
the active-set selection can be performed on the nonnegative vector
The overall construction is summarized by
The active-set threshold is obtained directly from the CAI boundary condition
At iteration , let
denote the current active support, with
Consider the shifted vector on the current active support
The threshold is determined by requiring the shifted vector to lie on the CAI boundary:
The threshold is given by: (See Appendix A.4.1)
The threshold is therefore a geometric threshold induced by the CAI boundary.
The active support is updated according to
Thus the vector becomes progressively sparser across iterations (see Sparsity analysis in section 3.4). The active-set iterations are repeated until the support stabilizes (See convergence analysis in section 3.5)
Lemma 3.1. Let x be the final active-set vector, the last threshold computed before stabilization is :
Proposition 3.2 (Lower bound on the active support). Equation (6) becomes singular when , since its denominator vanishes. However, the CAI boundary condition imposes a natural lower bound on the admissible support size.
Let with support and . By Cauchy-Schwarz applied to ,
Hence, dividing both sides by yields .
If satisfies the cone-surface constraint, , then the support size necessarily satisfies .
Moreover, the support size , thus in particular, if
This result establishes a fundamental lower bound on the active support size and guarantees that the support-selection procedure using Equation 6 in Algorithm 1 cannot collapse below this bound.
3.2 PLCP projection
For an original input vector satisfying
PLCP constructs the CAI boundary solution through the following affine parametrization
with
Lemma 3.3. Let x be the final active-set vector, the PLCP extrapolation factor is directly obtained from the final threshold . (see proof in section A.5)
Equivalently,
Thus, and are not independent parameters. Once the active support has stabilized and is known, follows immediately.
Thus, the stabilized active-set quantities determine both the extrapolation factor and the scale of the diagonal reference vector. The PLCP construction can therefore be summarized as
PLCP is therefore a closed-form parametric construction satisfying the CAI geometry.
3.3 PECP Euclidean-norm Projection
PECP uses the same active support identified by the common thresholding procedure. PECP selects the point on this CAI boundary generator that minimizes the Euclidean distance to the input vector.
For an original input vector satisfying , PECP seeks, on the active support identified by the common thresholding procedure, the closest point on the corresponding CAI boundary:
On the final active support of size , define
The input vector restricted to the active support is decomposed as
where
For , define
Hence, using these notations, PECP reduces to the one-dimensional minimization problem (see details in Appendix A.5.1)
Lemma 3.4. Differentiating with respect to , the Euclidean projection onto the CAI boundary is
where
The PECP construction can therefore be summarized as
Hence, the PECP solution is the Euclidean projection onto the corresponding CAI boundary generator. In the plane, this reduces to the orthogonal projection of the point onto the boundary line .
Collinearity between PLCP and PECP PLCP and PECP use the same active support and reach the same generator of the CAI boundary. Consequently, their boundary solutions are collinear: (See proof in section A.3)
with
Algorithm 1 Iterative PLCP
Require: , target parameter
Ensure:
1:
2: ,
3:
4: while do
5:
6:
7:
8: end while
9: if then
10:
11:
12:
13: else
14:
15: end if
16: ,
17: return
Remark 3.5. Since Algorithms 1 and 2 use the same initialization and the same thresholding rule, they generate identical active-set iterates and therefore identify the same final active support. On this support, their respective projections lie on the same CAI boundary generator; hence, their final outputs are positively collinear. Therefore, PLCP preserves the direction and the support pattern of the Euclidean projection, while generally differing in radial scaling. We consequently refer to PLCP as a parametric conic projection.
Algorithm 2 Iterative PECP
Require: , target parameter
Ensure:
1:
2:
3:
4: while do
5:
6:
7:
8: end while
9: if then
10:
11:
12:
13:
14:
15:
16:
17: if then
18:
19:
20: end if
21: else
22:
23: end if
24:
25: return
Remark 3.6. Note that the test in line 9 for PLCP and line 9 for PECP is unnecessary in the case of the high-sparsity regime.
3.4 Sparsity analysis of the active set selection
Theorem 3.7. Let be positive real numbers, and set
Define
Fix a positive number . Then the number of indices such that
Proof. As detailed in [28], there are two approaches to prove such Laguerre-Samuelson style Inequality. A first one, following Laguerre's style using Cauchy-Schwarz inequality, whereas a second one, following Samuelson's style [42] uses a clustering argument. We provide both proofs in Appendix section A.7. The proof is based on the following lemma.
Lemma 3.8. Let
where
Then
Consequence. Theorem 3.7 shows that the number r of coefficients removed by the thresholding rule satisfies
Consequently, the remaining active support satisfies
This result establishes a rigorous lower bound on the active support size and provides a direct relationship between the parameter l and the sparsity induced by the projection. Decreasing increases the admissible number of removed coefficients and therefore promotes sparser solutions, whereas increasing enforces a larger active support.
Although there is generally no closed-form expression relating to an exact sparsity percentage since the final support also depends on the distribution of the input coefficients, the monotonic behavior makes the parameter straightforward to calibrate in practice. Figure 2 shows good agreement between the

Figure 2: Synthetic Gaussian distribution with active size: Average active-set size after five PLCP iterations as a function of the target parameter for synthetic Gaussian data. Results are reported for different values of and compared with the theoretical bound (green).
bound established in Theorem 3.7 and the experimental Gaussian results. The theoretical lower bound provided by Theorem 3.7 guarantees that the active set size is at least and the relationship between and the achieved sparsity. Consequently, a desired sparsity ratio can be achieved reliably through a simple calibration procedure (for example, a monotonic search on a small validation set), after which the selected value of generalizes consistently across the evaluation data. Moreover, Figure 2 illustrates the relationship between the target and the achieved sparsity and thus the practical calibration procedure used to reach a target sparsity level.
3.5 Convergence of the active set selection
3.5.1 Finite-time convergence
Given a threshold , define the hard-thresholding operator by

Figure 3: Illustration of Algorithm 1 with starting . The boundary of the CAI cone is represented by the blue and orange surfaces. The red circle in the interior of the cone is the starting . After one iteration of the algorithm, is set to 0 and we obtain the second red dot. This point belongs to the blue face in the plane which is itself a two-dimensional CAI cone. The yellow star represents and the green circle is the output .
Proposition 3.9 (Finite-time convergence of the active support selection). The iterative loop for computing converges in at most iterations to a fixed point. More precisely, there exists such that:
(13)
This follows immediately from the fact that every decreasing sequence of natural numbers is eventually constant.
3.5.2 Tightness of the Bound
A natural question is whether the bound of the previous proposition can be improved, for instance to , by exploiting the fact that several entries may fall below the threshold at a single step. The following argument, classical in the robust-statistics literature, shows that no such universal tightening is possible: there exist inputs on which the iteration removes exactly one entry per step. The obstruction is the so-called masking effect [12, 26], by which a small group of extreme entries inflates the summary statistics on which the threshold depends and thereby “masks” other, less extreme entries that would otherwise be eliminated. The same phenomenon is discussed in (author?) [26, Section 11.1] in the context of outlier-rejection rules, where it is precisely the inability of low-breakdown procedures to peel off more than one outlier per pass that motivates high-breakdown alternatives.
Adversarial construction. In our setting the threshold is a smooth function of the and norms of the current iterate (equivalently, of the CAI-type score ). Removing an entry produces a finite, controllable change in these norms and hence in . We build an adversarial input recursively, from the stable core outward. Fix a terminal set for which the iteration has already converged (e.g. a few equal positive values). Assuming a sequence has been constructed so that the iteration peels it one entry at a time, we prepend a single new entry and require
The map is continuous, is negative for close enough to (the entry survives), and is positive for sufficiently small (the entry inflates the norms enough to leave the threshold above it). The Intermediate Value Theorem therefore guarantees the existence of an admissible , and recursion produces a sequence on which the iteration removes exactly one entry per step.
Toy illustration. The masking mechanism is most transparent for the simpler threshold based on the empirical mean and standard deviation. Take
with multipliers initially and after the first reduction:
-
Iteration 1: , , threshold . The extreme value is removed; the values 0 and 8 are masked by the inflated standard deviation.
-
Iteration 2: on , , , threshold . The variance has collapsed and 0 is now exposed and removed.
-
Iteration 3: on , the same collapse exposes 8, which is removed.
-
Iteration 4: has zero variance and the iteration terminates.
The general staircase construction is the recursive analogue of this 5-point example.
Consequence. The bound is therefore tight up to constants: no universal sub-linear bound on the number of support-update iterations can hold, because the threshold is computed from internal sample statistics that can be manipulated by an adversarial spacing of the input. The empirical observation (Figure 4) that is small in practice is correspondingly a statement about typical inputs, not a worst-case guarantee, and is consistent with the absence on natural data of the exponentially-spaced staircase that the masking construction requires.
3.5.3 Comparison with other hard-thresholding iterations
We compare our hard-thresholding iteration with TORRENT [6] in detail in Appendix A.9.1. At a high level both methods can be read as instances of a long-standing heuristic, going back to Legendre, that alternates between selecting a subset of indices by thresholding and refitting on that subset. TORRENT brings such a selection step inside the regression loop, whereas PLCP repurposes the same mechanism for projecting onto a structured sparsity cone. The two methods differ in what is being fitted (a regressor vs. a projection), in how the threshold is set (fixed cardinality vs. cone-induced), and in the type of guarantee obtained (geometric statistical recovery vs. deterministic finite-time termination).
Viewed jointly, by Luo [34] and our analysis (compared in detail in Appendix A.9.2) describe two complementary regimes for iterative methods on LCP-like problems: a coordinate-wise regime with linear convergence under mild structural assumptions, and a block-thresholding regime where the combinatorial structure of the active support directly delivers finite-time termination. The PLCP iteration sits in the latter regime, which is what makes its complexity with a very small in practice.
See Appendix A.9.3 and Appendix A.9.4 for the detailed comparison with [41] and [26] respectively.
3.6 Complexity Analysis of PLCP
The iterative PLCP algorithm typically converges in only a few support updates. Denoting by the number of thresholding iterations, its actual computational cost is rather than . When remains small, the algorithm exhibits near-linear behavior in practice.
An alternative is a sorted implementation which avoids the quadratic iterative thresholding loop by sorting the coefficients once and scanning the possible active support sizes using prefix sums. The total complexity is therefore the complexity of the sort: . The sorted formulation systematically incurs the full sorting cost . Moreover, in most sparse optimization problems, the final active support size is typically much smaller than the ambient dimension (). In such settings, sorting the entire vector introduces a significant amount of unnecessary computation. Rather than sorting all coefficients, the Topk method progressively extracts only the largest entries and tests whether the resulting support satisfies the PLCP fixed-point condition. The resulting complexity for the Topk method is
which improves over the full sorting cost whenever .
3.7 Related Work and Positioning of PLCP and PECP
3.7.1 Positioning versus SOCP methods
Conic programming provides a unified framework for convex optimization problems [7, 1, 44]. Most existing methods involving second-order cone programming (SOCP) rely on two major classes of approaches.
-
Interior-point methods. These approaches exploit the geometry of the cone through barrier functions, typically of the form and follow a central path toward the optimal solution. Although highly effective, the resulting trajectory is not based on an explicit affine parameterization.
-
Projection-based methods. Many optimization algorithms, such as projected gradient methods, proximal algorithms, ADMM, and alternating projections, rely on Euclidean projections onto the cone. These methods use the cone geometry implicitly through projection operators, but do not introduce an explicit parameterized trajectory.
In contrast to standard SOCP projection approaches, PLCP explicitly constructs an affine parametric path toward the CAI boundary. PLCP and PECP may therefore be interpreted as a geometric parametric alternative to standard SOCP projections, combining analytical simplicity with additional flexibility while preserving the same sparsity properties.
3.7.2 Positioning PLCP and PECP versus GSP method
The GSP constraint (Group Sparse Projection), following the definition in [36], is given by
GSP addresses the projection problem through a scalar dual root-finding procedure derived from optimality conditions. Each iteration has linear complexity in the problem dimension, and the overall complexity is reported as , where denotes the target accuracy. A bisection fallback ensures robustness, with worst-case complexity bounded by .
Note that the GSP-Hybrid constraint is non-convex, whereas PLCP exploits the convex geometry of the CAI interior in the high-sparsity regime. The active set selection is computed directly in the primal space via a finite sequence of active-set updates combined with thresholding operations, yielding a complexity of , where k denotes the number of active-set refinements. By combining closed-form projections, conic geometry, and hardware-friendly structured sparsity, the proposed framework offers a scalable foundation for efficient inference and training of modern neural networks.
3.8 Bilevel PECP Projection
Recently, bilevel optimization (BLO) [10, 63, 5, 62] has become popular because it is a powerful method in modeling problems that involve optimizing nested objective functions. BLO is an optimization problem that involves two levels of hierarchy (i.e., upper and lower levels), wherein obtaining the solution to the upper-level problem requires solving the lower-level one. In this paper, we propose a specific bilevel method for enforcing structured sparsity. We provide a single-level characterization of the proposed bilevel operator as follows.
Let with columns . Define the vector of column norms
Define the specific bilevel optimization problem and the bilevel operator as follows:
(15)
The resulting bilevel PECP algorithm is computationally inexpensive:
Proposition 3.10. Minimizing the Frobenius distance in matrix space is equivalent to minimizing the Euclidean distance between the vectors of column norms:
Since is the Euclidean CAI projection of v, the matrix obtained from is the corresponding exact Frobenius projection.
Algorithm 3 bilevel PECP projection,
Input:
Output:
See proof in appendix A.6
4 Experimental results
4.1 Benchmark of PLCP
We compare our method in terms of computation time with the Group Sparse LASSO using the GSP method [36]. For the implementation of the GSP-Hybrid method, we use the PyTorch implementation provided by Ohib et al. ¹ We compare PLCP with a structured row/column pruning baseline inspired by the structured pruning method in [55]. For each attention matrix, rows and columns are ranked according to their norm and the least important structures are removed while preserving the CLS row and column. Our PyTorch implementation is provided in the supplementary material.

Figure 4: Convergence of the active support size for different size of the Gaussian data as a function of loop number.
The PLCP iteration can be interpreted as an adaptive thresholding scheme, where the threshold is updated from the current active coefficients. Under the
¹https://github.com/riohib/gsp-for-deeplearning assumption that the threshold dynamics is locally contractive near its fixed point and that the tail of the coefficient distribution is sufficiently smooth, the active-set size is expected to converge exponentially fast toward a limiting value .
where is an effective decay constant. Figure 4 shows the convergence of the active support size for different size of the Gaussian data as a function of loop number. The best exponential fit is with parameter .
Probabilistic geometric convergence of the active-set selection. We prove theoretically finite termination, but exponential convergence is only empirically observed. However, a geometric convergence rate can be established under a probabilistic assumption on the distribution of the active coefficients.
As shown with inequality 19, the threshold is a clipping on the z-score of the samples only depending on l and n. Therefore, the Cumulative Density Function (CDF) of the distribution of the samples, evaluated at this threshold, gives a probability for a sample to remain in the active set at iteration i. This matches a geometric convergence rate if were constant which we know is not the case here as we don't expect the active set size to converge to zero. The complex task of analysing this series is well studied as we discuss in appendix section A.9.
Instead, assume that, conditionally on the current active set, each incorrectly active coefficient has a probability at least p > 0 of falling below the updated threshold and being removed at the next iteration. Let denote the active support at iteration k, let be the final support, and define
Then
By iterating this inequality, we obtain
Hence, the expected number of incorrectly active coefficients decreases geometrically. In particular, the expected active set converges toward the limiting support at an exponential rate with contraction factor 1 - p.
The key difference between PLCP and GSP is dimensional: GSP operates on a vectorized representation of the matrix, involving variables, and requires multiple passes over all entries due to its root-finding procedure. In contrast, PLCP exploits the group structure by reducing the problem to variables via column norms, performing the core projection in similar to the pruning method. This structural difference explains the observed speed-up. Note that the GSP-Hybrid method constraint is non-convex, whereas PLCP enforces the convex geometry of the CAI interior in the high sparsity regime.

Figure 5: Up: runtime comparison of PLCP vs GSP as a function of the size of matrices.
bottom: quadratic fit of the speed-up of PLCP vs GSP as a function of the size of matrices using an NVIDIA A100 GPU.
Figure 6 shows that the runtime of iterative PLCP is always better than that of PLCP with exhaustive sorting, while iterative PLCP is better than PLCP-TopK for large datasets. The runtime of iterative PLCP is very stable with respect to the dimension, whereas that of PLCP-TopK is not. Note that structured pruning exhibits a runtime comparable to that of the GPU-friendly TopK PLCP implementation.
4.2 Sparsification of Attention Matrices in Transformer Architectures
Constraint optimization Let denote the attention matrix, where is the number of tokens. Let represent the ground-truth labels, and denote the class probabilities predicted by the softmax classifier. To sparsify

Figure 6: Runtime comparison of different one-dimensional PLCP implementations: iterative PLCP (blue), GPU-friendly TopK PLCP (red), and fully sorted PLCP (green) on a M3 apple CPU
the weights of the attention matrix, we employ the bilevel projection method as a constraint to enforce structured sparsity in the model. The global optimization criterion is defined as:
where is the cross-entropy loss. To minimize this criterion, we follow the work developed by [19] and [20] who proposed a double-descent masked-gradient algorithm. We replace their threshold with our bilevel projection.
We apply our closed-form conic projection to the sparsification of attention matrices in Transformer architectures [52]. Specifically, we compare our learned diagonal mask, obtained via bilevel projection, against the uniform diagonal mask of BigBird [61]. The classification framework is implemented in PyTorch, including the model, schedulers, and loss functions. We chose the Adam optimizer (Adaptive Moment Estimation) [32] and the smooth SiLU activation function. For all sparsity levels and all datasets, we set the number of training epochs to 15, the batch size to 64 and the learning rate to 2e-5. We plot the curves of accuracy as a function of sparsity. The numerical labels in the following figures denote the window size for BigBird and the constraint level for PLCP, GSP, and structured pruning, respectively.
Experiment on a natural language processing (NLP) task from the GLUE dataset [54] While pretrained models such as BERT are fully dense
Transformers, some later architectures (e.g., BigBird, Longformer) introduce sparse attention mechanisms. Specifically, we compare these methods with our PLCP projection on a pretrained transformer-based model [13]. For the QNLI, QQP and MNLI datasets, we used attention matrices with 256 tokens, and 128 tokens for the SST-2 dataset. Recall that a vertical band in an attention matrix corresponds to a global token attending to all tokens, whereas a horizontal band corresponds to all tokens attending to a global token. Such global attention patterns are known to play a critical role in Transformer-based classification models, as they enable long-range information aggregation and act as routing hubs for semantic context. From a theoretical perspective, removing these global interactions may severely limit the expressive power of the self-attention mechanism, since the first token (e.g., [CLS]) often serves as a summary representation of the entire sequence. Consequently, preserving the first row and the first column of the attention matrix ensures that global pairwise interactions are maintained, even under strong sparse constraints. Therefore, in all subsequent experiments, we explicitly include for the PLCP, GSP, Pruning and BigBird masks the first row and the first column in the sparsity mask.
In order to capture local dependencies, it is natural to focus on the diagonals of the attention matrix. The diagonal transformation used in PLCP reshapes the attention matrix into a structured representation where diagonal interactions become axis-aligned, enabling structured sparsity projections.
The SST-2 dataset The Stanford Sentiment Treebank consists of sentences from movie reviews and human annotations of their sentiment. The task is to predict the sentiment of a given sentence [48]. This dataset is composed of 67,349 samples and is available in the GLUE dataset.

Figure 7: PLCP vs GSP, Pruning and BigBird: sparsity-accuracy trade-off. SST-2 dataset
The Question Natural Language Inference (QNLI) dataset [39] is derived from the Stanford Question Answering Dataset (SQuAD) and reformulates question answering as a binary sentence-pair classification task. The task is to determine whether the context sentence contains the answer to the question. This dataset contains approximately 100K labeled examples.
The Quora Question Pairs dataset (QQP) is a collection of question

Figure 8: PLCP vs GSP, Pruning and BigBird: sparsity-accuracy trade-off. Left: QNLI dataset. Right: QQP dataset.
pairs from the community question-answering website Quora. The task is to determine whether a pair of questions are semantically equivalent. This dataset consists of K labeled samples.
The Multi-Genre Natural Language Inference Corpus [56] is a crowdsourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). We report accuracy between true labels and predicted labels. This dataset consists of K samples with labeled classification.
WiC (Word-in-Context) [38] is a word sense disambiguation task cast as binary classification of sentence pairs. Given two text snippets and a polysemous word that appears in both sentences, the task is to determine whether the word is used with the same sense in both sentences. This dataset consists of 6,000 samples with labeled classification.

Figure 9: PLCP vs GSP, Pruning and BigBird: sparsity-accuracy trade-off. Left: GLUE MNLI dataset; Right: SuperGLUE WiC dataset
Figures 7, 8 and 9 show accuracy-sparsity curves across five datasets. The accuracy-sparsity curves of PLCP, GSP, and structured pruning follow similar overall trends, but PLCP consistently dominates the competing methods. It delivers an accuracy gain of about 2% on the relatively easy SST-2 benchmark, while the margin widens to up to 6% on larger and more challenging datasets such as QNLI, QQP, and MNLI. On the particularly difficult WiC benchmark, PLCP achieves gains of up to 10%, highlighting its ability to preserve discriminative information even under aggressive sparsification.
PLCP leverages a column-wise bilevel projection that induces highly structured sparsity aligned with diagonal patterns while preserving locality after reshaping. This enables the model to retain the most informative interactions even at high sparsity levels.
In contrast, Group Lasso regularization promotes coarse structured sparsity by selecting or removing entire parameter groups. Although effective at the group level, such masks lack the flexibility required to capture fine-grained local dependencies, particularly diagonal structures, since sparsity is enforced uniformly within each group.
Structured pruning is a coarse-grained ranking strategy that enforces row-wise and column-wise sparsity. Although efficient, it is inherently unable to capture diagonal structures and fine-grained local dependencies, which often carry the most informative interactions in attention matrices.
The fixed BigBird mask performs adequately in the low-sparsity regime (large masks), but its rigid predefined structure becomes a significant limitation at high sparsity levels, where adaptivity becomes crucial.
These fundamental structural differences explain the consistently superior accuracy-sparsity trade-off achieved by PLCP compared with GSP, structured pruning and BigBird across all datasets.
Accuracy Stability Across Random Seeds In addition to reporting the mean classification accuracy, we evaluate the robustness of each sparsification method with respect to the random seed. Our experiments involve four methods, five datasets, six hyperparameter settings, and three random seeds.
For each method , dataset , and hyperparameter setting , we compute the standard deviation of the classification accuracy across the three experimental seeds.
where s denotes the random seed.
In our experiments, several independent runs are considered. Therefore, measures the variability of the accuracy between these runs for a fixed method, dataset, and hyperparameter value. Second, to obtain a single global stability measure for each method, we average these standard deviations over all datasets and all considered hyperparameter values. Thus, the global stability criterion can be written as
The random seeds are first used to estimate the variability of each individual experimental configuration. These configuration-wise standard deviations are then averaged across datasets and hyperparameter values. Consequently, provides a compact measure of the overall sensitivity of method to random initialization and other seed-dependent effects. A lower value of indicates that the method produces more consistent classification accuracy across independent experimental runs.
We report the standard deviation of accuracy in Table 1, which allows us to compare the overall stability of the four sparsification strategies considered in this work: BigBird, PLCP, GSP, and structured pruning, independently of their average accuracy and sparsity levels. To compute this average, the number of runs is 35 for PLCP and GSP, whereas it is 30 for BigBird and Pruning. Note that BigBird was originally proposed for large attention matrices. Overall, the four methods exhibit comparable stability.
| BigBird | PLCP | GSP | Pruning | |
|---|---|---|---|---|
| Accuracy STD (%) | 0.2460 | 0.2531 | 0.24449 | 0.2147 |
Table 1: Average standard deviation of classification accuracy across random seeds for BigBird, PLCP, GSP, and structured pruning.
| 2 | 4 | 8 | 12 | 16 | 24 | 32 | |
|---|---|---|---|---|---|---|---|
| PLCP | 75.54 | 77.27 | 80.37 | 82.03 | 83.17 | 84.63 | 85.49 |
| PECP | 75.59 | 77.12 | 80.18 | 81.86 | 83.00 | 84.46 | 85.48 |
| Difference | 0.05 | 0.15 | 0.19 | 0.17 | 0.13 | 0.17 | 0.01 |
Table 2: Comparison between PLCP and PECP on QNLI dataset for different CAI constraint levels .
Table 2 shows that PLCP and PECP achieve nearly identical classification accuracy on QNLI over the entire range of constraint levels. The mean absolute difference across all values of is only 0.12%. This empirical result is consistent with our theoretical analysis.
Ablation study To better understand the impact of the PLCP projection, we conduct a comprehensive ablation study. We consider the following variants: Baseline, BigBird, PLCP, GSP and Pruning. All variants are evaluated under identical training protocols, initialization, and hyperparameters.
Table 3 reports the impact of each ablation setting on the sparsity level and predictive accuracy. Notably, on the SST-2 dataset, enforcing 90% sparsity leads to an improvement in accuracy, as it effectively removes noisy tokens. Table 3 shows that QQP and WiC are highly robust to an attention sparsity level of 90%, whereas QNLI and MNLI exhibit a stronger dependence on dense attention. The larger performance degradation observed on QNLI at 90% sparsity may be explained by the nature of the task. QNLI relies on semantic interactions between the question and the corresponding sentence, which
| Accuracy | Baseline | BigBird | PLCP | GSP | Pruning |
|---|---|---|---|---|---|
| SST-2 | 92.7 | 88 | 94.56 | 92.43 | 92.80 |
| QNLI | 88.52 | 57 | 82.95 | 74.05 | 73.49 |
| QQP | 88.65 | 78.46 | 89.66 | 84.31 | 84.17 |
| MNLI | 78.9 | 54.23 | 78.20 | 70.51 | 71.19 |
| WiC | 69.55 | 72.76 | 75.13 | 66.15 | 65.16 |
Table 3: Ablation. Accuracy at 90% attention sparsity. Baseline (no projection), BigBird, PLCP, GSP and Pruning
may require a more distributed attention pattern. At very high sparsity levels, removing a large fraction of token-to-token interactions may therefore discard relevant cross-token dependencies. MNLI is a challenging natural language inference task, for which removing 90% of the token-to-token interactions may naturally have a more detrimental impact on performance. GSP and Pruning achieve comparable performance, while PLCP consistently outperforms both methods by approximately 5 to 9 percentage points. BigBird performs substantially worse than PLCP, GSP, and Pruning on most datasets, with WiC being the notable exception.
5 Discussion and future work
5.1 Linguistic analysis
We analyze the inference computational cost of the proposed PLCP in section A.10 using a BERT-like attention block [13]. An important direction for future work is to investigate the linguistic impact of aggressive attention sparsification. Previous studies have shown that some attention heads capture linguistically interpretable patterns and that such specialized heads tend to be preserved during pruning [53]. In our experiments, we qualitatively observe that sparsification tends to suppress attention associated with punctuation and some less informative tokens while preserving the overall semantic content. A systematic linguistic analysis would therefore be valuable to determine whether PLCP preferentially preserves syntactic and semantic dependencies as sparsity increases. In particular, future work could compare PLCP with BigBird and structured pruning at matched sparsity levels by measuring the semantic content of the attention patterns that are retained.
5.2 Extension to Mixture-of-Experts Architectures
Although this work focuses on structured sparsification of Transformer attention matrices, the proposed PLCP framework naturally extends to a much broader class of structured matrix optimization problems. In particular, Mixture-of-
Experts (MoE) architectures [46, 18, 29] constitute a promising application domain.
In a standard Transformer, the feed-forward network (FFN) consists of two dense matrices
shared by all input tokens.
In contrast, an MoE layer replaces this single FFN by a collection of independent experts,
where each expert possesses its own pair of weight matrices. A lightweight routing network selects only the most relevant experts for each input token, typically one expert (Switch Transformer) or two experts (Mixtral), considerably reducing the computational cost while maintaining a very large overall model capacity.
From a matrix viewpoint, the collection of expert weights can be interpreted as a block-diagonal operator, revealing a highly structured matrix organization that is particularly attractive for structured sparsification. Each expert matrix can be projected independently using PLCP or PECP, naturally producing structured sparsity patterns such as row-wise, column-wise or diagonal sparsity. This could reduce both memory consumption and inference latency without modifying the routing mechanism.
6 Conclusion
In this paper, we introduced the Cone Alignment Index (CAI), a scale-invariant sparsity measure associated with a Lorentz-cone geometry. Building on this formulation, we derived two complementary projections: the Parametric Linear Conic Projection (PLCP), an efficient closed-form approximation, and the Parametric Euclidean Conic Projection (PECP), the exact Euclidean projection onto the cone boundary. We proved that PLCP and PECP are collinear, differ only by a positive radial scaling factor, and induce exactly the same sparsity threshold, thereby preserving the same active support.
Experiments demonstrate that our approach achieves up to 90% structured attention sparsity on GLUE benchmarks while preserving predictive performance, consistently outperforming GSP, structured pruning, and the sparse-attention BigBird.
By combining closed-form projections, conic geometry, and structured sparsity, the proposed framework offers a scalable foundation for efficient inference and training of modern neural networks.
Future work will extend this framework well beyond attention mechanisms, investigating structured sparsification of general weight matrices and Mixture-of-Experts architectures.
References
[1] Farid Alizadeh and Donald Goldfarb. Second-order cone programming. Mathematical Programming, 95(1):3–51, 2003.
[2] Jose M Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In Advances in Neural Information Processing Systems, pages 2270–2278, 2016.
[3] Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, and James Hensman. Slicegpt: Compress large language models by deleting rows and columns. International Conference on Learning Representations, 2024.
[4] Benjamin Bejar, Ivan Dokmanić, and Rene Vidal. The fastest prox in the West. IEEE transactions on pattern analysis and machine intelligence, 44(7):3858–3869, 2021.
[5] Kristin Bennett, Jing Hu, Xiaoyun Ji, Gautam Kunapuli, and Jong-Shi Pang. Model selection via bilevel optimization. IEEE International Conference on Neural Networks - Conference Proceedings, 2006.
[6] Kush Bhatia, Prateek Jain, and Purushottam Kar. Robust regression via hard thresholding. In Advances in Neural Information Processing Systems (NIPS), 2015.
[7] S. Boyd and L. Vandenberghe. Convex optimization. Cambridge University Press., 2004.
[8] Tianyi Chen, Bo Ji, Tianyu Ding, Biyi Fang, Guanyi Wang, Zhihui Zhu, Luming Liang, Yixin Shi, Sheng Yi, and Xiao Tu. Only train once: A one-shot neural network training and pruning framework. In Advances in Neural Information Processing Systems, volume 34, pages 19637–19651. Curran Associates, Inc., 2021.
[9] Tianyi Chen, Guanyi Wang, Tianyu Ding, Bo Ji, Sheng Yi, and Zhihui Zhu. Half-space proximal stochastic gradient method for group-sparsity regularized problem, 2021.
[10] Benoît Colson, Patrice Marcotte, and Gilles Savard. An overview of bilevel optimization. Annals of Operations Research, 153(1):235–256, 2007.
[11] Laurent Condat. Fast projection onto the simplex and the 11 ball. Mathematical Programming Series A, 158(1):575–585, 2016.
[12] Laurie Davies and Ursula Gather. The identification of multiple outliers. Journal of the American Statistical Association, 88(423):782–792, 1993.
[13] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), 2019.
[14] J. Duchi, S. Shalev-Shwartz, Y. Singer, and T. Chandra. Efficient projections onto the l 1-ball for learning in high dimensions. In Proceedings of the 25th international conference on Machine learning, pages 272–279. ACM, 2008.
[15] Ernie Esser, Yifei Lou, and Jack Xin. A method for finding structured sparse solutions to non-negative least squares problems with applications. arXiv, stat.ML, 2013.
[16] Utku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro, and Erich Elsen. Rigging the lottery: Making all tickets winners, 2020.
[17] Ahmad Faiz, Sotaro Kaneda, Ruhan Wang, Rita Osi, Prateek Sharma, Fan Chen, and Lei Jiang. LLMCarbon: Modeling the end-to-end carbon footprint of large language models. In ICLR 2024, International Conference on Learning Representations, 2024.
[18] William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1–39, 2022.
[19] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. International Conference on Learning Representations, 2019.
[20] Jonathan Frankle, Gintare Karolina Dziugaite, Daniel Roy, and Michael Carbin. Pruning neural networks at initialization: Why are we missing the mark? International Conference on Learning Representations, 2021.
[21] Elias Frantar and Dan Alistarh. Sparsegpt: Massive language models can be accurately pruned in one-shot, 2023.
[22] Nicolas Gillis and François Glineur. Accelerated multiplicative updates and hierarchical als algorithms for nonnegative matrix factorization. Neural Computation, 24(4):1085–1105, 04 2012.
[23] Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pages 1135–1143, 2015.
[24] Trevor Hastie, Robert Tibshirani, and Martin Wainwright. Statistical learning with sparsity: The lasso and generalizations. CRC Press, 2015.
[25] Patrik O. Hoyer. Non-negative matrix factorization with sparseness constraints. Journal of Machine Learning Research, 2004.
[26] Peter J. Huber. Robust Statistics. John Wiley & Sons, 1981.
[27] Niall P. Hurley and Scott T. Rickard. Comparing measures of sparsity. CoRR, abs/0811.4706, 2008.
[28] Shane T. Jensen. The Laguerre–Samuelson Inequality with Extensions and Applications in Statistics and Matrix Theory. PhD thesis, McGill University, 1999.
[29] Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, et al. Mixtral of experts. arXiv preprint arXiv:2401.04088, 2024.
[30] Zakhar Kabluchko, Alexander E. Litvak, and Dmitry Zaporozhets. Mean width of regular polytopes and expected maxima of correlated gaussian variables. Journal of Mathematical Sciences, 225(5):770–787, 2017.
[31] Seyoung Kim and Eric P. Xing. Tree-guided group lasso for multi-task regression with structured sparsity. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML'10, pages 543–550, 2010.
[32] D Kingma and Jimmy Ba. Adam: a method for stochastic optimization. International Conference on Learning Representations, pages 1–13, 2015.
[33] Christos Louizos, Max Welling, and Diederik P. Kingma. Learning sparse neural networks through regularization. ICLR, International Conference on Learning Representations, 2018.
[34] Zhi-Quan Luo and Paul Tseng. On the convergence of the coordinate descent method for convex differentiable minimization. Journal of Optimization Theory and Applications, 72(1):7–35, 1992.
[35] Rongrong Ma, Jianyu Miao, Lingfeng Niu, and Peng Zhang. Transformed regularization for learning sparse deep neural networks. arXiv preprint arXiv:1901.01021, 2019.
[36] Riyasat Ohib, Nicolas Gillis, Niccolò Dalmasso, Sameena Shah, Vamsi K. Potluru, and Sergey Plis. Explicit group sparse projection with applications to deep learning and nmf. Transactions on Machine Learning Research, 2022.
[37] Grigoris Paouris, Peter Pivovarov, and Joel Zinn. A central limit theorem for projections of the cube. Probability Theory and Related Fields, 159(3–4), 2014.
[38] Mohammad Taher Pilehvar and Jose Camacho-Collados. WiC: the word-in-context dataset for evaluating context-sensitive meaning representations. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Association for Computational Linguistics, 2019.
[39] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100,000+ questions for machine comprehension of text. In Jian Su, Kevin Duh, and Xavier Carreras, editors, Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392, Austin, Texas, November 2016. Association for Computational Linguistics.
[40] Audrey Repetti, Mai Quyen Pham, Laurent Duval, Emilie Chouzenoux, and Jean-Christophe Pesquet. Euclid in a taxicab: Sparse blind deconvolution with smoothed 11/12 regularization. IEEE Signal Processing Letters, 22(5), 2015.
[41] Peter J. Rousseeuw. Least median of squares regression. Journal of the American Statistical Association, 79(388):871–880, 1984.
[42] Paul A Samuelson. How deviant can you be? Journal of the American Statistical Association, 63(324):1522–1525, 1968.
[43] Victor Sanh, Thomas Wolf, and Alexander Rush. Movement pruning: Adaptive sparsity by fine-tuning. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 20378–20389. Curran Associates, Inc., 2020.
[44] Sanjeev Saxena. A simple introduction to karmarkar's algorithm for linear programming, 2017.
[45] Simone Scardapane, Danilo Comminiello, Amir Hussain, and Aurelio Uncini. Group sparse regularization for deep neural networks. Neurocomputing, 241:81–89, 2017.
[46] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. International Conference on Learning Representations (ICLR), 2017.
[47] N Simon, J Friedman, T Hastie, and R Tibshirani. A sparse-group lasso. Journal of Computational and Graphical Statistics, 22(2):231–245, 2013.
[48] Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, 2013.
[49] Emma Strubell, Ananya Ganesh, and Andrew McCallum. Energy and policy considerations for deep learning in nlp. In ACL, 2019.
[50] Markus Thom, Matthias Rapp, and Günther Palm. Efficient dictionary learning with sparseness-enforcing projections. International Journal of Computer Vision, 114(2-3), 2015.
[51] Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society. Series B (Methodological), pages 267–288, 1996.
[52] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in Neural Information Processing Systems, 2017.
[53] Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5797–5808, Florence, Italy, 2019. Association for Computational Linguistics.
[54] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. International Conference on Learning Representations, 2019.
[55] Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pages 2074–2082. Curran Associates, Inc., 2016.
[56] Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), 2018.
[57] Mengzhou Xia, Tianyu Gao, Zhiyuan Zeng, and Danqi Chen. Sheared llama: Accelerating language model pre-training via structured pruning, 2024.
[58] Huanrui Yang, Wei Wen, and Hai Li. Deephoyer: Learning sparser neural network with differentiable scale-invariant sparsity measures. ICLR, International Conference on Learning Representations, 2020.
[59] Jaehong Yoon and Sung Ju Hwang. Combined group and exclusive sparsity for deep neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 3958–3966. JMLR. org, 2017.
[60] Ming Yuan and Yi Lin. Model selection and estimation in regression with grouped variables. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 68(1):49–67, 2006.
[61] Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed. Big bird: transformers for longer sequences. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20. Curran Associates Inc., 2020.
[62] Yihua Zhang, Prashant Khanduri, Ioannis Tsaknakis, Yuguang Yao, Mingyi Hong, and Sijia Liu. An introduction to bilevel optimization: Foundations and applications in signal processing and machine learning. IEEE Signal Processing Magazine, 41(1):38–59, 2024.
[63] Yihua Zhang, Yuguang Yao, Parikshit Ram, Pu Zhao, Tianlong Chen, Mingyi Hong, Yanzhi Wang, and Sijia Liu. Advancing model pruning via bi-level optimization. Advances in Neural Information Processing Systems, 2022.
A Appendix
A.1 Asymptotic Distribution of the CAI score
Theorem A.1 (Asymptotic distribution of the CAI score). Let be i.i.d. random variables such that
and define
Let
and
Then
Moreover,
where
with
and
Equivalently, for large n,
Proof. Define
Then
By the law of large numbers,
and therefore, by continuity of g,
Since , the multivariate central limit theorem gives
Applying the delta method to yields
which proves the result.
Corollary A.2 (Gaussian case). If
then
Hence
and
The linear-in-n parametrization naturally follows from the relation between the CAI parameter l and the normalized sparsity. Indeed, for a vector of dimension n, the CAI parameter satisfies , and the normalized sparsity level is approximately characterized by the dimensionless ratio
Keeping a prescribed normalized sparsity level as the dimension increases requires l to scale linearly with n. This motivates the use of l/n as the natural dimension-independent parameter for comparing sparsity regimes across different dimensions. Therefore the normalized distribution is given by:
A.2 Second-order Gaussian approximation
Note that the random variable where can be equivalently defined as the L1 norm of a vector sampled uniformly over the unit sphere. This relates our result to [30, Theorem 3.6] and the particular case for of [37, Theorem 1.1] which studies .
Since Theorem 2.2 considers the square of , our result can be derived from theirs by applying the delta method.
For Gaussian coefficients, the general second-order correction becomes
Hence,
Interestingly, in the Gaussian case this expression is not merely asymptotic. Spherical symmetry gives the exact finite-dimensional identity
We therefore obtain the refined approximation
Equivalently,
Moreover, the asymptotic standard deviation of is
Moreover, the natural fluctuations of are of order . In particular,
A.3 PLCP and PECP share a Common Active-Set Selection
We now introduce a unified one-sided formulation of PLCP and PECP. The key observation is that both methods can share the same active-set selection procedure and therefore the same threshold . They differ only in the final geometric projection applied once the active support has been identified.
More precisely, the algorithm is decomposed into two successive stages:
Active-set selection Geometric projection.
The first stage determines the active support and is common to both PLCP and PECP. The second stage is method-dependent: PLCP uses an affine extrapolation parameterized by , whereas PECP performs the Euclidean projection onto the CAI boundary, parameterized by t or, equivalently, by the radial factor .
Importantly, the geometric projection is performed only when the original input vector violates the target constraint,
When
the input is already feasible and no geometric projection toward the boundary is required.
A.4 Common Active-Set Threshold for PLCP and PECP
Before introducing the one-sided PLCP and PECP algorithms, we derive the common threshold used to identify their active support.
The key point is that the support identification is determined solely by the CAI boundary condition and is therefore independent of the subsequent geometric projection. Consequently, PLCP and PECP share exactly the same active-set threshold.
A.4.1 CAI boundary on the active support
Let
and assume that the current active support contains coefficients. Restricting x to this support, the CAI boundary is defined by
where
Let
Consider the centered vector
where denotes the threshold associated with the current active support.
Its first two moments are
and
Imposing the CAI boundary condition
gives
Therefore,
Using
we obtain
Dividing by gives
Solving this quadratic equation gives
The term inside the square root simplifies as
Hence,
The relevant root for the active-set selection is the smaller one, leading to the common threshold
This threshold determines which coefficients remain active:
The active-set procedure is repeated until the support size stabilizes.
A.4.2 Why the threshold is common to PLCP and PECP
The derivation of uses only the CAI boundary equation
and the current active support size .
It does not involve either the PLCP extrapolation coefficient or the PECP Euclidean projection parameter t.
Therefore, the threshold is independent of the particular geometric path used to reach the CAI boundary:
This provides the theoretical justification for using a single active-set selection procedure for both methods.
Once the support has stabilized, the two methods differ only in their geometric projection:
CAI boundary condition
common threshold
common active support A
A.5 Derivation of the PLCP Extrapolation Factor
Once the active support has stabilized, let
and let denote the final threshold obtained from the CAI boundary condition.
On the active support, define the diagonal reference vector
The shifted vector associated with the final threshold is
By construction of the threshold ,
Since
the shifted vector can be rewritten as
Let
Then
The PLCP solution is defined by the affine extrapolation
Choosing
gives
and therefore
Using
we obtain
Since the CAI score is scale-invariant,
Hence, the affine extrapolation lies on the CAI boundary.
Finally,
Substituting the closed-form threshold
yields
Thus, once the final active support and the threshold have been identified, the PLCP extrapolation factor is obtained directly in closed form, without any additional optimization.
A.5.1 PECP from Euclidean-Norm Minimization
Let y denote the input vector restricted to the final active support. The PECP solution is defined by
Axial-orthogonal decomposition. Let A denote the final active support and let
In the corresponding active subspace, define the normalized diagonal axis as
The input vector restricted to the active support can be decomposed as
and
For r > 0, the unit orthogonal direction is
By construction,
CAI boundary. The CAI boundary in the active subspace is defined by
Let denote the half-opening angle of the CAI cone in this active subspace. Since
we obtain
Hence,
Any point on the CAI boundary generator contained in the plane spanned by u and v can therefore be parameterized as
Indeed, its axial component is t, whereas the norm of its orthogonal component is tq, and therefore
Euclidean-norm minimization. PECP selects the point on this CAI boundary generator that minimizes the Euclidean distance to the input vector.
Using the decomposition
we obtain
Since and are orthonormal,
Thus, the PECP problem reduces to the one-dimensional minimization
Define
Differentiating with respect to gives
The optimality condition
therefore yields
Rearranging,
Consequently,
Moreover,
so that is the unique minimizer.
Hence, the PECP solution is the Euclidean projection onto the corresponding CAI boundary generator. In the plane, this reduces to the orthogonal projection of the point onto the boundary line .
Closed-form PECP solution. The PECP solution is therefore
with
Equivalently,
Returning to the matrix representation gives
Hence, the PECP solution is the Euclidean projection onto the corresponding CAI boundary generator. In the plane, this reduces to the orthogonal projection of the point onto the boundary line .
Relation between PLCP and PECP Let
denote the normalized diagonal axis of the active subspace, and let v denote the corresponding unit orthogonal direction.
The CAI boundary is characterized by
Therefore, any point lying on the corresponding CAI boundary generator can be written as
The PLCP solution lies on this generator and can therefore be written as
where denotes the axial coordinate of the PLCP solution.
Similarly, from the Euclidean projection derived for PECP,
Here, s and r denote respectively the axial and orthogonal coordinates of the vector to be projected:
and
Since both solutions lie on the same CAI boundary generator, they are collinear. Indeed,
and
Consequently,
Therefore,
Hence, the PECP and PLCP solutions satisfy
Thus, the two methods differ only by a radial scaling once the common active support has been identified.
This yields the unified interpretation
Therefore, PLCP and PECP select exactly the same conic direction. They differ only by a radial scaling along that cone generator: PLCP reaches the boundary through the affine path joining to the diagonal point , whereas the Euclidean projection reaches the same generator through the shortest-distance path.
A.6 Euclidean characterization of the bilevel PECP
Proposition A.3 (Euclidean characterization of the bilevel PECP). Let
and let
denote the Euclidean CAI projection of the vector of column norms. Define
Then, provided , the resulting matrix minimizes the Frobenius distance to among matrices whose vector of column norms satisfies the corresponding CAI constraint.
Proof. For any prescribed vector of column radii , the minimization of the Frobenius distance separates columnwise:
The Euclidean projection onto the ball gives
Since ,
Therefore,
Consequently, minimizing the Frobenius distance in matrix space is equivalent to minimizing the Euclidean distance between the vectors of column norms:
Since is the Euclidean CAI projection of , the matrix obtained from is the corresponding exact Frobenius projection.
A.7 Laguerre's style and Samuelson's style bound
Let be positive real numbers, and set
Fix a positive number , and define
We will prove that the number of indices i such that
is at most n - l.
First, remark that, according to the following lemma, this threshold can be rewritten in terms of the standard score (aka z-score):
Lemma A.4. The numbers and defined in equation 18 satisfy
Proof. We have
Using gives , which gives equation 20.
Lemma A.5. Let
where
Then
As detailed in [28], there are two approaches to prove such Laguerre-Samuelson style inequality. A first one, following Laguerre's style uses Cauchy-Schwarz and a second one, following Samuelson's style uses a clustering argument. We provide both of them below.
Proof in Laguerre style. Write the deviations from the mean as
Then
We derive the desired result by bounding the total variation around the mean. Among the numbers , exactly r of them satisfy . Let
Set
Since the total sum is zero, we have . Moreover, because each satisfies , we get
By Cauchy–Schwarz applied to the set ,
Therefore
Also, for we have , so
Adding the two estimates gives
(22)
Rearranging,
Proof in Samuelson style. This proof uses the remark “putting 2 measurements at their common mean reduces the standard deviation while leaving the mean invariant” from Samuelson’s paper [42]. Consider the clustering operation replacing all samples in by their mean and all samples in by their mean ; so let if and otherwise. Let and be their mean and standard deviation computed as in Equation 18. Define as in Equation 21. Using Samuelson’s remark, we know that . We have S'_A + S'_\overline{A} = 0 so S'_\overline{A} = -S'_A. As for all , we have . Therefore
This is Equation 22 so the last step is shared with the Laguerre style proof. □
Theorem A.6. .
Proof. By equation 20.
Lemma A.5 gives us
Substituting yields
□
A.8 Euclidean characterization of the bilevel PECP
Proposition A.7 (Euclidean characterization of the bilevel PECP). Let
and let
denote the Euclidean CAI projection of the vector of column norms. Define
Then, provided , the resulting matrix minimizes the Frobenius distance to among matrices whose vector of column norms satisfies the corresponding CAI constraint.
Proof. For any prescribed vector of column radii , the minimization of the Frobenius distance separates columnwise:
The Euclidean projection onto the ball gives
Since ,
Therefore,
Consequently, minimizing the Frobenius distance in matrix space is equivalent to minimizing the Euclidean distance between the vectors of column norms:
Since is the Euclidean CAI projection of , the matrix obtained from is the corresponding exact Frobenius projection.
A.9 Comparison of thresholding iteration with literature
A.9.1 Comparison with Torrent family
Hard-thresholding iterations of the form Equation 12 are also at the heart of the TORRENT family of algorithms introduced by [6] for Robust Least Squares Regression (RLSR). It is therefore instructive to delineate precisely how our PLCP iteration relates to, and differs from, that line of work.
Problem setting. TORRENT addresses the regression model , where is a sparse but adversarially chosen corruption vector with . The goal is to recover exactly despite an unknown set of corrupted responses. The algorithm alternates between (i) a hard-thresholding step that selects an active set of points with the smallest residuals, and (ii) a fit step (least squares for TORRENT-FC, a gradient step for TORRENT-GD, or a hybrid policy for TORRENT-HYB) that re-estimates on .
By contrast, the PLCP iteration solves a Euclidean projection onto a structured sparsity cone arising from neural network compression. There is no statistical model, no corruption, and no regressor to recover: the iteration acts directly on the entries of (or on the vector of column -norms, in the bilevel variant) and the active support is determined by a magnitude threshold that is itself a function of the current iterate.
Form of the thresholding step. The hard-thresholding operator used in [6] selects a fixed-cardinality set of indices (the smallest residuals), so the active-set size is held constant across iterations. In our setting, the threshold is computed from the current iterate via the cone characterization, and the cardinality of the active support is itself updated at each step. The PLCP iteration is therefore an adaptive-cardinality thresholding scheme, whereas TORRENT is a fixed-cardinality one.
Convergence guarantee. The two analyses also differ in nature. TORRENT establishes a geometric (linear) convergence rate under deterministic subset strong convexity/smoothness (SSC/SSS) assumptions on , which hold with high probability for sub-Gaussian designs; the iteration count to reach an -accurate solution scales as ), and exact recovery is only reached in the limit. The PLCP iteration, on the other hand, enjoys a finite-time guarantee: the active support is monotonically non-increasing along iterations, hence the loop reaches a fixed point in at most steps, with no probabilistic or design assumption on the input vector. Empirically (see Figure 4), in most cases the active-set size collapses exponentially fast toward its limit, well before the worst-case -iteration bound.
A.9.2 Comparison with the Luo-Tseng convergence framework
A second, more classical line of work on the convergence of active-set iterations is the analysis of [34] for coordinate descent on problems of the form
where is a (possibly unbounded) box, has no zero column, and is strictly convex and twice differentiable on its effective domain. Their main result is that the iterates generated by coordinate descent converge to an optimal solution at a linear rate, without requiring that the cost function have bounded level sets or be strictly convex on the whole space. As a corollary, they obtain the first linear-convergence guarantee for the dual iterates of several methods for symmetric monotone linear complementarity problems, matrix balancing, and entropy optimization.
Common ground. The PLCP iteration shares with the Luo-Tseng setting two features that are central to their analysis. First, the constraint set involved in our projection is a polyhedral cone – in particular a Cartesian product of half-lines after the support has been selected – so the underlying feasibility set has the same box-like geometry as . Second, the optimality conditions of the conic projection can be written as a linear complementarity system (positivity, primal feasibility, and complementary slackness on the active support), which is precisely the class of problems for which (author?) [34] establish linear convergence of coordinate descent. In that sense, the PLCP optimality conditions live in the LCP universe that Luo-Tseng's analysis targets.
Where the analyses differ. The differences are equally informative. [34] update one coordinate at a time (in an almost-cyclic or Gauss-Southwell order) and rely on an error-bound inequality to obtain a geometric rate of convergence on the iterates. The PLCP iteration, in contrast, performs a global active-support update at each step: all coordinates below the current threshold are zeroed simultaneously, and the threshold itself is recomputed in closed form from the resulting support. Because the support is a discrete object and only shrinks across iterations, this block update yields a strictly stronger guarantee than the linear rate of [34]: the iteration reaches its fixed point in at most steps, with no error-bound or strict-convexity assumption. Empirically, the active-support size further decays exponentially fast (Figure 4), so that the worst-case -iteration bound is almost never tight.
A.9.3 Comparison with Least Median of Squares regression
Predating the modern hard-thresholding literature by several decades, [41] introduced Least Median of Squares (LMS) regression as a high-breakdown-point alternative to ordinary least squares:
Because the median is, up to ties, the -th order statistic of the squared residuals, LMS implicitly identifies the half of the observations on which the regressor fits best and ignores the rest. In this sense it is the conceptual ancestor of TORRENT's hard-thresholding step and, more broadly, of every active-set scheme that discards the points with the largest residuals.
Selection mechanism. LMS and PLCP share the same underlying primitive – ranking quantities (residuals, respectively coefficient magnitudes) and keeping only those above a data-adaptive threshold – but they differ in three ways: (i) the threshold in LMS is fixed at the median rank (50% of the data), giving the estimator its maximal breakdown point ; in PLCP the threshold is computed in closed form from the cone-alignment constraint and the active-set size is therefore data-driven rather than prescribed; (ii) LMS ranks squared residuals of a regression fit, whereas PLCP ranks the entries of the iterate itself (or the column -norms in the bilevel variant); (iii) LMS only specifies the optimization objective; PLCP, like TORRENT, additionally specifies an iterative procedure for finding the active support, and we prove that this procedure terminates in finitely many steps.
Robustness vs. deterministic termination. The theoretical guarantee provided by (author?) [41] is statistical and worst-case: LMS attains the highest possible breakdown point among regression-equivariant estimators, meaning that up to almost half of the observations can be corrupted arbitrarily without the estimator drifting to infinity. Our guarantee for PLCP, by contrast, is algorithmic: there is no notion of breakdown point because the input is a deterministic vector to be projected, not a noisy sample; instead, the iteration is shown to reach a fixed point in at most steps for any input. The two analyses therefore answer different questions about the same family of thresholding ideas – "how much corruption can the answer survive?" versus "how fast does the iteration stop?" – and are best read as complementary rather than competing.
Computational profile. A practical contrast worth noting is that exact LMS is NP-hard in and is typically solved by random subsampling heuristics with no global guarantee, whereas the PLCP iteration is a deterministic procedure with closed-form updates and worst-case complexity , . Combined with the empirical observation that remains small (Figure 4), this makes PLCP attractive as the structured-sparsity analogue of the thresholding-by-ranking idea that LMS first crystallized in the robust-regression setting.
A.9.4 Comparison with Huber's M-estimators and IRLS
The most foundational reference for the convergence of "trim and refit" iterations is the theory of M-estimators developed by [26] in Chapter 3 of Robust Statistics. An M-estimator is defined as the solution of
for a loss chosen to attenuate the influence of large residuals, and it is computed in practice by an Iteratively Reweighted Least Squares (IRLS) scheme of the form
where is the influence function. Huber gives the foundational analysis of when this iteration converges and to what.
PLCP as IRLS with binary weights. The PLCP iteration fits squarely inside this framework once one notices that the hard-thresholding update Equation 12 is precisely IRLS with a binary weight function
corresponding to the discontinuous "hard" influence function rather than Huber's clipped-linear . The pattern "compute the (cone-adapted) statistic, threshold, recompute" is, in Huber's terminology, a degenerate re-descending M-iteration in which observations either count fully or not at all. Standard IRLS with continuous weights interpolates between these extremes; PLCP and TORRENT both correspond to the binary-weight limit.
What Huber's analysis buys us, and where it stops. Huber's convergence proofs for IRLS rely on smoothness of and on the resulting majorization-minimization structure of the iteration. They give monotone descent of an explicit objective and asymptotic convergence under mild conditions. Specializing them to a discontinuous binary formally falls outside their regularity assumptions, but the underlying intuition – that the active-set update is a majorization step on a piecewise-quadratic surrogate – still applies and explains why such iterations tend to converge in practice. Our analysis can be read as supplying the missing piece in this degenerate regime: rather than invoking smoothness, we use the combinatorial fact that the active support is a monotone subset sequence to conclude finite-time termination in at most steps. In this sense, the PLCP convergence result is the natural counterpart, on the structured-sparsity side, of Huber's IRLS convergence theory: same iterative template, different mathematical tool for closing the proof.
A.10 Basic Inference analysis
We provide a basic analysis of the computational cost of using PLCP within a BERT-like attention block [13].
In this simple illustrative setting, token importance is approximated by the embedding norm, and tokens associated with smaller norms are preferentially removed. Let the original sequence length be and the head dimension be . When the quadratic attention operations dominate the computational cost, the leading-order complexity becomes
Basic Linguistic Analysis In this section, we provide a preliminary linguistic analysis on real text data.
Example
Sentence: a densely constructed, highly referential film, and an audacious return to form that can comfortably sit among jean-luc godard's finest work.
Label: POSITIVE
PLCP sparsified sentences:
- Level 2: referential audacious Kept: 17.6% (6/34) Predicted: NEGATIVE [WRONG]
- Level 4: referential audacious godard Kept: 23.5% (8/34) Predicted: POSITIVE [OK]
- Level 8: referential audacious comfortably sit among jean luc godard finest Kept: 44.1% (15/34) Predicted: POSITIVE [OK]
- Level 12: densely referential audacious return form comfortably sit among jean luc godard finest Kept: 52.9% (18/34) Predicted: POSITIVE [OK]
- Level 16: densely highly referential film audacious return form can comfortably sit among jean luc godard s finest work Kept: 67.6% (23/34) Predicted: POSITIVE [OK]
- Level 24: a densely constructed highly referential film and an audacious return to form that can comfortably sit among jean-luc godard's finest work. Kept: 94.1% (32/34) Predicted: POSITIVE [OK]
In this illustrative example, sparsification first tends to remove punctuation marks and some modifiers or function words while largely preserving the semantic content of the sentence. However, a systematic linguistic evaluation by a specialist would be required to draw general conclusions and is left for future work.