FlowMap-OPD: On-Policy Distillation for Few-Step Flow-Map Generators

Zhiqi Li1 Cheng Wan2 Bo Zhu1

1Georgia Institute of Technology2Cornell University

FlowMap-OPD consolidates several specialist teachers into one few-step flow-map student: sample with the flow map, learn the velocity.

FlowMap-OPD student samples on FLUX.1 and SD3.5, and an OCR, a PickScore and a GenEval prompt for the three specialist teachers and the student.
One few-step student distilled from three specialist teachers. Left, middle: FlowMap-OPD student samples on FLUX.1 and SD3.5; tags give the task of each prompt. Right (FLUX.1): an OCR, a PickScore, and a GenEval prompt (rows) for the three teachers and the student (columns). Gold borders mark the specialist trained for the row's task; green borders mark the student, which handles all three.
  • 3 to 1specialist teachers consolidated into one few-step student
  • 300updates to match or exceed each specialist on its own benchmark
  • 0.883 vs 0.850OCR on FLUX.1: the student against the OCR specialist
  • 22.68 to 18.23ImageNet FID with decoupled velocity supervision

One student, three capabilities

Samples from the FlowMap-OPD students on FLUX.1 and SD3.5-Medium: text rendering, visual preference and object relations from the same checkpoint. Select a tile to compare it with the base and the specialists.

Abstract

Few-step flow-map generators, such as MeanFlow and consistency models, sample in a few long-range jumps. On-policy distillation (OPD) trains a student on states drawn from its own sampler, but existing methods compare teacher and student through the local stochastic transitions of a multi-step sampler, which a flow-map student never deploys. We present FlowMap-OPD, the first systematic study of OPD for flow-map students. It separates state collection from supervision: the student collects states with its native few-step sampler, while the teacher supervises the flow map, velocities induced from it, or the instantaneous velocity linked to the map by a separately weighted consistency penalty. We find that instantaneous-velocity supervision with a small consistency weight, our chosen form, transfers the teacher's gains best, whereas supervising the deployed map, although the natural choice, transfers them worst when teacher and student start from different pretrained models. This gives a counter-intuitive rule: sample with the flow map, learn the velocity. As a further benefit, this form applies to any teacher that defines a velocity, including multi-step ones, and to students initialized from multi-step models. On FLUX and SD3.5, a single few-step student consolidates three specialist teachers within 300 updates, matches or exceeds each on its own benchmark (e.g., OCR 0.883 versus 0.850 on FLUX), and outperforms both multi-reward reinforcement learning and LoRA merging.

Method

FlowMap-OPD separates the rollout from the supervised quantity.

Flow or diffusion OPD: one local transition is used both for the rollout and for the teacher–student comparison.
(1) Flow/Diffusion OPD uses one local transition both for the rollout and for the teacher–student comparison.
FlowMap-OPD rollout: states collected with the student's native long-range map; no gradient flows through the rollout.
(2) FlowMap-OPD rollout collects states with the student's native long-range map, \(x_{t_{i+1}}=\psi^{\theta}_{t_i\to t_{i+1}}(x_{t_i})\); no gradient flows through the rollout.
FlowMap-OPD supervision: a separately chosen Gaussian kernel compares student and teacher at the collected states.
(3) FlowMap-OPD supervision. At those states, a separately chosen Gaussian kernel compares student and teacher; its mean is built from the instantaneous velocity (ours), the flow map, or a map-induced velocity.
Method details

Rollout–kernel separation

The OPD objective is a sum of local comparisons, so its expectation depends on the rollout only through the state marginals at the comparison times. The rollout can therefore collect states with the student's native few-step sampler, while a separately chosen kernel compares student and teacher there. The kernel that compares student and teacher need not be the transition that collected the states.

Decoupled velocity supervision

