arXiv:2610.27146cs.CVOct 2026

Manuscript Offprint

arXiv:2610.27146

PRIMFLOW: Learning Trajectory Primitives for Few-Step Distillation

Hongyi Fang, Benjia Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Few-step trajectory distillation aims to learn accurate global updates from dense local supervision along a teacher's sampling trajectory. Existing approaches construct within-step dynamics using specific trajectory parameterizations or discrete interval predictions, tying the learned update to a prescribed temporal structure. We propose PRIMFLOW, which directly learns a continuous trajectory primitive representing cumulative displacement along the teacher trajectory. By supervising finite differences of the primitive with local teacher velocities, PRIMFLOW learns the accumulated motion directly, while obtaining global updates through endpoint differences. This formulation avoids prescribing a temporal basis or fixed query grid and instead learns the temporal evolution of cumulative displacement from local supervision. We further establish a local-to-global error bound to characterize how local regression errors affect full-interval displacement accuracy, and introduce endpoint absorption to eliminate the auxiliary primitive branch while preserving one-network-evaluation inference. Experiments on large-scale text-to-image generation show that PRIMFLOW achieves a T-FID of 20.92 and an HPSv2 score of 28.35 at one NFE, improving both metrics over a trajectory-distillation baseline. After endpoint absorption, it retains comparable performance, achieving a T-FID of 20.86 and an HPSv2 score of 28.33.

1 Introduction

Diffusion and flow matching models have achieved remarkable success in high-quality visual generation [Ho et al., 2020, Song et al., 2021, Lipman et al., 2023]. However, their iterative sampling procedures require many neural function evaluations (NFEs), motivating few-step distillation methods that transfer a pretrained teacher's behavior to a student with substantially fewer evaluations [Salimans and Ho, 2022, Song et al., 2023]. In trajectory distillation, the teacher provides dense local supervision along its sampling trajectory, while the student must reproduce the accumulated motion over much larger time intervals. How to represent within-step dynamics so that local teacher supervision can effectively guide the learning of global updates remains a central challenge.

Recent trajectory distillation methods address this challenge through different mechanisms for modeling within-step dynamics. π\pi-Flow [Chen et al., 2026] learns an intra-step policy whose rollout generates a trajectory, ArcFlow [Yang et al., 2026] parameterizes velocity evolution using analytically integrable momentum modes, and PDD [Shaul et al., 2026] predicts multiple subinterval quantities in parallel. These methods construct within-step motion through policy-based trajectory generation, prescribed velocity parameterization, or discrete interval prediction. This observation motivates a direct alternative: can we learn a continuous cumulative-displacement function directly from local teacher supervision, rather than constructing within-step dynamics through a prescribed velocity

∗^{*}Corresponding author.

parameterization, policy rollout, or discrete interval predictions? Such a formulation would let the temporal shape of cumulative displacement be learned from the teacher signals themselves, without committing it to one of these constructions.

In this work, we propose PRIMFLOW, which directly learns cumulative displacement as a continuous function of time. Local teacher velocities supervise finite differences of this function over short intervals, while the displacement over any interval is obtained directly from the difference between its endpoint values. This allows a single learned function to support both local trajectory supervision and global student updates, without requiring a predefined temporal basis or fixed query grid.

We further analyze the proposed local supervision scheme and establish a local-to-global error bound relating local regression errors to full-interval displacement errors under smoothness and partition assumptions. For efficient deployment, we introduce endpoint absorption, which transfers the learned endpoint update into the native prediction head and removes the auxiliary primitive branch while preserving one-NFE inference. Experiments on large-scale text-to-image generation show that PRIMFLOW achieves a T-FID of 20.92 and an HPSv2 score of 28.35 at one NFE, compared with 23.55 and 27.71 for our reproduced trajectory-distillation baseline. After endpoint absorption, the corresponding scores are 20.86 and 28.33.