Papers
Topics
Authors
Recent
Search
2000 character limit reached

Bilevel Local Operator Learning (BiLO)

Updated 7 July 2026
  • BiLO is a neural network framework that formulates PDE inverse problems as a bilevel optimization, combining data loss minimization and local operator training.
  • It employs a locally trained surrogate model to accurately approximate the PDE solution operator, facilitating robust and efficient descent direction estimation.
  • The Bayesian extension integrates LoRA for low-rank adaptation, enabling fast posterior sampling and calibrated uncertainty quantification in complex inverse problems.

Bilevel Local Operator Learning (BiLO) is a neural network based method for solving inverse problems for partial differential equations (PDEs) by formulating the PDE inverse problem as a bilevel optimization problem. At the upper level, it minimizes the data loss with respect to the PDE parameters. At the lower level, it trains a neural network to locally approximate the PDE solution operator in the neighborhood of a given set of PDE parameters, which enables an accurate approximation of the descent direction for the upper level optimization problem. In the second part of the series, the same framework is extended to the Bayesian inference framework: at the lower level, a network approximates the local solution operator by minimizing the local operator loss with respect to the weights of the neural network, and at the upper level, the PDE parameters are sampled from the posterior distribution (Zhang et al., 2024, Zhang et al., 22 Jul 2025).

1. Deterministic bilevel formulation

In the deterministic formulation, the spatial, or spatial-temporal, domain is denoted by ΩRd\Omega \subset \mathbb{R}^d, the data-collocation points by TT, and the observed data by uobs(x)u_{\mathrm{obs}}(x) at xTx \in T. The PDE is assumed to take the form

F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,

where ΘRp\Theta \in \mathbb{R}^p are the unknown PDE parameters. BiLO introduces a neural network u(x,Θ;W)u(x,\Theta;W) parameterized by weights WW to locally approximate the solution operator u(x;Θ)u(x;\Theta) in a neighborhood of the current Θ\Theta (Zhang et al., 2024).

The upper-level loss is the data-mismatch

TT0

The lower-level construction begins with the pointwise residual

TT1

It then penalizes both the squared residual and its sensitivity to TT2:

TT3

TT4

The local operator loss is

TT5

where TT6 is a small constant, for example TT7, that controls the strength of the residual-gradient term.

The bilevel problem is

TT8

The stated role of the lower level is not to produce a global neural surrogate over the full parameter space, but to provide a local surrogate accurate enough to supply a descent direction for the upper-level optimization.

2. Joint gradient descent and the local-operator mechanism

BiLO solves the two levels simultaneously by gradient descent rather than an inner-outer loop because TT9 need only be accurate enough to give a descent direction uobs(x)u_{\mathrm{obs}}(x)0. The scalar-parameter algorithm takes as input data collocation sets uobs(x)u_{\mathrm{obs}}(x)1 and uobs(x)u_{\mathrm{obs}}(x)2, an initial PDE guess uobs(x)u_{\mathrm{obs}}(x)3, network weights uobs(x)u_{\mathrm{obs}}(x)4, a pretraining solution uobs(x)u_{\mathrm{obs}}(x)5 at uobs(x)u_{\mathrm{obs}}(x)6 as an optional input, and learning rates uobs(x)u_{\mathrm{obs}}(x)7 and uobs(x)u_{\mathrm{obs}}(x)8 (Zhang et al., 2024).

Optional pretraining minimizes

uobs(x)u_{\mathrm{obs}}(x)9

with

xTx \in T0

Fine-tuning then applies simultaneous steps for xTx \in T1:

  1. compute xTx \in T2 via autodiff through xTx \in T3;
  2. compute xTx \in T4;
  3. update

xTx \in T5

xTx \in T6

In practice, the reported implementation uses ADAM with xTx \in T7 and xTx \in T8. The implementation details further specify pretraining xTx \in T9 for F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,0k steps on F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,1 and fine-tuning for F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,2k steps by joint GD. The explicit methodological claim is that BiLO enforces strong PDE constraints and eliminates the need to balance the residual and the data loss, which is inherent to the soft PDE constraints in many existing methods.

