Pruning Large Language Models by Identifying and Preserving Functional Networks

Yiheng Liu, Junhao Ning, Sichen Xia, Xiaohui Gao, Ning Qiang, Bao Ge, Junwei Han, Xintao HuarXiv 2025

Abstract

Structured pruning is one of the representative techniques for compressing large language models (LLMs) to reduce GPU memory consumption and accelerate inference speed. It offers significant practical value in improving the efficiency of LLMs in real-world applications. Current structured pruning methods typically rely on assessment of the importance of the structure units and pruning the units with less importance. Most of them overlooks the interaction and collaboration among artificial neurons that are crucial for the functionalities of LLMs, leading to a disruption in the macro functional architecture of LLMs and consequently a pruning performance degradation. Inspired by the inherent similarities between artificial neural networks and functional neural networks in the human brain, we alleviate this challenge and propose to prune LLMs by identifying and preserving functional networks within LLMs in this study. To achieve this, we treat an LLM as a digital brain and decompose the LLM into functional networks, analogous to identifying functional brain networks in neuroimaging data. Afterwards, an LLM is pruned by preserving the key neurons within these functional networks. Experimental results demonstrate that the proposed method can successfully identify and locate functional networks and key neurons in LLMs, enabling efficient model pruning.

Introduction

As Large Language Models (LLMs) scale to hundreds of billions of parameters, the computational and memory costs of deployment become prohibitive. Pruning—the process of removing redundant parameters—has emerged as a vital solution. However, traditional structured pruning methods often treat neurons as isolated units, overlooking the complex interactions and collaborations that define model functionality.

In the human brain, cognitive processes emerge from functional networks—coordinated groups of neurons working in tandem. This research argues that current pruning techniques inadvertently disrupt these "functional teams," leading to significant performance degradation. By treating an LLM as a "digital brain," the authors propose a method to identify and preserve these critical functional networks during the pruning process.

Methodology: CanICA-based Pruning

The proposed framework utilizes Canonical Independent Component Analysis (CanICA) to decompose LLM activations into functional networks, drawing a direct parallel to how neuroscientists map the human brain using fMRI data.

Overview of the CanICA-based pruning framework and its analogy to human brain functional networks.

The process involves four primary stages:

  1. Data Collection: Calibration text (e.g., Wikitext-2) is passed through the model to record neuron activations (signals) within the Multi-Layer Perceptron (MLP) layers.
  2. Functional Network Identification: CanICA is applied layer-by-layer to separate these signals into independent components, representing clusters of neurons with coordinated activity.
  3. Preservation Masking: Instead of scoring individual neurons based on isolated variance, the method identifies and masks the most critical neurons within each identified functional network.
  4. Aggregation: To ensure robustness across diverse inputs, results from multiple data batches are combined using a logical OR operation, preserving all essential functional teams.

Key Insights and Results

The core innovation lies in the conceptualization of the LLM as a digital brain. By focusing on the integrity of functional groups rather than individual neuron importance, the model retains its reasoning capabilities more effectively after compression.

Heatmap of aggregated functional networks across different layers of the LLaMA2-7B-chat-hf model.

Experimental evaluations on models like Vicuna-7B and LLaMA2-7B demonstrate the efficacy of this approach:

  • Superior Reasoning: At a 20% pruning rate, the CanICA method outperformed state-of-the-art pruners (e.g., FLAP, LLM-Pruner) in 5 out of 7 zero-shot reasoning tasks, including PIQA and HellaSwag.
  • Lower Perplexity: The method maintained lower (better) perplexity on Wikitext-2, indicating superior linguistic coherence post-pruning compared to traditional width-pruning methods.
  • Architectural Robustness: The identification of functional networks proved consistent across different architectures, such as ChatGLM3, suggesting these networks are a fundamental property of Transformer-based models.

Discussion and Future Work

While successful, the current implementation uses linear ICA, which may not capture the full complexity of non-linear neuron relationships. Future research could explore non-linear decomposition tools like auto-encoders. Additionally, while the current layer-by-layer approach is computationally efficient, a global strategy identifying networks that span multiple layers could further enhance pruning performance. Beyond compression, this framework offers a promising avenue for mechanistic interpretability, potentially allowing researchers to map specific functional networks to distinct linguistic or cognitive tasks.

Code available at: https://github.com/WhatAboutMyStar/LLM_ACTIVATION

Summary updated

BibTeX
@misc{liu2025pruning,
  author = {Yiheng Liu and Junhao Ning and Sichen Xia and Xiaohui Gao and Ning Qiang and Bao Ge and Junwei Han and Xintao Hu},
  title = {{Pruning Large Language Models by Identifying and Preserving Functional Networks}},
  year = {2025},
  eprint = {2508.05239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05239},
}
Figure