Manuscript Offprint
arXiv:2610.34120Synthetic Data Augmentation for Functional Data: Wasserstein Risk Bounds and Diffusion-Based Conditional Generation
Abstract
Functional data are costly to collect; samples of tens to hundreds of curves are common. Synthetic data augmentation can help, but its theory is developed for finite-dimensional data and relies on total variation, which is uninformative for functions. We study augmentation with a class-conditional functional diffusion generator and state guarantees in the Wasserstein-1 distance. For stable downstream estimators, we bound the risk of training on synthetic curves, from above and below, by the risk of training on as many real curves plus a generation penalty, and derive the best number of synthetic curves and a condition under which synthetic data outperform real data. For allocating synthetic curves under class imbalance, we bound the excess risk of training on real and synthetic curves together, without sample splitting. In applications to temperature, hyperspectral and gait curves, augmentation improved classification, function-to-scalar regression and function-to-function regression, and directing synthetic curves to the minority class gave the largest gain under class imbalance.
Keywords: Functional data analysis; Functional diffusion models; Generational effect; Synthetic data augmentation; Wasserstein distance.
*Corresponding author. Email: wenlin.dai@ruc.edu.cn
1 Introduction
Functional data, in which each observation is a curve, surface or trajectory, arise throughout science, from gait biomechanics and climatology to spectroscopy. The toolkit for such data is mature (Gertheiss et al. 2024), from functional principal component analysis (Yao et al. 2005) and functional regression (Morris 2015, Greven & Scheipl 2017) to functional boosting (Brockhaus et al. 2015), penalized function-on-function regression (Scheipl et al. 2015) and functional neural networks (Thind et al. 2023). Yet functional samples are often small: a gait curve requires a motion-capture session and a climate station decades of monitoring, so typical studies contain tens to a few hundred curves, and biomedical ones are often subject to sharing restrictions. Small samples limit the accuracy of flexible learners.
Synthetic data offer one response (Jordon et al. 2022): train a generative model on the real sample and use its draws to enlarge the training set of a downstream procedure. Shen et al. (2023) bound the risk of a method trained on m synthetic observations by its risk on m real ones plus a term proportional to m TV( ), the total variation (TV) distance between the generated and true distributions. This explains the generational effect: accuracy first improves with the synthetic volume and may then degrade or plateau, with an optimal volume, the reflection point. Tian & Shen (2026a) extend the theory to conditional generation within subpopulations such as minority classes, where a domain-adaptation index and a generation-error index govern how synthetic data should be allocated. Both works rely on generators fine-tuned from large pre-trained models, with generation-error rates available only on Euclidean spaces. Related advances use diffusion models for high-dimensional variable selection (Wang et al. 2025), causal effect estimation (Chen et al. 2025) and multimodal prediction (Tian & Shen 2026b).
Two features of this theory fail for functional data. First, TV is uninformative in function space: by the Feldman–Hájek theorem, for every trace-class and every , however close is to 1, whereas , and a generator of finitely many basis coefficients is at TV distance one from any distribution without mass on that subspace, so a bound in TV says nothing about a practical generator of curves. Second, the conditional-generation guarantee of Tian & Shen (2026a) derives its rates for latent diffusion in Euclidean space with pre-trained encoder-decoders and splits the real data between the generator and the downstream fit.
A generator for curves must also respect the function-space structure. Standard diffusion models (Sohl-Dickstein et al. 2015, Ho et al. 2020, Song et al. 2021) perturb data with independent Gaussian noise at each grid point. In the continuum limit this converges to white noise, which is not an H-valued random variable, and the denoising objective can have unbounded variance as the grid is refined (Pidstrigach et al. 2024, Lim et al. 2025). Recent work resolves this by using Gaussian noise with trace-class covariance and defining the score with respect to a Gaussian reference measure: Kerrigan et al. (2023) work with Gaussian measures on Hilbert spaces and neural-operator parametrizations, Pidstrigach et al. (2024) establish well-posedness of the forward and reverse infinite-dimensional SDEs, and Lim et al. (2025) introduce the denoising diffusion operator (DDO), which defines the score as a Fréchet derivative along the Cameron–Martin space and also supports conditional sampling for inverse problems. Other function-space generators, such as annealed Langevin dynamics and flow matching, are reviewed by Franzese & Michiardi (2025). These works establish that diffusion generation in function space is well posed and practical, but they study the quality of the generated curves; to our knowledge, none gives a guarantee that training on them improves a downstream statistical procedure.
This paper asks three questions for functional data: when training a downstream learner on synthetic curves reduces its risk relative to real curves, how many synthetic curves to generate, and how to allocate them across imbalanced classes. Answering them raises four difficulties. First, the generator must condition on class labels and continuous responses without breaking the functional structure of the curves; we add FiLM to the DDO, which scales and shifts the network's features by the same amount at every grid point, and encode a continuous response with a value-augmented one-hot vector. Second, total variation, used by existing theory, is uninformative for curves; we measure generation error by . Third, the generator is trained on the same real curves that enter the downstream fit, so the synthetic and real curves are dependent. Existing bounds avoid this by splitting the real sample (Tian & Shen 2026a), which wastes scarce curves; we instead condition on the real sample and bound the two parts separately. Fourth, the error of a trained generator cannot be computed, so the theorems cannot be checked on it directly; we instead assess their practical consequences on three real datasets.
We make four contributions.
(i) Method. Building on the DDO (Lim et al. 2025), we add feature-wise linear modulation (Perez et al. 2018) to condition the score network on class labels and on continuous responses, giving a class-conditional generator for curves that is trained from scratch on the real sample.
(ii) Volume theory. Measuring generation error by the Wasserstein-1 distance, we show that the risk of training on synthetic curves stays within a generation penalty of the raw-data risk, and that this penalty does not grow with the synthetic volume for stable estimators. We derive the best synthetic volume, a sufficient condition for synthetic data to match or beat the real sample, and conditions for a finite optimal volume.
(iii) Allocation theory. Conditioning on the real sample, we prove an exponential-tail bound for the excess risk of the mixed real-and-synthetic estimator, in terms of approximation, estimation, domain-adaptation, allocation-mismatch, and generation-error terms, without sample splitting. For imbalanced binary classification we obtain explicit rates from the per-class generation rate and show how label imbalance and per-class generation error enter the certified level.
(iv) Evidence. Analyses of three real datasets (daily temperature curves, grape hyperspectral reflectance, and gait biomechanics), covering classification, function-to-scalar regression, and function-to-function regression, show where augmentation helps and where it does not.
The real-data analyses show clear gains for function-to-scalar regression and for minority-targeted allocation in classification, and consistent gains for penalized function-to-function regression.
The remainder of the paper is organized as follows. Section 2 describes the conditional functional diffusion model and the generation-augmentation pipeline; details of the model are in Appendix A and implementation details in Appendix B. Section 3 states the volume and allocation theorems, with notation in Section 3.1 and further remarks and proofs in Appendix C. Section 4 analyzes the three real datasets, with details of the data in Appendix D. Section 5 summarizes the findings and outlines future work.
2.1 Functional Data Diffusion Models
Setting. Let . An observation is a curve with channels ( unless stated), recorded on a grid of points, with a label , where for classification and for regression. The sample is drawn i.i.d. from the joint distribution of ; for discrete labels, and is the distribution of given . The generator, trained on , and the choice of labels for the new curves (Section 2.3.1) induce a synthetic distribution with class-conditional distributions . Draws from enlarge or replace the training set of a downstream procedure , and the generation error drives the guarantees of Section 3. Notation is collected in Appendix A (Table 4).
Noise in function space. A standard diffusion model adds independent Gaussian noise at every grid point; as the grid is refined this noise converges to white noise, which is not a random element of H, and the denoising objective depends on the resolution (Lim et al. 2025, Pidstrigach et al. 2024). We therefore use the Denoising Diffusion Operator (DDO) of Lim et al. (2025), which perturbs a clean curve with Gaussian-process noise,
with the variance-preserving cosine schedule (Nichol & Dhariwal 2021) and independent noise in each channel. Because the self-adjoint, non-negative covariance operator is trace class, , so the perturbed curves stay in . We take from the powered-exponential kernel of Lim et al. (2025, Eq. 48),
whose parameters set the amplitude, roughness and correlation length of the noise (Appendix A.1; values in Appendix B).
Score matching. Generation runs the process in reverse (Appendix A.1), which requires the score of the distribution of , defined along the Cameron–Martin space of
(Lim et al. 2025). Since , a network that predicts the noise gives the score as , without inverting . With a conditioning vector (Section 2.2.1), we train by the conditional -matching objective
By the conditional score-matching result of Lim et al. (2025, Theorem 5), for a finite-dimensional condition, such as our encodings in , its minimizers are those of score matching for , so the trained network approximates the conditional score.
2.2 Conditional Generation via Feature-wise Linear Modulation
Lim et al. (2025) condition the DDO on observations defined on the same domain as the generated field, supplied to the network together with its input. Our conditions are instead labels or responses that take one value for the whole curve, and the classical way of conditioning on them, appending y to the discretized curve as , creates a jump at the end of the input and breaks its functional structure. We therefore condition with Feature-wise Linear Modulation (FiLM; Perez et al. (2018)), which modulates every residual block, as the network already does for the diffusion time. The conditioning is effective in our applications (Section 4): the generated curves match the real curves of their own class or group and reproduce the differences between groups, both in the curve plots and under the quality metrics of Section 2.3.1. We call the resulting model the Conditional Denoising Diffusion Operator (Conditional DDO).
2.2.1 FiLM Conditioning
FiLM modulates a feature map with a scale and a shift that depend on the condition,
where multiplies channel-wise and the modulation is the same at every grid position; the parameterization makes the identity map the default. The conditioning vector is embedded by a two-layer network, (Linear SiLU Linear, embedding dimension ), and one linear layer per residual block maps to the FiLM parameters. For a class label , is the one-hot vector.
Continuous conditioning (regression). A continuous response cannot be one-hot encoded, and a raw scalar fed to the embedding network would carry no group structure. We use a value-augmented one-hot encoding. Let be the group of an observation, with now the number of groups (the grape variety in Section 4.4), and let be the min-max normalized response, with the minimum and maximum taken over the training data. The conditioning vector replaces the unit entry of the one-hot vector by :
The position of the nonzero entry encodes the group and its magnitude the response, so the embedding varies smoothly with y within each group; function-to-function regression and classification instead condition on one-hot load-condition groups and class labels.
2.2.2 Network Architecture, Training and Sampling
The denoising network , implemented in PyTorch, is the U-shaped Fourier neural operator of (Lim et al. 2025, Li et al. 2021, Rahman et al. 2022), trained with their forward process, noise and objective (Section 2.1) and sampled by the ancestral sampler described below. It differs from theirs in two respects: every residual block is modulated by the condition as well as by the diffusion time, which turns the unconditional DDO into a generator of ; and curves of any length are accepted, by padding each curve at both ends to a length the resolution levels require and cropping the output back to the original grid (Appendix A.2).
The network is trained from scratch on the standardized real training curves with minibatches balanced across the K groups, which changes only the label marginal, not the conditional distribution of X given Y; the optimizer is AdamW with cosine annealing, and the Gaussian-process noise is drawn by a fast discrete cosine approximation of the kernel (Algorithm 1). Synthetic curves are drawn by the ancestral sampler of the discretized reverse process, started from , with the condition supplied to the network at every step (Algorithm 2). Both algorithms are in Appendix A.3, and all settings in Appendix B.
2.3 Conditional Data Synthesis in Function Space
2.3.1 The Generation-Augmentation Pipeline

