arXiv:2610.31323cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31323

Bridging the Data Gap: Source-Informed Task-Space Transport for Few-Shot Diffusion

Jinjian Jiang, Jing Peng, Rehan Deen, Yu Cao, Ziquan Liu, Muhammad Salman Haleem, David Mguni

ABSTRACT

Many deployments require a model to move rapidly from a data-rich source to a related target observed only sparsely. This is especially consequential where target data are difficult to collect, as in healthcare settings with persistent population or acquisition imbalances. Retraining or fine-tuning a high-capacity generator for every target is costly and can be statistically unreliable when target data are scarce. We introduce Meta-Diff, which instead learns a recurring source–target relation once in a compact task space. A shared encoder maps each distribution to a low-dimensional coordinate; a learned relation transports a new source coordinate to its predicted target, and a shared diffusion backbone generates from that prediction without target-specific retraining. Controlled Gaussian-mixture experiments identify when this works: task identity must survive the representation, the relation must generalise across tasks, and the source–target shift must leave useful headroom for transport. On held-out CIFAR-100 validation tasks, correct source + transport achieves 13.9% lower mean SW than transport from the wrong source. With validation-selected adaptation settings in the final-test one-target comparison, its mean SW is 14.7% lower than target-only modelling and 32.7% lower than full fine-tuning; the main route itself uses no target image and assumes the applicable relation is known. On matched CIFAR test episodes, generating from the clean-source coordinate and then applying the known corruption yields lower SW than task-space transport. Office-Home exposes a complementary boundary: transport can align target-domain statistics without reliable object identity. Together, these results recast extreme-few-shot adaptation as reusable transport in task space, while making the conditions for its success and failure directly measurable.

1 INTRODUCTION

A new deployment rarely arrives with exactly the data one would like. A category may be abundant in one visual domain but scarce in another; an institution, device or population may be well represented while a related target setting contains only a handful of observations. The imbalance is especially consequential in healthcare, where uneven sampling across demographic groups, institutions and acquisition settings can produce systematic subgroup performance gaps (Larrazabal et al., 2020; Seyyed-Kalantari et al., 2021; Daneshjou et al., 2022). Representative target-data collection remains the preferred long-term remedy, but it can be slow, costly or privacy-sensitive for rare settings.

The conventional response is target adaptation. Full fine-tuning, restricted parameter updates and learned embeddings reduce the cost of fitting a generator to a new target (Ruiz et al., 2023; Kumari et al., 2023; Hu et al., 2022; Gal et al., 2023; Ruiz et al., 2024), but they still infer each target largely from target-side evidence. We exploit a different regularity: source and target domains often recur across semantic tasks. If their relationship is structured, earlier source–target pairs can teach us how a new source task should move before target examples become plentiful.

We therefore consider relation-level generalisation. During meta-training we observe

PSy1→PTy1,…,PSyn→PTyn,P_{S}^{y_{1}}\rightarrow P_{T}^{y_{1}},\ldots,P_{S}^{y_{n}}\rightarrow P_{T}^{y_{n}},

*Corresponding author: ⟨d.mguni@qmul.ac.uk⟩\langle d.mguni@qmul.ac.uk\rangle for semantic tasks yi∈Ytrainy_i \in \mathcal{Y}_{\text{train}}. At test time the semantic identity changes to an unseen task y∗∈Ytesty^* \in \mathcal{Y}_{\text{test}}, but the source–target relation is shared. The comparison protocol provides a source set D_S^y^* and a target budget D_T^y^* for independent baselines. The main route uses the source set and relation only, at every reported target budget.

Meta-Diff turns this question into low-dimensional transport (Figure 1). A set encoder estimates zSz_S, a linear relation predicts z~T\widetilde{z}_T, and a frozen shared diffusion backbone generates from that prediction without target-time optimisation. Figure 2 instead intervenes on own, mean, shuffled and zero coordinates of the model; it visualises coordinate sensitivity, not the deployment transport comparison. Task-space transport also makes the mechanism inspectable. Task identity must survive the encoder; the relation must generalise; the shift must leave headroom over source reuse; and the generator must express the transported information. Section 3 establishes two supporting properties, source-coordinate concentration and stability to coordinate error, but not task identity or relational generalisation. Section 5.1 isolates those missing conditions, Section 5.2 tests their generative consequence, and Section 5.3 tests whether transport error alone can explain a remaining semantic failure.

(a) Observe recurring pairs

Figure

(b) Learn task-space transport

Figure

(c) Deploy on unseen y∗y^{*}

Figure

all headline KTK_{T}: no target images no coordinate or backbone update

Figure 1: Meta-Diff learns a relation between task distributions, rather than a separate adaptation for each target. Meta-training observes the same source→target relation across different semantic tasks; a shared encoder embeds these distributions in task space; and the learned relation is applied to the source coordinate of a held-out task. At every headline KTK_{T}, the main route generates directly from the transported coordinate, with no target images, coordinate refinement or backbone update. Target-support budgets apply to independent baselines.

same initial noise down each column; only the coordinate differs

Figure

Figure 2: Qualitative task-coordinate control on held-out CIFAR generations. Columns share initial diffusion noise; rows differ only in the task coordinate (own, mean, shuffled, or z = 0). The samples come from the 50k-step CIFAR checkpoint, with matched tasks and paired noise. Own-task coordinates are encoder coordinates, not transported predictions; deployment claims use the separate paired route evaluations in Section 5.2.

The paper makes four contributions. First, we formulate data-asymmetric generation as relation-level meta-learning over a shared source–target transformation. Second, a 210-run GMM study maps its operating regime and separates intrinsically recoverable task information from what is represented in z. Third, CIFAR-100 tests source-specific generation without target images and the comparison with target-adapted baselines. At one target image for the baselines, SW is 0.1781, 0.2087 and 0.2648 for direct transport, target-only and full fine-tuning, respectively. Under validation-selected, budget-specific adaptation settings, transport has lower mean SW at KT=1,5K_{T} = 1, 5, whereas full fine-tuning has lower mean SW at KT=20K_{T} = 20. Because the optimisation steps and learning rates also vary, this comparison does not isolate target-data quantity. FiLM independently reproduces source specificity; the transport-structure ablations test whether nonlinearity is needed. Finally, Office-Home extends the analysis to a natural domain shift, where Meta-Diff achieves source-specific target-domain alignment and frozen-checkpoint diagnostics show that transport error alone cannot explain the remaining semantic failure.

References (74)