3. Network architecture and enforcement of boundary or initial conditions

For scalar F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,3, the reported architecture begins with an embedding layer

F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,4

where F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,5, F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,6 is a fixed random matrix, F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,7, and F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,8. The hidden portion consists of F(Dku(x),,Du(x),u(x),Θ)=0,F(D^k u(x), \ldots, Du(x), u(x), \Theta)=0,9 fully connected layers of width ΘRp\Theta \in \mathbb{R}^p0 with ΘRp\Theta \in \mathbb{R}^p1 activations, and the output layer is a single scalar ΘRp\Theta \in \mathbb{R}^p2 (Zhang et al., 2024).

Boundary-condition enforcement is handled by output transformations. For Dirichlet data ΘRp\Theta \in \mathbb{R}^p3 on ΘRp\Theta \in \mathbb{R}^p4, the construction

ΘRp\Theta \in \mathbb{R}^p5

is used, where ΘRp\Theta \in \mathbb{R}^p6 vanishes on ΘRp\Theta \in \mathbb{R}^p7 and ΘRp\Theta \in \mathbb{R}^p8 enforces the boundary or initial data. The implementation notes specify enforcing BC/IC via output transformations as in Section 3.1 of the paper. For unknown functions constrained by positivity, the activation is ΘRp\Theta \in \mathbb{R}^p9 for the u(x,Θ;W)u(x,\Theta;W)0-network and softplus when enforcing u(x,Θ;W)u(x,\Theta;W)1.

The reported collocation choices illustrate the discretization used in the experiments: Fisher–KPP uses u(x,Θ;W)u(x,\Theta;W)2 on a grid in u(x,Θ;W)u(x,\Theta;W)3 and u(x,Θ;W)u(x,\Theta;W)4 points at u(x,Θ;W)u(x,\Theta;W)5; the Poisson problem uses u(x,Θ;W)u(x,\Theta;W)6 points in u(x,Θ;W)u(x,\Theta;W)7; and the heat equation uses u(x,Θ;W)u(x,\Theta;W)8 in u(x,Θ;W)u(x,\Theta;W)9 and WW0 at WW1.

4. Inference of unknown functions through an auxiliary variable

When the PDE depends on an unknown function WW2, BiLO parametrizes WW3 by another network WW4, but avoids treating WW5 as an input to WW6 directly because it would be too high-dimensional. Instead, it introduces an auxiliary field

WW7

The residual is then defined with this auxiliary variable:

WW8

The data loss becomes

WW9

and regularization on u(x;Θ)u(x;\Theta)0 is

u(x;Θ)u(x;\Theta)1

or any Tikhonov penalty (Zhang et al., 2024).

The lower-level loss is

u(x;Θ)u(x;\Theta)2

with

u(x;Θ)u(x;\Theta)3

u(x;Θ)u(x;\Theta)4

The resulting bilevel problem is

u(x;Θ)u(x;\Theta)5

and is again solved by joint gradient descent on u(x;Θ)u(x;\Theta)6.

The heat-equation example is the principal illustration of this mechanism: BiLO is reported to infer an unknown initial condition from the final state and to recover non-smooth u(x;Θ)u(x;\Theta)7 robustly, while PINN requires extremely large or small u(x;Θ)u(x;\Theta)8 to even converge.

5. Reported behavior on inverse problems and relation to PINNs

The central comparison in the deterministic paper is between BiLO and PINNs with soft-constraint objective u(x;Θ)u(x;\Theta)9. The stated advantage is strong PDE fidelity: unlike PINNs’ soft-constraint Θ\Theta0, BiLO enforces zero residual and zero residual-gradient sufficiently tightly in the lower level, eliminating delicate Θ\Theta1-tuning. The other principal claim is robustness to sparse and noisy data (Zhang et al., 2024).

