arXiv:2610.30685cs.LGOct 2026

Manuscript Offprint

arXiv:2610.30685

Learning Domain Trajectories with Flow Matching for Gradual Domain Adaptation

Yubo Huang, Yushe Cao, Zixi Wang, Jingzehua Xu, Xin Lai, Xiongyu Hu, Shuai Zhang

Abstract

Large distribution shifts remain a primary obstacle for domain generalization and unsupervised adaptation. Although gradual domain adaptation alleviates this difficulty by introducing ordered intermediate domains, most existing approaches still operate in a discrete, step-wise manner, which can accumulate errors and often relies on unstable Min–Max optimization. We propose FlowGDA, a flow-matching framework that models gradual adaptation as continuous transport on a statistical manifold in a representation space. FlowGDA learns time-dependent velocity fields that induce smooth domain trajectories, using a simulation-free regression objective rather than adversarial training. To prevent semantic drift, we couple left-to-right transport between consecutive domains with a source-anchored transport and a semantic consistency loss, and we further stabilize learning via a two-stage sequential optimization scheme. Extensive experiments demonstrate that our method outperforms state-of-the-art techniques, validating flow matching as an effective alternative for domain adaptation.

1 Introduction

Machine learning models often suffer from performance degradation under domain shift, where the test distribution differs from the training distribution [24, 3, 2]. Although traditional domain adaptation methods align a labeled source domain with an unlabeled target domain [10, 19, 31], direct alignment becomes unreliable when the distribution gap is large, as illustrated in Fig. 1. Gradual domain adaptation (GDA) mitigates this issue by introducing ordered intermediate domains, decomposing a large shift into a sequence of smaller transitions. This setting has strong theoretical support, with

Figure

Figure 1: Motivation of gradual domain adaptation under large distribution shifts. Gradual domain adaptation introduces intermediate domains to form a smooth transition path, reducing the discrepancy between consecutive domains and facilitating stable knowledge transfer.

*Yubo Huang and Yushe Cao contributed equally to this work.

†^{\dagger}Co-corresponding author: Jingzehua Xu (u3014074@connect.hku.hk).

‡^{\ddagger}Primary corresponding author: Xiongyu Hu (huxiongyu@swjtu.edu.cn).

Preprint.

intermediate domains shown to substantially improve generalization bounds over direct adaptation [33].

Despite its promise, existing GDA methods typically treat domain evolution as a discrete sequence of adaptation steps. Such stepwise procedures may accumulate errors and fail to capture the smooth geometric structure of distribution shifts [23]. Many methods also rely on adversarial training [10, 31] or complex optimal-transport optimization [32, 25, 37, 38], which can be unstable or computationally demanding in high-dimensional representation spaces [12, 22]. These limitations motivate a stable and efficient framework for learning continuous domain trajectories.

Flow matching [18] offers a natural alternative. By directly regressing velocity fields of continuous normalizing flows [5, 26, 41], it avoids simulation-heavy or adversarial objectives, and its extensions to Riemannian manifolds [6, 4] make it suitable for structured representation spaces. Motivated by this, we propose FlowGDA, a flow-matching framework that views gradual domain adaptation as continuous transport on a statistical manifold [7]. Instead of adversarially aligning domains, FlowGDA learns velocity fields that move representations along smooth trajectories while preserving semantic information. Our contributions are summarized as follows:

• We formulate gradual domain adaptation as flow matching on a statistical manifold, enabling continuous representation transport without adversarial training.

• We design a simulation-free objective with dual source-to-intermediate and intermediate-to-target flows, together with semantic consistency regularization to reduce drift.

• We provide theoretical analysis bounding the target error and show through experiments on multiple benchmarks that FlowGDA improves accuracy, stability, and efficiency over existing GDA methods.

References (39)