Skip to main content
QUICK REVIEW

[Paper Review] Topology-Aware Network Pruning using Multi-stage Graph Embedding and Reinforcement Learning

Sixing Yu, Arya Mazaheri|arXiv (Cornell University)|Feb 5, 2021
Advanced Graph Neural NetworksComputer Science7 citations
TL;DR

This paper proposes GNN-RL, a topology-aware network pruning method that uses multi-stage graph neural networks (m-GNN) to learn hierarchical, transferable embeddings of deep neural network (DNN) topologies, combined with reinforcement learning (PPO) to automatically discover optimal FLOPs-constrained channel pruning policies. The approach achieves state-of-the-art accuracy with high compression ratios and minimal fine-tuning across diverse models including ResNets, VGG-16, and mobile-friendly networks.

ABSTRACT

Model compression is an essential technique for deploying deep neural networks (DNNs) on power and memory-constrained resources. However, existing model-compression methods often rely on human expertise and focus on parameters' local importance, ignoring the rich topology information within DNNs. In this paper, we propose a novel multi-stage graph embedding technique based on graph neural networks (GNNs) to identify DNN topologies and use reinforcement learning (RL) to find a suitable compression policy. We performed resource-constrained (i.e., FLOPs) channel pruning and compared our approach with state-of-the-art model compression methods. We evaluated our method on various models from typical to mobile-friendly networks, such as ResNet family, VGG-16, MobileNet-v1/v2, and ShuffleNet. Results show that our method can achieve higher compression ratios with a minimal fine-tuning cost yet yields outstanding and competitive performance.

Motivation & Objective

  • To address the limitation of existing model compression methods that ignore DNN topology and rely on handcrafted rules or local parameter importance.
  • To develop a unified, transferable pruning policy that captures structural motifs and hierarchical patterns in DNNs.
  • To overcome the reward-compression ratio trade-off in RL-based pruning by introducing a DNN-Graph environment that enforces FLOPs constraints.
  • To enable automatic, adaptive pruning with minimal human intervention through a PPO-based RL agent guided by topology-aware graph embeddings.

Proposed method

  • Model DNNs as hierarchical computational graphs to capture structural motifs and topology, enabling transferable representation learning.
  • Propose multi-stage GNN (m-GNN) to learn hierarchical graph embeddings by processing graph layers sequentially, reducing redundancy and improving efficiency.
  • Design a DNN-Graph environment that converts each pruning step into a graph state, enabling the RL agent to interact with the compressed model as a topology-modification process.
  • Use proximal policy optimization (PPO) as the RL algorithm, where the agent selects pruning ratios per layer, and receives accuracy as sparse reward upon meeting FLOPs constraints.
  • Integrate graph embedding with RL to enable the agent to reason over structural importance rather than just parameter statistics.
  • Apply the method to channel pruning with FLOPs as the primary constraint, allowing automatic compression until the target size is reached.

Experimental results

Research questions

  • RQ1Can graph neural networks effectively capture and represent the hierarchical and repetitive structural motifs in DNNs for model compression?
  • RQ2How does topology-aware graph embedding improve the generalization and transferability of pruning policies across different DNN architectures?
  • RQ3Can a reinforcement learning agent learn an optimal, FLOPs-constrained pruning policy without relying on manually defined reward shaping or heuristic constraints?
  • RQ4To what extent does the proposed method outperform state-of-the-art pruning baselines in terms of accuracy, compression ratio, and inference efficiency?
  • RQ5Can the learned topology embeddings be transferred to prune different DNNs with minimal retraining?

Key findings

  • GNN-RL achieved a 49% FLOPs reduction on ResNet-20 with only a 0.1% accuracy drop, while maintaining 1.38× inference speedup on VGG-16.
  • On ResNet-110, the pruned model achieved a 0.63% accuracy gain compared to the original model, demonstrating that pruning can improve generalization.
  • The method reduced GPU memory usage by 141 MB (26.7%) on VGG-16 by pruning dense layers and reducing feature map size.
  • MobileNet-v2 was pruned to 79% of its original FLOPs with only 1.4% accuracy drop, showing strong performance on mobile-friendly models.
  • m-GNN achieved higher node classification accuracy with 30–50% fewer graph nodes and edges than standard GNNs, proving its efficiency in capturing structural motifs.
  • The topology-aware pruning policy learned by GNN-RL was transferable, enabling effective pruning of diverse DNNs without retraining the agent.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.