[Paper Review] Efficient Elastic Net Regularization for Sparse Linear Models
This paper proposes a dynamic programming-based method for efficient elastic net regularization in sparse linear models, enabling constant-time closed-form updates for ℓ²₂ and elastic net penalties. By exploiting sparsity through delayed, non-zero feature updates, the approach achieves over 2000× speedup on a large-scale biomedical text dataset compared to standard dense updates.
This paper presents an algorithm for efficient training of sparse linear models with elastic net regularization. Extending previous work on delayed updates, the new algorithm applies stochastic gradient updates to non-zero features only, bringing weights current as needed with closed-form updates. Closed-form delayed updates for the $\ell_1$, $\ell_{\infty}$, and rarely used $\ell_2$ regularizers have been described previously. This paper provides closed-form updates for the popular squared norm $\ell^2_2$ and elastic net regularizers. We provide dynamic programming algorithms that perform each delayed update in constant time. The new $\ell^2_2$ and elastic net methods handle both fixed and varying learning rates, and both standard {stochastic gradient descent} (SGD) and {forward backward splitting (FoBoS)}. Experimental results show that on a bag-of-words dataset with $260,941$ features, but only $88$ nonzero features on average per training example, the dynamic programming method trains a logistic regression classifier with elastic net regularization over $2000$ times faster than otherwise.
Motivation & Objective
- To develop an efficient algorithm for training sparse linear models with elastic net regularization that scales with non-zero features rather than full dimensionality.
- To extend prior work on closed-form delayed updates from ℓ₁ and ℓ∞ norms to the widely used ℓ²₂ and elastic net regularizers.
- To enable both fixed and decreasing learning rates in stochastic gradient descent and forward-backward splitting (FoBoS) while maintaining constant-time update complexity.
- To demonstrate that sparsity exploitation during both gradient computation and regularization updates leads to substantial performance gains in real-world datasets.
Proposed method
- The method uses dynamic programming to compute closed-form, constant-time updates for ℓ²₂ and elastic net regularizers, even with varying learning rates.
- It maintains a running state of cumulative terms (e.g., Φ(t) and β(t)) to avoid recomputing products and sums over time steps.
- Only non-zero features in each sparse example are updated, and weights are brought up to date via precomputed formulas when needed.
- The algorithm supports both standard SGD and FoBoS, with delayed updates applied only to active features.
- The dynamic programming state is updated incrementally at each time step, ensuring O(1) per-update complexity.
- A space-efficient variant periodically brings all weights current, amortizing the cost across updates to avoid excessive memory usage.
Experimental results
Research questions
- RQ1Can closed-form, constant-time updates be derived for ℓ²₂ and elastic net regularizers under varying learning rates in stochastic optimization?
- RQ2How much performance gain can be achieved by combining sparsity in data with sparsity-aware regularization updates in linear models?
- RQ3Does the proposed dynamic programming approach maintain numerical stability and correctness while significantly reducing training time?
- RQ4To what extent does the method scale in practice on high-dimensional, sparse datasets like bag-of-words text representations?
Key findings
- On a bag-of-words dataset with 1 million documents and 260,941 features, the proposed method trained a logistic regression classifier with elastic net regularization over 2000 times faster than standard dense updates.
- Even when both methods exploited sparsity during prediction, the lazy update method was still 1400 times faster than the non-lazy baseline.
- The dynamic programming approach achieved constant-time updates per feature, with space complexity O(T) but amortized time cost negligible due to periodic weight synchronization.
- The method correctly reproduced the same model weights as standard FoBoS on a synthetic dataset, confirming correctness.
- The speedup was robust across both SGD and FoBoS optimization schemes, demonstrating broad applicability.
- The overhead of dynamic programming calculations did not erode the benefits of sparsity, confirming that the method is both efficient and practical.
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.