Generalized Additive Models (GAMs) represent a powerful middle ground in machine learning, offering the interpretability of linear models alongside the flexibility of non-linear functions. By modeling outputs as a sum of smooth functions of individual features—$f(x) = \sum f_j(x_j)$—GAMs allow practitioners to visualize exactly how each variable influences a prediction. However, as datasets have grown into the millions of samples and thousands of features, traditional GAM estimation methods have hit a computational wall.
This paper introduces DSGAM (Doubly Stochastic Generalized Additive Models), a novel optimization framework that enables GAMs to scale efficiently to massive datasets for the first time.
Addressing the Triple Challenge
Historically, three primary bottlenecks have prevented GAMs from scaling to "Big Data" levels:
- Massive Parameters (MP): Non-linear functions are typically represented using basis functions (like splines). This leads to a parameter space that scales with the product of the number of features and the number of basis functions per feature.
- Orthogonal Decomposition (OD): Standard algorithms require orthogonalizing these basis functions. This process often involves matrix decompositions (e.g., QR or Eigen) with a cubic cost relative to the number of samples ($O(n^3)$), making it prohibitive for large $n$.
- Proximal Operator Bottlenecks (TCSPO): Using non-orthogonal bases to save time introduces mathematical complexities in regularization, making the "proximal operator" (used to prevent overfitting) computationally expensive.
As shown in the comparison above, existing methods like Backfitting and Block Coordinate Descent (BCD) fail to address at least one of these challenges, whereas DSGAM is designed to handle all of them simultaneously using a doubly stochastic approach.
The DSGAM Framework
The authors overcome these hurdles through a combination of three key innovations:
- Non-orthogonal Basis Functions: DSGAM abandons the requirement for orthogonal bases. By using efficient B-splines or Random Fourier Features directly, it avoids the $O(n^3)$ pre-processing cost.
- The Wrapper Algorithm: To handle the complex regularization math associated with non-orthogonal bases, the authors introduce an auxiliary variable trick. This "decouples" the loss function from the regularization term, transforming a difficult constrained problem into a simpler unconstrained one.
- Doubly Stochastic Gradient (DSG): This is the core engine of the algorithm. While standard SGD samples data points and Coordinate Descent samples features, DSGAM does both. In each iteration, it updates only a tiny fraction of the total parameter set by picking a mini-batch of samples and a subset of feature coordinates.
Experimental Results and Key Insights
The algorithm was rigorously tested on eight large-scale benchmark datasets (e.g., year, blog, flora) with up to 460,000 samples and 200,000 features.
Key Findings: * Efficiency: DSGAM achieved dramatic speedups. On the year dataset, it converged to a low Mean Squared Error (MSE) while traditional methods were still in early computation phases. * Scalability: The running time of DSGAM grows much more slowly as the number of features increases compared to BCD or Backfitting. * Theoretical Soundness: Crucially, this work provides the first formal proof of a fast convergence rate for a large-scale GAM algorithm, ensuring that the speed gains do not come at the cost of mathematical reliability.
Conclusion
DSGAM represents a significant step forward for interpretable machine learning. By proving that orthogonality is a luxury rather than a necessity and leveraging "double" sampling, the authors have made it possible to apply the transparency of additive models to the scale of modern big data. Future work may extend this approach to include interaction terms (GA2Ms), further closing the gap between interpretability and predictive power.
Summary updated