Generalizing Model Pruning Across Diverse Neural Architectures

1,190 concepts1,028 papers3 proposals

When we design a pruning algorithm, we are writing an optimization objective or search heuristic tailored to a specific structural landscape. For years, this landscape was dominated by Convolutional Neural Networks (CNNs). Compression methods excelled at identifying redundant channels, filters, or local spatial structures.

However, when these same algorithms are applied to Transformers or Recurrent Neural Networks (RNNs), they frequently suffer from an architectural generalization gap. A heuristic that perfectly captures redundancy in one mathematical framework often fails completely in another. The core of this research direction is understanding why compression mechanisms are so tightly coupled to specific neural architectures, and how to design strategies that generalize across structural boundaries.

The Convolutional Legacy and the Attention Barrier

Early automated and structured pruning frameworks achieved remarkable success by exploiting the regular, grid-like dependencies of CNNs. For instance, Ethan He et al. developed AMC: AutoML for Model Compression and Acceleration on Mobile Devices, which leveraged reinforcement learning to automatically navigate layer-wise pruning ratios. To bypass discrete searches, Xuefei Ning et al. introduced DSA: More Efficient Budgeted Pruning via Differentiable Sparsity Allocation, transforming the pruning process into a gradient-based optimization problem.

While these methods are highly effective for convolutional layers, their underlying assumptions do not translate to attention-based models. CNN pruning often relies on evaluating the importance of independent channels or localized geometric features, such as the progressive filter removal proposed by Xiaodong Wang et al. in Progressive Local Filter Pruning for Image Retrieval Acceleration.

Transformers, however, distribute information globally across multi-head self-attention (MHA) mechanisms, feed-forward networks (FFNs), and embedding layers. As noted by Chuanyang Zheng et al. in SAViT: Structure-Aware Vision Transformer Pruning via Collaborative Optimization, pruning these heterogeneous components in isolation destroys model integrity. Because the components are deeply co-dependent, they require specialized, joint optimization strategies that standard CNN pruning agents cannot infer.

This generalization gap also invalidates traditional second-order optimization and tensor decomposition methods. Algorithms like Collaborative Channel Pruning (Hanyu Peng et al., Collaborative Channel Pruning for Deep Networks) or budget-aware Tucker decomposition (Miao Yin et al., BATUDE: Budget-Aware Neural Network Compression Based on Tucker Decomposition) rely on mathematical formulations specifically tuned for convolutional tensors. Translating these to the massive, dense weight matrices of attention blocks remains an open challenge because the underlying redundancy patterns are fundamentally distinct.

From Recurrent Gates to Parallelized Attention

A similar structural divide exists between Recurrent Neural Networks (RNNs) and Transformers. RNN compression techniques typically exploit the dimension-consistent structured redundancy that spans across internal gates and sequential hidden states.

For example, Wei Wen et al. developed Learning Intrinsic Sparse Structures within Long Short-Term Memory, which uses Group Lasso regularization to eliminate redundant components across all internal gates simultaneously. Other approaches, such as the Bayesian Automatic Relevance Determination (ARD) framework by Maxim Kodryan et al. (Efficient Language Modeling with Automatic Relevance Determination in Recurrent Neural Networks) or the dynamic parameter redistribution in Selfish-RNN (Shiwei Liu et al., Selfish Sparse RNN Training), depend heavily on the specific gate mechanics and temporal dependencies of recurrent architectures.

RNN Sparsification:
[Gate Component] ---> [Dimension-Consistent Regularization] ---> Temporal Redundancy
                                                                       |
                                                                (Does not map)
                                                                       v
Transformer Sparsification:
[Attention Head] ---> [Spatial/Matrix Decomposition]       ---> Spatial Redundancy

When attempting to port these recurrent pruning mechanisms to self-attention, researchers run into a structural mismatch. In an RNN, redundancy is temporal and gate-bound; in a Transformer, it is spatial and head-bound. Adapting an algorithm like cube pruning—originally designed for sequential decoding states by Wen Zhang et al. (Speeding Up Neural Machine Translation Decoding by Cube Pruning)—to a Transformer requires completely redefining how equivalence classes are formed within non-sequential layers.

Fragmentation Within the Transformer Family

Even when a pruning method is successfully designed for an attention-based model, it rarely generalizes seamlessly across the rapidly evolving taxonomy of modern Transformer variants. The field faces a severe intra-architecture generalization gap.

Consider the structural shift from standard Multi-Head Attention (MHA) to Grouped-Query Attention (GQA) and Multi-head Latent Attention (MLA). In MHA, each query head maps to a unique key and value head, allowing structured pruning methods to treat attention matrix products as unified, independent entities. However, as Jiujun He demonstrates with Olica: Efficient Structured Pruning of Large Language Models without Retraining, alternative mechanisms like GQA or MLA introduce complex, shared key-value dependencies that break traditional orthogonal decomposition and linear calibration methods.

Furthermore, dynamic memory sparsification and adaptive pruning thresholds face unique hurdles when applied to compressed latent spaces. In Twilight: Adaptive Attention Sparsity with Hierarchical Top-$p$ Pruning, Chaofan Lin et al. explore dynamic probability thresholds for attention. Yet, as noted by Adrian Łańcucki et al. in Inference-Time Hyper-Scaling with KV Cache Compression, when keys and values are projected into low-dimensional latent spaces (as in MLA), standard eviction logic or dynamic pruning thresholds cannot be directly applied because the original high-dimensional geometric relationships are obscured.

The generalization gap also manifests when moving between different functional variants of the Transformer, such as encoder-only, decoder-only, or unified architectures:

Ultimately, the goal of cross-architecture generalization research is to move away from brittle, hand-crafted compression heuristics tied to specific layer definitions. By focusing on the underlying mathematical properties of information flow rather than rigid architectural templates, the community aims to build compression frameworks that remain robust as neural network designs continue to evolve.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 964 papers
  2. Version 1 · 2026-10-04 · 1356 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_cross_architecture_generalization_cross__08ee8cef,
  title = {cross-architecture generalization (cross-architecture pruning generalization)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/cross-architecture-generalization-cross-architecture-pruning-generalization/rdr_08ee8cefa7204ba3b08a208432f1f1dd},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 2, frozen text):

@misc{lacuna_cross_architecture_generalization_cross__08ee8cef_v2,
  title = {cross-architecture generalization (cross-architecture pruning generalization)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/cross-architecture-generalization-cross-architecture-pruning-generalization/rdr_08ee8cefa7204ba3b08a208432f1f1dd/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake