[Paper Review] Differentiable Sparsification for Deep Neural Networks
This paper proposes a fully differentiable sparsification method for deep neural networks that jointly optimizes network weights and sparsity structure via a regularized objective function using stochastic gradient descent. By employing learnable attention masks and differentiable normalization, the method enables end-to-end training with minimal architectural changes, achieving state-of-the-art sparsity while maintaining or improving model performance.
Deep neural networks have significantly alleviated the burden of feature engineering, but comparable efforts are now required to determine effective architectures for these networks. Furthermore, as network sizes have become excessively large, a substantial amount of resources is invested in reducing their sizes. These challenges can be effectively addressed through the sparsification of over-complete models. In this study, we propose a fully differentiable sparsification method for deep neural networks, which can zero out unimportant parameters by directly optimizing a regularized objective function with stochastic gradient descent. Consequently, the proposed method can learn both the sparsified structure and weights of a network in an end-to-end manner. It can be directly applied to various modern deep neural networks and requires minimal modification to the training process. To the best of our knowledge, this is the first fully differentiable sparsification method.
Motivation & Objective
- To address the growing challenge of designing efficient deep neural network architectures with minimal human intervention.
- To overcome the limitations of traditional pruning and proximal gradient methods that require manual implementation or closed-form solutions.
- To enable end-to-end learning of both network weights and sparsity patterns through a fully differentiable framework.
- To support flexible regularization with any norm, including non-convex $l_p$-norms, without requiring analytical proximal operators.
- To integrate sparsification seamlessly into various deep learning models with minimal modification to the training pipeline.
Proposed method
- Introduces learnable attention masks $\tilde{A}_{i,j} = \exp(\alpha_{i,j})$ to represent potential connections between network components.
- Applies iterative, differentiable balanced normalization (a variant of Sinkhorn normalization) to convert $\tilde{A}$ into a doubly stochastic matrix $A$.
- Uses $l_p$-norm regularization with $p=0.5$ on row and column vectors of $A$ to encourage structured sparsity and competition within groups.
- Integrates the sparsification module into the loss function as $\mathcal{L}(D,W,A) + \frac{\lambda}{2}\sum_{i=1}^{N}\left[\mathcal{R}(A_{i,:}) + \mathcal{R}(A_{:,i})\right]$, where $\mathcal{R}$ is the $l_p$-norm.
- Leverages automatic differentiation to backpropagate through the entire sparsification process, eliminating the need for manual proximal updates.
- Applies the method end-to-end to graph neural networks, demonstrating its effectiveness in learning sparse, meaningful relationships in road networks.
Experimental results
Research questions
- RQ1Can a fully differentiable sparsification method be designed to jointly optimize network weights and sparsity structure without relying on pre-trained models or closed-form proximal operators?
- RQ2How does differentiable sparsification with $l_p$-norm regularization ($p=0.5$) compare to traditional $l_1$ or $l_{2,1}$ regularization in inducing structured sparsity?
- RQ3To what extent can the proposed method learn meaningful, sparse structural relationships in real-world graph-structured data, such as traffic networks?
- RQ4Can the method be applied to various deep neural network architectures with minimal architectural modifications?
- RQ5Does the use of differentiable normalization (e.g., Sinkhorn-style) reliably produce doubly stochastic matrices that support stable and interpretable sparsity?
Key findings
- The proposed method achieved a mean absolute percentage error (MAPE) of 5.4957% on traffic speed prediction, outperforming Baseline I (5.5160%) and Baseline II (5.6343%) despite significantly fewer non-zero parameters.
- The model learned only 1,009 non-zero parameters (vs. 878 in Baseline I and 28,900 in Baseline II), demonstrating high sparsity while maintaining performance.
- The learned adjacency matrix achieved a learned relationship (LR) score of 88.62% for $k=1$ and 91.39% for $k=2$, indicating strong alignment with actual road connectivity.
- The method successfully learned sparse, meaningful relationships between road segments without relying on ground-truth connectivity, outperforming the baseline that used full adjacency matrices.
- The use of $l_{0.5}$-norm regularization with differentiable normalization enabled effective, structured sparsity without requiring analytical solutions to proximal operators.
- Numerical experiments confirmed that balanced normalization produces approximately doubly stochastic matrices, though a theoretical justification remains an open question.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.