How to compress the hundreds of network evaluations required by diffusion and flow models to generate content into only a few steps while maintaining generation quality is an important concern in industry. Trajectory distillation enables a few-step model to fit the ODE trajectory obtained by integrating the teacher's multistep dynamics through a single backbone computation, providing an effective approach to few-step generation. Existing methods typically use temporal function parameterization (TFP), in which the backbone predicts parameters of a predefined temporal trajectory function. These designs generally express only trajectories with particular structures; even fully optimizing their learnable parameters does not guarantee an accurate fit to an arbitrary teacher trajectory. We introduce PrimFlow, which extracts shared latent features with one backbone forward pass and uses a lightweight auxiliary network conditioned on query time to learn an adaptive temporal function, relaxing this restriction. Text-to-image experiments on FLUX.2-Klein-base-9B and Qwen-Image-20B show better overall performance across multiple evaluation metrics, backbones, and 2/4 backbone-evaluation settings.
In this paper, we conduct a systematic study on improving permutation robustness while preserving accuracy. First, we categorize permutation bias phenomena into four representative scenarios. Then, we take the multiple-choice question answering (MCQA) dataset as an example under text-option reordering scenario to analyze the root cause of permutation bias. Based on this root cause analysis and set encoding strategy, we investigate shared positions with blocked cross-unit attention (SP-B) and extend this design to bidirectional cross-unit attention (SP-V) for modality exchange. However, these structural changes may reduce predictive accuracy. To recover model capability across different scenarios under the SP structure, an attention-only distillation from frozen native models is proposed. Shared positions reduce permutation sensitivity, and attention-only distillation improves accuracy under the shared-position structure. Across all three models, our method is comparable to or better than majority voting in macro-average all-permutation accuracy, and outperforms supervised fine-tuning by 1.95-4.20 percentage points. This work provides valuable insight into permutation bias mitigation and model capability recovery.