Optimal Brain Apoptosis

Mingyuan Sun, Zheng Fang, Jiaxu Wang, Junjie Jiang, Delei Kong, Chenming Hu, Yuetong Fang, Renjing Xu

Abstract

Modern deep learning architectures, such as Convolutional Neural Networks (CNNs) and Transformers, demand significant computational resources for deployment. Network pruning offers a solution by removing redundant parameters, yet identifying the most "expendable" weights remains a challenge. Traditional second-order methods rely on computationally expensive Hessian approximations that often sacrifice accuracy. This paper introduces Optimal Brain Apoptosis (OBA), a novel pruning framework that directly calculates exact second-order Taylor expansions using efficient Hessian-vector products. By leveraging connectivity analysis and a modified forward pass, OBA achieves state-of-the-art performance in both structured and unstructured pruning across diverse architectures.

Introduction

As neural networks scale to billions of parameters, the need for efficient deployment becomes critical. Pruning—the process of removing weights or neurons—aims to reduce model size and latency without compromising performance. The efficacy of pruning hinges on the "saliency" or importance score assigned to each parameter.

Historically, methods like Optimal Brain Damage (OBD) utilized the Hessian matrix to estimate parameter importance. However, the $O(n^2)$ complexity of the full Hessian makes it intractable for modern networks. Consequently, researchers have relied on diagonal approximations or the Fisher Information Matrix. These approximations ignore the complex interactions between parameters, leading to suboptimal pruning decisions. Optimal Brain Apoptosis (OBA) addresses this by providing a mathematically rigorous and computationally efficient way to utilize exact second-order information.

Methodology: Beyond Approximations

OBA shifts the paradigm from approximating the Hessian to directly computing the second-order Taylor expansion for parameter importance. This is achieved through three primary innovations:

1. Connectivity Analysis

The authors observe that the Hessian's structure is dictated by the network's architecture. They categorize parameter interactions into two distinct types:

  • Series Connectivity: Found in standard feed-forward and convolutional layers.
  • Parallel Connectivity: Characteristic of matrix multiplications found in Transformer attention heads. By identifying exactly when submatrices between layers are non-zero, OBA transforms a global optimization problem into a manageable layer-by-layer calculation.

2. Jacobian-Vector Product Forward Propagation (JVPF)

To overcome the massive computational overhead of calculating cross-layer interactions, OBA introduces JVPF. This technique modifies the standard forward pass to compute the necessary gradients across layers in parallel. This allows the method to scale to deep architectures like ResNet and Vision Transformers (ViT) without the prohibitive costs associated with traditional second-order methods.

3. Unified Pruning Framework

Unlike many methods that are specialized for either individual weights (unstructured) or entire channels (structured), OBA provides a unified importance score. Because it calculates an accurate score for every parameter, it can be seamlessly applied to remove individual connections or group scores to prune entire neurons and attention heads.

Experimental Evaluation

The authors evaluated OBA on standard image classification benchmarks, including CIFAR-10, CIFAR-100, and ImageNet, using architectures such as VGG19, ResNet, and ViT-B/16.

Structured Pruning and Speedup

On ImageNet with a ResNet50 backbone, OBA achieved a 2.00x speedup with a negligible accuracy drop of 0.53%. This performance surpassed existing state-of-the-art methods like EigenDamage and Taylor-based pruning. Similarly, on the Vision Transformer (ViT-B/16), OBA reached a 1.30x speedup with only a 1.43% drop in accuracy, demonstrating its versatility across different architectural paradigms.

Extreme Compression

OBA excels under high-sparsity constraints. In tests on CIFAR-10 with ResNet32, the model was pruned to just 6% of its original FLOPs. Despite this extreme reduction, OBA maintained performance with only a 0.79% drop in accuracy, significantly outperforming competing methods. Furthermore, in unstructured pruning on ImageNet (90% weight removal), OBA maintained higher accuracy than the CHITA-BSO method while requiring less computational time to generate the pruning mask.

Saliency Accuracy

To validate the theoretical foundation of OBA, the authors compared its importance scores against the "ground truth"—the actual change in loss when a neuron is masked. OBA demonstrated the highest Spearman rank correlation with the ground truth compared to all baseline methods, confirming that its exact second-order calculation more accurately reflects true parameter importance.

Discussion and Conclusion

Optimal Brain Apoptosis demonstrates that exact second-order information is not only desirable but computationally feasible for modern neural networks. By moving away from the diagonal approximations of the past, OBA provides a more "balanced" and smoother pruning distribution across layers, avoiding the architectural bottlenecks common in simpler methods.

While OBA shows remarkable success in CNNs and Transformers, its current mathematical derivation is specific to these structures. Future research is required to extend this framework to temporal models, such as Recurrent Neural Networks (RNNs) and State Space Models (SSMs), where temporal dependencies complicate the Hessian calculation. Nevertheless, OBA represents a significant step forward in the quest for efficient, high-performance deep learning deployment.

Summary updated

BibTeX
@inproceedings{sun2025optimal,
  author = {Mingyuan Sun and Zheng Fang and Jiaxu Wang and Junjie Jiang and Delei Kong and Chenming Hu and Yuetong Fang and Renjing Xu},
  title = {{Optimal Brain Apoptosis}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=88rjm6AXoC},
}
Figure