Figure 1: Generation–augmentation pipeline. (1) The real data are split into training, validation (to monitor the generator, when the sample allows) and test sets. (2) The Conditional DDO is trained once on the training set and sampled under conditions v to give synthetic curves , whose quality is checked by MMD, fWass and fFID. (3) Each downstream task is run on real data only (baseline), real plus synthetic data (A) and synthetic data only (B). (4) All procedures are evaluated on the real test set.
We follow the two-phase paradigm of Shen et al. (2023) and Tian & Shen (2026a): a generator is trained first, and downstream procedures are then run on data that include its output. The pipeline has four stages (Figure 1).
In Stage 1 (data roles), the real curves are split into training, validation and test sets (Section 4.1): the training set fits the generator and the downstream procedures, the validation set, where available, selects the generator checkpoint, and the test set evaluates the downstream procedures and, without a validation set, generation quality. In Stage 2 (generation), the Conditional DDO trained on the training set samples synthetic curves under conditioning vectors (Section 2.2.1) taken from the training data, divided among classes as in Sections 2.3.2 and 2.3.3; the synthetic curve-label pairs have distribution . In function-to-scalar regression the conditions are training responses, so no new response values are added; in function-to-function regression the response is the generated moment channel. In Stage 3 (deployment), with , a downstream procedure is trained on (baseline), (augmentation, A) or alone (replacement, B, relevant when real curves cannot be shared). In Stage 4 (evaluation), every fit is evaluated on the real test set; since the generator is fixed across deployments, differences reflect only the training data.
Because , every upper bound and sufficient condition of Section 3 stated in also holds with , so the theory applies to a generator with small error. We therefore assess generation quality with -type metrics: for Gaussian distributions, has an explicit formula in the means and covariances, whereas does not, and we apply it to Gaussian approximations of the synthetic and real curves. We report three such checks, defined in Appendix D.2: the maximum mean discrepancy (MMD) with an RBF kernel; fWass, the squared distance between Gaussian approximations of two samples, summed over grid points and channels; and fFID, the same quantity computed on functional principal component scores. They are descriptive checks of agreement with real curves, not estimates of the generation error in the theorems.
2.3.2 Generational Effect Analysis
From a pool of 100 synthetic sets of n curves, each with the training class counts and its own seed, we form volumes , , by pooling G sets, with five replicates per volume that share no synthetic curve. Each analysis uses one trained generator, and a replicate is an independent run of its sampler followed by a downstream fit, so reported spreads describe the variability of sampling and of the downstream procedure. The downstream procedure is trained on each pooled set, alone or with the real data, and the trajectories in G are smoothed by penalized B-splines with pointwise 95% confidence bands. Whether they show the interior optimum of Theorem 3.1 is left to the data.
2.3.3 Allocation Design
To study how synthetic curves should be divided among classes (Theorems 3.3 and 3.4), we fix m and vary the share of each class, adding in each replicate the integer nearest to synthetic curves of class k to the real training data (Section 4.3.4).
2.4 Downstream Models
The training set of each deployment feeds the downstream procedures of Table 1; the models are specified with each task (Sections 4.3 to 4.5), and no scalar covariate other than the condition label enters any of them.
Table 1: Downstream procedures by task.
| Task | Procedure |
| Classification | FPCA via the FACE algorithm (proportion of variance 0.95) (Xiao et al. 2016), followed by LDA on the scores (Ramsay & Silverman 2005) |
| Function-to-scalar regression | Penalized functional regression (PFR) (Goldsmith et al. 2011) |
| Function-to-function regression | FDboost (Brockhaus et al. 2015), PFFR (Scheipl et al. 2015) |
Smoothing parameters of PFR and PFFR are chosen by REML (fast REML, bam, for PFFR), and the FDboost stopping iteration , with step size 0.1, by cvrisk with five bootstrap resamples. Each procedure keeps this default tuning criterion, computed on the training set it receives, partly or wholly synthetic under augmentation and replacement, so that the training set is the only thing that changes between deployments. Classification is evaluated by accuracy, per-class precision, recall and F1, and AUC; regression by RMSE and , with the functional , summed over test curves and grid points, for function-to-function regression. Generation-quality metrics and all downstream procedures are implemented in R (packages FDboost, refund, fdapace, kernlab, fdWasserstein).
3 Theoretical Results
We state four theorems in two groups. Theorems 3.1 and 3.2 concern training on synthetic curves alone, the replacement deployment, and determine how many synthetic curves to use. Their statements are conditional on the generator-training sample, and their structure builds on Shen et al. (2023). Theorems 3.3 and 3.4 concern augmentation, where class-conditional synthetic curves are added to the real data, and determine how to allocate them among classes. Their statements hold under the joint distribution of the training sample and the synthetic draws, without assuming independence between real and synthetic data, and their structure builds on Tian & Shen (2026a).
Further remarks and all proofs are in Appendix C, which also states and proves the auxiliary results they use.
3.1 Setting and Choice of Metric
Why not total variation. A measure of generation error must become small when the synthetic distribution approaches the true one. In function space, total variation does not. Let be a separable Hilbert space with , and compare with for a trace-class and , two distributions that differ only by a scale factor.
- TV stays at its maximum. By the Feldman–Hájek theorem (Da Prato & Zabczyk 2014), two Gaussian measures on are either equivalent or mutually singular, and and are equivalent if and only if , , and is Hilbert–Schmidt. For the last operator is , which is not Hilbert–Schmidt when . The two measures are therefore mutually singular, and for every .
• tends to zero. Coupling with gives
As the two distributions become indistinguishable, yet their TV distance stays at 1, so TV cannot tell a nearly exact generator from a poor one; decreases continuously to zero. We therefore measure generation error by .
Spaces and metrics. is a finite label set (classification) or a bounded interval (regression), and with
where is replaced by for continuous responses; is Polish. On we use . For ,
where is the set of couplings of and ; the second equality is the Kantorovich–Rubinstein duality (Panaretos & Zemel 2020, Villani 2009).
Data, generator, risks. is the data law and . The generator (the Conditional DDO of Section 2) is trained on ; is its output distribution, assumed to lie in so that , and . For estimators , a loss and an independent test point , define
We call the generational gap. In Section 3.2, is fixed, so is a fixed measure and all quantities above are real numbers.
Generation error. The DDO’s generation error splits into three terms: a noising term bounded by (Lim et al. 2025), a score-approximation term, and a discretization term (Pidstrigach et al. 2024).
3.2 Training on Synthetic Data: How Many Curves
Assumption 3.1. There is with for all .
Assumption 3.2. There exist and with and for , such that
(a) for ;
(b) for .
Assumption 3.3. .
Part (a) is the analogue of the condition of Shen et al. (2023); the proof uses it only at . Part (b) states that the bias of synthetic training does not shrink beyond .
Theorem 3.1. Fix and suppose Assumptions 3.1 to 3.3. Then and:
• there is with ;
• for every , .
The optimal volume is the reflection point, beyond which more synthetic data cannot restore the minimum risk (Appendix C.1 discusses the assumptions).
To make the generation penalty quantitative, we assume that the influence of a single training curve on the downstream risk decays with the training size; we call the estimator stable when it decays like .
Assumption 3.4. There exist and such that, for every , is -Lipschitz with respect to .
Lemma 3.1. Fix and . Assume Assumption 3.1, and that is Borel and L-Lipschitz with respect to for some . Then
Assumption 3.5. There exist and with for all .
This is the form used by Shen et al. (2023); in function space, the minimax rates of Hall & Horowitz (2007) for functional linear regression motivate the value of . When the risk tends to a positive Bayes risk , as for overlapping classes, the assumption is applied to the excess risk ; Remark C.4 in Appendix C.1 shows that, for functional linear regression, these rates bound from below in terms of the eigenvalue decay of the predictor covariance and the smoothness of the slope.
Assumption 3.6. There exist as and with , where is the generator-training size ( in all our experiments).
Theorem 3.2. Fix and suppose Assumptions 3.1, 3.4 and 3.5. Write . For define
Part 1 (transfer bound). For every , . In particular
Part 2 (optimized synthetic risk).
• If and , let . Then
• If , then for every , and .
• If , then .
Part 3 (gain condition).
• If , let and . If , then .
• If and , then .
Part 1 is a two-sided transfer bound: synthetic training can neither lose nor gain more than relative to training on real curves. Part 2 optimizes the upper bound over the volume ; the minimizer is the volume suggested by the bound. Part 3 gives a sufficient condition on the generation error for synthetic curves, at their best volume, to do at least as well as the real curves.
Two features are new relative to Shen et al. (2023). The lower bound of Part 1 makes the transfer bound two-sided, so it also limits how much synthetic training can gain over real training and can be tested in both directions. The dependence of the threshold exponent on shows that for stable estimators the exponent drops from to , so a much larger generation error is tolerated (Appendix C.1).
Under a generation-error tail with rate , the gain condition holds with high probability for all sufficiently large when , that is, for stable estimators; Appendix C.1 states this gain window precisely (Remark C.6), together with the probability version of Theorem 3.2.
3.3 Augmentation: Allocation of Synthetic Curves
Setting. Classes are with . Write and . is the evaluation law with , and . The theorem allows any that satisfies Assumption 3.7; Section 3.4 takes balanced, while the test set of Section 4.3 follows the imbalanced real law, so that there. The class-conditional generator, trained on , yields . Given , draw curves conditionally i.i.d. from , independently across . Set
The mixed estimator is
The real part of the training set is the generator's own training sample; there is no sample splitting. Let minimize over all measurable rules, , and .
Indices. With , the class-k proportion of the mixed sample,
where is the norm on , is the per-class generation rate of Assumption 3.11, and is the diameter of Assumption 3.9. is the domain-adaptation index (mismatch between the class proportions of the mixed sample and of the evaluation law), the generation-error index, and the allocation-mismatch index (cost of synthetic class proportions that differ from the real ones).
Estimation-error index. is the estimation-error rate of the mixed sample, the larger of the rates of its real and synthetic blocks, and minimizes the mixed-sample risk ; both are defined precisely in Appendix C.1.3.
Assumption 3.7. for every .
Assumption 3.8. For every , is -Lipschitz in , and .
For cross-entropy this requires to consist of classifiers with that are Lipschitz in ; then .
Assumption 3.9. There is such that and, almost surely, every are supported in one set of -diameter at most .
Assumption 3.10. for all .
Assumption 3.11. For every : for some .
Assumption 3.12. for all , almost surely in , in the sense that for both blocks. Hence .
Theorem 3.3. Probabilities are under the joint distribution of and the synthetic draws. Suppose:
• Assumptions 3.7 to 3.12 hold;
• the minimizers and exist;
• for the block shares , the Bernstein-range condition holds:
Define
Then for every with
The excess risk of the mixed estimator is thus controlled, with exponential tails, by the largest of five terms: approximation , estimation , domain adaptation , generation , and allocation mismatch . The second tail term is the probability that some class-conditional generator misses its rate.
Remark 3.1. Theorem 3.3 requires no sample splitting: because the real and synthetic blocks are bounded separately and combined by a union bound, the generator can be trained on the same curves that enter the downstream fit (Appendix C.1.3).
3.4 Imbalanced Classification
Theorem 3.4 applies Theorem 3.3 at explicit rates. It introduces no new empirical process, following the architecture of Tian & Shen (2026a, Thm 2).
Setting. , , the minority class is ( ), , and is the cross-entropy loss . In binary form,
The balancing allocation , feasible if and only if , makes the mixed sample balanced. For define the per-class rate profile, the generation envelope and the certified level:
Assumption 3.13. Assumption 3.12 holds with exponent in place of .
Assumption 3.14. For : , with , , and .
Theorem 3.4. Suppose:
• Assumptions 3.7 to 3.11, 3.13 and 3.14 hold;
• the existence and Bernstein-range conditions of Theorem 3.3 hold;
• .
Let and be as in Theorem 3.3.
(a) Bound. For every with ,
(b) Minority term. With ,
Hence if and only if , and then . When this holds for every with , which includes and . For the condition reads .
(c) Allocation floor. For every allocation, . Specifically:
• at : and ;
• at (feasible iff ): and .
(d) Generation at the benchmark scale. If , let and . Then
Remark 3.2. Reading Theorem 3.4. As in the imbalanced example of Tian & Shen (2026a), the certified level is set by three terms: the raw-data rate ; the imbalance cost, which allocation can only move between and (Part (c)); and the generation term, which raises the level by at most the factor when the generation rate satisfies (Part (d)).
4 Real-Data Analyses
This section applies the generation-augmentation pipeline of Section 2 to three real functional datasets, from climatology, plant science and biomechanics, which cover the three downstream tasks: classification, function-to-scalar regression and function-to-function regression. We ask the three questions of Section 1 and a practical fourth, whether synthetic curves can replace real ones that cannot be shared. Does training on real plus synthetic curves reduce downstream error when the real sample is small? Can synthetic curves replace the real training data? How does downstream performance change with the synthetic volume? And, under class imbalance, how should synthetic curves be allocated across classes?
Section 4.1 describes the datasets and Section 4.2 the common protocol and the generation-quality diagnostics. Sections 4.3 to 4.5 report the three tasks.
4.1 Datasets
Table 2 summarizes the three datasets, the conditioning of the generator and the tasks.
Temperature. Daily mean temperature curves of Spanish stations for 1974–2013 come from the aemet_temp data of goffda (García-Portugués & Álvarez Liébana 2023), based on records of the Spanish State Meteorological Agency (AEMET). We classify Madrid (seven
Table 2: Datasets, generator conditioning and tasks. n: number of real training curves; validation and test sizes in parentheses.
| Dataset | Grid | n (val./test) | Generator conditioning | condition Task |
|---|---|---|---|---|
| Spanish temperature | 365 days | 232 (50/50) | city (one-hot) | binary classification |
| Grape spectra | 104 wave-lengths | 165 (54/55) | variety and normalized sugar content | function-to-scalar regression |
| Gait | 101 points | 75 (none/18) | load condition (one-hot) | function-to-function regression |
stations) against Valladolid (two), with a chronological split (training 1974–2001, validation 2002–2007, test 2008–2013) and 178 Madrid against 54 Valladolid training curves.
Grape. Reflectance spectra (397–1004 nm) of 274 grape samples of three varieties, Fer, Mauzac and Syrah, have laboratory measurements of sugar content (Ryckewaert 2022); they are split 60/20/20, stratified by variety and by tercile of sugar content.
Gait. Angle, angular velocity, angular acceleration and moment curves under loads of 0%, 10% and 20% of body weight were assembled by Gertheiss et al. (2024) from a public running dataset (Fukuchi et al. 2017) and two load-carriage studies (Liew, Morris & Netto 2016, Liew, Morris, Keogh, Appleby & Netto 2016). We analyze the ankle in the vertical axis for the slow group (ankle VT) and in the anterior–posterior axis for the moderate group (ankle AP), with whole participants assigned to training (25) or test (6); the four channels are generated jointly.
Appendix D.1 gives further details of the three datasets.
4.2 Protocol and Generation-Quality Diagnostics
Generation quality is compared against the validation set, or the test set for gait. We make three comparisons: real training against reference curves of the same class (reference level), synthetic against reference curves of the same class (within-class fidelity), and synthetic curves of one class against real curves of another (cross-class confusion). The task sections summarize fWass; the full comparison scheme, the fWass tables of the two regression tasks, and the fFID and MMD values are in Appendix D.2–D.6.
4.3 Classification
4.3.1 Task and Design
Task. We ask whether training on Conditional DDO curves improves the classification of the city of a Spanish station-year, Madrid (class 0) or Valladolid (class 1), when the real sample is small and imbalanced (Table 2), and how the synthetic curves should be allocated between the two cities to do so. The classifier is FPCA + LDA (Section 2.4).
Allocation design. In addition to the generational design, the allocation design (Sec-tion 4.3.4) uses the volumes and the Valladolid shares , with 20 replicates per configuration.
4.3.2 Generation Quality
Table 3 compares synthetic and real training curves with the validation years (2002–2007). The fWass values are sums over the 365 days.
Table 3: Madrid vs. Valladolid: generation quality (fWass) against the validation years. Rows: validation curves of each city; columns: synthetic or real training curves of each city. Lower is better.
| fWass | syn c0 | train c0 | syn c1 | train c1 |
|---|---|---|---|---|
| val c0 | 5878.6 | 5561.7 | 9840.3 | 8658.4 |
| val c1 | 7826.7 | 7983.6 | 7021.4 | 6232.0 |
Two features stand out. First, within each city the synthetic curves are nearly as close to the validation curves as the real training curves are. For Madrid the fWass is 5879 against a reference of 5562 (6% higher); for Valladolid it is 7021 against 6232 (13% higher). Second, each synthetic city lies closer to the real curves of its own city than to those of the other (Appendix D.4).

