A new computational framework for log-concave density estimation

Wenyu Chen, Rahul Mazumder, Richard J. Samworth

Abstract

Estimating log-concave densities is a powerful nonparametric statistical tool, but computing the maximum likelihood estimator (MLE) is notoriously slow due to a non-smooth optimization problem. This paper introduces a new computational framework using Nesterov and randomized smoothing, combined with dynamically increasing integration grids. The result is a massive speedup—reducing computation time from over 20 hours to just minutes for large datasets—while achieving a near-optimal $\tilde{O}(1/T)$ theoretical convergence rate.

Introduction

In statistics, log-concave density estimation is a highly attractive method for nonparametric inference. It allows researchers to estimate probability distributions without choosing arbitrary tuning parameters (like the bandwidth in kernel density estimation), while preserving nice mathematical properties such as stability under marginalization and conditioning.

However, computing the log-concave MLE is a significant computational challenge. The objective function to be minimized is a non-smooth convex function. Furthermore, evaluating this function and its gradients requires computing an integral over the convex hull of the data points. Existing state-of-the-art methods, such as the R package LogConcDEAD, compute this integral exactly using computational geometry (triangulation). Because triangulation scales poorly in higher dimensions—up to $O(n^{d/2})$—the algorithm becomes impractical for large datasets. For instance, fitting a model on 10,000 data points in 4 dimensions can take nearly a full day.

Methods

To bypass the computational bottleneck, the authors reframe the problem using stochastic first-order optimization and introduce several key innovations:

  1. Subdifferential via Linear Programming: They demonstrate that the non-differentiability of the objective function stems from a specific Linear Program (LP) having multiple optimal solutions.
  2. Smoothing the Objective: To make the problem amenable to gradient-based methods, they apply two smoothing techniques:
  3. Nesterov Smoothing: Replaces the LP with a strictly convex Quadratic Program (QP), making the objective smooth and differentiable.
  4. Randomized Smoothing: Adds random noise to the inputs, effectively blurring the sharp, non-smooth corners of the objective function.
  5. Accelerated Dual Averaging with Increasing Grids: Instead of computing the exact integral, they approximate it using numerical grids (either deterministic Riemann sums or Monte Carlo random sampling). Crucially, they increase the grid size as the iterations progress. Early on, a coarse grid provides fast, rough gradients; as the algorithm hones in on the solution, a finer grid provides the necessary precision.
  6. Generalization: They extend this framework beyond log-concave densities to broader classes, such as $s$-concave and quasi-concave densities.
An illustration of a tent function, representing the geometric structure of a log-concave density estimator.

Key Insights

  • Dynamic grids break the stochastic speed limit: Standard stochastic optimization methods usually hit a convergence wall of $O(1/\sqrt{T})$. By mathematically proving that they can systematically increase the integration grid size over time, the authors achieve a much faster $\tilde{O}(1/T)$ convergence rate on the objective function scale.
  • Optimization error vs. Statistical error: The authors prove that perfect optimization is unnecessary. Once the optimization error drops below the inherent statistical error of the data sample, further computation provides no statistical benefit. Their method reaches this "good enough" threshold incredibly fast.
  • LPs beat QPs in practice: While Nesterov smoothing (using QPs) and Randomized smoothing (using LPs) both work theoretically, Randomized smoothing proved faster in practice. Off-the-shelf solvers handle the specific structure of these LPs more efficiently than the QPs.

Empirical Results

The authors evaluated their algorithms on both synthetic and real-world datasets, focusing on $d=4$ dimensions and large sample sizes ($n \in \{5000, 10000\}$). Real-world data included stock returns, census tracts, and gas turbine sensor measurements.

  • Theoretical Guarantees: The authors provide rigorous proofs that their algorithm converges at a rate of $\tilde{O}(1/T)$ both in expectation and with high probability.
  • Massive Speedups: On synthetic datasets with $n=10,000$ and $d=4$, the baseline exact method (LogConcDEAD) took over 20 hours. The proposed Randomized Smoothing method with a Deterministic Increasing grid (RS-DI) finished in ~35 minutes—a roughly 50x speedup.
  • Reliability: On real-world datasets, the proposed methods consistently achieved the same statistical accuracy as exact methods but in a fraction of the time.

Limitations and Future Work

While the method is vastly superior to exact triangulation, numerical integration grids still scale poorly with dimension. The experiments are limited to $d=4$; scaling to much higher dimensions ($d \ge 10$) remains a fundamental challenge. Additionally, for $s$-concave densities where $s < 0$, the MLE cannot be computed via convex optimization, requiring alternative workarounds. Future advances in log-concave sampling could be integrated into this framework to further improve high-dimensional scaling.

Summary updated

BibTeX
@article{chen2024new,
  author = {Wenyu Chen and Rahul Mazumder and Richard J. Samworth},
  title = {{A new computational framework for log-concave density estimation}},
  journal = {Math. Program. Comput.},
  year = {2024},
  doi = {10.1007/s12532-024-00252-0},
}
Figure