Dep-L0: Improving L0-Based Network Sparsification via Dependency Modeling

Yang Li, Shihao Ji

Abstract

$L_0$ regularization is a mathematically elegant approach to neural network pruning, yet it has historically struggled to scale to large datasets like ImageNet. This failure is largely attributed to the "mean-field approximation," which assumes pruning decisions for individual neurons are independent. This paper introduces Dep-$L_0$, a framework that replaces independent pruning gates with a dependency-modeling mechanism. By utilizing a Multi-Layer Perceptron (MLP) to capture inter-layer dependencies, Dep-$L_0$ achieves stable and competitive sparsification on large-scale models, significantly reducing FLOPs and parameters with minimal accuracy loss for the first time in $L_0$-based literature.

Introduction

To deploy deep learning models on resource-constrained devices such as smartphones or drones, sparsification (pruning) is essential to reduce model size and latency. $L_0$ regularization is theoretically ideal for this task as it directly penalizes the number of non-zero weights. However, while $L_0$ methods perform well on small datasets like MNIST or CIFAR-10, they often fail to prune deep networks on large-scale tasks like ImageNet.

The authors identify the "mean-field approximation" as the primary bottleneck. Existing methods treat the decision to prune one neuron as independent of others. In reality, neurons are highly interdependent; pruning a channel in one layer fundamentally alters the requirements of subsequent layers. Dep-$L_0$ addresses this by explicitly modeling these dependencies.

Methodology: Dependency-Enabled Sparsification

The core of Dep-$L_0$ is the transition from independent pruning gates to a structured dependency model.

Neural Dependency Modeling

Instead of treating pruning gates as independent learnable parameters, Dep-$L_0$ introduces a "gate generator" implemented as a small MLP. This MLP models the dependencies between gates across different layers. To maintain tractability, gates are grouped by layer, and the decision for a gate in layer $L$ is conditioned on the state of gates in layer $L-1$, effectively creating a first-order Markov chain of dependencies.

The dependency graph between gates across different blocks/layers.

Differentiable and Structured Pruning

The framework utilizes the Hard Concrete (HC) distribution to relax discrete 0/1 pruning decisions into a continuous, differentiable space. This allows the entire system—including the gate-generating MLP—to be trained via standard backpropagation.

Furthermore, the method focuses on filter-level pruning. By attaching gates to entire feature maps rather than individual weights, the resulting sparse models achieve significant speedups on standard hardware (CPUs/GPUs) without requiring specialized sparse kernels.

Different levels of pruning granularity, with Dep-L0 focusing on filter-level structured pruning.

Experimental Evaluation

The authors evaluated Dep-$L_0$ on standard computer vision benchmarks, including CIFAR-10, CIFAR-100 (using VGG16 and ResNet56), and ImageNet (using ResNet50) to demonstrate scalability.

Key Insights

  • Overcoming the Mean-Field Trap: The failure of previous $L_0$ methods was not due to the $L_0$ norm itself, but the oversimplified independence assumption. Modeling dependencies prevents the optimizer from falling into poor local minima.
  • Balanced Sparsity: Unlike the baseline $L_0$-HC, which often pruned in an "all-or-nothing" fashion (killing entire layers while leaving others dense), Dep-$L_0$ produces a smoother, more balanced sparsity pattern that preserves accuracy.
  • Accelerated Convergence: Modeling dependencies actually improved training efficiency. Dep-$L_0$ found viable sparse structures in 20-40% less time than independent baselines.

Results and Analysis

Dep-$L_0$ demonstrates state-of-the-art performance across benchmarks:

  • ImageNet: While the original $L_0$-HC algorithm failed to prune ResNet50 on ImageNet effectively, Dep-$L_0$ successfully reduced 36.9% of FLOPs and 37.2% of parameters with only a 1.38% drop in accuracy.
  • CIFAR-10: On VGG16, the method achieved a 65.9% FLOPs reduction with a negligible accuracy loss of 0.1%.
  • Efficiency: On ResNet50/ImageNet, Dep-$L_0$ reached its target sparse structure in 59.5 hours, whereas the baseline failed to stabilize even after 100 hours.

Conclusion and Future Work

Dep-$L_0$ proves that $L_0$ regularization can be scaled to large-scale tasks by accounting for inter-layer dependencies. While the current implementation uses a simple MLP for the gate generator, future work could explore more complex architectures like Transformers or apply these principles to Large Language Models (LLMs). Additionally, reducing hyperparameter sensitivity regarding the sparsity-accuracy trade-off remains an area for further refinement.

Summary updated

BibTeX
@inproceedings{li2021dep,
  author = {Yang Li and Shihao Ji},
  title = {{Dep-L0: Improving L0-Based Network Sparsification via Dependency Modeling}},
  booktitle = {ECML/PKDD},
  year = {2021},
  doi = {10.1007/978-3-030-86523-8\_11},
}
Figure