Rethinking Vector Field Learning for Generative Segmentation

1Peking University 2Tsinghua University
Comparison of mask refinement, feature extraction, VAE-based image translation, and FlowSeg's end-to-end pixel diffusion with a reshaped flow matching loss.

TL;DR: We reshape the vector field in pixel diffusion for enhanced generative segmentation.

Abstract

Taming diffusion models for generative segmentation has attracted increasing attention. While existing approaches primarily focus on architectural tweaks or training heuristics, there remains a limited understanding of the intrinsic mismatch between continuous flow matching objectives and discrete perception tasks. In this work, we revisit diffusion segmentation from the perspective of vector field learning. We identify two key limitations of the commonly used flow matching objective: gradient vanishing and trajectory traversing, which result in slow convergence and poor class separation. To tackle these issues, we propose a principled vector field reshaping strategy that augments the learned velocity field with a detached distance-aware correction term. This correction introduces both attractive and repulsive interactions, enhancing gradient magnitudes near centroids while preserving the original diffusion training framework. Furthermore, we design a computationally efficient, quasi-random centroid encoding scheme inspired by Kronecker sequences, which integrates seamlessly with an end-to-end pixel neural field framework for pixel-level semantic alignment. Extensive experiments consistently demonstrate significant improvements over vanilla flow matching approaches, substantially narrowing the performance gap between generative segmentation and strong discriminative specialists.

Vanilla flow matching and FlowSeg trajectories, alongside gradient norms near a semantic centroid.

Reshaping the vector field strengthens gradients near semantic centroids and improves separation between class trajectories.

Input images, ground-truth masks, and FlowSeg predictions for three ADE20K scenes and three COCO-Stuff scenes.

FlowSeg captures semantic regions across diverse indoor and outdoor scenes on ADE20K and COCO-Stuff.

FlowSeg and SymmFlow comparison showing raw and mapped predictions, consistency across random seeds, and pixel-level semantic alignment.

FlowSeg produces consistent predictions across random seeds and improves pixel-level semantic alignment.

BibTeX

@article{wang2026rethinking,
  title={Rethinking Vector Field Learning for Generative Segmentation},
  author={Wang, Chaoyang and Liang, Yaobo and Peng, Boci and Duan, Fan and Tong, Yunhai},
  journal={arXiv preprint arXiv:2603.19218},
  year={2026},
}