Figure 2: Madrid vs. Valladolid: real and synthetic curves. Left: class-conditional mean curves with SD bands, real (solid) and synthetic (dashed). Middle and right: three real and three synthetic curves for Madrid and Valladolid.
Figure 2 shows that the distribution of the synthetic curves is close to that of the real curves for both cities. The synthetic mean curves follow the real means and reproduce the seasonal amplitude and phase, and the spread of the synthetic curves around their mean is similar to that of the real curves.
4.3.3 Augmentation and Replacement across Synthetic Volume
The real-only classifier has accuracy 0.680 and AUC 0.636 on the test years. Its errors are mostly false Valladolid predictions: it labels 15 of the 39 Madrid test curves as Valladolid, while it recovers 10 of the 11 Valladolid curves. Figure 3 shows the generational trajectories; selected volumes are tabulated in Appendix D.4 (Table 7).
Both deployments improve on the baseline at every volume, but not monotonically. AUC peaks at , at under augmentation and under replacement,

Figure 3: Madrid vs. Valladolid: performance against synthetic volume. Test AUC, accuracy and F1 against the number G of pooled synthetic sets, ( ). Augmentation (real plus pooled synthetic) and replacement (pooled synthetic only). Lines: penalized B-spline smooths of the five replicates; bands: pointwise 95% confidence bands; dashed line: real-only baseline.
falls to about 0.69–0.70 at G = 8, and then settles at about 0.71 up to G = 20 (0.713 and 0.714); accuracy and F1 also peak at G = 4 (accuracy 0.772 and 0.792). The gain builds up from G = 1 (AUC 0.647 under augmentation and 0.677 under replacement) to its peak at G = 4. This rise, decline and plateau is the shape described by Theorem 3.1, which bounds the risk beyond the reflection point from below by a constant above its minimum.
4.3.4 Allocation under Class Imbalance
We now vary the share of synthetic curves given to Valladolid at fixed volume. Figure 4 shows the AUC and the per-class metrics against the Valladolid share, with the real-only classifier as reference; the full AUC grid is in Appendix D.4 (Table 8).
AUC. In the top-left panel of Figure 4, AUC increases with on average at every volume, with local decreases of at most 0.04 between neighbouring shares. Adding only Madrid curves ( ) leaves it close to the real-only value, whereas allocating most or all synthetic curves to Valladolid ( ) gives AUC between 0.74 and 0.82. The largest value, at and , is 0.19 above the real-only classifier.
Per-class metrics. The gain comes mainly from more reliable Valladolid predictions. Valladolid precision rises with (bottom left), from the real-only value of 0.40 to about 0.57 at for , and Madrid recall rises from its real-only value of 0.62 to 0.87 at (bottom right): synthetic Valladolid curves remove many of the false Valladolid predictions of the real-only classifier, at the cost of some Valladolid recall. The majority class keeps its performance. Madrid precision stays close to its real-only value of 0.96, decreasing only to about 0.9, and Madrid F1 (top right) exceeds its real-only value of 0.75 at every allocation, reaching 0.88 at and ; Valladolid F1 stays near its real-only value of 0.56. Accuracy rises from 0.689 to 0.815 at , above the 0.78 of the rule that always predicts Madrid; together with the threshold-free AUC, this shows that the gain does not come from predicting mostly one city.
Relation to the theory. The error terms of Theorem 3.4 are indexed by the per-class sample sizes , so the estimation error is largest in the minority class. The theorem labels the minority class 0, whereas here it is Valladolid (class 1), so is the minority share.

