[Paper Review] Auto-Sizing Neural Networks: With Applications to n-gram Language Models
This paper proposes an auto-sizing method for feedforward neural networks that uses ∞,1 and 2,1 regularization to automatically prune redundant hidden units during training. By encouraging entire units to deactivate through group sparsity, the method produces compact, high-performing language models with minimal perplexity loss and consistent improvements in machine translation, all with a single regularization hyperparameter across diverse settings.
Neural networks have been shown to improve performance across a range of natural-language tasks. However, designing and training them can be complicated. Frequently, researchers resort to repeated experimentation to pick optimal settings. In this paper, we address the issue of choosing the correct number of units in hidden layers. We introduce a method for automatically adjusting network size by pruning out hidden units through $\ell_{\infty,1}$ and $\ell_{2,1}$ regularization. We apply this method to language modeling and demonstrate its ability to correctly choose the number of hidden units while maintaining perplexity. We also include these models in a machine translation decoder and show that these smaller neural models maintain the significant improvements of their unpruned versions.
Motivation & Objective
- To address the challenge of manually tuning hidden layer sizes in neural networks, which is time-consuming and error-prone.
- To develop a method that automatically determines optimal network size during training, eliminating the need for extensive grid searches.
- To maintain high performance in language modeling and machine translation while reducing model complexity and inference cost.
- To demonstrate that regularization-driven pruning can yield smaller, efficient models without sacrificing accuracy.
Proposed method
- Applies ∞,1 and 2,1 regularization to the objective function to encourage entire hidden units to deactivate by driving all their incoming weights to zero.
- Uses a convex regularizer that acts on groups of weights per unit, promoting sparsity at the unit level rather than individual parameters.
- Trains the network with an initial over-sized architecture and prunes inactive units post-training, resulting in a compact, optimized model.
- Employs stochastic gradient descent to minimize the regularized loss function, integrating pruning into the training process.
- Relies on activation functions like ReLU or tanh that yield zero output when all inputs are zero, enabling safe removal of pruned units.
- Tunes a single regularization coefficient (λ = 0.1) across varying network sizes, vocabulary sizes, n-gram orders, and training data sizes.
Experimental results
Research questions
- RQ1Can regularization-based pruning automatically determine the optimal number of hidden units in a neural network without manual tuning?
- RQ2Does the use of ∞,1 and 2,1 norms effectively induce group sparsity at the unit level, enabling clean removal of redundant neurons?
- RQ3Can the resulting auto-sized models maintain low perplexity on language modeling tasks despite reduced size?
- RQ4Does the method generalize across different data sizes, vocabulary sizes, and n-gram orders with a single hyperparameter setting?
- RQ5Can auto-sized neural language models improve machine translation performance when integrated into a decoder?
Key findings
- The method successfully prunes redundant hidden units, producing smaller models with minimal increase in perplexity compared to unregularized counterparts.
- A single regularization coefficient (λ = 0.1) achieves consistent performance across diverse configurations, including varying vocabulary sizes, training data sizes, and n-gram orders.
- The auto-sized models maintain nearly identical perplexity to full models, with only a small, statistically significant increase.
- When integrated into a machine translation decoder, the pruned models yield large BLEU point improvements, matching the gains of full-sized models.
- The method reduces the need for expensive, multi-dimensional grid searches by replacing layer-size hyperparameter tuning with a single regularization parameter.
- Visualization of weight matrices shows clear convergence of entire rows (units) to zero, confirming effective unit-level pruning.
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.