Graph reconstruction from partial observations often comes with structural side information, such as degree bounds, triangle counts, or an edge-density band. Prior-Informed Flow Matching (PIFM) reconstructs graphs by transporting a local prior toward the graph distribution, but it provides no mechanism to incorporate this side information. We put forth Constrained Primal-Dual PIFM (CPD-PIFM), which augments the sampler with Lagrange multipliers that evolve along each trajectory. The multipliers respond to constraint violations at a predicted endpoint and guide subsequent sampling steps without retraining. We prove that the sampler inherits PIFM's permutation equivariance and bound its expected terminal slack by a term that decays as the inverse square root of the number of steps, plus two approximation terms. On three link-prediction benchmarks and nine combinations of datasets and constraints, CPD-PIFM raises feasibility by 11-26 percentage points and remains competitive with fixed guidance without selecting a separate multiplier for each constraint.
Figures & tables
Figure 1: (a) PROTEINS with competing edge-floor and degree-cap constraints. Curves show feasibility versus K for PIFM and for CPD-PIFM with increasing and decaying schedules for λk . (b)–(c) ENZYMES with tri≥10 . Each panel shows triangle counts on full reconstructions from 200 paired samples of one partially observed graph; only the Gaussian source noise changes. In (b), P(feasible) changes from 0.105 to 1.00 , and the mean (triangle markers) changes from 7.0 to 22.7 . In (c), feasibility stays at 1.00 , and the mean changes from 22.7 to 23.0 .
Feas. % ↑
AUC ↑
MMD ↓
Constraint
PIFM
CPD
PIFM
CPD
PIFM
CPD
ENZYMES
deg. cap
83.2±7.4
99.4±1.4
.550
.554
.205
.204
tri. floor
74.2±4.0
99.4±1.4
.552
.579
.222
.318
mixture
47.1±5.9
71.0±6.0
.560
.576
.243
.199
competing
43.9±10.4
69.7±8.7
.551
.561
.225
.172
Table 1: Effect of CPD guidance by constraint at K=32 , averaged over five test seeds. S.d. is shown for feasibility only; the s.d. of the paired AUC and MMD changes is at most 0.010 and 0.07 .
Fixed η=0.1
Fixed η=1.6
CPD-PIFM
Constraint
Feas
AUC
MMD
Feas
AUC
MMD
Feas
AUC
MMD
ENZYMES
deg. cap
93.5
.569
.210
100
.572
.597
100
.567
.195
tri. floor
74.2
.578
.195
100
.618
1.007
100
.590
.385
mixture
58.1
.603
.204
80.6
.681
.199
74.2
.599
.168
competing
58.1
.567
.213
74.2
.610
.081
80.6
.568
.184
Table 2: Fixed guidance and CPD-PIFM at K=32 , single seed. Both fixed multipliers η are shared across all settings; PROTEINS edge-band gradients cancel under shared η , so fixed guidance equals PIFM. Feasibility is reported as a percentage; the highest in each setting is in bold.
School of Mathematical Science Capital Normal University Beijing, 100048, China · Academy for Multidisciplinary Studies Capital Normal University2026 Beijing, 100048, China