Manuscript Offprint
arXiv:2610.09476CHASE: Channel-Aligned Structure Exploitation for Geometry-Aware Model Engineering
ABSTRACT
Geometric and Spectral Alignment (GSA) characterizes trained networks through spectral concentration, physical-channel alignment, support structure, and changes in singular bases. In this paper, we propose CHASE (Channel-Aligned Structure Exploitation) to use these structures in practical model design. CHASE covers six applications across model modification, reconfiguration, and compression. CORA, COEC, and CORAM apply GSA to parameter-efficient finetuning, structured-pruning compensation, and model merging. We further develop three new methods. CAGA uses GSA to identify multi-head attention heads that can share a KV representation and constructs the shared key and value heads through geometric alignment and low-rank subspace extraction. SAKV uses GSA to determine which adjacent layers can share a low-rank KV-cache representation and the retained rank for each layer group. CAPS uses GSA spectral structure to group output neurons and selects retained input channels separately for each group. Results from CORA, COEC, and CORAM establish the effectiveness of GSA for adaptation, pruning compensation, and model merging. Experiments on CAGA show that geometric shared-head construction substantially improves MHA-to-GQA conversion, and SAKV and CAPS improve over representative baselines for KV-cache compression and structured pruning. These results show that the structures identified by GSA can be used directly to design methods for a range of model operations.
1 INTRODUCTION
Deep neural networks often develop structural regularities that are not directly specified by their architectures or training objectives. A small number of channels can dominate activation magnitude and quantization error Dettmers et al. (2022); Xiao et al. (2023); Lin et al. (2024); Sun et al. (2024a). Factual knowledge and even broad behaviors can be localized to a small number of parameters or directions Meng et al. (2022; 2023); Arditi et al. (2024). Large portions of a trained model, including channels, heads, layers, and experts, can often be removed or shared with very small loss Men et al. (2024); Lu et al. (2024). These observations have motivated separate lines of work in quantization, model editing, pruning, efficient adaptation, and sparse architectures. These observations indicate that trained networks share a common underlying organization, with useful computation concentrated in a relatively small set of directions and interactions despite the much larger parameter space.
Geometric and Spectral Alignment (GSA) Liu et al. (2026a;b) provides a way to characterize this organization from two perspectives. The first is spectral. If most of a layer transformation is concentrated in a small number of singular directions, this gives a natural explanation for why many parameters or channels can be removed with limited loss and why low-rank adaptation can be effective.
Equal contribution.
The second is relational. If the dominant directions of adjacent layers repeatedly align through the same physical channels, then some channels become strongly associated with particular parts of the computation while others are reused across several parts. This provides a possible structural basis for localized knowledge, shared computation, hub-like channels, and redundancy across model components. GSA further studies how this organization changes when a model is modified, which is directly related to why some low-dimensional updates preserve a pretrained model better than unconstrained changes.
In particular, GSA-I Liu et al. (2026a) characterizes how the energy of a layer transformation is distributed across its singular directions and introduces an effective-rank window that measures how many directions are needed to capture a given fraction of the spectral energy. A small effective-rank window means that most of the transformation is concentrated in a relatively low-dimensional subspace. This provides a direct structural signal for low-rank adaptation, model compression, and layerwise rank allocation.
GSA-II Liu et al. (2026b) then studies how the low-dimensional subspaces identified by the effective-rank windows align across adjacent layers. For two consecutive layers, it compares the retained output subspace of the first layer with the retained input subspace of the next and expresses this relationship in the original physical channel coordinates through a Physical Alignment Matrix. The rows of this matrix are grouped according to the retained spectral components. For each row group, GSA-II identifies the physical channels that carry most of the corresponding alignment energy. These channels form the active support of that group.
The resulting support pattern shows how the retained inter-layer structure is distributed across physical channels. Some channels are mainly associated with one group, while others are shared by several groups. GSA-II separates this structure into core, overlap, and noise components. The core contains strong connections associated with individual groups. The overlap captures strong connections carried by channels that are shared across groups. The noise contains the remaining weakly structured entries. Channels that appear in the active supports of multiple groups are identified as hub channels. GSA-II also defines margins that measure how clearly the active supports and their overlaps are separated and when this channel structure remains stable under perturbation.
The structure identified by GSA may explain several of the observations described above. Hub channels, which participate in the active supports of multiple groups, may correspond to the small set of high-impact channels observed in activation and quantization studies. Channels associated mainly with individual groups may help explain why certain knowledge or behaviors can be localized to restricted parts of a network. Components with weak or redundant support are natural candidates for removal or sharing. The same structural information can also guide model design. Spectral concentration indicates how much of a layer transformation needs to be retained, while channel support identifies which components are local, shared, or weakly represented. The coherent singular-frame result further provides a structured way to modify a pretrained weight without strongly disturbing its original geometry. These properties are directly relevant to parameter-efficient finetuning (PEFT), structured pruning and pruning compensation, model merging, attention reconfiguration, and KV-cache compression.
Several applications from our prior work have already demonstrated practical uses of GSA. CORA Wang et al. (2026) uses coherent changes in the left and right singular bases for PEFT. COEC Yu et al. (2026) compensates for changes in the input basis, output basis, and singular values introduced by structured pruning. CORAM Sui et al. (2026) represents finetuned models through rotational, spectral, and right-subspace factors and merges these factors separately.
In this paper, we propose CHASE (Channel-Aligned Structure Exploitation) as an application framework for using GSA measurements in model design. We include CORA, COEC, and CORAM as established applications and develop three new methods. CAGA (Coherent Alignment for Grouped Attention) uses GSA to identify multi-head attention (MHA) heads that can share a KV representation and constructs the shared key and value heads through geometric alignment and low-rank subspace extraction. SAKV (Spectrally Aligned KV-Cache Compression) uses GSA to determine which adjacent layers can share a low-rank KV-cache representation and the retained rank for each layer group. CAPS (Channel-Aligned Pruning Selection) uses GSA spectral structure to group output neurons and selects retained input channels separately for each group.
Different applications use different GSA measurements. CORA, COEC, and CORAM use singular-basis and spectral changes when pretrained weights are modified, compensated, or merged. CAGA uses physical-channel support overlap together with retained spectral and right-subspace similarity to group attention heads. SAKV extends the effective-rank criterion to shared KV representations, while CAPS uses the effective-rank spectral directions to organize output neurons. CHASE links each model operation to the GSA quantities used by that operation.
Our main contributions are as follows.
• We propose CHASE, an application framework that uses the spectral, physical-channel, and singular-basis measurements of GSA to guide model modification, reconfiguration, and compression.
• We present six CHASE applications. CORA, COEC, and CORAM cover PEFT, structured-pruning compensation, and model merging. We further develop CAGA for multi-head attention grouping, SAKV for KV-cache compression, and CAPS for structured-pruning selection, and evaluate the three new methods against representative baselines for their respective applications.
2.1 SPECTRAL CONCENTRATION AND EFFECTIVE RANK
For a matrix with singular values , where , define the fraction of spectral energy captured by the first singular directions as
GSA-I Liu et al. (2026a) gives the corresponding effective-rank window as
The quantity measures how many singular directions are needed to retain a given fraction of the spectral energy. A small ratio means that most of the transformation is concentrated in a low-dimensional subspace, while a larger ratio indicates that the spectral energy is spread across more directions. The geometric formulation and theoretical analysis underlying this quantity are described in detail in GSA-I.
CHASE uses the effective-rank criterion in SAKV and CAPS. SAKV extends the retained-spectral-energy criterion to grouped KV representations and uses it to determine the rank required by each layer group. CAPS uses to determine the singular directions used to organize output neurons into groups. Spectral energy does not directly measure task importance, so calibration information is added when an application requires task-dependent selection.
2.2 INTER-LAYER ALIGNMENT IN PHYSICAL CHANNELS
The effective-rank window identifies a retained low-dimensional subspace for each layer. GSA-II studies how these subspaces align across consecutive layers Liu et al. (2026b). For two adjacent layer operators, it compares the retained output subspace of the first layer with the retained input subspace of the next layer. The resulting relationship is then expressed in the original physical channel coordinates of the model through the Physical Alignment Matrix, which we denote by .
The rows of are grouped according to the retained spectral components. For each row group i, GSA-II identifies a set of physical channels that carries most of the corresponding alignment energy. The set is the active support of that group. These active supports reveal how the retained inter-layer structure is distributed across physical channels. Some channels are mainly associated with one group, while others appear in the supports of several groups. Based on this support pattern, GSA-II decomposes the Physical Alignment Matrix as
The core contains strong connections associated with individual groups. The overlap contains strong connections carried by channels shared across groups. The noise contains the remaining weakly structured entries. The number of active supports containing a physical channel c is
Channels with are shared-support or hub channels.
The active supports are used directly in CAGA. For candidate attention-head pairs, CAGA combines physical-channel support overlap with retained singular-value similarity and right-subspace similarity to determine which heads are suitable for sharing.
2.3 STABILITY OF THE CHANNEL STRUCTURE
The active supports in the Physical Alignment Matrix are determined from the energy carried by each physical channel. For a row group , GSA-II assigns every channel the column-energy score
The channels are ranked according to . The active support is then formed either by retaining the smallest set of highest-energy channels whose summed energy reaches a given fraction of the total energy of the group, or by retaining a fixed number of the highest-energy channels Liu et al. (2026b).
GSA-II measures how stable this support is through the active-column gap. This gap compares the weakest channel inside with the strongest channel outside it. A large gap means that the active support is clearly separated from the remaining channels. A small gap means that channels near the support boundary can change their ordering under a small perturbation.
The theory also considers the overlap between the active supports of different row groups. For two groups, some channels may be shared by both supports, while others belong only to one of them. GSA-II defines pairwise overlap quantities and corresponding margins that measure how clearly the shared channels are separated from the group-specific channels. Together with the residual noise level, these quantities characterize how well the core, overlap, and noise structure is separated.
GSA-II combines the active-column gaps, pairwise overlap margins, and residual bounds into a static certificate radius . For a fixed row grouping and active-support rule, the theory shows that when the perturbation of the Physical Alignment Matrix satisfies the required bounds, the active supports remain unchanged. The pairwise support relations, hub channels, and the core–overlap–noise masks remain unchanged as well. The complete definition of , the perturbation conditions, and the proof are given in GSA-II Liu et al. (2026b).
The active-column gaps, pairwise overlap margins, and certificate characterize how clearly the extracted support structure is separated and how stable it remains under perturbation. These quantities provide the theoretical basis for interpreting the reliability of the channel structure identified by GSA-II. The certificate is derived for fixed-dimensional perturbations, while CHASE uses the corresponding measured structure to guide dimension-changing model operations.
2.4 COHERENT SINGULAR-FRAME MOTION
GSA-II also studies how a pretrained weight can change while remaining close to its original geometry. Given a pretrained weight
a modified weight can be represented in the singular coordinates of as
Table 1: GSA quantities and their use in CHASE.
| GSA quantity | What it measures | Use in CHASE |
|---|---|---|
| Effective-rank window | Number of leading singular directions needed to retain most of the spectral energy | SAKV rank selection, CAPS output-neuron grouping |
| Active supports | Which physical channels carry the retained inter-layer structure for each spectral group | CAGA head grouping through support overlap |
| Retained spectral and right-subspace similarity | Similarity of retained singular values and input subspaces between model components | CAGA head grouping |
| Basis rotations , and spectral change | Changes in left and right singular bases and singular values relative to pretrained weight | CORA adaptation, COEC compensation, CORAM merging |
| Active-column gap, pairwise overlap margin, | Separation and stability of the extracted physical-channel supports | GSA support stability analysis |
where and are changes to the left and right singular bases, and is the spectral change.
GSA-II analyzes the perturbation of in the singular-vector coordinates of the pretrained weight. Under the low-disruption conditions developed in the theory, small model changes constrain the relative rotation between the left and right singular frames. In particular, low-cost changes favor coherent motion in which and remain close rather than rotating independently. The full perturbation bounds and their assumptions are given in GSA-II Liu et al. (2026b).
The analysis of coherent changes in the left and right singular bases provides a useful way to parameterize modifications of a pretrained weight. Rather than representing the update as an arbitrary matrix, the change can be separated into rotations of the pretrained singular bases and changes to the singular values. This separation is useful in applications that need to modify, compensate, or combine pretrained weights while preserving their existing geometric structure.
Table 1 summarizes the GSA quantities discussed above and their use in CHASE. Effective rank provides the spectral dimensionality used by SAKV and CAPS. CAGA uses physical-channel support overlap together with spectral and right-subspace similarity. CORA, COEC, and CORAM use changes in singular bases and singular values when modifying, compensating, or combining pretrained weights.
3 CHANNEL-ALIGNED STRUCTURE EXPLOITATION
This section presents six CHASE applications spanning model modification, reconfiguration, and compression. CORA (Coherent Orthogonal Rotation Adaptation) uses coupled rotations of the left and right singular bases for parameter-efficient finetuning. COEC (Calibrated Orthogonal-Equivalence Compensation) corrects the changes to the singular bases and singular values introduced by structured pruning. CORAM (Coherent Rotation-Aware Model Merging) separates rotational, spectral, and subspace changes when combining finetuned models. CAGA (Coherent Alignment for Grouped Attention) uses GSA to identify MHA heads that can share a KV representation and constructs the shared key and value heads through geometric alignment and low-rank subspace extraction. SAKV (Spectrally Aligned KV-Cache Compression) uses GSA to determine which adjacent layers can share a low-rank KV-cache representation and the retained rank for each layer group. CAPS (Channel-Aligned Pruning Selection) uses GSA spectral structure to group output neurons and selects retained input channels separately for each group. The six applications cover parameter adaptation, pruning compensation, model merging, attention reconfiguration, KV-cache compression, and pruning-mask selection. In each case, the model operation is determined from the spectral, physical-channel, or singular-basis structure described in Section 2.
3.1 CORA: COHERENT SINGULAR-BASIS ROTATION FOR PEFT
LoRA-style PEFT methods Hu et al. (2022) represent the change to a pretrained weight as an additive low-rank matrix,
Approaches like DoRA Liu et al. (2024b) and PiSSA Meng et al. (2024) refine the low-rank parameterization or its initialization, but keep the additive modification of the pretrained weight. This representation reduces the number of trainable parameters, but it does not explicitly separate changes to the left singular basis, the right singular basis, and the singular values of .
Orthogonal finetuning methods like OFT Qiu et al. (2023) parameterize adaptation through rotations, which makes changes to the singular bases explicit. However, a rotation-only update cannot independently adjust the singular values. CORA Wang et al. (2026) addresses this issue by combining coherent rotations of the two singular bases with a separate spectral change.
Method. As described in Section 2, GSA-II represents a modified pretrained weight in its singular-vector coordinates as Eq. 6. Under its low-disruption conditions, the relative rotation between the left and right singular bases is constrained to be small. CORA enforces the strongest form of this coherence by setting , while allowing the singular values to change separately.
To keep the rotation compact, CORA applies coherent rotation to low-rank row slices of the pretrained weight. For a slice
the adapted slice is parameterized as
The same orthogonal matrix rotates the left and right singular bases, while controls the change in singular values. Each is parameterized by the Cayley transform of a skew-symmetric matrix, which keeps the rotation orthogonal throughout finetuning.
CORA applies this parameterization to a rank-r reconstruction of the pretrained weight and keeps the remaining residual fixed. A shared layerwise spectral parameter provides an additional low-cost adjustment to the singular values. For an layer with full Cayley blocks, the rotations require approximately trainable parameters. For square projections at the same rank, this is approximately one quarter of the parameter count required by LoRA.
Results. On LLaMA-2-7B commonsense reasoning, CORA with rank 16 uses 6.6M trainable parameters and achieves an average accuracy of 82.16%. On LLaMA-3-8B, the rank-16 configuration uses 10.3M trainable parameters and achieves 86.65%. On HumanEval, CORA with 10.3M trainable parameters reaches 48.2 Pass@1 on LLaMA-3-8B and 40.2 on Mistral-7B. CORA matches or exceeds the evaluated LoRA and SVD-based PEFT baselines while using much fewer trainable parameters.
The mathematical-reasoning experiments also show that restricting adaptation to the leading singular subspace is not equally effective for all tasks. Using the full pretrained weight recovers part of the performance loss observed with the rank-restricted source. The effective-rank window measures spectral concentration, while task-relevant information can also remain in lower-energy directions.
3.2 COEC: TWO-SIDED GEOMETRIC COMPENSATION FOR STRUCTURED PRUNING
Training-free structured pruning usually contains two parts. A selection rule chooses which columns to retain, and a compensation step adjusts the retained weight after column removal. Representative methods include Wanda-sp Sun et al. (2024b), FLAP An et al. (2024), and RCPU Haruta et al. (2026). Existing compensation either leaves the retained weight unchanged, adds a bias, or applies a one-sided rotation. These corrections cannot recover changes in both the input and output singular bases caused by column removal, which limits how closely the pruned layer can reproduce the original transformation.
Method. The GSA representation in Section 2 separates a weight transformation into its input singular basis, output singular basis, and singular values. After columns are removed, the retained matrix generally differs from the original weight in all three components. COEC Yu et al. (2026) corrects both the left and the right singular bases through left and right rotations and adjusts the singular values separately.
Given the retained weight , COEC constructs
(8) where rotates the output basis, rotates the retained input basis, and adjusts the singular values of individually.
The left rotation is obtained by an orthogonal Procrustes solution that aligns the output of the retained weight with the original layer output , where contains input activations collected from a small calibration set. The right rotation corrects the input basis changed by column removal and is optimized under an orthogonality constraint on a reduced Stiefel manifold.
For the spectral correction, the singular values are adjusted to reduce the reconstruction error between the compensated pruned layer and the original outputs Y. The regularization strength is selected separately for each layer by generalized cross-validation. COEC alternates the left rotation, right rotation, and singular-value rescaling until convergence. All updates use the collected calibration statistics and require no backpropagation through or retraining of the language model.
Results. At 30% structured sparsity, COEC reduces WikiText-2 perplexity for every evaluated model under Wanda-sp, FLAP, and RCPU selections and improves zero-shot accuracy in most settings. Under Wanda-sp selection on Qwen2.5-32B, perplexity decreases from 13.90 to 9.64. The analysis in COEC also shows that column pruning changes the measured input directions by about 22° on average in the evaluated setting. The alignment component reduces the remaining mismatch after compensation.
COEC modifies only the retained weights and does not introduce additional parameters or computation at inference time. The parameter, memory, and FLOP reductions obtained from structured pruning are preserved after compensation.
3.3 CORAM: GEOMETRY-COMPATIBLE AGGREGATION FOR MODEL MERGING
Model merging combines independently finetuned models without joint training or access to their training data. Methods such as Task Arithmetic Ilharco et al. (2023), TIES Yadav et al. (2023), and DARE Yu et al. (2023) operate directly on weight differences from a common base model. This treats the update as a vector in Euclidean weight space and does not separate changes to the singular bases from changes to the singular values. OrthoMerge Yang et al. (2026) introduces geometric merging through orthogonal transformations, but a single orthogonal transformation for an entire weight matrix cannot represent spectral changes.
Method. The GSA representation in Section 2 separates changes to the singular bases from changes to the singular values of a pretrained weight. When several models are finetuned from the same pretrained model, their changes can be expressed relative to the same pretrained weight. CORAM Sui et al. (2026) uses this representation to merge the changes in the singular bases and changes in the singular values separately.
For a pretrained weight matrix , CORAM partitions its rows into slices indexed by g. The SVD of the g-th slice is
For each finetuned model i, the corresponding slice is
where indexes the models being merged.
CORAM describes how differs from using three quantities. The rotation
captures the change in the left singular basis, where polar(A) = UV for the SVD A = UΣV . The relative spectral shift
captures the change in singular values. The right singular basis gives the corresponding input-side subspace of the finetuned slice.
These three quantities have different geometric constraints and are merged separately. The rotations are averaged on the special orthogonal group,
The relative spectral shifts are averaged directly,
while the right singular bases are averaged and projected back to the Stiefel manifold,
The merged slice is reconstructed using the pretrained left basis and singular values,
The reconstructed slices are stacked to obtain the merged weight matrix .
Averaging the factors from several finetuned models can partially cancel their individual changes, making the merged update smaller than a typical finetuned-model update . CORAM compensates for this reduction by scaling the merged update,
The scale is computed by comparing the typical magnitude of the individual finetuning updates with the magnitude of the merged update,
The factor controls how much of this lost update magnitude is restored. CORAM compares the largest and smallest relative update magnitudes among the finetuned models,
When the finetuned models change the pretrained model by similar amounts, a larger is used. When their update magnitudes differ greatly, a smaller is used. This determines directly from the model weights without testing multiple values of on downstream tasks.
Results. CORAM is evaluated on Llama-3.1-8B, Llama-3.2-3B, Qwen2.5-VL-7B, and Gemma-2-9B, covering both language and vision-language model merging. It improves over OrthoMerge Yang et al. (2026) by 0.25–1.35 points and performs as well as or better than Task Arithmetic Ilharco et al. (2023), TIES Yadav et al. (2023), and DARE Yu et al. (2023) in the reported experiments Sui et al. (2026). The value of chosen from the model updates is within 0.72 points of the best value found by evaluating multiple choices of .
3.4 CAGA: COHERENT ALIGNMENT FOR GROUPED ATTENTION
Multi-head attention (MHA) maintains separate key and value projections for each query head, while grouped-query attention (GQA) reduces KV-cache memory by allowing several query heads to share one key/value head Ainslie et al. (2023). Converting a pretrained MHA model to GQA requires two decisions. The first is which query heads should share a key/value head. The second is how the original key and value projections should be replaced by a single shared pair. Existing conversion methods use neighboring heads, activation similarity, or head alignment to determine the groups Ainslie et al. (2023); Chen et al. (2024); Jin et al. (2025), and the shared projections are commonly obtained by averaging or aligned averaging.
Directly averaging the key and value projections of several heads can lose information because different heads may represent related features in different coordinate systems. CAGA uses GSA to identify heads with compatible spectral and subspace structure and then constructs their shared key and value projections accordingly. For the keys, we align each head with a shared key projection using RoPE-compatible transformations and absorb the corresponding correction into the query projection. For the values, we extract a shared low-rank subspace from the grouped value projections and absorb the head-specific factors into the output projection. The converted layer retains the standard GQA structure and requires no additional operations during inference.
Method. Let denote the query, key, and value projections of head , and let denote the corresponding block of the output projection. Let denote the number of query heads in the original MHA layer and the number of key/value heads after GQA conversion. Each GQA group contains query heads that share one key projection and one value projection .
We first characterize candidate head groups using the GSA measurements in Sec. 2. For a pair of heads a and b, we compute their physical-channel support overlap, retained singular-value similarity, and retained right-subspace similarity. These quantities have different numerical ranges, so each pairwise quantity is converted to its percentile rank among all head pairs in the same layer. Let , , and denote the resulting normalized distances. CAGA uses
with by default. The heads are grouped to equal-size groups by minimizing the total distance among heads within groups. When m = 2, we solve this as a minimum-cost pairing problem. For larger groups, we use balanced clustering. The grouping determines which heads are considered jointly. CAGA then uses the geometry of the grouped key and value projections to construct their shared representation.
The key projections cannot be aligned with an arbitrary transformation because rotary positional encoding (RoPE) is applied before the attention product. CAGA restricts the alignment of each head to a block-diagonal matrix
Each block applies a scaling and rotation to one RoPE coordinate pair. This transformation is compatible with the RoPE rotation, which can be absorbed into the corresponding query projection.
CAGA runs the pretrained model on a small calibration set and collects the hidden states entering each attention layer. Let contain the hidden states of the collected tokens as its columns. For a candidate group , CAGA finds a shared key projection and per-head transformations by minimizing
The transformation does not introduce an additional operation during inference. We incorporate it into the query projection by setting
The head then uses together with the shared key projection .
For the values, CAGA constructs one shared value projection for all heads in a group. For the group of m heads , we stack their value projections as
We then compute the rank- truncated singular value decomposition . This is the optimal rank- approximation of the stacked value projections under the Frobenius norm.
The shared value projection is
The rows of associated with head form a matrix , giving
Rather than applying as an additional operation during inference, we incorporate it into the corresponding output projection,
Therefore, each group uses one shared value projection , while the head-specific information is retained through the modified output projections. Eq. 10 and Eq. 11 produce a standard GQA layer with one shared key/value head for each group and no additional inference-time transformations.
Results. CAGA is evaluated on MHA-to-GQA conversion of Llama-2-7B. We find that the choice of head grouping has a relatively small effect once the shared key and value heads are constructed properly. At G = 8, after 100M tokens of continued training, CAGA, neighboring-head grouping, and the cosine/value-based grouping of Jin et al. (2025) differ by only 0.23 WikiText-2 perplexity and 1.19 points on the seven-task zero-shot average. In contrast, changing how the shared key and value heads are constructed produces much larger differences.
At G = 16, which reduces the number of KV heads by , directly averaging the key and value projections gives a WikiText-2 perplexity of 926 and a seven-task zero-shot average of 32.6 before any continued training. With the aligned-key and shared-value construction, perplexity drops to 25.1 and the zero-shot average increases to 44.3. The same construction also gives usable models at G = 8 after continued training, while all tested methods fail at G = 4.
At G = 8, after continued training, CAGA, neighboring-head grouping, and the cosine/value-based grouping of Jin et al. (2025) give very similar results. Across the 100M- and 500M-token settings, the differences among the three grouping methods remain small, confirming that the construction of the shared key and value heads has a much larger effect than the choice of head grouping. Detailed comparisons and analysis are provided in Appendix A.
3.5 SAKV: SPECTRALLY ALIGNED KV-CACHE COMPRESSION
The key-value (KV) cache grows linearly with both context length and the number of Transformer layers, making cache memory a major bottleneck in long-context inference. Existing post-training methods reduce this cost through token removal or low-rank compression. Palu Chang et al. (2025) compresses the hidden dimension through low-rank projection, while ShadowKV Sun et al. (2025) stores a low-rank key cache and reconstructs selected KV states during decoding. These methods primarily exploit redundancy within individual layers.
Cross-layer methods additionally exploit cross-layer redundancy. Cross-Layer Attention Brandon et al. (2024) shares KV states across adjacent layers but changes the attention architecture and requires training. MiniCache Liu et al. (2024a) merges KV states from adjacent layers according to their similarity. More recently, xKV Chang et al. (2026) shows that the KV representations of several adjacent layers can share a low-rank representation. It groups a fixed number of consecutive layers and uses the same retained key and value ranks for every group. However, fixed grouping and rank allocation ignore variation in spectral structure across depth. Fixed groups may combine poorly aligned layers or separate layers that could share a basis, while fixed ranks may overallocate some groups and underallocate others. Keys and values can also require different ranks.
SAKV uses the spectral quantities introduced in Sec. 2 to make the grouping and rank decisions from the measured KV structure. Eq. 2 defines the smallest rank whose leading singular directions retain at least of the spectral energy of W. SAKV extends this criterion from a single matrix to the KV representations of several adjacent layers. It measures whether those layers can share a low-rank spectral space and how much rank is needed to reconstruct each layer.
Method. SAKV uses a small calibration set containing several long input sequences. The calibration set is used only to determine the layer groups and the retained key and value ranks. No model parameters are trained or modified.
Consider one sequence of length . Let
denote the key and value representations produced by layer for this sequence. Each row corresponds to one token position and each column to one cache dimension. The same statistics are collected over all sequences in when the layer groups and ranks are selected. We use , with , when the same operation applies to keys and values.
The models considered in this work use rotary positional embeddings (RoPE). RoPE applies a position-dependent rotation to the query and key vectors before their inner products are used to compute attention. The value vectors are not rotated. Following xKV Chang et al. (2026), SAKV factorizes the key representations before this rotation and factorizes the value representations directly.
Consider a contiguous group of layers . Their cache matrices are concatenated,
The L rows correspond to the same token positions, while the columns contain the cache dimensions from all layers in the group. We compute the SVD
For a rank-r representation, SAKV keeps the first singular directions. Let , , and denote the retained components. Define
The columns of correspond to the concatenated cache dimensions in . We divide them into one block for each layer,
The rank-r reconstruction of layer is
All layers in share , while each layer retains its own . Layers that share a compact spectral space can be reconstructed accurately with a smaller .
Reconstruction error and retained rank. For each candidate group and rank , SAKV evaluates the reconstruction over the calibration set . Let denote the key or value representation of layer for calibration sequence , and let denote its rank- reconstruction from Eq. 12. For values, the reconstruction error is
For keys, raw Frobenius energy can be dominated by a large token-independent component. We therefore measure the reconstruction error after RoPE and remove the component shared across token positions. For a sequence of length , let denote the RoPE rotation at token position , and define
The key reconstruction error is
Here removes the mean over token positions after RoPE, so the key error is normalized by the variation that remains visible to attention rather than by a large common component.
SAKV compares these errors with separate thresholds and . Given , the retained rank of group is the smallest rank for which every layer in the group satisfies the corresponding error limit,
The thresholds and are determined from the target compression ratio as described below.
Layer grouping. For a group L, using rank requires
stored values. The first term stores the shared matrix and the second stores the layer-specific matrices. Layers that share a compact spectral space satisfy Eq. 13 at a smaller rank. Less compatible layers require more rank and increase the cache cost. SAKV selects a contiguous partition by
where P partitions the Transformer layers into contiguous groups. Eq. 14 is solved by dynamic programming.
The thresholds and are determined separately for each target compression ratio. For trial threshold values, Eq. 13 Eq. 14 determine the required ranks and layer partition. Bisection adjusts and until the resulting configuration reaches the target compression. The calibration stage then returns one shared layer partition and one key and one value rank for each group. These groups and ranks are fixed after calibration.
During inference, SAKV uses the layer groups and ranks selected during calibration. For each group and cache type , the rank selected by Eq. 13 is used in the reconstruction of Eq. 12. SAKV changes only the layer grouping and rank allocation, while retaining the pretrained model and the xKV cache reconstruction procedure.
Results. We evaluate SAKV on Llama-3.1-8B-Instruct Grattafiori et al. (2024) and Qwen2.5-14B-Instruct-1M Yang et al. (2025) using RULER Hsieh et al. (2024) at context lengths of 32K, 64K, and 128K. We compare with xKV Chang et al. (2026) at the same compression ratios using the released xKV rank configurations. Detailed RULER results, paired statistical tests, LongBench Bai et al. (2024) results, and ablations are reported in Appendix B.
The main advantage of SAKV appears at high compression. At approximately compression, SAKV and xKV perform similarly. As the compression ratio increases, xKV degrades much faster, while SAKV retains substantially more accuracy. On Llama-3.1-8B at 64K, xKV scores 88.50 at compression but drops to 63.17 at and 35.10 at . SAKV retains 85.48 and 79.66 at the latter two compression ratios. In particular, SAKV at remains only 3.02 points below xKV at , whereas xKV loses 25.33 points when moving from to .
The same pattern appears on Qwen2.5-14B. At 64K, SAKV improves over xKV by 4.64 points at compression and 18.92 points at . Across all 20 matched RULER settings, SAKV is significantly better in 14 and tied in 6. The gains are concentrated at the higher compression ratios, where adaptive layer grouping and rank allocation matter most.
3.6 CAPS: CHANNEL-ALIGNED PRUNING SELECTION
Pruning aims to reduce computation while preserving model performance. Unstructured pruning can flexibly remove individual weights, but the resulting irregular sparsity is difficult to execute efficiently on standard hardware. Structured pruning instead removes predefined weight units, such as channels, neurons, attention heads, or weight blocks, which makes the computation reduction easier to realize. However, removing all weights associated with a larger unit together usually leads to greater performance loss, since some of these weights may still be important to the model output.
Existing structured-pruning methods mainly differ in how they estimate the importance of the structured units. Wanda-sp Sun et al. (2024b), FLAP An et al. (2024), RCPU Haruta et al. (2026), and LLM-Pruner Ma et al. (2023), for example, use weight, activation, or dependency information to decide which units should be removed. Better importance estimation can improve which unit is selected, but the weights within each selected unit are still removed together. Consider input-channel pruning. An input channel may be important to some output neurons but contribute little to others. Removing the entire channel also removes the useful connections.
CAPS uses a finer structured pruning unit. It first divides the output neurons into groups according to their GSA structure. For each group, CAPS keeps only the input channels that the group relies on and removes the remaining connections for that group. The same input channel can therefore be kept for some groups and pruned for others. Because all neurons in a group use the same retained input channels, the corresponding computation can still be carried out as a dense operation on that smaller input set. CAPS therefore removes unnecessary computation more selectively while preserving a structure that can be efficiently executed.
Method. Consider the weight matrix of a linear layer and its singular value decomposition , where each row of corresponds to an output neuron and each column corresponds to an input channel. CAPS first determines how many singular directions are needed to describe the main spectral structure of this particular layer. We compute the effective rank
as defined in Eq. 2. We then form
The first singular directions are used only to organize the output neurons into groups. Row r of P gives the coordinates of output neuron r along these directions.
For each of these directions, CAPS selects the output neurons with the largest absolute coordinates as anchor candidates. Candidates with highly similar weight vectors are removed as redundant, leaving a set of distinct anchors that serve as the group centers. Each remaining output neuron is then assigned to the anchor with which its weight vector has the largest absolute cosine similarity. This produces groups , each centered on one of the distinct anchors.
CAPS next determines which input channels each group should keep. We run the pretrained model on a small calibration set and let denote the norm of the activation of an input channel . For group , let denote the vector of weights connecting input channel to all output neurons in . CAPS calculates the score of input channel in the group as
The first term measures the total weight strength from input channel c to the output neurons in . The second term measures how strongly that channel is used on the calibration data, following the weight-times-activation criterion used by Wanda Sun et al. (2024b).
For a score-retention threshold , CAPS ranks channels in by and keeps the smallest set such that the sum of the selected channel scores is at least a fraction of the total channel score:
The channel selection is performed separately for every , so different output-neuron groups in the same layer can keep different input channels.
If output neuron belongs to group , CAPS keeps its connections from the input channels in and removes its connections from the other input channels. All output neurons in the same group use the same selected input channels, while different groups can use different channel sets. For group , the remaining computation involves only weight parameters .
For the linear layer, the original matrix multiplication requires computation proportional to . After CAPS pruning, the computation is proportional to
Each group is evaluated with a smaller dense matrix multiplication, reducing the group-wise MAC count. The realizable hardware reduction depends on how groups with different input-channel sets are tiled. Appendix C.3 analyzes this effect. At the same time, an input channel does not need to be removed from the entire layer, giving CAPS finer pruning flexibility than whole-channel pruning.
For a convolutional layer with weight tensor , CAPS first reshapes into , so that each row contains all kernel weights of one output channel. The same SVD-based anchor grouping is then applied to the rows of reshaped weights to obtain groups .
The input-channel selection is performed based on original weights . For group and input channel , let denote all kernel weights connecting input channel to the output channels in . CAPS scores input channel for this group as
where is the norm of the activation of input channel on the calibration data. The Frobenius norm measures the total weight strength between input channel and all output channels in the group, including all spatial kernel coefficients.
As in the linear case, CAPS ranks the input channels by and selects the smallest set . For removed channel , all kernel weights are removed for every output channel . The computation for group is reduced from being proportional to to . The resulting computation remains a dense convolution over a smaller set of input channels and can be executed efficiently using standard dense kernels.
Results. We evaluate CAPS on Llama-2-7B Touvron et al. (2023), Llama-3-8B Grattafori et al. (2024), Mistral-7B Mistral AI (2023), and Qwen2.5-7B Team (2025) at target MAC reductions of 10%, 20%, and 30%. We prune the seven linear projections in each transformer block and compare with magnitude pruning, Wanda-sp Sun et al. (2024b), FLAP An et al. (2024), and RCPU Haruta et al. (2026). All methods use the same calibration data and receive comparable recovery training after pruning. We evaluate WikiText-2 perplexity, average accuracy over seven zero-shot tasks (ZS-7), and 5-shot MMLU.
CAPS obtains the lowest WikiText-2 perplexity at all 12 model–budget settings, the highest ZS-7 accuracy at 11 of 12 settings, and the highest MMLU accuracy at 10 of 12 settings. The differences are largest on the three GQA models. At 20–30% MAC reduction, CAPS improves over the strongest competing method by 0.50–1.01 perplexity, 2.94–7.29 ZS-7 points, and 7.59–14.60 MMLU points. The gains on Llama-2-7B are smaller, but CAPS still gives lower perplexity at all three pruning levels. Full results are reported in Appendix C.
4 RELATED WORK
This section reviews prior work most closely related to the CHASE applications, covering PEFT, structured pruning and compensation, model merging, attention reconfiguration, and KV-cache compression.
Parameter-efficient finetuning. LoRA represents task adaptation as an additive low-rank update to a frozen pretrained weight Hu et al. (2022). AdaLoRA allocates the low-rank budget across weight matrices during training rather than using the same rank everywhere Zhang et al. (2023). DoRA separates the magnitude and direction of a weight before applying low-rank adaptation Liu et al. (2024b), while PiSSA initializes the low-rank factors from the principal singular components of the pretrained weight Meng et al. (2024). OFT updates pretrained weights through orthogonal transformations Qiu et al. (2023), and BOFT reduces the parameter cost of orthogonal finetuning through butterfly factorization Liu et al. (2024c). CHASE CORA Wang et al. (2026) differs from these methods by coupling the rotations of the left and right singular bases and allowing the singular values to change separately. Its parameterization follows the coherent basis motion analyzed by GSA-II rather than treating the update as an unrestricted low-rank matrix or a one-sided orthogonal transformation.
Structured pruning and post-pruning compensation. Unstructured pruning removes individual weights and provides fine-grained control over which parameters are discarded. SparseGPT uses approximate second-order reconstruction to select individual weights for removal Frantar and Alistarh (2023), while Wanda combines weight magnitude with activation statistics to score individual weights Sun et al. (2024b). Although these methods can preserve performance well at high sparsity, the resulting irregular sparsity is difficult to translate into real acceleration on standard hardware.
Structured pruning instead removes predefined groups of weights, such as channels, neurons, attention heads, or weight blocks. LLM-Pruner uses gradient information to identify coupled structures for removal Ma et al. (2023), ZipLM selects structured components according to their effect on loss and runtime cost Kurtić et al. (2023), and Sheared LLaMA learns a smaller architecture by removing layers, heads, and hidden dimensions Xia et al. (2024). FLAP performs training-free channel pruning using activation statistics An et al. (2024). Removing larger structures makes the computation reduction easier to realize in hardware, but all weights within the selected unit are removed together, including connections that may still be important to part of output neurons. CHASE CAPS uses the leading singular directions selected by the effective-rank criterion to group output neurons. It then selects the retained input channels separately for each group using weight and activation information. An input channel may be kept for one group and removed for another. This gives CAPS a finer pruning granularity while keeping the computation within each group dense, so that the reduction in computation can be realized more efficiently. The actual MAC reduction depends on how these groups are mapped to row tiles in the implementation.
Post-pruning compensation addresses the distortion introduced after the pruning structure has been fixed. FLAP compensates the mean output error caused by channel removal with a bias term An et al. (2024), while RCPU applies an orthogonal transformation and scaling to the retained weights Haruta et al. (2026). These corrections recover only limited aspects of the pruned representation. Structured pruning can change both the singular values of the retained matrix and the orientations of its input and output subspaces, causing a mismatch with the original layer that cannot be corrected by an output bias or a single transformation. CHASE COEC Yu et al. (2026) addresses this problem by jointly correcting the left and right singular bases of the retained matrix and adjusting its singular values. The compensation preserves the reduced model dimensions and requires no retraining, while recovering more of the geometry lost during pruning.
Model merging. Model merging combines several models fine-tuned from the same pretrained base model without jointly retraining them. Model Soups averages independently fine-tuned weights Wortsman et al. (2022), while Fisher merging weights model parameters using estimates of their Fisher information Matena and Raffel (2022). Task Arithmetic represents each fine-tuned model by its difference from the pretrained model and combines these task vectors in weight space Ilharco et al. (2023). TIES removes small updates and resolves sign conflicts before merging Yadav et al. (2023), and DARE randomly removes and rescales entries of the task vectors before applying a merging rule Yu et al. (2023). These methods mainly manipulate parameters or parameter updates in the original weight coordinates. However, fine-tuning can change not only individual weights but also the singular values and singular subspaces of a layer. Directly combining the resulting updates can mix changes that correspond to different geometric directions and increase interference between models. OrthoMerge reduces such interference through an SVD-based orthogonalization of model updates Yang et al. (2026). CHASE CORAM Sui et al. (2026) takes a different approach. It expresses each fine-tuned weight relative to the corresponding pretrained weight through rotational, spectral, and right-subspace changes, and merges these components separately. This allows changes in singular values and subspace orientations to be combined according to their own geometry rather than treating the entire fine-tuning update as a single weight-space displacement.
MHA-to-GQA conversion. Multi-query attention (MQA) reduces decoding memory by sharing one set of key and value projections across all query heads Shazeer (2019). Grouped-query attention (GQA) provides an intermediate design in which several query heads share each key/value head Ainslie et al. (2023). Converting a pretrained multi-head attention (MHA) model to GQA requires both deciding which query heads should share a KV head and constructing the shared key and value projections. The original GQA conversion groups existing heads and initializes each shared projection by directly averaging the corresponding MHA projections before continued training.
Later methods improve the conversion by changing how heads are grouped or aligned before merging. AsymGQA forms nonuniform groups using activation similarity Chen et al. (2024). The work of Jin et al. (2025) aligns attention heads through Procrustes transformations while preserving the original computation, and then removes redundant KV heads through -regularized pruning. These methods improve the compatibility of the heads being combined, but the shared key and value projections are still formed by combining multiple pretrained heads. Direct averaging can discard head-specific directions, while alignment before averaging only reduces the coordinate mismatch and does not recover information lost when several value projections are replaced by one.
CAGA addresses the grouping problem using the GSA structure of the pretrained heads. For each pair of heads, it measures physical-channel support overlap, retained singular-value similarity, and retained right-subspace similarity. These quantities are combined to form the head-pair distance used to construct equal-size GQA groups.
CAGA separately constructs the shared key and value projections within each group. The key projections are aligned to a shared key projection using RoPE-compatible transformations, with the head-specific transformations absorbed into the corresponding query projections. For the values, CAGA stacks the grouped value projections and extracts a shared rank- subspace. The head-specific factors are absorbed into the output projections. The resulting layer has the standard GQA form with one shared key/value head per group and no additional inference-time transformations.
KV-cache compression. The key-value (KV) cache is a major source of memory consumption during autoregressive decoding, particularly for long contexts and deep models. Existing methods reduce this cost through low-rank compression, token selection, or sharing across layers. Palu compresses cached keys and values through low-rank representations Chang et al. (2025), while ShadowKV exploits low-dimensional structure in the cache to reduce the amount of stored KV information Sun et al. (2025). MiniCache reduces cache redundancy across nearby layers Liu et al. (2024a), and cross-layer attention shares KV representations across layers by changing the attention architecture Brandon et al. (2024). More recently, xKV constructs shared low-rank representations for multiple layers through aligned singular-vector extraction Chang et al. (2026). These methods show that substantial redundancy exists not only within individual KV caches but also across layers. CHASE SAKV extends the GSA effective-rank criterion to grouped KV representations. It evaluates the reconstruction error of candidate contiguous layer groups as the retained rank varies, selects separate key and value ranks under their respective tolerances, and chooses the contiguous partition accordingly. The grouping and rank allocation therefore follow the measured spectral structure of the cached representations rather than a fixed sharing pattern and fixed ranks.
5 CONCLUSION
GSA-I and GSA-II identify spectral concentration, physical-channel alignment, support structure, and singular-basis changes in trained networks. In this paper, we propose CHASE to use these structures in model modification, reconfiguration, and compression.
We present six CHASE applications. CORA uses coherent singular-basis changes for PEFT. COEC uses two-sided geometric compensation and spectral adjustment after structured pruning. CORAM separates rotational, spectral, and subspace changes when merging finetuned models. CAGA uses GSA to identify multi-head attention heads that can share a KV representation and constructs the shared key and value heads through geometric alignment and low-rank subspace extraction. SAKV uses GSA to determine which adjacent layers can share a low-rank KV-cache representation and the retained rank for each layer group. CAPS uses GSA spectral structure to group output neurons and selects retained input channels separately for each group.
These applications demonstrate the structures identified by GSA can be used directly to design methods for a range of model operations. Results from CORA, COEC, and CORAM have already shown the effectiveness of GSA for PEFT, pruning compensation, and model merging. In the new applications, CAGA shows that geometric shared-head construction substantially improves MHA-to-GQA conversion, while SAKV and CAPS improve over their respective baselines for KV-cache compression and structured pruning.
REFERENCES
J. Ainslie, J. Lee-Thorp, M. de Jong, Y. Zemlyanskiy, F. Lebrón, and S. Sanghai. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. In EMNLP, 2023.
Y. An, X. Zhao, T. Yu, M. Tang, and J. Wang. Fluctuation-based Adaptive Structured Pruning for Large Language Models. In AAAI, 2024.
A. Arditi, O. Obeso, A. Syed, D. Paleka, N. Panickssery, W. Gurnee, and N. Nanda. Refusal in Language Models Is Mediated by a Single Direction. In NeurIPS, 2024.
Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. Longbench: A bilingual, multitask benchmark for long context understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, pages 3119–3137. Association for Computational Linguistics, 2024.
William Brandon, Mayank Mishra, Aniruddha Nrusimha, Rameswar Panda, and Jonathan Ragan-Kelley. Reducing transformer key-value cache size with cross-layer attention. In Advances in Neural Information Processing Systems, volume 37, 2024.
Chi-Chih Chang, Wei-Cheng Lin, Chien-Yu Lin, Chong-Yan Chen, Yu-Fang Hu, Pei-Shuo Wang, Ning-Chi Huang, Luis Ceze, Mohamed S. Abdelfattah, and Kai-Chiang Wu. Palu: Kv-cache compression with low-rank projection. In International Conference on Learning Representations, 2025.
Chi-Chih Chang, Wei-Cheng Lin, Chien-Yu Lin, Hung-Yueh Chiang, Yash Akhauri, Xilai Dai, Huiqiang Jiang, Yucheng Li, Luis Ceze, Kai-Chiang Wu, and Mohamed S. Abdelfattah. xkv: Cross-layer kv-cache compression via aligned singular vector extraction. In International Conference on Machine Learning, 2026.
Yuang Chen, Cheng Zhang, Xitong Gao, Robert D. Mullins, George A. Constantinides, and Yiren Zhao. Optimised grouped-query attention mechanism for transformers. arXiv preprint arXiv:2406.14963, 2024.
T. Dettmers, M. Lewis, Y. Belkada, and L. Zettlemoyer. LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale. In NeurIPS, 2022.
Elias Frantar and Dan Alistarh. Sparsegpt: Massive language models can be accurately pruned in one-shot. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 10323–10337. PMLR, 2023.
A. Grattafori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, et al. The Llama 3 Herd of Models, 2024. arXiv:2407.21783.
S. Haruta, K. Matsumoto, Z. Li, Y. Wang, and M. Kurokawa. RCPU: Rotation-Constrained Error Compensation for Structured Pruning of Large Language Models, 2026. arXiv:2510.07782.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2021.
Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. Ruler: What's the real context size of your long-context language models? arXiv preprint arXiv:2404.06654, 2024.
E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen. LoRA: Low-Rank Adaptation of Large Language Models. In ICLR, 2022.
G. Ilharco, M. T. Ribeiro, M. Wortsman, L. Schmidt, H. Hajishirzi, and A. Farhadi. Editing Models with Task Arithmetic. In ICLR, 2023.
Qingyun Jin, Xiaohui Song, Feng Zhou, and Zengchang Qin. Align attention heads before merging them: An effective way for converting MHA to GQA. In Findings of the Association for Computational Linguistics: EMNLP 2025. Association for Computational Linguistics, 2025. doi:10.18653/v1/2025.findings-emnlp.467.
Eldar Kurtić, Elias Frantar, and Dan Alistarh. Ziplm: Inference-aware structured pruning of language models. In Advances in Neural Information Processing Systems, volume 36, 2023.
J. Lin, J. Tang, H. Tang, S. Yang, W.-M. Chen, W.-C. Wang, G. Xiao, X. Dang, C. Gan, and S. Han. AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration. In MLSys, 2024.
Akide Liu, Jing Liu, Zizheng Pan, Yefei He, Gholamreza Haffari, and Bohan Zhuang. Minicache: Kv cache compression in depth dimension for large language models. In Advances in Neural Information Processing Systems, volume 37, 2024a.
Shih-Yang Liu, Chien-Yi Wang, Hongxu Yin, Pavlo Molchanov, Yu-Chiang Frank Wang, Kwang-Ting Cheng, and Min-Hung Chen. Dora: Weight-decomposed low-rank adaptation. In Proceedings of the 41st International Conference on Machine Learning, volume 235, pages 32100–32121. PMLR, 2024b.
Weiyang Liu, Zeju Qiu, Yao Feng, Yuliang Xiu, Yuxuan Xue, Longhui Yu, Haiwen Feng, Zhen Liu, Juyeon Heo, Songyou Peng, Yandong Wen, Michael J. Black, Adrian Weller, and Bernhard Schölkopf. Parameter-efficient orthogonal finetuning via butterfly factorization. In International Conference on Learning Representations, 2024c.
Z. Liu, W. Wang, J. Wang, P. Wang, X. Sui, C. Ruan, N. Ling, and W. Jiang. Geometric and Spectral Alignment for Deep Neural Network I, 2026a. arXiv:2605.02108.
Z. Liu, W. Wang, J. Wang, P. Wang, X. Sui, C. Ruan, N. Ling, and W. Jiang. Geometric and Spectral Alignment for Deep Neural Network II, 2026b. arXiv:2605.02111.
X. Lu, Q. Liu, Y. Xu, A. Zhou, S. Huang, B. Zhang, J. Yan, and H. Li. Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Models. In ACL, 2024.
Xinyin Ma, Gongfan Fang, and Xinchao Wang. Llm-pruner: On the structural pruning of large language models. In Advances in Neural Information Processing Systems, volume 36, 2023.
Michael S. Matena and Colin A. Raffel. Merging models with fisher-weighted averaging. In Advances in Neural Information Processing Systems, volume 35, 2022.
X. Men, M. Xu, Q. Zhang, B. Wang, H. Lin, Y. Lu, X. Han, and W. Chen. ShortGPT: Layers in Large Language Models are More Redundant Than You Expect, 2024. arXiv:2403.03853.
Fanxu Meng, Zhaohui Wang, and Muhan Zhang. Pissa: Principal singular values and singular vectors adaptation of large language models. In Advances in Neural Information Processing Systems, 2024.
K. Meng, D. Bau, A. Andonian, and Y. Belinkov. Locating and Editing Factual Associations in GPT. In NeurIPS, 2022.
K. Meng, A. S. Sharma, A. Andonian, Y. Belinkov, and D. Bau. Mass-Editing Memory in a Transformer. In ICLR, 2023.
S. Merity, C. Xiong, J. Bradbury, and R. Socher. Pointer Sentinel Mixture Models, 2016. arXiv:1609.07843.
Mistral AI. Mistral 7B, 2023. URL https://arxiv.org/abs/2310.06825.
Zeju Qiu, Weiyang Liu, Haiwen Feng, Yuxuan Xue, Yao Feng, Zhen Liu, Dan Zhang, Adrian Weller, and Bernhard Schölkopf. Controlling text-to-image diffusion by orthogonal finetuning. In Advances in Neural Information Processing Systems, 2023.
Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, and Timothy P. Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations, 2020.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020.
Noam Shazeer. Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150, 2019.
Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R. Steeves, Joel Hestness, and Nolan Dey. Slimpajama: A 627b token cleaned and deduplicated version of redpajama. Cerebras, 2023.
X. Sui, Z. Liu, W. Wang, and Wei Jiang. CORAM: Coherent Orthogonal Rotation for Model Merging, 2026. Under review.
Hanshi Sun, Li-Wen Chang, Wenlei Bao, Size Zheng, Ningxin Zheng, Xin Liu, Harry Dong, Yuejie Chi, and Beidi Chen. Shadowkv: Kv cache in shadows for high-throughput long-context llm inference. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pages 57355–57373. PMLR, 2025.
M. Sun, X. Chen, J. Z. Kolter, and Z. Liu. Massive Activations in Large Language Models. In COLM, 2024a.
M. Sun, Z. Liu, A. Bair, and J. Z. Kolter. A Simple and Effective Pruning Approach for Large Language Models. In ICLR, 2024b.
Qwen Team. Qwen2.5 Technical Report, 2025. arXiv:2412.15115.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
P. Wang, Z. Liu, W. Wang, and W. Jiang. CORA: Per-Slice Coherent Orthogonal Rotation for SVD-based Low-Rank Adaptation, 2026. arXiv:2607.02576.
Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S. Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, and Ludwig Schmidt. Model soups: Averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In Proceedings of the 39th International Conference on Machine Learning, volume 162, pages 23965–23998. PMLR, 2022.
M. Xia, T. Gao, Z. Zeng, and D. Chen. Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning. In ICLR, 2024.
G. Xiao, J. Lin, M. Seznec, H. Wu, J. Demouth, and S. Han. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models. In ICML, 2023.
P. Yadav, D. Tam, L. Choshen, C. Raffel, and M. Bansal. TIES-Merging: Resolving Interference When Merging Models. In NeurIPS, 2023.
An Yang, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoyan Huang, Jiandong Jiang, Jianhong Tu, Jianwei Zhang, Jingren Zhou, Junyang Lin, Kai Dang, Kexin Yang, Le Yu, Mei Li, Minmin Sun, Qin Zhu, Rui Men, Tao He, Weijia Xu, Wenbiao Yin, Wenyuan Yu, Xiafei Qiu, Xingzhang Ren, Xinlong Yang, Yong Li, Zhiying Xu, and Zipeng Zhang. Qwen2.5-1m technical report. arXiv preprint arXiv:2501.15383, 2025.
S. Yang, K. Shi, and W. Liu. Orthogonal Model Merging. In ICML, 2026.
Le Yu, Bowen Yu, Haiyang Yu, Fei Huang, and Yongbin Li. Language models are super mario: Absorbing abilities from homologous models as a free lunch. arXiv preprint arXiv:2311.03099, 2023.
P. Yu, N. Ling, W. Wang, and Wei Jiang. COEC: Calibrated Orthogonal-Equivalence Compensation for Structured Pruning of Large Language Models, 2026. Under review.
Qingru Zhang, Minshuo Chen, Alexander Bukharin, Pengcheng He, Yu Cheng, Weizhu Chen, and Tuo Zhao. Adaptive budget allocation for parameter-efficient fine-tuning. In International Conference on Learning Representations, 2023.
A DETAILED EXPERIMENTS FOR CAGA
Model and conversion settings. We use Llama-2-7B Touvron et al. (2023), which has query heads in each attention layer. We evaluate conversion to and key/value heads, corresponding to and reductions in the number of KV heads.
Table 2: Llama-2-7B at before continued training. Results use the CAGA head grouping.
| Shared-head construction | WikiText-2 PPL | ZS-7 |
|---|---|---|
| Direct averaging | 926 | 32.6 |
| Procrustes alignment | 738 | 35.3 |
| CAGA | 25.1 | 44.3 |
Table 3: Llama-2-7B at after continued training. All models use the same CAGA shared-head construction.
| Grouping | 100M tokens | 500M tokens | ||||
|---|---|---|---|---|---|---|
| WT2 | C4 | ZS-7 | WT2 | C4 | ZS-7 | |
| Neighboring heads | 7.78 | 9.57 | 50.39 | 6.75 | 8.66 | 53.52 |
| Jin et al. | 7.55 | 9.35 | 51.03 | 6.64 | 8.55 | 53.49 |
| CAGA | 7.67 | 9.47 | 51.58 | 6.68 | 8.60 | 54.36 |
Calibration data. We run the pretrained model on 128 C4 training sequences of 2,048 tokens and collect the hidden states entering each attention layer. These samples are used to compute the head statistics, determine the head groups, and estimate the key-alignment transformations. The evaluation sets are not used during conversion.
Grouping methods. We compare three head-grouping methods. Neighboring-head grouping places adjacent query heads in the same group, following the standard GQA conversion Ainslie et al. (2023). The group heads of Jin et al. (2025) use their cosine/value-based criterion.
Shared-head construction. We compare direct averaging, the Procrustes-based conversion of Jin et al. (2025), and the CAGA construction described in Sec. 3.4. CAGA aligns the key projections using the RoPE-compatible transformations and constructs the shared value projection from the rank- approximation of the grouped value matrices.
A.1 EFFECT OF SHARED-HEAD CONSTRUCTION
We first compare different ways of constructing the shared key and value heads before any continued training. Table 2 reports the results at .
Directly averaging independently trained key and value projections loses a large amount of information. Aligning the heads before averaging improves the result, while the CAGA construction gives a much larger improvement. Without any continued training, CAGA reduces WikiText-2 perplexity from 926 to 25.1 and increases the seven-task zero-shot average from 32.6 to 44.3.
A.2 GROUPING COMPARISON AND CONTINUED TRAINING
We compare CAGA with neighboring-head grouping and the cosine/value-based grouping of Jin et al. (2025). All three methods use the same CAGA shared-head construction, so the comparison only changes how the query heads are grouped.
For the model, we perform continued training on the same SlimPajama data Soboleva et al. (2023) in the same order. Training uses full-parameter updates with AdamW, a learning rate of , weight decay of 0.1, warmup, and cosine learning-rate decay. Each update contains 128 sequences of 2,048 tokens. Knowledge distillation from the original Llama-2-7B model is used during training.
We evaluate perplexity on WikiText-2 Merity et al. (2016) and C4 Raffel et al. (2020). The seven-task zero-shot average includes BoolQ, RTE, HellaSwag, WinoGrande, ARC-Easy, ARC-Challenge, and OpenBookQA. Table 3 reports the results after 100M and 500M training tokens.
The three grouping methods perform similarly at both training budgets. After 500M tokens, WikiText-2 perplexity ranges from 6.64 to 6.75 and the zero-shot average ranges from 53.49 to 54.36. The choice of grouping has a much smaller effect than the construction of the shared key and value heads.
B ADDITIONAL EVALUATION OF SAKV
B.1 EXPERIMENTAL SETUP
Models and evaluation. We evaluate SAKV on Llama-3.1-8B-Instruct Grattafori et al. (2024) and Qwen2.5-14B-Instruct-1M Yang et al. (2025). Long-context performance is measured on RULER Hsieh et al. (2024) at context lengths of 32K, 64K, and 128K. For each setting, xKV Chang et al. (2026) and SAKV are evaluated on the same prompts. We consider approximately 4×, 8×, 12×, and 16× KV-cache compression when supported by the corresponding model and context length. SAKV and xKV are compared at the same compression ratio.
We additionally evaluate both methods on LongBench Bai et al. (2024) at and compression to examine whether the behavior observed on RULER transfers to a broader set of long-context tasks.
Calibration. SAKV uses four long sequences from PG-19 Rae et al. (2020) for calibration. For each candidate contiguous layer group, we compute the reconstruction error over candidate ranks and select the layer partition and key/value ranks using Eqs. 13–14. We use . The key and value thresholds and are determined separately for each target compression ratio. The resulting groups and ranks are fixed for evaluation. No model parameters are trained or modified during calibration.
B.2 COMPARISON WITH xKV
Table 4 reports the RULER results. At compression, both methods remain close to the uncompressed model and differ little from each other. The advantage of SAKV becomes more obvious as the compression ratio increases.
On Llama-3.1-8B at 64K, xKV scores 88.50 at 8× compression but drops to 63.17 at 12× and 35.10 at 16×. SAKV retains 85.48 and 79.66 at the 12× and 16× compression ratios. In particular, SAKV at 12× remains only 3.02 points below xKV at 8×, whereas xKV itself loses 25.33 points when moving from 8× to 12×. Similar behavior appears at 32K and 128K.
Qwen2.5-14B shows a similar trend. At 64K, the difference between SAKV and xKV increases from 2.77 points at 8× to 4.64 points at 12× and 18.92 points at 16×. SAKV provides its largest advantage at high compression ratios where a fixed layer grouping and fixed rank allocation begin to lose substantial long-context accuracy.
Because xKV and SAKV are evaluated on the same 960 RULER prompts, we compute the per-prompt SAKV–xKV score difference and form 95% confidence intervals using 10,000 paired bootstrap resamples. SAKV is significantly better in 14 of the 20 matched settings, statistically indistinguishable in 6, and worse in none. The indistinguishable cases occur primarily at 4× compression, where both methods remain close to the uncompressed model.
B.3 LONGBENCH PERFORMANCE
Table 5 reports the LongBench results. At the and compression ratios, both xKV and SAKV remain close to the uncompressed model. Unlike RULER at higher compression, these settings do not produce a clear separation between the two methods.
B.4 ADDITIONAL ANALYSIS OF SAKV
Layer grouping versus rank allocation. We first separate the effect of layer grouping from that of adaptive rank selection. At 64K and 8× compression, using the SAKV groups with the xKV ranks gives 89.81 on Llama-3.1-8B and 90.18 on Qwen2.5-14B, compared with 88.50 and 87.49 for xKV. At this compression ratio, much of the improvement already comes from replacing the fixed
Table 4: RULER average under matched KV-cache compression. "Full" means full KV-cache.
| Model | Context | Full | Compression | xKV | SAKV | Gain |
|---|---|---|---|---|---|---|
| Llama-3.1-8B | 32K | 93.63 | 4× | 93.00 | 92.58 | -0.42 |
| 8× | 92.24 | 92.48 | +0.24 | |||
| 12× | 78.57 | 89.83 | +11.26 | |||
| 16× | 46.57 | 79.89 | +33.32 | |||
| 64K | 92.10 | 4× | 91.16 | 91.22 | +0.06 | |
| 8× | 88.50 | 89.71 | +1.21 | |||
| 12× | 63.17 | 85.48 | +22.31 | |||
| 16× | 35.10 | 79.66 | +44.56 | |||
| 128K | 84.82 | 4× | 81.43 | 82.11 | +0.68 | |
| 8× | 72.69 | 76.87 | +4.18 | |||
| 12× | 43.53 | 68.62 | +25.09 | |||
| 16× | 21.87 | 56.61 | +34.74 | |||
| Qwen2.5-14B | 32K | 94.38 | 4× | 94.29 | 94.31 | +0.02 |
| 8× | 91.49 | 92.85 | +1.36 | |||
| 64K | 93.49 | 4× | 91.73 | 92.41 | +0.68 | |
| 8× | 87.49 | 90.26 | +2.77 | |||
| 12× | 78.35 | 82.99 | +4.64 | |||
| 16× | 54.97 | 73.89 | +18.92 | |||
| 128K | 90.42 | 4× | 87.34 | 89.45 | +2.11 | |
| 8× | 80.22 | 84.52 | +4.30 |
Table 5: Average LongBench score.
| Model | Full | Compression | xKV | SAKV |
|---|---|---|---|---|
| Llama-3.1-8B | 41.46 | 4× | 40.84 | 41.26 |
| 8× | 40.06 | 40.20 | ||
| Qwen2.5-14B | 46.66 | 4× | 46.41 | 46.39 |
| 8× | 46.59 | 45.96 |
four-layer grouping. At higher compression, rank allocation becomes increasingly important because the available rank must be distributed more selectively across depth.
Separate key and value tolerances. Keys and values exhibit different spectral decay, making one reconstruction threshold unsuitable for both cache types. On Llama-3.1-8B at 64K and 8× compression, using one shared tolerance gives a RULER score of 10.31, compared with 89.62 when and are selected separately.
RoPE-aware key criterion. The standard relative Frobenius error is sufficient when the spectral energy of a key representation reflects the variation relevant to attention. This assumption does not hold for the early layers of Qwen2.5-14B, where a large token-independent component dominates the key energy. Under the Frobenius criterion, these layers can receive extremely small ranks even though the remaining variation becomes important after RoPE. Table 6 compares the two criteria on Qwen2.5-14B at 64K. The difference is small at 8×, but becomes large at 12× and 16×.
The RoPE-aware criterion is not uniformly better than the Frobenius criterion. For example, on Llama-3.1-8B at 32K and 16× compression, the Frobenius criterion obtains 89.36 compared with 79.89 for the RoPE-aware criterion. We use the latter because a single criterion must remain reliable across both model families, particularly in the settings where offset-dominated key representations cause the Frobenius criterion to fail.
Maximum group size. The maximum allowed group size controls how broadly SAKV may share one spectral basis across neighboring layers. On Llama-3.1-8B at 64K and 8× compression,
Table 6: Effect of the key reconstruction criterion on Qwen2.5-14B at 64K.
| Compression | Frobenius | RoPE-aware |
|---|---|---|
| 8× | 90.94 | 90.26 |
| 12× | 59.58 | 82.99 |
| 16× | 55.74 | 73.89 |
increasing from 2 to 4 and 8 improves the RULER score from 84.37 to 87.56 and 89.62, respectively. We use throughout the main experiments.
Shared and separate key/value partitions. SAKV uses one layer partition for keys and values while allowing their ranks to differ. Allowing the two cache types to choose separate partitions gives little additional benefit. At 64K and 8× compression, the shared and separate variants obtain 89.71 and 89.75 on Llama-3.1-8B, and 90.26 and 90.30 on Qwen2.5-14B.
Calibration length. The grouping and rank allocation are not sensitive to matching the calibration length exactly to the evaluation length. For Llama-3.1-8B evaluated at 64K and 8× compression, calibrating at 32K, 64K, and 128K gives RULER scores of 89.57, 89.62, and 89.00, respectively.
C ADDITIONAL EXPERIMENTS FOR CAPS
Models. We evaluate CAPS on Llama-2-7B Touvron et al. (2023), Llama-3-8B Grattafori et al. (2024), Mistral-7B Mistral AI (2023), and Qwen2.5-7B Team (2025). For every transformer block, pruning is applied to the seven linear projections , , , , , , and . Embeddings, normalization layers, and the language-model head are left unchanged.
CAPS configuration. For each target layer, CAPS computes the anchor groups from the dense pretrained weight matrix. We set , so the singular directions containing of the spectral energy are used for grouping. For each direction, the four output neurons with the largest absolute coordinates are selected as anchor candidates. Candidate anchors whose weight vectors have an absolute cosine similarity above 0.85 are treated as redundant. Each remaining output neuron is assigned to the non-redundant anchor with the largest absolute cosine similarity.
For each target pruning level, we search for the value of (defined in Sec.3.6) that produces the desired MAC reduction. Since decreasing keeps fewer input channels, we use bisection to adjust until the MAC reduction computed from the selected channel sets is within 0.2 percentage points of the target. The anchor groups are computed once from the dense model. After pruning to the target MAC reduction, the model receives one recovery-training phase while the removed connections remain fixed at zero.
Calibration. All methods use the same WikiText-2 training data Merity et al. (2016) for calibration. We sample 128 windows of 4096 tokens with seed 0, giving 524,288 calibration tokens. For CAPS, the activation term is computed as
where is the activation of input channel at token .
Recovery training. We use the same SlimPajama Soboleva et al. (2023) token stream for CAPS and other methods. The recovery budget is proportional to the target MAC reduction. The 10%, 20%, and 30% settings use 34.1M, 66.6M, and 99.9M tokens, respectively. Training uses AdamW with learning rate , , weight decay 0.1, 5% warmup, and cosine decay to 10% of the peak learning rate. We use sequences of length 2048 and an effective batch size of 128 sequences per optimization step. The Llama-2-7B baselines at the 30% setting use 100.9M recovery tokens, approximately 1% more than CAPS. All other comparisons use the same recovery budget at a given target.
Table 7: CAPS results after recovery training. Each method entry reports PPL / ZS-7 / MMLU. The MAC column gives the measured MAC reduction for CAPS and for the corresponding whole-unit baselines, respectively.
| Model | Target | MAC ↓ CAPS / base | CAPS | Magnitude | Wanda-sp | FLAP | RCPU |
|---|---|---|---|---|---|---|---|
| Llama-2-7B | 10% | 9.83 / 9.79 | 5.2119 / 63.23 / 44.00 | 7.7365 / 58.51 / 24.78 | 5.3761 / 63.00 / 41.71 | 5.3932 / 62.06 / 42.49 | 5.3797 / 62.26 / 40.40 |
| 20% | 19.94 / 19.59 | 5.4775 / 61.14 / 39.37 | 10.0504 / 53.94 / 26.00 | 5.7983 / 59.43 / 36.43 | 5.8373 / 61.27 / 37.61 | 5.8405 / 60.82 / 39.79 | |
| 30% | 29.91 / 30.41 | 5.9217 / 59.91 / 33.41 | 12.4877 / 48.06 / 23.75 | 6.4232 / 55.92 / 32.61 | 6.4348 / 56.05 / 31.72 | 6.4240 / 57.39 / 34.19 | |
| Llama-3-8B | 10% | 10.03 / 10.48 | 6.2232 / 66.54 / 64.55 | 9.5231 / 59.49 / 50.40 | 6.8051 / 65.55 / 57.50 | 7.1379 / 65.64 / 58.45 | 6.8218 / 65.94 / 58.67 |
| 20% | 19.94 / 20.96 | 6.7981 / 64.87 / 61.38 | 15.1003 / 54.36 / 25.20 | 7.8110 / 60.46 / 46.78 | 8.1345 / 58.84 / 46.55 | 7.8754 / 60.38 / 46.72 | |
| 30% | 30.15 / 29.04 | 7.6100 / 62.13 / 54.18 | 22.3106 / 49.26 / 26.19 | 8.4428 / 57.12 / 41.01 | 8.7243 / 58.02 / 41.69 | 8.4145 / 59.19 / 41.36 | |
| Mistral-7B | 10% | 10.17 / 10.48 | 5.3543 / 67.23 / 58.40 | 6.8511 / 62.14 / 47.33 | 5.6296 / 64.68 / 55.59 | 5.6283 / 63.50 / 53.97 | 5.6130 / 64.33 / 53.33 |
| 20% | 19.81 / 20.96 | 5.5443 / 65.45 / 57.51 | 8.0033 / 57.64 / 36.24 | 6.0930 / 58.23 / 44.15 | 6.2721 / 57.68 / 42.34 | 6.1082 / 58.06 / 45.58 | |
| 30% | 30.08 / 29.04 | 5.8704 / 64.23 / 53.26 | 8.8854 / 56.22 / 28.63 | 6.3904 / 56.94 / 36.71 | 6.5447 / 56.68 / 40.56 | 6.3722 / 56.15 / 36.94 | |
| Qwen2.5-7B | 10% | 10.01 / 8.74 | 6.5235 / 69.72 / 74.84 | 7.9283 / 66.53 / 70.75 | 6.6607 / 69.37 / 72.52 | 6.6691 / 69.45 / 72.76 | 6.6574 / 68.71 / 72.81 |
| 20% | 20.07 / 20.63 | 6.8264 / 69.18 / 73.05 | 11.4809 / 59.63 / 59.27 | 7.6786 / 64.30 / 64.85 | 7.7317 / 64.84 / 65.46 | 7.5681 / 62.27 / 62.39 | |
| 30% | 30.12 / 29.37 | 7.3083 / 67.28 / 69.44 | 13.1102 / 55.09 / 53.06 | 8.1237 / 61.30 / 59.83 | 8.2299 / 60.84 / 60.06 | 7.9831 / 60.09 / 56.83 |
Baselines. We compare CAPS with structured magnitude pruning, Wanda-sp Sun et al. (2024b), FLAP An et al. (2024), and RCPU Haruta et al. (2026). These methods use whole-unit structured pruning, where a selected channel, neuron, or attention unit is removed together with all weights associated with that unit, and the corresponding matrix dimension is reduced. In contrast, CAPS removes an input channel only for selected output-neuron groups and retains it for other groups.
For Llama-3-8B, Mistral-7B, and Qwen2.5-7B, which use GQA, the baseline attention layers are pruned at KV-group granularity. Their achieved MAC reductions can therefore differ slightly from the nominal target. CAPS instead adjusts so that its group-wise pruning reaches the target MAC reduction directly.
Evaluation. We evaluate language modeling using WikiText-2 test perplexity with sequence length 4096. ZS-7 is the arithmetic mean of BoolQ, RTE, HellaSwag, WinoGrande, ARC-Easy, ARC-Challenge, and OpenBookQA. We use normalized accuracy for HellaSwag, ARC-Easy, ARC-Challenge, and OpenBookQA, and accuracy for the other three tasks. For Llama-3-8B and Qwen2.5-7B, the evaluation harness uses the first 2000 examples for tasks containing more than 2000 examples. All comparisons are made within the same model and therefore use the same evaluation set. MMLU Hendrycks et al. (2021) is evaluated 5-shot over all 57 subjects using the development examples as demonstrations. We report macro accuracy over the 57 subjects. Each model-method-budget configuration is run once. Calibration uses seed 0 and recovery training uses seed 1234 with the same data order for all methods.
C.1 RESULTS
Table 7 reports the comparison after recovery training. CAPS obtains the lowest WikiText-2 perplexity at all 12 model–budget settings. It obtains the highest ZS-7 accuracy at 11 of the 12 settings and the highest MMLU accuracy at 10 of the 12 settings.
The differences are particularly large on the three GQA models. At 20–30% MAC reduction on Llama-3-8B, Mistral-7B, and Qwen2.5-7B, CAPS reduces perplexity by 0.50–1.01 relative to the strongest baseline for that metric. The corresponding improvements reach 2.94–7.29 points on ZS-7 and 7.59–14.60 points on MMLU. On Llama-2-7B, differences in ZS-7 and MMLU are smaller, while CAPS retains lower perplexity at all three pruning levels.
C.2 COMPARISON WITH THE BEST WHOLE-UNIT BASELINE
Table 8 reports the difference between CAPS and the strongest whole-unit baseline for each metric. Since the strongest baseline can differ across metrics, PPL, ZS-7, and MMLU are compared independently. For PPL, a negative value denotes lower perplexity for CAPS. For ZS-7 and MMLU, a positive value denotes higher accuracy.
Table 8: Difference between CAPS and the strongest whole-unit baseline for each metric. Lower PPL is better. Higher ZS-7 and MMLU are better.
| Model | Target | ΔPPL | ΔZS-7 | ΔMMLU |
|---|---|---|---|---|
| Llama-2-7B | 10% | -0.16 | +0.23 | +1.51 |
| 20% | -0.32 | -0.13 | -0.42 | |
| 30% | -0.50 | +2.52 | -0.78 | |
| Llama-3-8B | 10% | -0.58 | +0.60 | +5.88 |
| 20% | -1.01 | +4.41 | +14.60 | |
| 30% | -0.80 | +2.94 | +12.49 | |
| Mistral-7B | 10% | -0.26 | +2.55 | +2.81 |
| 20% | -0.55 | +7.22 | +11.93 | |
| 30% | -0.50 | +7.29 | +12.70 | |
| Qwen2.5-7B | 10% | -0.13 | +0.27 | +2.03 |
| 20% | -0.74 | +4.34 | +7.59 | |
| 30% | -0.67 | +5.98 | +9.38 |
C.3 COMPUTATION ACCOUNTING
For CAPS, the reported MAC reduction is computed directly from the selected input channels of the output-neuron groups. For a pruned linear layer, the remaining multiply-add count is proportional to
The reported MAC reduction is the reduction in this count relative to the dense versions of the seven target linear layers. For the whole-unit baselines, the MAC count is computed from the dimensions of the reduced matrices.
The CAPS computation is exact when each output-neuron group is evaluated using its own selected input channels. On current accelerator hardware, however, dense matrix kernels operate on row tiles that may contain several CAPS groups. If rows with different selected input channels are evaluated in the same tile, the tile must use the union of their input-channel sets. The realizable MAC reduction therefore depends on the row granularity supported by the implementation.
To quantify this effect, we reorder rows according to the overlap of their selected input channels and combine them into tiles of rows. For each tile, computation is counted over the union of the input channels used by its rows. Reordering does not change the model output. Table 9 reports the resulting MAC reduction. At the nominal setting, a tile size of two rows retains MAC reduction across the four models. The reduction becomes smaller as the tile size increases because more rows with different selected input channels must share the same input set. Qwen2.5-7B retains the largest reduction at larger tile sizes.
Table 9: MAC reduction of CAPS under different row-tile sizes. corresponds to the group-wise MAC count used in the pruning experiments. For , rows are reordered according to overlap of their selected input channels before tiling.
| Model | Target | ||||||
|---|---|---|---|---|---|---|---|
| Llama-2-7B | 10% | 9.83 | 6.59 | 3.41 | 1.80 | 0.72 | 0.39 |
| 20% | 19.94 | 15.13 | 9.01 | 4.88 | 1.78 | 0.94 | |
| 30% | 29.91 | 24.33 | 15.98 | 8.94 | 2.97 | 1.43 | |
| Llama-3-8B | 10% | 10.03 | 6.67 | 3.67 | 1.92 | 0.64 | 0.32 |
| 20% | 19.94 | 15.03 | 9.33 | 5.06 | 1.50 | 0.62 | |
| 30% | 30.15 | 24.49 | 16.68 | 9.55 | 2.73 | 1.02 | |
| Mistral-7B | 10% | 10.17 | 6.72 | 3.82 | 2.06 | 0.81 | 0.53 |
| 20% | 19.81 | 14.77 | 9.22 | 4.95 | 1.52 | 0.81 | |
| 30% | 30.08 | 24.21 | 16.46 | 9.24 | 2.55 | 1.16 | |
| Qwen2.5-7B | 10% | 10.01 | 6.85 | 4.70 | 3.13 | 1.75 | 1.34 |
| 20% | 20.07 | 15.14 | 10.79 | 6.95 | 2.90 | 1.87 | |
| 30% | 30.12 | 24.40 | 18.31 | 12.13 | 4.57 | 2.56 |