TL;DR
Imagine trying to erase sensitive facts from a Large Language Model (LLM) without ruining its general intelligence—a classic "hierarchical" optimization problem where both goals involve messy, nonconvex neural networks and noisy mini-batch gradients. Existing methods break down here because the mathematical balancing weight between the two objectives blows up to infinity as you approach a solution. This paper introduces a family of single-loop algorithms that tame this explosion through clever denominator perturbations and penalty regularizations, delivering the first explicit convergence guarantees for stochastic, fully nonconvex simple bilevel optimization.
What Problem Does This Paper Address?
In simple bilevel optimization, you have two goals over the same variable: you want to minimize an upper-level objective $f(x)$, subject to $x$ already being a minimizer of a lower-level objective $g(x)$. Take LLM unlearning: your primary mandate (lower level) is to minimize a "forget" loss so sensitive data is erased, and among all model weights that achieve that, you want to pick the one that best preserves general utility on a "retain" dataset (upper level).
When both $f$ and $g$ are nonconvex (like deep neural networks) and we can only afford noisy mini-batch gradients (the stochastic setting), we hit a wall. A natural deterministic approach called Dynamic Barrier Gradient Descent (DBGD) combines the gradients $\nabla f$ and $\nabla g$ using an adaptive balancing weight—a dual multiplier $\lambda_k$—that divides by $\|\nabla g(x_k)\|^2$.
Here is the catch: as you get close to solving the lower-level problem, $\nabla g(x_k)$ shrinks toward zero, causing $\lambda_k$ to diverge. In deterministic settings with exact gradients, this divergence is delicately controlled. Throw in mini-batch noise, however, and you are dividing by a noisy, near-zero random variable that is correlated with the numerator. The estimator becomes biased, its variance explodes, and optimization destabilizes. Prior to this work, no algorithm offered joint stationarity guarantees for both levels in this stochastic, nonconvex-nonconvex regime.
Methods
Instead of resorting to expensive multi-loop inner solvers, the authors keep DBGD's fast, single-loop spirit and introduce three progressively refined algorithms:
- SDBPG (Stochastic Dynamic Barrier Perturbed Gradient): Adds a small perturbation $\gamma_k > 0$ directly into the dual multiplier's denominator, turning $\|\nabla \tilde{g}_k\|^2$ into $\|\nabla \tilde{g}_k\|^2 + \gamma_k$. This acts like a shock absorber, preventing division-by-zero blowups. It also uses an independent mini-batch "detector" to zero out the multiplier if the optimizer wanders into a "bad region" where $\nabla g$ is tiny and points opposite to $\nabla f$.
- PR-SDBPG (Penalty-Regularized SDBPG): SDBPG's guarantees still rely on assuming the optimizer rarely visits that "bad region." To drop this assumption completely, PR-SDBPG redesigns the subproblem from the ground up as an unconstrained penalty objective with a fixed constant $\gamma > 0$ in the denominator. This keeps the multiplier uniformly bounded everywhere and allows fixed mini-batch sizes set a priori.
- VR-PR-SDBPG: Because PR-SDBPG requires very large mini-batches to keep gradient bias down, the authors weave in STORM-type momentum variance reduction to track gradients across steps, shrinking the required sample complexity.
Datasets
The authors evaluate their algorithms on an LLM unlearning task using instruction-tuned LLMs across two established benchmark datasets (no new datasets are introduced):
- TOFU
- MUSE-News
Each benchmark splits data into a forget dataset (for the lower-level negative preference optimization loss) and a retain dataset (for the upper-level cross-entropy loss).
Key Insights and Ideas
- Control the product, not the multiplier: Even when the true multiplier $\lambda_k$ grows huge near lower-level stationary points, what actually drives the update step is the product $\lambda_k \nabla g(x_k)$, which stays well-behaved.
- Dodging correlated mini-batch traps via joint Lipschitz analysis: Because $\nabla \tilde{g}_k$ appears in both the numerator and denominator of the stochastic multiplier, you cannot analyze them separately using standard independence tricks. The authors instead analyze the entire vector map $T_\gamma(u, v) = \frac{\langle u, v \rangle}{\|v\|^2 + \gamma} v$ jointly, cleanly bounding bias and variance in one stroke.
- Why a fixed $\gamma$ works in PR-SDBPG: In SDBPG, $\gamma_k$ perturbs the original multiplier post-hoc, creating bias unless $\gamma_k \to 0$. By baking $\gamma$ into a normalized penalty objective in PR-SDBPG, any residual error is controlled by the barrier weight $\beta$ rather than $\gamma$, meaning $\gamma$ can stay fixed (e.g., $\gamma = 1$) without ruining stationarity.
Key Results
- First Joint Theoretical Bounds: To reach an $(\epsilon, \epsilon)$-stationary point, SDBPG requires $\mathcal{O}(\epsilon^{-4})$ upper-level and $\mathcal{O}(\epsilon^{-6})$ lower-level gradient evaluations when expected bad-region visits are uniformly bounded ($\delta = 1/2$). Without any rare-visit assumption, PR-SDBPG achieves $\mathcal{O}(\epsilon^{-8})$ and $\mathcal{O}(\epsilon^{-10})$, which VR-PR-SDBPG sharpens by two orders of magnitude to $\mathcal{O}(\epsilon^{-6})$ and $\mathcal{O}(\epsilon^{-8})$.
- Empirical Speedups on LLM Unlearning: Across both TOFU and MUSE-News, all three stochastic methods outperform deterministic DBGD in both sample efficiency and wall-clock time. SDBPG converges fastest, followed by VR-PR-SDBPG and PR-SDBPG—matching the exact hierarchy predicted by the theory. Furthermore, SDBPG rarely triggered bad-region visits in practice, even when initialized near a lower-level stationary point.
Limitations and Future Work
- Tradeoff between assumptions and sample cost: SDBPG enjoys the best sample complexity, but its guarantee is conditional on a trajectory-dependent "rare-visit" assumption that cannot be verified beforehand from stochastic oracles alone. Removing this assumption (via PR-SDBPG and VR-PR-SDBPG) comes at the price of steeper $\epsilon$ dependencies ($\mathcal{O}(\epsilon^{-6})$ to $\mathcal{O}(\epsilon^{-10})$) and, for VR-PR-SDBPG, an extra mean-square smoothness assumption.
- Bounded gradient assumptions: The theoretical proofs assume uniformly bounded gradients, which technically doesn't hold globally for neural networks—though the authors note the proofs still go through as long as the generated iterates stay within a bounded region.
- Open theoretical question: The authors conjecture that some trajectory condition like their rare-visit assumption may be fundamentally necessary for any stochastic DBGD-type method to match deterministic convergence rates. Proving or disproving this remains an open frontier.
Summary updated