Safe Gradient Flow for Bilevel Optimization

Sina Sharifi, Nazanin Abolfazli, Erfan Yazdandoost Hamedani, Mahyar Fazlyab
1/27/2025
math.OCcs.LGeess.SY

No official code found. Best implementation: o4lc/SGF-BLO (0 stars, Apache-2.0, last commit 2025-08-12).

Abstract

Bilevel optimization is a key framework in hierarchical decision-making, where one problem is embedded within the constraints of another. In this work, we propose a control-theoretic approach to solving bilevel optimization problems. Our method consists of two components: a gradient flow mechanism to minimize the upper-level objective and a safety filter to enforce the constraints imposed by the lower-level problem. Together, these components form a safe gradient flow that solves the bilevel problem in a single loop. To improve scalability with respect to the lower-level problem's dimensions, we introduce a relaxed formulation and design a compact variant of the safe gradient flow. This variant minimizes the upper-level objective while ensuring the lower-level decision variable remains within a user-defined suboptimality. Using Lyapunov analysis, we establish convergence guarantees for the dynamics, proving that they converge to a neighborhood of the optimal solution. Numerical experiments further validate the effectiveness of the proposed approaches. Our contributions provide both theoretical insights and practical tools for efficiently solving bilevel optimization problems.

View on arXivView PDF

Code Implementations(1)

o4lc/SGF-BLOCommunity100%
Apache-2.0

Safe Gradient Flow for Bilevel Optimization

01Shell, PythonJan 27, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{sharifi2025safe,
  title  = {Safe Gradient Flow for Bilevel Optimization},
  author = {Sina Sharifi and Nazanin Abolfazli and Erfan Yazdandoost Hamedani and Mahyar Fazlyab},
  year   = {2025},
  eprint = {2501.16520},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.16520v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.16520.svg)](https://codeofpaper.com/paper/2501.16520)

Discussion