Abstract
Deep neural networks (DNNs) are notoriously overparameterized, leading to high computational costs and memory requirements. This paper addresses the joint optimization of three critical tasks: (i) weight optimization, (ii) hidden layer neuron pruning, and (iii) input feature selection. We propose a unified regularized formulation based on the Sparse Group Lasso (SGL) penalty. By grouping outgoing weights from individual units, our approach imposes structured sparsity that physically reduces the network size during training. Experimental results across various datasets, including MNIST and large-scale classification tasks, demonstrate that SGL produces extremely compact networks with state-of-the-art accuracy, effectively automating model compression within standard optimization routines.
Introduction
Modern deep learning models often contain millions of parameters, making them prone to overfitting and difficult to deploy on resource-constrained edge devices. Traditionally, researchers have addressed these issues through separate pipelines: feature selection before training, weight regularization (like $L_2$ or $L_1$) during training, and pruning after training.
However, these disjointed steps are inefficient. Standard $L_1$ regularization (Lasso) produces "unstructured sparsity," where zeroed-out weights are scattered randomly. This does not allow for actual hardware acceleration or memory reduction, as the full weight matrices must still be processed. To achieve true model compression, we require "structured sparsity"—the ability to remove entire neurons or input features altogether.
Methodology: Structured Sparsity via Grouping
The core innovation of this work is the extension of the Group Lasso penalty to deep neural architectures. Instead of penalizing individual weights, we define groups based on the network's topology. Specifically, a group consists of all outgoing connections from a single unit.
As shown in Figure 1, these groups can represent:
- Input Groups: All connections from a single input feature. If the group is zeroed, the feature is selected out.
- Hidden Groups: All connections from a hidden neuron. If zeroed, the neuron is pruned.
- Bias Groups: The bias terms associated with neurons.
By applying the $L_{2,1}$ norm (Group Lasso), the optimizer is encouraged to set entire groups of weights to zero simultaneously. To further refine the model, we utilize Sparse Group Lasso (SGL), which adds an additional $L_1$ penalty to the surviving groups. This results in a "doubly sparse" architecture where unnecessary neurons are removed, and the remaining neurons have sparse connections.
Key Insights: Structured vs. Unstructured Sparsity
The distinction between standard Lasso and the proposed Group Sparse methods is critical for practical deployment. While Lasso can achieve high percentages of zero-valued weights, the remaining non-zero weights are distributed such that the matrix dimensions remain unchanged.
As illustrated in Figure 2, Group Lasso and SGL physically shrink the weight matrices. This "structured" approach translates directly to reduced memory footprints and faster inference times on hardware, as entire rows or columns of the weight matrices can be discarded.
Experimental Evaluation
We evaluated the SGL approach on several benchmarks, including the MNIST handwritten digit dataset and the Sensorless Drive Diagnosis (SDD) dataset.
- Feature Selection: On MNIST, SGL automatically identified and removed over 200 irrelevant input features (primarily the empty border pixels), significantly outperforming standard $L_1$ which only removed 126.
- Neuron Pruning: The number of active hidden neurons was reduced from 676 (with standard $L_2$ weight decay) to approximately 581 using SGL, without any loss in test accuracy.
- High Sparsity: In certain layers of the MNIST network, SGL achieved up to 96% sparsity.
Crucially, the computational overhead of SGL is minimal. While it requires square root operations during the gradient update, the training time remains comparable to standard regularization techniques, making it a practical drop-in replacement for existing loss functions.
Conclusion
Sparse Group Lasso provides a mathematically principled way to unify feature selection, pruning, and weight optimization into a single training step. By favoring structured sparsity, SGL creates models that are not just sparse in theory, but compact and efficient in practice. Future work will explore extending this formulation to more complex architectures, such as Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs).
Summary updated