A flow-map network offers three quantities to compare: the flow map, velocities induced from it, and the instantaneous velocity. FlowMap-OPD matches the teacher's instantaneous velocity and links it to the map by a consistency penalty with its own weight \(\lambda_c\). The penalty propagates the supervision of the instantaneous velocity to the long-range map the student samples with.

Only decoupled velocity supervision weights consistency separately. All are Gaussian-kernel KLs.

SupervisionStudentTeacherConsistency
Flow map\(\psi^\theta_{t\to r}\)\(\psi^T_{t\to r}\)none
Induced velocity\(V^{\theta,\mathrm{src}}\), \(V^{\theta,\mathrm{dst}}\)\(v^T\)coupled
Decoupled velocity (ours)\(v^\theta(x,t)\)\(v^T(x,t)\)weight \(\lambda_c\)

Results

Specialist consolidation on two text-to-image backbones, the supervision comparison on ImageNet, and what rollout–kernel separation provides.

One student matches three specialists

An OCR teacher, a PickScore teacher, and a GenEval teacher are consolidated into one native few-step student in 300 updates.

Share of each specialist's gain over the base: the FLUX student during distillation passes 100% for OCR and PickScore; on FLUX.1 and SD3.5 the distilled student sits at the specialist level on all three tasks, the reward-trained and merged models below it.
One distilled student reaches the specialists on every task; reward-trained and merged models do not. Axes show the share of a specialist's gain over the base. Left: the FLUX student during distillation. Middle, right: final task scores on FLUX.1 and SD3.5.

Distillation against reward training

In a two-reward experiment, FlowMap-GRPO flattens below both specialists by update 1,400, while the distilled student is above both at update 300.

OCR accuracy and PickScore against training update: two-teacher FlowMap-OPD passes both specialists by update 300 (OCR 0.863, PickScore 23.17); FlowMap-GRPO stays below them through update 1,400.
Distillation passes both specialists by update 300; reward training stays below them. EMA OCR and PickScore of two-teacher FlowMap-OPD and FlowMap-GRPO with reward weights 0.5/0.5; dashed lines are the specialists.

Which quantity should the teacher supervise?

On ImageNet, with XL/2 MeanFlow teachers distilled into B/2 students, decoupled velocity supervision transfers best and flow-map supervision transfers worst.

FID of B/2 students under the MMD teacher. During distillation with K=3 the decoupled-velocity student with consistency weight 0.01 stays near 18, source-induced near 20, velocity without consistency drifts back to the base at 22.7, and map supervision is above the base. Sampled with K = 3, 4, 7, 15, the chosen form is stable near 18.
Velocity supervision improves the student, and consistency carries the gain to the few-step map (MMD teacher). Left: students during distillation, sampled with \(K=3\). Right: the epoch-300 checkpoints sampled with different \(K\).
Training curves of B/2 students under the MMD, classifier and DINO teacher rewards for six supervision configurations, with the XL/2 teacher and B/2 base as horizontal lines.
Cross-capacity transfer under three teacher rewards. MMD-setting FID, classifier target log-probability, and DINO cosine similarity of B/2 students under native generation with \(K=3\), for representative configurations of each supervision choice. Dashed lines are the frozen XL/2 teachers.
Consistency residual falls from 0.80 to 0.18 and the error to the teacher map rises as the consistency weight grows from 0 to 1; the chosen weight is 0.001.
A large \(\lambda_c\) lowers the consistency residual and raises the map error. Source residual (solid, left axis) and error to the teacher map (dashed, right axis) at update 200, text-to-image.
Tables

One student matches three specialists

FLUX.1-lite-8B, \(K=4\), update 300, \(\lambda_c=0.001\). Task scores, higher is better.

ModelGenEvalOCRPickScore
Base0.5040.34920.98
Task-specialized teachers
GenEval teacher0.845––
OCR teacher–0.850–
PickScore teacher––23.08
One model for all three tasks
FlowMap-OPD (ours)0.8580.88323.15
with deterministic map0.8250.83422.95
with stochastic map0.8210.83322.97
FlowMap-GRPO0.7330.79522.92
MeanFlowNFT0.6350.71721.69
TIES0.8230.65221.99
Merge (sum)0.6380.61921.48
Merge (avg)0.7420.65722.12

