techlist.io

Hard Concrete Distribution

1 posts

OpenAI2017-12-032 min readCurated summary

Learning sparse neural networks through L₀ regularization

This paper proposes a practical way to apply L₀ norm regularization to neural networks, pruning the network during training by pushing weights to become exactly zero. The authors argue this can speed up training and inference and improve generalization. Because the L₀ norm is non-differentiable, they make it trainable by attaching stochastic gates to the weights and optimizing the gate distributions jointly with the network parameters using standard stochastic gradient descent. ## Why L₀ Regularization Is Hard to Apply - Exact sparsity is attractive because it corresponds to model selection, and AIC and BIC are special cases of L₀ regularization. - The L₀ norm of the weights is non-differentiable, so it cannot be added directly to the objective function as a regularization term. ## Stochastic Gates as a Workaround - A collection of non-negative stochastic gates determines which weights are set to zero. - For certain gate distributions, the expected L₀ norm of the gated weights is differentiable with respect to the distribution parameters, which makes it usable in gradient-based training. - The gate distribution is a "hard concrete" distribution, built by stretching a binary concrete distribution and passing its samples through a hard-sigmoid. ## Benefits of the Approach - Model structure can be learned with ordinary stochastic gradient descent, without a separate pruning stage. - Conditional computation can be handled in a principled way, since gated-off weights need not be computed. - The authors report experiments showing the effectiveness of both the approach and the regularizer, though the excerpt does not include their specific results.