Adaptive Batch Size for Privately Finding Second-Order Stationary Points

Daogao Liu, Kunal Talwar

In the realm of non-convex optimization—the mathematical engine powering modern deep learning—finding a point where the gradient is zero is often insufficient. These points, known as First-Order Stationary Points (FOSPs), can sometimes be "saddle points": precarious locations in the loss landscape that look like a minimum from one direction but a maximum from another. To ensure an algorithm has truly found a local minimum, it must seek a Second-Order Stationary Point (SOSP).

Achieving this while maintaining Differential Privacy (DP) introduces significant friction. DP requires adding statistical noise to the optimization process, making the already difficult task of navigating complex loss landscapes even harder. A recent paper by Daogao Liu and Kunal Talwar demonstrates that the machine learning community has historically overestimated the privacy cost of these higher-order guarantees. By introducing adaptive batch sizes and a binary tree noise mechanism, the authors prove that escaping saddle points under differential privacy is theoretically "free."

The Challenge: Escaping Saddle Points Privately

In standard non-convex optimization, gradient descent can easily get trapped near saddle points. Escaping them typically requires second-order information about the landscape's curvature (the Hessian matrix). Under Differential Privacy, every piece of information extracted from the training data—whether gradients or Hessians—requires the injection of noise to protect individual privacy.

Previous research attempted to bridge the theoretical gap between finding FOSPs and SOSPs but encountered two major obstacles. First, a technical flaw was discovered in prior work (such as Ganesh et al., 2023) regarding how "stuck" regions were handled, which led to weaker theoretical guarantees than originally claimed. Second, existing results implied a fundamental complexity gap: finding an SOSP appeared to require either more data or more noise than finding an FOSP.

This paper asks a pivotal question: Is finding an SOSP actually harder, or were previous algorithms simply inefficient?

Methodology: Adaptive Batching and Tree Mechanisms

To answer this, the authors build upon the SpiderBoost framework—a popular variance-reduction method—and introduce three critical innovations to make it privately efficient.

1. The Binary Tree Mechanism

Standard private algorithms often add Gaussian noise at every single iteration. Over thousands of steps, this noise accumulates, heavily obscuring the true gradient. To combat this, the authors employ a Binary Tree Mechanism. This approach organizes gradient updates hierarchically so that the total noise added to any specific estimate grows only logarithmically with the number of steps, rather than polynomially.

2. Adaptive Batch Sizes

This is the paper's most novel contribution. Traditionally, DP algorithms use a fixed batch size. However, the "sensitivity" of a gradient update—how much a single individual's data can alter the result—depends heavily on the step size. If an algorithm takes a large step, it has high sensitivity and requires more noise; a small step has low sensitivity but makes little progress.

The authors resolve this paradox by dynamically adjusting the batch size $B_t$ to be proportional to the distance moved in the previous step ($\Vert x_t - x_{t-1} \Vert$). This adaptive batching allows the algorithm to control variance and sensitivity simultaneously, ensuring that when the optimizer takes a large step, it pulls from a sufficiently large batch of data to absorb the required privacy noise.

3. Hessian-Informed Escape

When the gradient becomes too small, suggesting the optimizer is near a potential saddle point, the algorithm triggers a specialized sub-procedure. It computes a private estimate of the Hessian matrix to perform a "stochastic power iteration." This effectively identifies the direction of steepest descent, allowing the algorithm to roll off the saddle point and continue minimizing the loss.

Key Theoretical Results

As a purely theoretical work, the paper evaluates its claims through mathematical proofs rather than empirical datasets, demonstrating efficacy for any loss function satisfying standard smoothness and Lipschitz assumptions.

The authors establish a new, state-of-the-art bound for the accuracy ($\alpha$) of the SOSP found:

$$\alpha = \tilde{O}\left(\frac{1}{n^{1/3}} + \left(\frac{\sqrt{d}}{n\epsilon}\right)^{1/2}\right)$$

Where $n$ is the dataset size, $d$ is the dimension, and $\epsilon$ is the differential privacy budget.

This is a massive improvement over previous corrected bounds, which featured weaker exponents of $2/5$ or $3/7$ on the privacy term. More importantly, this new bound exactly matches the best-known theoretical bound for finding a simple FOSP. This confirms the "SOSP for free" hypothesis: the privacy cost of checking curvature and escaping saddle points does not add to the leading error term of the optimization process.

Limitations and Future Directions

While the theoretical implications are profound, the paper outlines several areas for future exploration:

  • Dimensionality: The $1/n^{1/3}$ term is known to be optimal for high-dimensional settings, but it remains an open question whether this bound can be tightened for low-dimensional problems.
  • Computational Overhead: While the privacy cost of finding an SOSP is effectively free, the computational cost of estimating Hessians and dynamically managing adaptive batches is significantly higher than standard DP-SGD.
  • Practical Implementation: Because this is a theoretical foundation, future empirical work will be needed to determine how sensitive the hyperparameters for adaptive batching are in real-world training pipelines.

Ultimately, this research successfully corrects the record on private non-convex optimization, proving that we do not have to sacrifice model quality at saddle points to maintain rigorous privacy guarantees.

Summary updated

BibTeX
@inproceedings{liu2025adaptive,
  author = {Daogao Liu and Kunal Talwar},
  title = {{Adaptive Batch Size for Privately Finding Second-Order Stationary Points}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ikkvC1UnnE},
}
Figure