m/n — 0.5 — 1.0 — 1.5 — 2.0 — 2.5 — 3.0
Class — Madrid (class 0) — Valladolid (class 1)
Reference …… Real-only AUC —— Real-only, Madrid- --- Real-only, Valladolid
Figure 4: Madrid vs. Valladolid: AUC and per-class metrics against the minority allocation. AUC (top left), per-class F1 (top right), per-class precision (bottom left) and per-class recall (bottom right) against the Valladolid share , one colour per synthetic volume m/n. Coloured solid lines: Madrid (class 0); coloured dashed lines: Valladolid (class 1). Lines are means over 20 replicates; shaded bands are pointwise 95% confidence intervals for the mean (mean 1.96 standard errors over the 20 replicates). Black horizontal lines: the classifier trained on the 232 real training curves without synthetic curves (dotted: AUC; solid: Madrid; dashed: Valladolid).
Directing synthetic curves to that class, with 54 training curves, gave the largest gain, in agreement with the theorem.
4.4 Function-to-Scalar Regression
4.4.1 Task and Models
We predict the sugar content of a grape sample from its reflectance spectrum (Section 4.1) by penalized functional regression (Goldsmith et al. 2011) with refund::pfr in two specifications, with smoothing parameters chosen by REML:
• M1: , a functional linear effect of the spectrum;
• M2: , where is the variety of sample and is a fixed effect of variety , with one variety as the reference level ( ).
Performance is measured by test RMSE and .
As for the temperature curves, the synthetic spectra lie closest to the real spectra of their own variety, at distances of the same order as those of the real training spectra (details in Appendix D.5).
4.4.2 Augmentation and Replacement across Synthetic Volume
Figure 5 shows the trajectories; selected volumes are tabulated in Appendix D.5 (Table 11).
Augmentation raises from 0.658 to 0.747 (M1) and from 0.759 to 0.826 (M2) by G = 4, after which the augmented trajectories are flat up to G = 20; replacement, which already matches the real-data fit at G = 1, reaches the augmented fit by about G = 4. Because the synthetic responses are copies of training responses, the gain comes not from new response values but from more spectra per response value, which stabilizes the REML estimate of the coefficient function; it persists when variety is in the model (M2), so it is not a by-product of variety information carried by the generator.
4.5 Function-to-Function Regression
4.5.1 Task and Models
We predict a joint-moment curve from the angle, angular velocity and angular acceleration curves of the same joint and axis, over the gait cycle, in the two problems of Section 4.1: ankle VT, slow, and ankle AP, moderate. Both downstream models regress the moment curve on the three predictor curves and the load condition :
FDboost (Brockhaus et al. 2015) fits this model by component-wise gradient boosting, and PFFR (Scheipl et al. 2015) by tensor-product penalized splines with REML smoothing; their settings are given in Section 2.4. Performance is measured by the test RMSE over curves and grid points and by the functional .

Figure 5: Grape sugar content: performance against synthetic volume. Test RMSE and against the number G of pooled synthetic sets, ( ), for M1 (top) and M2 (bottom). Lines, bands and dashed line as in Figure 3.
By fWass, the synthetic curves are of similar quality to the real training curves (Appendix D.6).
4.5.2 Augmentation and Replacement across Synthetic Volume
Figure 6 shows the trajectories for ankle VT; those for ankle AP and a table of the best replicate-mean performance are in Appendix D.6 (Figure 11 and Table 15).
Augmentation improves both models in both problems, by 1.4–6.3% in RMSE and by 0.02–0.10 in functional , relative to real-only fits that explain 11–30% of the variation of the test moment curves; replacement does as well as augmentation at the best volume. PFFR improves at every volume in both problems, most on ankle VT, where the functional rises from 0.109 to 0.207 and levels off after about G = 15. FDboost improves at intermediate volumes: on ankle VT its RMSE is smallest near G = 4 and returns to about the real-only level by , the rise and decline described by Theorem 3.1.
5 Discussion
This paper developed synthetic data augmentation for functional data, with a conditional diffusion generator trained on the same small sample it augments. Measuring generation