SD3.5-Medium with a pretrained flow-map checkpoint, \(K=4\), update 300. Task scores, higher is better.

ModelGenEvalOCRPickScore
Base0.7260.56921.69
Task-specialized teachers
GenEval teacher0.868––
OCR teacher–0.912–
PickScore teacher––23.52
One model for all three tasks
FlowMap-OPD (ours)0.8720.90523.40
FlowMap-GRPO0.7130.82423.11
MeanFlowNFT0.7320.86522.18
TIES0.8160.77922.49
Merge (sum)0.6670.54321.54
Merge (avg)0.7890.75522.38

Which quantity should the teacher supervise?

XL/2-to-B/2 students at epoch 300 with native \(K=3\) sampling. Each reward is a separate teacher and student, evaluated with that teacher's metric. Among students: best in bold.

SupervisionMMDClassifierDINO
FID ↓FID50k ↓log py ↑Cosine ↑
B/2 base22.6813.34−0.5450.721
XL/2 teacher14.683.86−0.4530.808
Flow-map supervision
Stochastic map27.8915.03−0.9620.700
Deterministic map32.8419.20−0.6960.759
Induced-velocity supervision
Source induced20.048.22−0.5120.752
Destination induced42.7428.66−0.5680.790
Decoupled velocity supervision
\(\lambda_c=0\)21.729.56−0.5480.760
\(\lambda_c=0.01\) (ours)18.236.74−0.4720.781
\(\lambda_c=0.1\)21.059.21−0.5380.768
\(\lambda_c=1\)43.0729.56−0.6710.020

What rollout–kernel separation provides

  • Training rollouts are short. A \(K=4\) rollout takes five network evaluations, and students trained with \(K=3\) or \(K=2\) rollouts match the \(K=4\) student.
  • Any teacher with a velocity. With the public multi-step Flow-GRPO specialists as teachers, FlowMap-OPD trains a few-step student with five evaluations per rollout; Flow-OPD with the same teachers spends twenty.
  • Students from multi-step models. Initialized from the multi-step SD3.5-Medium weights with an added second time input, the student comes close to the few-step student in 300 updates.

Fewer rollout jumps suffice. SD3.5-Medium, update 300, sampled with \(K=4\); NFE per rollout, time to collect 1,152 rollouts (8 H100).

Training rolloutNFETimeGenEvalOCRPickScore
\(K=10\)1140.0 s0.8640.90123.42
\(K=4\) (default)522.9 s0.8720.90523.40
\(K=3\)419.6 s0.8650.89823.37
\(K=2\)316.2 s0.8660.89723.34

Teachers and students need not be flow maps (SD3.5-Medium, update 300, sampled with \(K=4\) unless noted; NFE per rollout). Rows with multi-step teachers share the public teachers.

TeachersStudentTrain NFEGenEvalOCRPickScore
Few-stepFew-step50.8720.90523.40
Few-stepMulti-step50.8370.89723.20
Multi-stepFew-step50.8950.82822.83
Flow-OPD, same teachers200.8530.79022.32
The same two students with fewer sampling steps (\(K=3\), then \(K=2\))
Multi-stepFew-step50.8620.76022.59
Flow-OPD, same teachers200.7340.57721.70
Multi-stepFew-step50.7410.53221.78
Flow-OPD, same teachers200.3550.15720.11

BibTeX

@article{li2026flowmapopd,
  title   = {FlowMap-OPD: On-Policy Distillation for Few-Step Flow-Map Generators},
  author  = {Li, Zhiqi and Wan, Cheng and Zhu, Bo},
  journal = {arXiv preprint arXiv:2609.37851},
  year    = {2026}
}