Papers
Topics
Authors
Recent
Search
2000 character limit reached

Lagrangian Self-Distillation (LSD)

Updated 15 February 2026
  • The paper introduces LSD, which leverages analytic ODE signals to self-distill flow maps, eliminating the need for pre-trained teacher networks.
  • It parameterizes flow maps using a first-order Taylor expansion and enforces both diagonal and off-diagonal Lagrangian constraints to guide learning.
  • The approach guarantees convergence in 2-Wasserstein distance and highlights trade-offs between derivative-based and derivative-free methods in different problem dimensions.

Lagrangian Self-Distillation (LSD) is a direct training paradigm for learning flow maps in consistency models, which are generative models defined by solutions to probability flow ordinary differential equations (ODEs). LSD leverages the structure of these flows to construct self-distillation objectives that do not require a pre-trained teacher network. Instead, the framework bootstraps the training signal from analytic properties of the flow, enforcing both the diagonal and off-diagonal constraints implied by the underlying ODE governing sample transformation from a base to a target distribution (Boffi et al., 24 May 2025).

1. Probability Flow ODEs and Flow Maps

LSD operates in the context of continuous-time probability flows that transport an initial base distribution ρ0\rho_0 (often Gaussian) to a target distribution ρ1\rho_1. The model is defined by a probability flow ODE in Rd\mathbb{R}^d: x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0, where btb_t is the velocity field at time tt. This can be constructed using a stochastic interpolant,

It(x0,x1)=αtx0+βtx1,I_t(x_0, x_1) = \alpha_t x_0 + \beta_t x_1,

with coefficients satisfying α0=1\alpha_0=1, α1=0\alpha_1=0, β0=0\beta_0=0, ρ1\rho_10 and ρ1\rho_11. The time-derivative is

ρ1\rho_12

leading to a velocity field given by conditional expectation,

ρ1\rho_13

The two-time flow map ρ1\rho_14 is defined by ODE evolution from time ρ1\rho_15 to ρ1\rho_16 with ρ1\rho_17: ρ1\rho_18 where ρ1\rho_19 satisfies the ODE with Rd\mathbb{R}^d0. Single-step mapping from Rd\mathbb{R}^d1 to Rd\mathbb{R}^d2 is accomplished by computing Rd\mathbb{R}^d3.

2. Lagrangian Tangency and Flow Map Parameterization

The flow map Rd\mathbb{R}^d4 satisfies the so-called Lagrangian (tangent) relation, a PDE in Rd\mathbb{R}^d5 for each Rd\mathbb{R}^d6 and Rd\mathbb{R}^d7: Rd\mathbb{R}^d8 As Rd\mathbb{R}^d9, the rate of change of the flow map recovers the instantaneous velocity field: x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,0 A practical parameterization of the flow map is given by a first-order Taylor expansion: x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,1 which implies the diagonal constraint x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,2.

3. Self-Distillation Loss Construction

LSD trains a single neural network x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,3 so that it satisfies two properties:

  • On the diagonal x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,4, x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,5 matches x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,6 (the velocity field).
  • Off the diagonal x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,7, the flow map parameterization satisfies the Lagrangian PDE.

The training objective has two components:

  • Diagonal (flow matching) loss: x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,8 which is uniquely minimized when x˙t=bt(xt),x0ρ0,\dot{x}_t = b_t(x_t), \quad x_0 \sim \rho_0,9.
  • Off-diagonal Lagrangian self-distillation loss: btb_t0 with btb_t1 and time derivatives computed via automatic differentiation. At the global minimum, btb_t2 holds.
  • Combined self-distillation loss: btb_t3 Minimization of btb_t4 enforces the tangent (Lagrangian) flow condition everywhere. No external teacher model is used; the analytic diagonal signal btb_t5 serves as the regression target.

4. Practical Training Details and Algorithmic Strategies

Several important practical strategies characterize efficient LSD training:

  • Teacher warmup: Initially train only the diagonal loss btb_t6 (btb_t7) for several thousand steps to guide btb_t8 toward btb_t9 before introducing off-diagonal terms.
  • Gradual incorporation of off-diagonal terms: The maximum allowed tt0 is linearly annealed, smoothly ramping in the Lagrangian self-distillation loss over the off-diagonals.
  • Sampling over time indices: The time pairs tt1 are sampled uniformly or with a learned weight over the simplex tt2.
  • Efficient differentiation: Autodifferentiation primitives (e.g., jvp/vjp in autodiff frameworks) are employed to compute tt3 or tt4 and spatial gradients tt5 efficiently.

5. Comparative Variants: ESD and PSD

The LSD loss as formulated requires computation of time-derivatives of the network with respect to tt6. The framework encompasses alternative objectives:

  • Eulerian Self-Distillation (ESD): Enforces the flow PDE in Eulerian coordinates, introducing a spatial derivative term: tt7 which necessitates spatial gradients tt8.
  • Progressive Self-Distillation (PSD): Enforces the semigroup property tt9 using a three-point loss that avoids both time and spatial derivatives.

Empirical results indicate that, on high-dimensional tasks such as image synthesis, both LSD and ESD suffer from high-variance gradients and training instability due to derivative computations, whereas PSD's derivative-free objective yields more stable training and improved FID scores for single- or two-step It(x0,x1)=αtx0+βtx1,I_t(x_0, x_1) = \alpha_t x_0 + \beta_t x_1,0. On low-dimensional problems, LSD's derivative-based objectives capture sharp, non-linear features more accurately, as the off-diagonal PDE residual enables learning of steep boundaries in multimodal densities.

6. Theoretical Guarantees and Limitations

The proposed LSD methodology comes with guarantees on generative distribution matching. As It(x0,x1)=αtx0+βtx1,I_t(x_0, x_1) = \alpha_t x_0 + \beta_t x_1,1, the 2-Wasserstein distance between the learned law It(x0,x1)=αtx0+βtx1,I_t(x_0, x_1) = \alpha_t x_0 + \beta_t x_1,2 and It(x0,x1)=αtx0+βtx1,I_t(x_0, x_1) = \alpha_t x_0 + \beta_t x_1,3 converges to zero at a rate It(x0,x1)=αtx0+βtx1,I_t(x_0, x_1) = \alpha_t x_0 + \beta_t x_1,4. That is, minimizing the combined LSD loss provably yields accurate learned flow maps in the sense of optimal transport, bridging the base and target laws via the consistency model approach.

LSD addresses a central limitation of prior distillation schemes for consistency models, namely the dependency on pre-trained teacher networks and multi-stage distillation. By exploiting the analytic diagonal signal and the Lagrangian structure of the flow map, training is converted to a self-distillation procedure.

A frequent misconception is that off-diagonal self-distillation necessarily improves performance in high dimensions. Empirical observations indicate that, in practice, derivative-based objectives such as LSD and ESD can introduce instability and high-variance gradients, especially for image synthesis, whereas PSD provides superior stability and generative metrics in these settings (Boffi et al., 24 May 2025). Conversely, derivative-based LSD is advantageous in low-dimensional problems with sharp boundaries.

The systematic framework outlined in Boffi et al. (2024) and extended in the referenced work demonstrates that objective selection (LSD, ESD, PSD) should be matched to the ambient dimension and the specific properties of the target distribution. LSD, as a member of this taxonomy, is most beneficial where Lagrangian PDE enforcement enables precise geometric shaping of the learned flow.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

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 Lagrangian Self-Distillation (CSD).