Figure 6: Ankle VT, slow: performance against synthetic volume. Test RMSE and functional against the number G of pooled synthetic sets ( ) for FDboost (top) and PFFR (bottom). Lines, bands and dashed line as in Figure 3.
error by makes the volume theory meaningful in function space: the risk of synthetic training lies within of that of real training, in both directions, the generation penalty does not grow with the volume for stable estimators, and the allocation theory bounds the excess risk of augmentation without sample splitting. On three real datasets synthetic curves improved on real-only training, replaced the real data at moderate volumes and, under imbalance, gave their largest gain when directed to the minority class.
Future work will derive a statistical rate for conditional score matching with neural operators, which would replace the generation-error assumptions by results, and a theory for the quadratic generation penalty, which would sharpen the bounds of Theorem 3.2, whose generation penalty grows only linearly in . We also plan to develop a data-driven allocation rule with guarantees, to generate curves jointly with scalar covariates for richer regression models, and to study the privacy properties of synthetic functional data.
Data Availability Statement
The temperature data are from AEMET (Agencia Estatal de Meteorología), obtained through the AEMET OpenData service (https://opendata.aemet.es), which permits free reuse under Spain’s Law 18/2015 on the reuse of public-sector information, with attribution to AEMET (https://www.aemet.es/es/nota_legal). The gait data are those of Gertheiss et al. (2024), with the demonstration data and code available at https://github.com/davidruegamer/FDA_tutorial. Code, configuration files and seeds for every analysis will be released in a public repository in the coming months; Appendix B records all settings used.
6 Disclosure statement
The authors report there are no competing interests to declare.
References
Brockhaus, S., Scheipl, F., Hothorn, T. & Greven, S. (2015), ‘The functional linear array model’, Statistical Modelling 15(3), 279–300.
Chen, L., Shen, X. & Pan, W. (2025), 'Enhancing causal effect estimation with diffusion-generated data'.
URL: https://arxiv.org/abs/2504.03630
Da Prato, G. & Zabczyk, J. (2014), Stochastic Equations in Infinite Dimensions, 2nd edn, Cambridge University Press.
Febrero-Bande, M. & Fuente, M. O. d. l. (2012), ‘Statistical computing in functional data analysis: The R package fda.usc’, Journal of Statistical Software 51(4).
Franzese, G. & Michiardi, P. (2025), ‘Generative diffusion models in infinite dimensions: A survey’, Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 383(2299), 20240322.
Fukuchi, R. K., Fukuchi, C. A. & Duarte, M. (2017), ‘A public dataset of running biomechanics and the effects of running speed on lower extremity kinematics and kinetics’, PeerJ 5, e3298.
García-Portugués, E. & Álvarez Liébana, J. (2023), goffda: Goodness-of-Fit Tests for Functional Data. R package version 0.1.2.
URL: https://CRAN.R-project.org/package=goffda
Gelbrich, M. (1990), ‘On a formula for the Wasserstein metric between measures on Euclidean and Hilbert spaces’, Mathematische Nachrichten 147(1), 185–203.
Gertheiss, J., Rügamer, D., Liew, B. X. W. & Greven, S. (2024), ‘Functional data analysis: An introduction and recent developments’, Biometrical Journal 66(7), e202300363.
Goldsmith, J., Bobb, J., Crainiceanu, C. M., Caffo, B. & Reich, D. (2011), ‘Penalized functional regression’, Journal of Computational and Graphical Statistics 20(4), 830–851.
Gretton, A., Borgwardt, K. M., Rasch, M. J., Schölkopf, B. & Smola, A. (2012), ‘A kernel two-sample test’, Journal of Machine Learning Research 13(25), 723–773.
Greven, S. & Scheipl, F. (2017), ‘A general framework for functional regression modelling’, Statistical Modelling 17(1-2), 1–35.
Hall, P. & Horowitz, J. L. (2007), ‘Methodology and convergence rates for functional linear regression’, The Annals of Statistics 35(1), 70–91.
Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B. & Hochreiter, S. (2017), GANs trained by a two time-scale update rule converge to a local Nash equilibrium, in ‘Advances in Neural Information Processing Systems’, Vol. 30, Curran Associates, Inc., pp. 6626–6637.
Ho, J., Jain, A. & Abbeel, P. (2020), Denoising diffusion probabilistic models, in ‘Advances in Neural Information Processing Systems’, Vol. 33, Curran Associates, Inc., pp. 6840–6851.
Jordon, J., Szpruch, L., Houssiau, F., Bottarelli, M., Cherubin, G., Maple, C., Cohen, S. N. & Weller, A. (2022), 'Synthetic data – what, why and how?'. URL: https://arxiv.org/abs/2205.03257
Karatzoglou, A., Smola, A., Hornik, K. & Zeileis, A. (2004), ‘kernlab – an S4 package for kernel methods in R’, Journal of Statistical Software 11(9).
Kerrigan, G., Ley, J. & Smyth, P. (2023), Diffusion generative models in infinite dimensions, in ‘Proceedings of The 26th International Conference on Artificial Intelligence and Statistics’, Vol. 206, PMLR, pp. 9538–9563.
Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A. & Anandkumar, A. (2021), Fourier neural operator for parametric partial differential equations, in 'International Conference on Learning Representations'.
Liew, B. X., Morris, S. & Netto, K. (2016), ‘The effects of load carriage on joint work at different running velocities’, Journal of Biomechanics 49(14), 3275–3280.
Liew, B. X. W., Morris, S., Keogh, J. W. L., Appleby, B. & Netto, K. (2016), ‘Effects of two neuromuscular training programs on running biomechanics with load carriage: A study protocol for a randomised controlled trial’, BMC Musculoskeletal Disorders 17(1), 445.
Lim, J. H., Kovachki, N. B., Baptista, R., Beckham, C., Azizzadenesheli, K., Kossaifi, J., Voleti, V., Song, J., Kreis, K., Kautz, J., Pal, C., Vahdat, A. & Anandkumar, A. (2025), 'Score-based diffusion models in function space', Journal of Machine Learning Research 26(158), 1–62.
Mariucci, E. & Reiß, M. (2018), ‘Wasserstein and total variation distance between marginals of lévy processes’, Electronic Journal of Statistics 12(2), 2482–2514.
Masarotto, V. & Masarotto, G. (2024), fdWasserstein: Application of Optimal Transport to Functional Data Analysis. R package version 1.0.
URL: https://CRAN.R-project.org/package=fdWasserstein
Morris, J. S. (2015), ‘Functional regression’, Annual Review of Statistics and Its Application 2(1), 321–359.
Nichol, A. Q. & Dhariwal, P. (2021), Improved denoising diffusion probabilistic models, in 'Proceedings of the 38th International Conference on Machine Learning', Vol. 139, PMLR, pp. 8162–8171.
Panaretos, V. M. & Zemel, Y. (2020), An Invitation to Statistics in Wasserstein Space, Springer Briefs in Probability and Mathematical Statistics, Springer International Publishing, Cham.
Perez, E., Strub, F., De Vries, H., Dumoulin, V. & Courville, A. (2018), 'FiLM: Visual reasoning with a general conditioning layer', Proceedings of the AAAI Conference on Artificial Intelligence 32(1).
Pidstrigach, J., Marzouk, Y., Reich, S. & Wang, S. (2024), ‘Infinite-dimensional diffusion models’, Journal of Machine Learning Research 25(414), 1–52.
Rahman, M. A., Ross, Z. E. & Azizzadenesheli, K. (2022), ‘U-no: U-shaped neural operators’. URL: https://arxiv.org/abs/2204.11127
Ramsay, J. O. & Silverman, B. W. (2005), Functional Data Analysis, Springer Series in Statistics, Springer New York.
Ryckewaert, M. (2022), ‘Spectral dataset of grape berries from hyperspectral imaging for maturity monitoring’.
URL: https://data.mendeley.com/datasets/gjwx64sgkp/2
Scheipl, F., Staicu, A.-M. & Greven, S. (2015), ‘Functional additive mixed models’, Journal of Computational and Graphical Statistics 24(2), 477–501.
Shen, X., Liu, Y. & Shen, R. (2023), ‘Boosting data analytics with synthetic volume expansion’.
URL: https://arxiv.org/abs/2310.17848
Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N. & Ganguli, S. (2015), Deep unsupervised learning using nonequilibrium thermodynamics, in ‘Proceedings of the 32nd International Conference on Machine Learning’, Vol. 37, PMLR, pp. 2256–2265.
Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S. & Poole, B. (2021), Score-based generative modeling through stochastic differential equations, in ‘International Conference on Learning Representations’.
Thind, B., Multani, K. & Cao, J. (2023), ‘Deep learning with functional inputs’, Journal of Computational and Graphical Statistics 32(1), 171–180.
Tian, X. & Shen, X. (2024), ‘Enhancing accuracy in generative models via knowledge transfer’.
URL: https://arxiv.org/abs/2405.16837
Tian, X. & Shen, X. (2026a), ‘Conditional data synthesis augmentation’, Journal of the American Statistical Association 121(554), 1128–1140.
Tian, X. & Shen, X. (2026b), ‘Generative distribution prediction: A unified approach to multimodal learning’, Machine Learning 115(9), 209.
Villani, C. (2009), Optimal Transport: Old and New, Grundlehren der mathematischen Wissenschaften, Springer Berlin Heidelberg.
Wang, M., Shen, X. & Pan, W. (2025), ‘Diffusion-driven high-dimensional variable selection’. URL: https://arxiv.org/abs/2508.13890
Xiao, L., Zipunnikov, V., Ruppert, D. & Crainiceanu, C. (2016), 'Fast covariance estimation for high-dimensional functional data', Statistics and Computing 26(1-2), 409–421.
Yao, F., Müller, H.-G. & Wang, J.-L. (2005), 'Functional data analysis for sparse longitudinal data', Journal of the American Statistical Association 100(470), 577–590.
Zhou, Y., Chen, H., Iao, S. I., Kundu, P., Zhou, H., Bhattacharjee, S., Carroll, C., Chen, Y., Dai, X., Fan, J., Gajardo, A., Hadjipantelis, P. Z., Han, K., Ji, H., Zhu, C., Müller, H.-G. & Wang, J.-L. (2024), fdapace: Functional Data Analysis and Empirical Dynamics. R package version 0.6.0.
URL: https://CRAN.R-project.org/package=fdapace
Overview of the appendices
The appendices contain the details that the main text summarizes: the model, the settings needed to reproduce every analysis, the proofs of the theoretical results, and the full real-data results. Each appendix supports one or two sections of the main text and can be read on its own.
• Appendix A (Model details; supports Section 2). A.1 gives the diffusion process in function space: the forward and reverse stochastic differential equations, the Gaussian reference measure and the roles of the noise-kernel parameters. A.2 describes the network: the spectral convolution, the U-shaped structure, the conditional residual block with FiLM and the padding of the grid. A.3 gives the training and sampling algorithms.
• Appendix B (Implementation details; supports Sections 2 and 4). B.1 lists the software and computing environment, B.2 the generator configuration for each dataset, B.3 the synthetic sets and seeds of each design, and B.4 the exact specification of each downstream procedure.
• Appendix C (Theory; supports Section 3). C.1 collects remarks on each theorem: when the assumptions of Theorem 3.1 can hold together, an estimator with , the motivation of the benchmark rate, the probability version and gain window of Theorem 3.2, and the estimation-error indices and dependence model behind Theorems 3.3 and 3.4. C.2 states the auxiliary lemmas and proves all results, in the order of the main text.
• Appendix D (Real-data details; supports Section 4). D.1 describes the three datasets and their splits, D.2 defines the generation-quality metrics and D.3 the comparisons made with them. D.4–D.6 give, for the temperature, grape and gait data in turn, the generation-quality tables, the figures of real and synthetic curves, the downstream results at selected volumes, the full allocation grid for the temperature data, and the ankle AP trajectories for the gait data.
A Model Details
This appendix gives the details of the Conditional DDO that Sections 2.1 and 2.2 summarize. Settings that vary between experiments are in Appendix B.
A.1 Diffusion in Function Space
Table 4: Notation of Section 2.
| Symbol | Meaning |
| ; number of grid points; number of channels | |
| joint law of ; class-conditional laws; their synthetic counterparts | |
| number of classes; real class proportions; synthetic allocation, | |
| real sample size; synthetic sample size | |
| noise covariance operator; kernel amplitude, exponent and length scale | |
| signal scale and noise scale of the schedule | |
| denoising network and its parameters | |
| conditioning vector; its learned embedding | |
| training steps; batch size; reverse-diffusion steps | |
| number of pooled synthetic sets, each of size , so (Section 2.3.2) |
Forward process as a stochastic differential equation. The forward perturbation of Section 2.1, with (variance preservation), is the marginal law of the linear SDE
driven by a -Wiener process . For multi-channel data the noise is drawn independently in each channel, i.e. its covariance is .
Reference measure and score. The trace-class condition ensures that is a well-defined Gaussian measure on and that is finite. By the Feldman–Hájek theorem, two Gaussian measures on are either equivalent or mutually singular, and equivalence requires conditions on both the means and the covariances. The score of the perturbed law is therefore defined with respect to the Gaussian reference measure along its Cameron–Martin space, rather than with respect to a Lebesgue measure (Lim et al. 2025).
Kernel parameters. The three parameters of the powered-exponential kernel play the following roles.
- is the amplitude of the noise relative to the standardized curves (Section 2.2.2).
- controls the roughness of the noise paths: gives the Laplace (exponential) kernel with continuous but non-differentiable paths, and gives the Gaussian kernel with infinitely differentiable paths.
- is the length scale on the normalized domain (Lim et al. 2025): smaller values make the noise decorrelate over shorter distances, so it varies faster along the curve.
Reverse process. Let denote the law of . The reverse-time process is
where is a reverse-time -Wiener process. In function space, is the derivative of the log-density along the Cameron–Martin space of (Lim et al. 2025). Because has gradient , the conditional mean of the noise satisfies , which is the identity used in Section 2.1.
A.2 Network Architecture
Spectral convolution. For a feature map , SpecConv( ) proceeds in four steps: (i) , with frequency bins; (ii) keep the lowest-frequency bins, where and the mode budget counts real Fourier coefficients; (iii) multiply each kept bin by a learned complex matrix, ; (iv) apply the inverse FFT. Because halves at each coarser level, the budget is capped by the grid length of the level.
Multi-channel data. Multi-channel curves, such as the four gait channels (joint angle, angular velocity, angular acceleration and joint moment), enter as stacked input channels; the lifting layer maps them jointly to the base width and the spectral convolutions mix them, so the channels are generated jointly.
U-shaped structure
-
Lifting: a pointwise convolution maps the noisy curve , concatenated with the coordinate grid , to the base channel count.
-
Encoder: L resolution levels, each with R conditional spectral residual blocks followed by spectral downsampling; the resolution halves at each level and the width is multiplied by the level's channel multiplier. All reported configurations use L = 4 levels with multipliers (1, 2, 2, 4), and R = 2 (temperature, spectra) or R = 3 (gait); see Appendix B.
• Bottleneck: two conditional spectral residual blocks.
-
Decoder: a symmetric upsampling path with skip connections, with blocks per level.
-
Output: a convolution to C output channels, applied directly to the last decoder block. The network of Lim et al. (2025) applies a SiLU activation before this convolution; we omit it. Either form can output any real value, and we make no claim about the effect of this choice.
Conditional spectral residual block. Given the block input h, a timestep embedding, and the condition embedding c, the block computes
Algorithm 1 Training the Conditional Denoising Diffusion Operator
Input: training set ; noise covariance (parameters ); schedule ; number of steps ; batch size ; learning rates ; clipping norm .
Output: trained weights (with checkpoints saved during training); channel means and standard deviations .
1: Standardize each channel of every curve: .
2: Initialize at random; set up AdamW with a cosine-annealing schedule from to over steps (no restarts).
3: for to do
4: Draw a group-balanced minibatch from .
5: Draw a timestep for each curve (low-discrepancy sampler).
6: Draw noise independently for each curve and channel.
7: Compute and form .
8: Encode the condition: (one-hot or value-augmented), .
9: Predict .
10: Compute .
11: Clip the gradient norm to and update by AdamW; advance the learning-rate schedule.
12: end for
13: return
where Act is SiLU and Skip is the residual (skip) connection, which passes the block input directly to its output: the identity when the input and output widths agree, and a pointwise linear map convolution without bias) otherwise.
Grid length. Each encoder level halves the resolution, so the network needs a grid length divisible by ; the network of Lim et al. (2025) has no padding and therefore requires the curves themselves to have such a length. We instead pad each input curve and its coordinate grid at both ends, by repeating the end values, to the next multiple of , and crop the output back to the original N points. With L = 4, the 101-point gait curves gain three points and the 365-point temperature curves three points; the 104-point spectra are not padded. The training loss and the generated curves use the original N points only.
A.3 Training and Sampling Algorithms
Sampling coefficients. Writing for the previous time, the transition coefficients are
The second term of is the weight on the predicted clean curve . Algorithm 2 gives the procedure.
Algorithm 2 Conditional Sampling via Reverse Diffusion
Input: trained ; constants ; conditioning vectors ; number of steps .
Output: synthetic curves on the original scale.
1: For each : embed the condition, .
2: Draw the initial state for each and channel.
3: Set for , so and .
4: for to do
5: Set , ; compute , then and .
6: Predict and compute .
7: if then draw and set ; else set .
8: end for
9: return in each channel.
B Implementation Details
This appendix records the settings needed to reproduce the analyses of Section 4. The code, configuration files and seeds will be released in a public repository in the coming months.
B.1 Software and Computing Environment
The generator and its sampler are written in Python with PyTorch. Generation-quality metrics and all real-data downstream procedures are computed in R with the packages refund (FACE, PFR, PFFR), FDboost, fdapace, kernlab and fdWasserstein. Generators were trained on single NVIDIA A800 GPUs.
B.2 Generator Configurations for the Real Data
All real-data generators use the network of Section 2.2.2 with group normalization, the variance-preserving cosine schedule, -prediction, low-discrepancy timestep sampling, and powered-exponential Gaussian-process noise. Training uses AdamW with weight decay 0.01, cosine annealing from the initial to the final learning rate without restarts, gradient-norm clipping at 1, group-balanced minibatches, no condition dropout and no exponential moving average. Checkpoints are saved every 5,000 steps, and the one used for each dataset is listed in Table 5; where a validation set exists, it guides this choice (Section 2.3.1). Sampling uses the ancestral sampler of Algorithm 2 with 1,000 steps. Table 5 lists the settings that differ between datasets.
Data preparation. Temperature: station-years with any missing day are removed and the split is chronological (Section 4.1). Grape: the spectra are interpolated to a uniform grid (Appendix D.1.2), and the split is random with seed 42, stratified by variety and sugar-content tercile in proportions 6:2:2 within each of the nine strata. Gait: the participant-level partition supplied with the data is used, and the four channels of a joint and axis are stacked. In all cases the standardization constants of the generator are computed on the training split only.
Table 5: Generator settings for the real-data analyses. : grid points per channel; : grid length after padding to a multiple of (Section A.2); : number of frequency bins at the finest level; : mode budget in real Fourier coefficients, so that bins are kept at the finest level (Section A.2); : residual blocks per resolution level; : condition-embedding dimension; : number of groups in the conditioning vector. The gait settings apply to both ankle VT and ankle AP; the gait channels are angle, angular velocity, angular acceleration and moment.
| Setting | Temperature | Grape spectra | Gait |
|---|---|---|---|
| Channels | 1 | 1 | 4 |
| Grid points | 365 | 104 | 101 |
| Padded length | 368 | 104 | 104 |
| Frequency bins | 185 | 53 | 53 |
| Mode budget | 352 | 104 | 96 |
| Kept bins at finest level | 177 | 53 | 49 |
| Base width | 64 | 64 | 128 |
| Channel multipliers | (1, 2, 2, 4) | (1, 2, 2, 4) | (1, 2, 2, 4) |
| Residual blocks | 2 | 2 | 3 |
| Embedding | 512 | 512 | 512 |
| Conditioning | one-hot city | value-augmented variety | one-hot load condition |
| Groups | 2 | 3 | 3 |
| Noise | 2.0 | 1.0 | 2.0 |
| Noise | 1.0 | 1.0 | 1.5 |
| Noise | 0.05 | 0.2 | 0.05 |
| Training steps | 140,000 | 120,000 | 80,000 |
| Batch size | 8 | 8 | 8 |
| Initial learning rate | |||
| Final learning rate | |||
| Training seed | 42 | 42 | 42 |
| Checkpoint used | 65,000 | 120,000 (final) | 80,000 (final) |
| Training curves | 232 | 165 | 75 |
| Validation curves | 50 | 54 | none |
| Test curves | 50 | 55 | 18 |
B.3 Generation and Replicates
Quality-assessment sets. For the metrics of Section 4.2, one synthetic set is generated with seed 2026 and with the class counts of the reference sample (validation set for temperature and grape, test set for gait); for the grape data the (variety, response) pairs of the reference sample are used as conditions.
Generational pools. For each analysis, 100 synthetic sets are generated, each with its own seed (seeds 1–100 for temperature and 200–299 for grape and gait) and each with the class counts, or for grape the (variety, response) pairs, of the training data. For a volume G, the 100 set indices are shuffled with a pseudo-random generator seeded by G, and replicate takes the b-th consecutive block of G indices. The five replicates at a given G are therefore disjoint, and at G = 20 they exhaust the pool.
Allocation sweep (temperature). For each volume and share , synthetic Valladolid and synthetic Madrid curves are drawn from a separate large synthetic pool, independently for each of 20 replicates, and added to the 232 real curves.
B.4 Downstream Procedures
Classification. FACE (refund::fpca.face) is fitted to the training curves of each deployment, keeping the components that explain 95% of the variance; LDA is fitted to the scores with class priors equal to the training proportions; test curves are projected onto the same basis. AUC is computed from the posterior probability of Valladolid.
Function-to-scalar regression. refund::pfr with formula y ~ lf(X) (M1) or y ~ lf(X) + variety (M2), REML smoothing, and the default basis of lf.
Function-to-function regression. FDboost with formula moment ~ 1 + bsignal(angle, cycle) + bsignal(velocity, cycle) + bsignal(acceleration, cycle) + brandomc(condition), time formula ~ bbs(cycle, df = 5), boost_control(mstop = 1000, nu = 0.1), and the stopping iteration chosen by cvrisk over the grid 1,...,1000 with five bootstrap folds. PFFR (refund::pffr) with a functional linear effect ff() of each of the three predictor curves and a functional effect of the condition, with REML smoothing. The RMSE is computed over all test curves and grid points, and the functional is 1 – SSE/SST with SST taken around the mean test curve.
C Supplement to the Theoretical Results
This appendix collects further remarks on the results of Section 3 (C.1) and their proofs (C.2).
C.1 Additional Remarks
C.1.1 Remarks on Theorem 3.1
Remark C.1. Under Assumptions 3.1 to 3.3,
In particular, the three assumptions are jointly satisfiable only if .
Remark C.2. Assume in addition that is -Lipschitz with respect to for some and . Then:
(a)
(b) Assumption 3.3 implies ;
(c) if and , then satisfies Assumption 3.2(a) at (the only instance used in the proof of Theorem 3.1) and Assumption 3.3.
C.1.2 Remarks on Theorem 3.2
Remark C.3. Example ( ). Let be a normed space, with 1-Lipschitz, and -Lipschitz. Then , so Assumption 3.4 holds with . FPCA followed by LDA and penalized functional regression are approximately of this averaging form when they are well conditioned.
Remark C.4. Assumption 3.5 says that the risk of training on m real curves falls like a power of m, . Power laws of this kind are standard in functional regression. For the functional linear model , Hall & Horowitz (2007, Thm 1) show that the best attainable error in estimating the slope b falls like , with
where is how fast the variances of the principal components of decay ( ) and how fast the coefficients of on those components decay; estimators based on functional principal components attain this rate. The prediction error is at most the largest component variance times the slope error, , so it falls at least as fast, and is the range to expect. The exact form , taken from Shen et al. (2023), gives the optimal volume and the gain threshold of Theorem 3.2 explicit formulas. Two further facts are used: , because the loss is bounded by (Assumption 3.1); and when even the best predictor errs, as with noise in regression or overlapping classes, the risk levels off at this Bayes risk, so the assumption is applied to the risk above it.
Remark C.5. Probability version. Under Assumption 3.6, Parts 1–3 hold on , an event of probability at least . The gain conclusion holds there whenever , respectively . Remark C.6 makes the rate requirement explicit.
Remark C.6. Let and if ; let and if .
(i) For and , the first term of the Part 2 bound is at most if and only if , and the second term is at most if .
(ii) Under Assumption 3.6, for every there is with . On the event , of probability at least , Theorem 3.2 yields .
(iii) Suppose for , and set . The condition holds for all sufficiently large if , or if and either or and . It fails for all sufficiently large if .
By (iii), a generator trained on the same curves can certify a gain at all large only if its generation rate is at least ; at the requirement is . Better-trained generators are the route to this regime.
C.1.3 Remarks on Theorems 3.3 and 3.4
Block estimation-error indices. The estimation error is measured separately for the synthetic block , law ) and the real block , law . Let be the conditional center and a minimizer of . Put , , and , and let , . Fix block shares with (written ) and . For and define the slice threshold and slice variance bound
with from Assumption 3.10 and from Theorem 3.3. With the bracketing entropy in , let
with , and . The set is an up-set, and “ ” is read as “ ”. The index is -measurable. By Lemma C.5, a sufficient condition for the real-block entropy inequality is the same inequality for with the integration limits halved and the constant 210 replaced by .
The term . In Assumption 3.14, is the part of the generation error that does not shrink with the real sample size, such as the reconstruction error of the pretrained encoder–decoder in Tian & Shen (2026a); it is zero for our generators, which are trained from scratch.
Remark C.7. Dependence model. , the slices of the proof and are -measurable. The two blocks are handled differently:
• Synthetic block. Conditionally on its draws are independent (not identically distributed across classes). Its class is therefore fixed, and the conditional tail is integrated over the generation event .
• Real block. Its randomness is itself, so it is analysed over the non-random class G.
The two bounds are then combined by a union bound (Section 3.3).
C.2 Proofs
Notation is that of Section 3. In addition, for the logistic function , and . Events that are not known to be measurable are assigned outer probability ; only monotonicity and countable subadditivity of outer probability are used.
C.2.1 Auxiliary Results
The following results are used in the proofs of Section 3. Throughout, is a Polish space.
Lemma C.1. Let and . Equip with . Then .
Proof of Lemma C.1
By (Mariucci & Reiß 2018, Lemma 1(4)) there is with . Define
and . The marginals of are and , so and
Lemma C.2. Let be Borel with . For let be Borel probability measures concentrated on . Let be probability vectors on , and set and . Then
In particular: (i) ; (ii) if for all , then .
Proof of Lemma C.2
Let and . Since , we have . Let be optimal (Mariucci & Reiß 2018, Lemma 1(4)).
If , then and .
If , then , so
are probability measures concentrated on . Put . Its first marginal is , and its second marginal is by the same computation. Since is concentrated on , where ,
Statement (i) follows from , and (ii) from .
Corollary C.1. Under Assumption 3.9, on the generation event S,
Proof of Corollary C.1
Apply Lemma C.2(i) with , , and . On , . The equality is the definition of and .
Lemma C.3. Let be -Lipschitz with respect to , with , and let . Then .
Proof of Lemma C.3
For , . By Kantorovich–Rubinstein duality,
Since ,
Subtracting the two identities and applying the triangle inequality gives the claim.
Lemma C.4. Let be a real random variable with . Then for every .
Proof of Lemma C.4
Since , . It remains to show , i.e. . This holds for , and if then .
Lemma C.5. For every and every probability measure , . Consequently, for ,
Proof of Lemma C.5
Let be -brackets covering , i.e. . If and , then , and by Minkowski's inequality
Hence the brackets cover , which gives the entropy bound. The integral bound follows by the substitution .
Lemma C.6. Let be independent, and . Let be a class of measurable functions such that, for some , and every ,
and let . Let be the -bracketing entropy of . Fix and with
(i)
(ii)
Then, with the outer probability,
Lemma C.6 is Tian & Shen (2026a, Appendix B, Lemma 2), which restates Tian & Shen (2024, Lemma 11) for independent, not necessarily identically distributed variables, with . For i.i.d. variables it coincides with Tian & Shen (2024, Lemma 11) under and . The norm defining is not specified in the source; we adopt . Applying the lemma to , which satisfies the same hypotheses, bounds the lower tail by the same quantity. It is the only result used without proof.
C.2.2 Proof of Theorem 3.1 and of Remarks C.1 and C.2
Proof of Theorem 3.1
Fix and write and . By Assumption 3.1, for all , so . If were admitted as a value of , Assumption 3.3 would read , contradicting ; hence .
Step 1. For every ,
Indeed, . Next, for all (by Assumption 3.2(b) for , trivially for ). Then by Assumption 3.2(a) at . Finally by Assumption 3.3.
Step 2 ( ). If , then (A.1) holds for all , so is a lower bound of and , a contradiction.
Step 3 (i'). By Step 2, . Let and , so that . By (A.1), , hence and . Any satisfies (i').
Step 4 (ii'). For , (A.1) and Step 3 give .
Proof of Remark C.1
The left inequality is Assumption 3.3. For the right, .
Proof of Remark C.2
Lemma 3.1 with constant gives . Combined with , this gives (a). Then (b) follows from . For (c), .
C.2.3 Proof of Theorem 3.2, Lemma 3.1 and Remark C.6
Proof of Lemma 3.1
The test point is independent of , and . By Fubini's theorem,
The space is Polish and . The Kantorovich–Rubinstein duality (Panaretos & Zemel 2020, Thm 1.4.2) applied to the 1-Lipschitz function , followed by Lemma C.1, gives
Proof of Theorem 3.2
Fix and assume Assumptions 3.1, 3.4 and 3.5. Write .
Step 1 (Part 1). Fix . By Assumption 3.4, is -Lipschitz, so Lemma 3.1 gives . Since , also . The two-sided bound follows from (Assumption 3.5).
Step 2 (Part 2, ).
Case . is a metric on (Mariucci & Reiß 2018, Lemma 1(1)), so . Then for all , and .
Case . Then . Let , so . By Part 1, and since is decreasing and is nondecreasing,
The map is concave and differentiable on , so . Hence
Substituting gives
where we used and . The first two terms sum to , and .
Step 3 (Part 2, ). By Part 1, for all . Since , . If , this and give .
Step 4 (Part 3, ). Let and assume .
Case w = 0. By Part 1, .
Case . The bound gives , with . Hence
Since and , we have . Raising to the power gives , that is,
Part 2 with (A.3) and (A.4) gives .
Step 5 (Part 3, ). By Step 3, .
Proof of Remark C.6
(i) Let and . Since , the inequality is equivalent to . Both sides are positive and is increasing, so this is equivalent to . If , then raising to the power gives , that is, .
(ii) Fix . Since and , there is with . On the event we have , which is the hypothesis of Theorem 3.2, Part 3, for ( , ) and for ( , ). Hence on this event, whose probability is at least by Assumption 3.6.
(iii) Dividing by , the condition is equivalent to . If , the right-hand side grows polynomially and the left-hand side at most polylogarithmically, so the condition holds for all large . If , the right-hand side equals ; the left-hand side tends to 0 if and equals if , which gives the two stated cases. If , the right-hand side tends to 0 as , while the left-hand side is bounded below by if and decays only polylogarithmically if ; in both cases the ratio of the left-hand side to the right-hand side tends to infinity, so the condition fails for all large .
C.2.4 Proof of Theorem 3.3
Notation
• Synthetic sample. Conditionally on , the variables ( ) are independent with .
• Blocks. Put , , and .
• Centering. Let and .
• Function classes. and ;
• Generation event. .
The random objects , , , and are -measurable.
The slice thresholds , the slice variance bounds and the block indices are those of Section 3.3.
Proof of Theorem 3.3
Fix satisfying the hypotheses of Theorem 3.3, and set .
Step 1 (risk discrepancy). For every , by Assumption 3.7,
With this gives
By Assumption 3.8, and, by Kantorovich–Rubinstein duality, . Hence
and on S,
the last inequality by .
Step 2 (reduction to ). On S, for every ,
The third bracket is ≤ 0 because minimizes . By (A.5) and ,
Two consequences follow. First, with ,
Second, with ,
Step 3 (slicing and block split). Define
The decomposition holds because . Since and ,
Let for . Since , whenever . If , then for , and by (A.9), . If , then or . Therefore
Step 4 (variance bounds on the slices). Fix and , and work on . By (A.6) and (A.7),
Since and , Assumption 3.10 gives
The function is -Lipschitz with . Lemma C.3 with , followed by Corollary C.1 and , gives
With (A.11) and , on S both blocks satisfy
For the synthetic block, the law of total variance gives .
Step 5 (per-block tails). Two conditions of Lemma C.6 are verified first.
• Condition (i). Since , the inequality holds whenever . For this is the Bernstein-range condition of Theorem 3.3.
• Exponent. Since , we have . Hence
Real block. Let . This class is non-random, and it is symmetric: . On , (A.12) gives for all , hence
Apply Lemma C.6 to with i.i.d. and :
- the moment condition holds with by Lemma C.4, since for ;
• condition (i) is verified above;
• condition (ii) holds because and .
With (A.13),
Synthetic block. Condition on and assume . The class is then fixed, and are independent with . Apply Lemma C.6 to with and , where is the class of the -th synthetic draw:
• the moment condition holds by Lemma C.4;
• holds by (A.12);
• condition (ii) holds because almost surely.
This gives . Integrating over ,
Step 6 (assembly). By (A.8), (A.10), (A.14), (A.15) and countable subadditivity, with ,
using and . By Assumption 3.11 and the union bound,
The theorem follows from . No step uses independence between and the synthetic draws beyond their conditional law given .
C.2.5 Proofs for Section 3.4
Here , , and the cross-entropy loss is . The Q-target of Theorem 3.3 is distinct from unless .
Proof of Theorem 3.4
Step 1 (binary indices). Since and , . Since , . By Assumption 3.13, . By Assumption 3.14 and ,
Step 2 (a). By Step 1, . Part (a) is Theorem 3.3 with and .
Step 3 (b). Since , we have .
Since , , and if , then gives . For , is equivalent to (for it holds trivially), and then . If and , all three factors are at least 1; this covers , since , while for the condition reads .
Step 4 (c). From we get . Since ,
The two special allocations are computed as follows.
• At : , so and .
• At : if and only if . Using , we get , so . Also , so .
Step 5 (d). Let . For and , and . Hence , and
since . The bound on follows by replacing in its definition.
D Real-Data Analyses: Supplementary Details
This appendix gives details of the real-data analyses of Section 4: the datasets (D.1), the generation-quality metrics (D.2) and comparisons (D.3), and further results for each dataset (D.4–D.6).
D.1 Datasets
D.1.1 Spanish Station Temperature
The aemet_temp dataset of goffda (García-Portugués & Álvarez Liébana 2023) contains the daily average temperatures of 73 Spanish weather stations for 1974–2013. The records were retrieved from the FTP server of the Spanish State Meteorological Agency (AEMET, Agencia Estatal de Meteorología) in 2014 with a script of the fda.usc authors (Febrero-Bande & Fuente 2012), and goffda keeps 73 of 115 stations with consistent records. In leap years the values of 28 and 29 February are averaged, so every curve has 365 values. Curves are used on the original temperature scale. Station-years with any missing day are removed, without imputation.
The Madrid class contains seven stations (Retiro, Barajas, Cuatro Vientos, Getafe, Torrejón, Navacerrada and Colmenar Viejo), several of them in the surroundings of the city, and the Valladolid class contains two (Valladolid and Villanubla). The chronological split is approximately 70/15/15 and gives 232 training curves (178 Madrid, 54 Valladolid), 50 validation curves (38 and 12) and 50 test curves (39 and 11).
D.1.2 Grape Hyperspectral Spectra
Each spectrum is measured at 204 bands between 397.3 and 1003.5 nm with slightly uneven spacing (2.9–3.1 nm). Because the Fourier layers act on a uniform grid, the spectra are linearly interpolated onto 104 equally spaced wavelengths (spacing 5.9 nm), about half the raw resolution and a length divisible by , so no padding is needed (Section A.2). Reflectance lies between 0.03 and 0.54, and the sugar content of the training samples ranges from 101 to 283 g/L. The split is random, with seed 42, and stratified so that each of the nine strata (variety × tercile of sugar content within variety) is split 6:2:2. This gives 165 training samples (38 Fer, 51 Mauzac, 76 Syrah), 54 validation samples (12, 17, 25) and 55 test samples (13, 17, 25). The variety is the group of the value-augmented encoding of Section 2.2.1.
D.1.3 Gait Biomechanics
The data were assembled by Gertheiss et al. (2024) as a demonstration dataset for functional data analysis. They contain functional variables indexed by joint (ankle, knee, hip), axis (anterior–posterior, AP; medial–lateral; vertical, VT) and measure (angle, angular velocity, angular acceleration, joint moment), each time-normalized to 101 points over the gait cycle. In the slow, moderate and fast groups the three load conditions are recorded at one running speed. Each of our two problems has 75 training curves (25 participants under three conditions) and 18 test curves (6 participants); the data are too small to hold out validation participants. A curve holds the four channels (angle, angular velocity, angular acceleration and joint moment) of one participant under one load condition; the channels are generated jointly, without constraints linking velocity and acceleration to the derivatives of the angle. Scalar covariates such as age, height, weight and sex are available but are not used in any downstream model (Section 2.4).
D.2 Generation-Quality Metrics
The three metrics of Section 4.2 are computed in R as follows.
• MMD is the maximum mean discrepancy (Gretton et al. 2012) with an RBF kernel, computed with kernlab (Karatzoglou et al. 2004). The bandwidth is set by the median heuristic. The statistic is the square root of the biased estimate of MMD , so it is positive in finite samples even for identical laws.
• fWass is the squared distance between Gaussian approximations of two samples. With empirical means and covariance matrices of the discretized curves,
(Gelbrich 1990), where the covariance term is computed with fdWasserstein (Masarotto & Masarotto 2024). The first term measures the shift of the mean function and the second is the Bures–Wasserstein distance between the covariances. Both are sums over grid points (and channels), so fWass depends on the grid and on the units of the curves; we compare it only within a dataset.
• fFID applies the fWass formula, including the squared mean difference, to functional principal component scores from an FPCA fitted with fdapace (Zhou et al. 2024) on the real reference curves (Heusel et al. 2017).
D.3 Comparison Scheme
We compute the metrics under three comparisons, with the validation curves as reference sample (the test curves for gait).
-
Reference level. Real training curves against the reference curves of the same class. This shows the discrepancy expected from sampling and, for the temperature data, from year-to-year variation alone. It is a reference, not a lower bound: synthetic curves can lie closer to a reference sample than another real sample does, for example when they are smoother than real curves.
-
Within-class fidelity. For each class k, synthetic curves of class k against reference curves of class k.
-
Cross-class confusion. Synthetic class k should lie closer to real class k than to real class ; otherwise the generator mixes features across classes.
For the grape data, where the generator is also conditioned on a continuous response, we add a visual check: real and synthetic spectra are stratified by tercile of sugar content within variety, and the mean and standard deviation envelopes are overlaid within each tertile. Misaligned envelopes would show that the generator has not captured the relation between spectrum and response, even when MMD and fWass look acceptable.
D.4 Temperature: Further Results
Generation quality. Table 6 gives fFID and MMD for the comparisons of Table 3. They order the comparisons as fWass does, with one exception: by MMD, the Valladolid validation curves lie slightly closer to real than to synthetic Madrid curves (0.477 against 0.510). The cities stay distinguishable in the synthetic data: validation Madrid curves lie closer to synthetic Madrid (5879) than to synthetic Valladolid (9840), and validation Valladolid curves lie closer to synthetic Valladolid (7021) than to synthetic Madrid (7827).
Table 6: Madrid vs. Valladolid: fFID and MMD against the validation years. Layout as in Table 3. Lower is better.
| fFID | MMD | train c0 | train c1 | |||||
|---|---|---|---|---|---|---|---|---|
| syn c0 | train c0 | syn c1 | train c1 | syn c0 | train c0 | syn c1 | train c1 | |
| val c0 | 2258.2 | 1929.3 | 5521.1 | 4944.8 | 0.336 | 0.306 | 0.603 | 0.544 |
| val c1 | 4154.1 | 4218.0 | 2713.3 | 2408.2 | 0.510 | 0.477 | 0.447 | 0.365 |
Checkpoint choice. For the temperature data, generation-quality metrics were computed on the validation years at every checkpoint, and the checkpoint at 65,000 steps was used for all analyses. For the grape and gait data, the final checkpoint was used.
Generational design. Table 7 gives the trajectories of Figure 3 at their end points and at the peak, .
Table 7: Madrid vs. Valladolid: test accuracy and AUC at selected volumes of the generational design. Mean standard error over five replicates with disjoint synthetic data; the real-only classifier is deterministic. : number of pooled synthetic sets of 232 curves; and are the end points of Figure 3, and is the volume at which its trajectories peak.
| Deployment | Training curves | Accuracy | AUC | |
|---|---|---|---|---|
| Real only | — | 232 | ||
| Augmentation | 1 | 464 | ||
| Replacement | 1 | 232 | ||
| Augmentation | 4 | 1160 | ||
| Replacement | 4 | 928 | ||
| Augmentation | 20 | 4872 | ||
| Replacement | 20 | 4640 |
Allocation. Table 8 gives the full AUC grid of Section 4.3.4. Between neighbouring shares, AUC decreases by at most 0.04 and increases by up to 0.06. Adding only Madrid curves () changes the AUC by at most 0.026. At small volumes the best share is rather than 1, but the difference is within one standard error.
D.5 Grape: Further Results
Generation quality. Table 9 compares synthetic and real training spectra with the validation spectra by fWass, on the reflectance scale and summed over the 104 wavelengths.
Two features stand out. First, within each variety the synthetic spectra are about as close to the validation spectra as the real training spectra are: closer for Fer (0.8 against 1.1) and Mauzac (4.1 against 6.4), farther for Syrah (7.8 against 2.8). Second, each synthetic variety
Table 8: Madrid vs. Valladolid: test AUC over the full allocation grid. Mean over 20 replicates, with the standard error in parentheses. Rows: synthetic volume ; columns: share of synthetic curves allocated to Valladolid. Real-only AUC: 0.636.
| 0.0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.5 | 0.627(8) | 0.652(9) | 0.647(9) | 0.655(9) | 0.715(14) | 0.675(15) | 0.694(12) | 0.746(11) | 0.727(10) | 0.754(9) | 0.738(10) |
| 1.0 | 0.644(6) | 0.674(9) | 0.674(13) | 0.672(9) | 0.700(14) | 0.692(10) | 0.721(11) | 0.753(9) | 0.750(12) | 0.769(8) | 0.762(7) |
| 1.5 | 0.650(5) | 0.651(8) | 0.665(8) | 0.694(13) | 0.709(10) | 0.718(12) | 0.716(10) | 0.767(9) | 0.762(10) | 0.802(6) | 0.818(4) |
| 2.0 | 0.646(7) | 0.677(8) | 0.686(11) | 0.677(7) | 0.713(9) | 0.730(10) | 0.738(10) | 0.759(10) | 0.788(8) | 0.807(4) | 0.810(7) |
| 2.5 | 0.652(6) | 0.672(8) | 0.685(10) | 0.709(11) | 0.692(7) | 0.718(9) | 0.730(11) | 0.768(9) | 0.803(5) | 0.811(5) | 0.824(7) |
| 3.0 | 0.662(3) | 0.667(6) | 0.685(7) | 0.682(7) | 0.707(10) | 0.726(10) | 0.747(9) | 0.772(8) | 0.793(7) | 0.807(4) | 0.815(6) |
Table 9: Grape spectra: generation quality (fWass) against the validation set. Rows: validation spectra of each variety; columns: synthetic (syn) or real training (train) spectra of each variety. fWass is multiplied by . Lower is better.
| fWass | syn Fer | train Fer | syn Mauzac | train Mauzac | syn Syrah | train Syrah |
|---|---|---|---|---|---|---|
| val Fer | 0.8 | 1.1 | 516.5 | 524.9 | 8.8 | 9.8 |
| val Mauzac | 525.8 | 524.7 | 4.1 | 6.4 | 479.5 | 469.1 |
| val Syrah | 7.1 | 8.0 | 470.8 | 479.8 | 7.8 | 2.8 |
lies closest to the validation spectra of its own variety (columns of the table): synthetic Fer at 0.8 against at least 7.1, synthetic Mauzac at 4.1 against at least 470.8, and synthetic Syrah at 7.8 against at least 8.8.
Table 10 gives the fFID and MMD values within each variety. For Fer and Mauzac the synthetic spectra are closer to the validation spectra than the training spectra are by fFID, and by MMD for Mauzac; for Syrah they are farther by both. Figure 7 shows real and synthetic spectra, and Figure 8 checks the relation between spectrum and sugar content, which these metrics ignore, by tercile of sugar content.
Table 10: Grape spectra: fFID and MMD against the validation set. Synthetic (syn) or real training (train) spectra of a variety against validation spectra of the same variety. fFID is multiplied by . Lower is better.
| Variety | fFID syn | fFID train | MMD syn | MMD train |
|---|---|---|---|---|
| Fer | 0.5 | 0.8 | 0.162 | 0.137 |
| Mauzac | 3.6 | 6.1 | 0.245 | 0.267 |
| Syrah | 7.6 | 2.3 | 0.244 | 0.162 |

Figure 7: Grape spectra: real and synthetic reflectance. Individual spectra for nine validation spectra per variety (solid), each paired with the synthetic spectrum of closest sugar content (dashed). First three panels: one variety each, colored by sugar content; right: all varieties together, colored by variety.

Figure 8: Grape spectra: conditional fidelity by sugar content. Within each variety (panel), the low, middle and high terciles of sugar content are overlaid, real (solid) and synthetic (dashed).
Generational design. Table 11 gives the end points of the trajectories in Figure 5 and the volume at which the gain is essentially complete.
Table 11: Grape sugar content: test RMSE and of penalized functional regression. Mean standard error over five replicates with disjoint synthetic data; the real-only fit is deterministic. : number of pooled synthetic sets of 165 spectra. M1: functional effect of the spectrum; M2: M1 plus a variety effect.
| Deployment | G | Training spectra | M1 RMSE | M1 R2 | M2 RMSE | M2 R2 |
|---|---|---|---|---|---|---|
| Real only | — | 165 | 21.24 | 0.658 | 17.85 | 0.759 |
| Augmentation | 1 | 330 | 18.92 ± 0.34 | 0.729 ± 0.010 | 15.62 ± 0.18 | 0.815 ± 0.004 |
| Replacement | 1 | 165 | 21.34 ± 0.28 | 0.655 ± 0.009 | 17.84 ± 0.28 | 0.759 ± 0.008 |
| Augmentation | 4 | 825 | 18.26 ± 0.16 | 0.747 ± 0.004 | 15.16 ± 0.14 | 0.826 ± 0.003 |
| Replacement | 4 | 660 | 18.34 ± 0.19 | 0.745 ± 0.005 | 15.11 ± 0.18 | 0.827 ± 0.004 |
| Augmentation | 20 | 3465 | 18.24 ± 0.07 | 0.748 ± 0.002 | 15.45 ± 0.06 | 0.819 ± 0.002 |
| Replacement | 20 | 3300 | 18.24 ± 0.07 | 0.748 ± 0.002 | 15.44 ± 0.07 | 0.820 ± 0.002 |
D.6 Gait: Further Results
Generation quality. Without a validation split, generation quality is described against the 18 test curves (6 per condition). Table 12 compares synthetic and real training curves of each load condition with the test curves of each condition for ankle VT, and Table 13 does so for ankle AP. The fWass values are summed over 101 grid points and four channels on the original scales, where the angular acceleration channel dominates; they are shown in units of .
Table 12: Ankle VT, slow: generation quality (fWass) against the test curves. Rows: test curves of each load condition (0%, 10% and 20% of body weight); columns: synthetic (syn) or real training (train) curves of each condition. fWass in units of . Lower is better.
| Test | syn 0% | train 0% | syn 10% | train 10% | syn 20% | train 20% |
|---|---|---|---|---|---|---|
| 0% | 9.4 | 11.6 | 12.7 | 10.7 | 11.1 | 11.4 |
| 10% | 12.3 | 14.7 | 12.7 | 12.4 | 12.5 | 13.8 |
| 20% | 11.2 | 13.1 | 13.6 | 11.6 | 12.0 | 12.7 |
Table 13: Ankle AP, moderate: generation quality (fWass) against the test curves. Layout and units as in Table 12.
| Test | syn 0% | train 0% | syn 10% | train 10% | syn 20% | train 20% |
|---|---|---|---|---|---|---|
| 0% | 21.4 | 8.8 | 12.6 | 12.1 | 24.5 | 16.8 |
| 10% | 24.2 | 9.2 | 10.1 | 9.6 | 22.7 | 13.2 |
| 20% | 20.4 | 9.5 | 10.8 | 9.5 | 16.6 | 10.7 |
Within conditions, the ankle VT synthetic curves are as close to the test curves as the real training curves are (fWass 9.4–12.7 against 11.6–12.7); for ankle AP, the synthetic 0% and 20% curves are 2.4 and 1.6 times as far as the training curves. Across conditions, the load conditions are only weakly separated even in the real data (the 0% test curves of ankle VT are closer to the 10% than to the 0% training curves, 10.7 against 11.6), and the synthetic curves reproduce this weak separation.
Table 14 gives the MMD values within each load condition for both gait problems. By MMD the synthetic curves are somewhat farther from the test curves than the training curves are in five of the six cases, including two of the three ankle VT conditions, where fWass finds them as close.
Table 15 gives, for each model and deployment, the real-only performance and the best replicate-mean performance over the 20 volumes of Figures 6 and 11.




Figure 9: Ankle VT, slow: real and synthetic curves. Columns: angle, angular velocity, angular acceleration and moment. Top row: condition-wise mean SD of the test curves of the six held-out participants (solid) and of synthetic curves (dashed); rows 2–4: individual curves and their means for the 0%, 10% and 20% loads. Horizontal axis: percentage of the gait cycle.




Figure 10: Ankle AP, moderate: real and synthetic curves. Layout as in Figure 9.
Table 14: Gait: MMD against the test curves. Synthetic (syn) or real training (train) curves of a load condition against test curves of the same condition. Lower is better.
| Problem | Condition | MMD syn | MMD train |
|---|---|---|---|
| Ankle VT, slow | 0% | 0.552 | 0.493 |
| 10% | 0.551 | 0.512 | |
| 20% | 0.422 | 0.492 | |
| Ankle AP, moderate | 0% | 0.484 | 0.376 |
| 10% | 0.434 | 0.404 | |
| 20% | 0.401 | 0.381 |
Table 15: Gait moment prediction: test RMSE and functional . Real only: the deterministic real-only fit. Augmentation and replacement: best value over of the mean over five replicates, with the minimizing (RMSE) or maximizing () in parentheses; . Entries are the best value over the 20 volumes.
| Problem | Model | Real-only RMSE | Aug. RMSE | Repl. RMSE | Real-only | Aug. | Repl. |
|---|---|---|---|---|---|---|---|
| Ankle VT, slow | FDboost | 0.649 | 0.632 (4) | 0.630 (5) | 0.155 | 0.189 (3) | 0.188 (5) |
| PFFR | 0.666 | 0.624 (19) | 0.622 (19) | 0.109 | 0.207 (19) | 0.210 (19) | |
| Ankle AP, moderate | FDboost | 1.478 | 1.457 (10) | 1.456 (10) | 0.199 | 0.223 (10) | 0.224 (10) |
| PFFR | 1.337 | 1.301 (10) | 1.299 (10) | 0.296 | 0.326 (10) | 0.328 (10) |

Figure 11: Ankle AP, moderate: performance against synthetic volume. Layout as in Figure 6.