Blended pairwise conditional gradients: BPCG and LazyBPCG
Sebastian Pokutta
v1 2026-11-27 · last 2026-11-29
Additional material: arXiv:2110.12650
Note: Formalizes Tsuji et al. (2021), without its application to kernel herding.
Abstract. Blended pairwise conditional gradients (BPCG) combine pairwise steps inside the active set with Frank–Wolfe steps: a step moves weight from the away vertex to the best vertex of the active set when this local gap is at least the Frank–Wolfe gap, and otherwise takes a Frank–Wolfe step. Since only Frank–Wolfe steps add vertices, drop steps are at most as many as Frank–Wolfe steps, and there are no swap steps. For a convex -smooth objective on a polytope of diameter , every run with exact line search satisfies , and for a -strongly convex objective with pyramidal width , with . The statements hold in real normed spaces, for every tie-breaking of the oracles.
Pairwise Frank–Wolfe moves weight from the away vertex to the Frank–Wolfe vertex. When the Frank–Wolfe vertex is new and the away vertex loses all its weight, the step is a swap step: the active set keeps its size and the step need not make much progress, and the known bounds on runs of swap steps involve (see Conditional gradient methods: away-step, fully-corrective and pairwise Frank–Wolfe). Blended pairwise conditional gradients avoid swap steps altogether: pairwise steps stay inside the active set, and new vertices enter only through Frank–Wolfe steps. The objects are those of Frank–Wolfe: the core, on a polytope with a finite set in a real normed space.
The algorithm¶
Convergence¶
The chosen direction has gap . It is at least the Frank–Wolfe gap, hence at least the primal gap, and at least half of , because . A step that does not drop a vertex gains at least ; for a pairwise step whose line search ends inside this uses that, by convexity, the step is optimal along the whole ray. With geometric strong convexity, , every such step contracts the primal gap by . Only Frank–Wolfe steps add vertices and only drop steps remove them, so drop steps are at most as many as the other steps, and at least half of all steps make progress.
Lazified BPCG¶
The lazified variant (Algorithm 2 of the paper) calls the linear minimization oracle only when the active set offers too little: with a gap estimate and an accuracy , it takes a local pairwise step if , a Frank–Wolfe step toward the Frank–Wolfe vertex if , and otherwise a gap step that halves .
A gap step certifies , so throughout. A local pairwise step that does not drop a vertex gains at least and a Frank–Wolfe step at least ; drop steps are at most as many as Frank–Wolfe steps. The dual-bound accounting of the core turns these outcomes into the rate, here and in the strongly convex case. The paper states case (B) as ; the formal statement gives explicit constants.
At a gap step , so geometric strong convexity gives , and after is halved. Steps that do not drop a vertex then contract the primal gap by ; before the first gap step they gain the constant . The paper states case (A) as .
Not yet covered¶
The application to kernel herding is out of scope.
The formal statements at a glance¶
/-- Theorem 3.1: BPCG converges at the rate `4 L D²/T` for convex objectives. -/
theorem convex_rate : ConvexRate := Proof.bpcg_convex_rate
/-- Theorem 3.2: BPCG converges linearly over polytopes for strongly convex objectives. -/
theorem linear_rate : LinearRate := Proof.bpcg_linear_rate
/-- Theorem 3.6, case (B), with explicit constants: lazified BPCG for convex objectives. -/
theorem lazy_convex_rate : LazyConvexRate := Proof.lazy_convex_rate
/-- Theorem 3.6, case (A), with explicit constants: lazified BPCG for strongly convex objectives. -/
theorem lazy_linear_rate : LazyLinearRate := Proof.lazy_linear_rateFormal verification — ✅ all 7 formal results are kernel-checked
◇ elaborated definition (Lean v4.35.0) BPCG step —
Lemmata.BPCG.IsBPCGStep(source)◇ elaborated definition (Lean v4.35.0) BPCG run —
Lemmata.BPCG.IsBPCGRun(source)✓ kernel-checked (Lean v4.35.0) Theorem 3.1 —
Lemmata.BPCG.convex_rate(source)✓ kernel-checked (Lean v4.35.0) Theorem 3.2 —
Lemmata.BPCG.linear_rate(source)◇ elaborated definition (Lean v4.35.0) Lazified BPCG step —
Lemmata.BPCG.IsLazyBPCGStep(source)✓ kernel-checked (Lean v4.35.0) Theorem 3.6 —
Lemmata.BPCG.lazy_convex_rate(source)✓ kernel-checked (Lean v4.35.0) Theorem 3.6 —
Lemmata.BPCG.lazy_linear_rate(source)
Checked at commit 89e42fdee8df. The formal statement is machine-checked; that it matches the prose is checked by review. What “checked” means.
Lean IsBPCGStep · ◇ elaborated · source
Definition in Lean
/-- One step of blended pairwise conditional gradients (Algorithm 1) at `x` with active set `S`
and weights `lam`, away vertex `a`, local Frank–Wolfe vertex `s` and Frank–Wolfe vertex `w`. If
`f'(x)(a - s) ≥ f'(x)(x - w)`, the step moves weight `γ` from `a` to `s` with exact line search on
`[0, λ_a]` and drops `a` when its weight is used up; otherwise it is a Frank–Wolfe step toward `w`
with exact line search on `[0, 1]`. -/
def IsBPCGStep {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : E → ℝ) (x : E)
(S : Finset E) (lam : E → ℝ) (a s w x' : E) (S' : Finset E) (lam' : E → ℝ) : Prop :=
if fderiv ℝ f x (x - w) ≤ fderiv ℝ f x (a - s) then
∃ γ ∈ Set.Icc (0 : ℝ) (lam a),
(∀ σ ∈ Set.Icc (0 : ℝ) (lam a), f (x - γ • (a - s)) ≤ f (x - σ • (a - s))) ∧
x' = x - γ • (a - s) ∧
lam' = (fun u => lam u - (if u = a then γ else 0) + (if u = s then γ else 0)) ∧
S' = if γ = lam a ∧ a ≠ s then S.erase a else S
else
∃ γ ∈ Set.Icc (0 : ℝ) 1,
(∀ σ ∈ Set.Icc (0 : ℝ) 1, f (x - γ • (x - w)) ≤ f (x - σ • (x - w))) ∧
x' = x - γ • (x - w) ∧
lam' = (fun u => (1 - γ) * lam u + (if u = w then γ else 0)) ∧
S' = if γ = 1 then {w} else insert w SLean IsBPCGRun · ◇ elaborated · source
Definition in Lean
/-- A run of blended pairwise conditional gradients on `conv V`: it starts at a vertex with active
set `{x₀}` and weight `1`, and every step is a BPCG step for some away vertex and local
Frank–Wolfe vertex of the active set and some Frank–Wolfe vertex of `V`. -/
def IsBPCGRun {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (V : Finset E) (f : E → ℝ)
(x : ℕ → E) (S : ℕ → Finset E) (lam : ℕ → E → ℝ) : Prop :=
x 0 ∈ V ∧ S 0 = {x 0} ∧ lam 0 = (fun u => if u = x 0 then 1 else 0) ∧
∀ t, ∃ a ∈ S t, (∀ u ∈ S t, fderiv ℝ f (x t) u ≤ fderiv ℝ f (x t) a) ∧
∃ s ∈ S t, (∀ u ∈ S t, fderiv ℝ f (x t) s ≤ fderiv ℝ f (x t) u) ∧
∃ w ∈ V, (∀ u ∈ V, fderiv ℝ f (x t) w ≤ fderiv ℝ f (x t) u) ∧
IsBPCGStep f (x t) (S t) (lam t) a s w (x (t + 1)) (S (t + 1)) (lam (t + 1))Lean convex_rate · ✅ kernel-checked · source
Statement in Lean
/-- Theorem 3.1: BPCG converges at the rate `4 L D²/T` for convex objectives. -/
theorem convex_rate : ConvexRatewhere ConvexRate is (source):
/-- **Convex rate.** For a convex `L`-smooth `f` on `conv V` with diameter `D`, every BPCG run
satisfies `f(x_T) - f(x⋆) ≤ 4 L D²/T` for `T ≥ 1`. -/
def ConvexRate : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] (V : Finset E) (f : E → ℝ)
(L : NNReal) (x : ℕ → E) (S : ℕ → Finset E) (lam : ℕ → E → ℝ),
0 < (L : ℝ) → ConvexOn ℝ Set.univ f → IsSmooth f L → IsBPCGRun V f x S lam →
∀ xStar ∈ minimizers (convexHull ℝ (↑V : Set E)) f, ∀ T : ℕ, 1 ≤ T →
f (x T) - f xStar ≤ 4 * L * Metric.diam (↑V : Set E) ^ 2 / TLean linear_rate · ✅ kernel-checked · source
Statement in Lean
/-- Theorem 3.2: BPCG converges linearly over polytopes for strongly convex objectives. -/
theorem linear_rate : LinearRatewhere LinearRate is (source):
/-- **Linear rate.** If moreover `f` is `μ`-strongly convex on `conv V` and `δ > 0` has the scaling
property of the pyramidal width, every BPCG run satisfies
`f(x_T) - f(x⋆) ≤ (f(x₀) - f(x⋆)) exp(-c T)` with `c = ½ min {1/2, μ δ²/(4 L D²)}`. -/
def LinearRate : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] (V : Finset E) (f : E → ℝ)
(L : NNReal) (μ δ : ℝ) (x : ℕ → E) (S : ℕ → Finset E) (lam : ℕ → E → ℝ),
0 < (L : ℝ) → 0 < μ → 0 < δ → IsScaling V δ → ConvexOn ℝ Set.univ f → IsSmooth f L →
(∀ x ∈ convexHull ℝ (↑V : Set E), ∀ y ∈ convexHull ℝ (↑V : Set E),
f x + fderiv ℝ f x (y - x) + μ / 2 * ‖y - x‖ ^ 2 ≤ f y) →
IsBPCGRun V f x S lam →
∀ xStar ∈ minimizers (convexHull ℝ (↑V : Set E)) f, ∀ T : ℕ,
f (x T) - f xStar ≤ (f (x 0) - f xStar) *
Real.exp (-(1 / 2 * min (1 / 2) (μ * δ ^ 2 / (4 * L * Metric.diam (↑V : Set E) ^ 2))) * T)Lean IsLazyBPCGStep · ◇ elaborated · source
Definition in Lean
/-- One step of lazified blended pairwise conditional gradients (Algorithm 2 of the paper) with
accuracy `J` and gap estimate `Φ`. If `f'(x)(a - s) ≥ Φ`, the step is the local pairwise step of
BPCG; otherwise, with a Frank–Wolfe vertex `w`, it is a Frank–Wolfe step if
`f'(x)(x - w) ≥ Φ/J`, and a gap step (the iterate stays and `Φ` is halved) if not. -/
def IsLazyBPCGStep {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (V : Finset E)
(f : E → ℝ) (J : ℝ) (x : E) (S : Finset E) (lam : E → ℝ) (Φ : ℝ) (a s x' : E)
(S' : Finset E) (lam' : E → ℝ) (Φ' : ℝ) : Prop :=
if Φ ≤ fderiv ℝ f x (a - s) then
(∃ γ ∈ Set.Icc (0 : ℝ) (lam a),
(∀ σ ∈ Set.Icc (0 : ℝ) (lam a), f (x - γ • (a - s)) ≤ f (x - σ • (a - s))) ∧
x' = x - γ • (a - s) ∧
lam' = (fun u => lam u - (if u = a then γ else 0) + (if u = s then γ else 0)) ∧
S' = if γ = lam a ∧ a ≠ s then S.erase a else S) ∧ Φ' = Φ
else
∃ w ∈ V, (∀ u ∈ V, fderiv ℝ f x w ≤ fderiv ℝ f x u) ∧
if Φ / J ≤ fderiv ℝ f x (x - w) then
(∃ γ ∈ Set.Icc (0 : ℝ) 1,
(∀ σ ∈ Set.Icc (0 : ℝ) 1, f (x - γ • (x - w)) ≤ f (x - σ • (x - w))) ∧
x' = x - γ • (x - w) ∧
lam' = (fun u => (1 - γ) * lam u + (if u = w then γ else 0)) ∧
S' = if γ = 1 then {w} else insert w S) ∧ Φ' = Φ
else x' = x ∧ S' = S ∧ lam' = lam ∧ Φ' = Φ / 2Lean lazy_convex_rate · ✅ kernel-checked · source
Statement in Lean
/-- Theorem 3.6, case (B), with explicit constants: lazified BPCG for convex objectives. -/
theorem lazy_convex_rate : LazyConvexRatewhere LazyConvexRate is (source):
/-- **Theorem 3.6, case (B)** (lazified BPCG for convex objectives), with explicit constants. Let
`f` be convex and `L`-smooth, `J ≥ 1` and `h₀/2 ≤ Φ₀ ≤ L D²/2`. Every run of lazified BPCG has
primal gap at most `ε > 0` after `⌈log₂ (Φ₀/ε)⌉₊ + 1 + 2 ⌈8 J² L D²/ε⌉₊` iterations. -/
def LazyConvexRate : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] (V : Finset E) (f : E → ℝ)
(L : NNReal) (J : ℝ) (x : ℕ → E) (S : ℕ → Finset E) (lam : ℕ → E → ℝ) (Φ : ℕ → ℝ),
ConvexOn ℝ Set.univ f → IsSmooth f L → 1 ≤ J → IsLazyBPCGRun V f J x S lam Φ →
∀ xStar ∈ minimizers (convexHull ℝ (↑V : Set E)) f,
(f (x 0) - f xStar) / 2 ≤ Φ 0 → Φ 0 ≤ L * Metric.diam (↑V : Set E) ^ 2 / 2 →
∀ ε : ℝ, 0 < ε → ∀ t : ℕ,
⌈Real.logb 2 (Φ 0 / ε)⌉₊ + 1 + 2 * ⌈8 * J ^ 2 * L * Metric.diam (↑V : Set E) ^ 2 / ε⌉₊ ≤ t →
f (x t) - f xStar ≤ εLean lazy_linear_rate · ✅ kernel-checked · source
Statement in Lean
/-- Theorem 3.6, case (A), with explicit constants: lazified BPCG for strongly convex objectives. -/
theorem lazy_linear_rate : LazyLinearRatewhere LazyLinearRate is (source):
/-- **Theorem 3.6, case (A)** (lazified BPCG for strongly convex objectives), with explicit
constants. Let `f` be convex, `L`-smooth and `μ`-strongly convex on `conv V`, let `δ > 0` have the
scaling property of the pyramidal width, `J ≥ 1` and `h₀/2 ≤ Φ₀ ≤ L D²/2`. Every run of lazified
BPCG has primal gap at most `ε > 0` after
`⌈log₂ (Φ₀/ε)⌉₊ + 1 + 2 ⌈4 J² L D²/Φ₀⌉₊ + 2 ⌈(16 J² L D²/(μ δ²)) ln (h₀/ε)⌉₊` iterations. -/
def LazyLinearRate : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] (V : Finset E) (f : E → ℝ)
(L : NNReal) (μ δ J : ℝ) (x : ℕ → E) (S : ℕ → Finset E) (lam : ℕ → E → ℝ) (Φ : ℕ → ℝ),
0 < μ → 0 < δ → IsScaling V δ → ConvexOn ℝ Set.univ f → IsSmooth f L →
(∀ x ∈ convexHull ℝ (↑V : Set E), ∀ y ∈ convexHull ℝ (↑V : Set E),
f x + fderiv ℝ f x (y - x) + μ / 2 * ‖y - x‖ ^ 2 ≤ f y) →
1 ≤ J → IsLazyBPCGRun V f J x S lam Φ →
∀ xStar ∈ minimizers (convexHull ℝ (↑V : Set E)) f,
(f (x 0) - f xStar) / 2 ≤ Φ 0 → Φ 0 ≤ L * Metric.diam (↑V : Set E) ^ 2 / 2 →
∀ ε : ℝ, 0 < ε → ∀ t : ℕ,
⌈Real.logb 2 (Φ 0 / ε)⌉₊ + 1 + 2 * ⌈4 * J ^ 2 * L * Metric.diam (↑V : Set E) ^ 2 / Φ 0⌉₊ +
2 * ⌈16 * J ^ 2 * L * Metric.diam (↑V : Set E) ^ 2 / (μ * δ ^ 2) *
Real.log ((f (x 0) - f xStar) / ε)⌉₊ ≤ t →
f (x t) - f xStar ≤ εAI use. The formalization and this page were developed with Claude (Anthropic) under the author’s direction and review, on top of the shared entry Frank–Wolfe: the core.
Acknowledgements. This research was conducted in the context of the Agentic AI in Mathematics (EF-LiOpt-3) project at the Berlin Mathematics Research Center MATH (EXC-2046/2, project ID 390685689), funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy. This work has been partially supported by OpenAI’s Academic Researchers program.
License: CC BY 4.0
Comments.
- Tsuji, K., Tanaka, K., & Pokutta, S. (2021). Sparser Kernel Herding with Pairwise Conditional Gradients without Swap Steps. 10.48550/arXiv.2110.12650