The Fisher–KPP reaction–diffusion experiment infers Θ\Theta2 from single-time data with Θ\Theta3–Θ\Theta4 noise; the reported result is that BiLO recovers Θ\Theta5 with Θ\Theta6 error, while PINN degrades heavily unless Θ\Theta7 is hand-tuned. In the Θ\Theta8D Poisson problem with variable diffusion Θ\Theta9, BiLO is reported to capture the “hat” shape and kink, whereas PINN either oversmooths or oscillates depending on TT00. In the nonlinear ODE system that infers TT01 in TT02, BiLO is described as stable under noise TT03, while PINN fails for most TT04.

These experiments define the framework’s practical positioning. The paper also lists suggested extensions for new PDE inverse problems: increasing network width or depth for higher-dimensional domains, combining adaptive collocation or importance sampling for TT05, leveraging multi-fidelity pretraining if a rough solver is available, and extending to time-dependent unknowns TT06 by including TT07 in the TT08-embedding. These are presented as suggestions rather than established experimental conclusions.

6. Bayesian extension, posterior sampling, and low-rank adaptation

Part II extends BiLO to the Bayesian inference framework for PDE-constrained optimization problems. The finite-dimensional parameter is written as TT09, the forward PDE is

TT10

and the local solution operator is approximated by

TT11

where TT12 are the network weights. The bilevel formulation is

TT13

with lower-level loss

TT14

and posterior

TT15

where a prior TT16 and data-misfit

TT17

are assumed (Zhang et al., 22 Jul 2025).

The upper-level Bayesian inference is solved using a gradient-based MCMC, for example Preconditioned Crank–Nicolson (pCN) or Hamiltonian Monte Carlo (HMC). At each proposed parameter TT18, the lower-level problem in TT19 is solved approximately to tolerance TT20, after which TT21 and TT22 are computed. The gradient uses TT23, obtained by automatic differentiation through the network and the PDE residual term. The combined algorithm is given as BiLO–LoRA–HMC.

To speed up repeated lower-level solves for varying TT24, Part II introduces LoRA (Low-Rank Adaptation). Let TT25 be the pre-trained network at some reference TT26. Updates are restricted to

TT27

At each MCMC step, only TT28 are optimized to solve the lower-level problem to tolerance TT29. The number of trainable parameters per leapfrog step is therefore reduced from TT30 to TT31 with TT32, and the paper states that this drastically cuts both memory and computation.

7. Error analysis and reported uncertainty-quantification results

Part II analyzes the effect of inexact lower-level optimization on both the sampler dynamics and the posterior distribution. Let TT33 denote the exact lower-level minimizer with TT34, and let TT35 be an inexact solution with TT36. Under mild assumptions, specifically PDE stability and Lipschitz bounds, the paper states two principal results: a dynamic error in the hypergradient,

TT37

and a static error in the posterior,

TT38

The stated implication is that solving the lower-level problem to tolerance TT39 perturbs both the MCMC dynamics and the target posterior only by TT40 (Zhang et al., 22 Jul 2025).

The numerical experiments are organized around three PDE inverse problems. For nonlinear Poisson, TT41, BiLO recovers TT42 and TT43 with accuracy matching a fine-grid MH reference; LoRA reduces per-step cost by factors TT44 with negligible loss in ESS or accuracy; and pCN and HMC acceptance rates are TT45 with stepsizes unreachable by BPINNs. For the TT46D point-process PDE, TT47, inference of TT48 from point data yields TT49 MAP error, and BiLO-LoRA with TT50 achieves MOSI comparable to full fine-tuning at TT51. For TT52D Darcy flow, TT53, the framework infers TT54 KL-expansion parameters of TT55 from noisy observations of TT56; BiLO + LoRA with TT57 converges TT58 faster than full fine-tuning for width TT59k networks, with TT60 TT61 error and accurate TT62 confidence intervals.

Across these examples, the paper states that BiLO–LoRA–HMC attains high-fidelity posterior inference, large-stepsize stability unlike standard BPINNs, speedups of TT63–TT64, and calibrated UQ. Taken together with Part I, this places BiLO as a bilevel framework whose defining feature is local operator learning at the lower level and parameter inference, deterministic or Bayesian, at the upper level.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Bilevel Local Operator Learning (BiLO).