NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Select-then-differentiate: Solving Bilevel Optimization with Manifold Lower-level Solution Sets

Saeed Masiha, Zebang Shen, Negar Kiyavash, Niao He

NeurIPS page · Open on the map

Category: Optimization & Federated Learning › Variational Inequality and Root-Finding Acceleration · Type: new method · Keywords: bilevel optimization, optimistic selection, manifold solution sets, hyper-gradient computation, select-then-differentiate, large language model reweighting

Areas: Optimization & Algorithms › Optimization Guarantees › Bilevel Optimization

Summary

HG-MS is a select-then-differentiate method that efficiently computes hyper-gradients for bilevel optimization when the lower-level solution set is a manifold, achieving state-of-the-art performance on LLM source reweighting benchmarks.

Explained to a 5-year-old

In a two-level puzzle, the bottom level can be solved in many ways that form a smooth surface. The top level must pick one of those bottom answers to finish its own puzzle. Choosing the right answer is hard because there are many possibilities. We created a new method that picks a good bottom answer without trying every single one. This method also figures out how to improve the top puzzle quickly.

Explained to a 5-year-old, longer

Imagine a big puzzle that has two parts, one on top of the other. The bottom part can be solved in many different ways, and all those ways form a smooth surface. The top part needs to pick one of those bottom solutions to finish its own puzzle. Because there are many possible bottom answers, picking the best one can be difficult. We need a way to choose the best bottom answer without trying every possible answer. Our new method first selects a good bottom answer using a rule that prefers optimistic choices. Then it calculates how changing the top part will affect the bottom part using a special shortcut. This shortcut works like a pseudo-inverse, making the calculation fast. Even though the selection step can be non-convex, the method still converges to a good solution. The theory shows that the convergence speed depends on how many dimensions the solution surface really has, not how many the space has. In experiments, we applied the method to reweight sources for large language models. The approach achieved the best scores on math and reasoning benchmarks and performed well on instruction-following tests.

For a technical reader

The paper addresses optimistic bilevel optimization with non-isolated lower-level solution manifolds. It proves that under a local Polyak-Łojasiewicz condition, differentiability of the hyper-objective holds when the optimistic selection is unique, and provides an explicit pseudoinverse hyper-gradient formula. The proposed HG-MS method selects an optimistic minimizer and computes hyper-gradients efficiently, achieving convergence whose complexity scales with the intrinsic dimension of the solution manifold. Empirical results on LLM source reweighting demonstrate superior performance on GSM8K, MATH, and MT-Bench benchmarks.

Problem

Optimistic bilevel optimization problems can have a lower-level solution set that is not a single point but a manifold, leading to non-differentiable hyper-objectives because the upper-level criterion must choose among many optimal solutions.

Method

The approach selects an optimistic minimizer from the lower-level solution manifold and computes hyper-gradients using a pseudoinverse formula, enabling efficient optimization while accounting for the manifold structure.

Results

The approach obtains the best GSM8K/MATH scores across tested backbones and achieves competitive or best MT-Bench instruction-following results.

Contributions

The paper provides theoretical analysis showing differentiability under optimistic selection, an explicit pseudoinverse hyper-gradient formula, and HG-MS which converges with complexity depending on the intrinsic dimension of the solution manifold, along with empirical validation on LLM reweighting.

Limitations and assumptions

The analysis relies on a local Polyak-Łojasiewicz condition and assumes non-degeneracy of the selected minimizer; empirical results are limited to the tested backbones and may not generalize to all LLM families.

Practical relevance

The method enables more efficient and scalable hyperparameter optimization for models with multiple optimal solutions, such as large language models, by providing stable hyper-gradients and better performance on reasoning and instruction-following benchmarks.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction