Abstract
Diffusion models excel at generation, but their latent spaces are high dimensional and not explicitly organized for interpretation or control. We introduce ConDA (Contrastive Diffusion Alignment), a plug-and-play geometry layer that applies contrastive learning to pretrained diffusion latents using auxiliary variables (e.g., time, stimulation parameters, facial action units). ConDA learns a low-dimensional embedding whose directions align with underlying dynamical factors, consistent with recent contrastive learning results on structured and disentangled representations. In this embedding, simple nonlinear trajectories support smooth interpolation, extrapolation, and counterfactual editing while rendering remains in the original diffusion space. ConDA separates editing and rendering by lifting embedding trajectories back to diffusion latents with a neighborhood-preserving kNN decoder and is robust across inversion solvers. Across fluid dynamics, neural calcium imaging, therapeutic neurostimulation, facial expression dynamics, and monkey motor cortex activity, ConDA yields more interpretable and controllable latent structure than linear traversals and conditioning-based baselines, indicating that diffusion latents encode dynamics-relevant structure that can be exploited by an explicit contrastive geometry layer.
1. Introduction
Controlling the generation of complex system dynamics, such as fluid flows around an obstacle, neural responses to therapeutic stimulation, or evolving facial expressions, requires generative models whose latent spaces have a geometry that captures trajectories and allows movement along time and other system variables in a principled way. Despite the success of diffusion models in generative modeling, a fundamental limitation remains: their latent spaces are not explicitly organized to represent temporal or other auxiliary-variable–dependent structure, leaving no principled mechanism for traversing complex dynamics. Addressing this gap is crucial for applications where controllability is as important as fidelity.
Diffusion models provide unmatched fidelity, stable training, and reliable inversion (Ho et al., 2020; Dhariwal and Nichol, 2021; Rombach et al., 2022; Mokady et al., 2023). Yet their latents are not dynamics-aware: linear interpolations often produce implausible intermediate states (Wang and Golland, 2023; Hahm et al., 2024), and existing mechanisms that incorporate auxiliary information such as ControlNet or InstructPix2Pix (Zhang et al., 2023; Brooks et al., 2023) guide samples but do not yield consistent traversal directions across time or other variables. As shown in Sec. 5, this result in blurry or entangled transitions when interpolating fluid dynamics trajectories and inconsistent progression in neural recordings and facial expressions (Fig. 2).
Figure 2. Visual comparison of generated images from interpolations in -space.

Linear methods (Lerp, Slerp) show inferior perceptual quality, whereas Spline and TEX-2 yield smoother, more dynamics-consistent reconstructions.
Recent advances attempt to address this challenge. Geometry-preserving traversals (Hahm et al., 2024), physics-informed priors (Shu et al., 2023), and video diffusion models such as MCVD (Voleti et al., 2022), Imagen Video (Ho et al., 2022a), and Make-A-Video (Singer et al., 2023) improve interpolation or temporal realism, but they do not organize diffusion latents for controllable dynamics. The missing piece is a general recipe for dynamics-aware diffusion: a way to align latent geometry with system variables while preserving the generative fidelity of diffusion models.
We introduce ConDA, a flexible framework that addresses this limitation by separating control from synthesis. It organizes pretrained diffusion latents into a compact, contrastively-learned embedding space using auxiliary variables such as time, stimulation parameters, or expression intensities. Within this structured space, standard nonlinear operators (e.g., splines, finite differences, and LSTMs) enable smooth and interpretable trajectory traversal, while rendering is performed in the the original diffusion latent space to preserve generative fidelity. This separation of editing and rendering (see Fig. 1 and Sec. 3) transforms diffusion models into controllable generators of nonlinear spatiotemporal dynamics.
Figure 1. Method overview of ConDA framework.

We encode a high-dimensional sequence of frames into a diffusion model feature latent trajectory via diffusion inversion (e.g., DDIM/Rex-RK4), then map these latents into a compact, contrastively learned embedding space that organizes local geometry to reflect nonlinear dynamics. An editing operator modifies the trajectory in the embedding space under new conditions (interpolation, local traversal, or class transfer). The edited embedding trajectory is lifted back to the feature latent space (via a learned or neighborhood-preserving kNN decoder) and decoded frame-by-frame by the diffusion sampler, yielding a new output sequence with controlled dynamics and preserved diversity and fidelity.
Across five different domains, ConDA consistently improves controllability while preserving fidelity. In fluid dynamics, ConDA achieves higher reconstruction quality (35.7 PSNR vs. 28.3 for linear baselines) and smoother flow-field interpolations (Fig. 2). In neural calcium imaging, it produces smoother temporal progression across activity states (Fig. 2). In neurostimulation, it captures class-dependent transitions that vary systematically with a given stimulation coil angle (Fig. 3). In facial expression dynamics, it preserves subject identity while enabling smooth traversal of expressions (Fig. 4). In monkey motor control, it organizes condition-dependent dynamics in delayed reaching tasks (Fig. 5). Together, these results demonstrate that contrastive organization reshapes high-dimensional diffusion latents into an interpretable, low-dimensional space in which simple nonlinear operators model dynamics effectively, improving classification and revealing neural trajectories aligned with velocity reaches.
Figure 3. KDE-based class interpolation.

Trajectory morphing a non-responder E-Field (•) toward a responder (×) by interpolating between class-conditional KDE peaks; colors indicates per-pixel E-field changes from the source, highlighting cortical shifts needed for responder-like patterns and suggesting a path to personalized targeting.
Figure 4. Comparison of facial expressions at test frames.

ConDA captures facial expressions (e.g., lip-corner pull/stretch) at test frames with higher fidelity than PCA and -VAE.
Figure 5. Interpretability of on monkey reach spiking data.

Using LDNS (Kapoor et al., 2024) with structured state-space (S4) layers, we map neural spikes to time-aligned latents and train diffusion models conditioned on reach velocity. a) True test reaches, along with predicted test embeddings of neural spikes in 2D PCA and C spaces. b) Performance metrics for PCA and ConDA on test data prediction. c) A true and ConDA generated sample of neural activity. d) Mean firing rate per neuron, averaged across all trials and time, showing a close match between ConDA predicted firing rates and the real monkey data.
Our main contributions are:
1. We propose ConDA, a framework for dynamics-aware diffusion that separates editing in a compact, contrastively learned embedding space from rendering in the original diffusion latent space. 2. We show that standard nonlinear traversal operators such as splines, finite differences, and LSTMs become effective when applied in this structured space, enabling smooth trajectory traversal beyond linear interpolation or direct conditioning. 3. We validate ConDA across five spatiotemporal domains (fluid dynamics, neurostimulation, neural calcium imaging, facial expression dynamics, and monkey motor control) demonstrating improved temporal consistency, controllable condition-dependent transitions, and interpretable latent trajectories aligned with underlying system dynamics.
2. Related work
Diffusion.
Diffusion models are now the leading framework for high-fidelity image and video generation (Ho et al., 2020; Song et al., 2021; Dhariwal and Nichol, 2021; Rombach et al., 2022), offering photorealistic outputs, stable training, and practical deterministic inversion via DDIM (Mokady et al., 2023). Recent work has further improved diffusion inversion by constructing algebraically reversible solvers such as Rex-RK4 (Blasingame and Liu, 2026). However, their latent spaces are not explicitly structured for dynamics: linear interpolations often yield unrealistic transitions (Wang and Golland, 2023; Hahm et al., 2024), and conditioning methods such as ControlNet or InstructPix2Pix guide edits without ensuring consistent traversal directions (Zhang et al., 2023; Brooks et al., 2023).
Controllability.
Efforts to improve controllability include geometry-preserving traversals (Hahm et al., 2024), physics-informed priors (Shu et al., 2023), and video diffusion models (Ho et al., 2022b; Voleti et al., 2022; Singer et al., 2023) that emphasize realism over latent geometry. Related contrastive approaches such as NoiseCLR (Dalva and Yanardag, 2024) focus on discovering unsupervised, interpretable semantic directions for static image editing, while DRCT (Chen et al., 2024) leverages diffusion reconstruction and contrastive training for robust detection of diffusion-generated images. Time-series approaches such as Diffusion-TS (Yuan and Qiao, 2024), as well as label-efficient segmentation using diffusion (Baranchuk et al., 2022), remain task-specific and do not aim to learn a general-purpose, structured latent manifold for controllable spatiotemporal generation.
GAN editing.
GANs revealed interpretable latent directions (Radford et al., 2015; Karras et al., 2020; Shen et al., 2020), inspiring disentanglement strategies such as Info-GAN (Chen et al., 2016) and -VAE (Higgins et al., 2017). Yet GAN inversion is imperfect (Abdal et al., 2019; Xia et al., 2022), latent directions are often linear, and editing typically remains prompt- or attention-based (Meng et al., 2022; Avrahami et al., 2022; Hertz et al., 2022) rather than organizing latent space into interpretable trajectories.
Dynamics models.
Sequence models such as the Kalman filter (Kalman, 1960), SINDy (Brunton et al., 2016), RNNs e.g., LSTM/GRU (Hochreiter and Schmidhuber, 1997; Chung et al., 2014), structured SSMs (HiPPO, S4) (Gu et al., 2020; 2022; Smith et al., 2023), and neural ODE/SDE approaches (Rubanova et al., 2019) provide principled dynamics. Diffusion models have been combined with S4 and RNNs for forecasting and imputation (Alcaraz and Strodthoff, 2022; Rasul et al., 2021), while LDNS (Kapoor et al., 2024) focuses on learning low-dimensional latent dynamics with structured S4 models. We show that ConDA further improves interpretability by organizing LDNS diffusion latents into a dynamics-aware geometry.
Disentanglement and contrastive learning.
Contrastive objectives structure latent embeddings by enforcing similarity and separation constraints (Oord et al., 2018; Chen et al., 2020; Poole et al., 2018; Wang and Isola, 2020), with successful applications in neuroscience (Schneider et al., 2023) and identifiability guarantees (Lyu and Fu, 2022; Cui et al., 2022). In contrast, diffusion disentanglement methods (Hahm et al., 2024) mainly address static factors. ConDA extends this line of work by incorporating auxiliary variables (e.g., time, stimulation, expressions) to align diffusion latents with spatiotemporal structure, enabling smooth nonlinear trajectory traversal.
Summary.
Prior work advances interpolation, video realism, or disentanglement, but lacks a principled framework for organizing pretrained diffusion latents for nonlinear, interpretable control. ConDA fills this gap by (1) contrastively structuring embeddings with auxiliary variables, (2) enabling nonlinear traversal in this space, and (3) separating compact embedding edits from rendering in diffusion latent space. Our experiments show improved temporal consistency, smooth controllable trajectories, and faithful reconstructions across spatiotemporal data.
3. Method
3.1. Notation and Problem Statement
We consider controlled sequence generation for high-dimensional spatiotemporal data (e.g., videos of fluid dynamics, calcium imaging, neurostimulation E-fields, facial expression sequences, monkey electrophysiology). Each sequence consists of a series of frames with associated per-frame auxiliary variables (e.g., encoding time, neurostimulation coil angle, facial action units, etc.). Our goal is to generate a target sequence frame-by-frame under a user-specified auxiliary-variable trajectory (e.g., a single target image is the special case ). We study three evaluation settings: (i) Interpolation, where we regenerate intermediate frames under observed conditions to assess the interpolation fidelity of the learned embedding space. (ii) Held-out segment prediction (n-step-ahead), where given observed frames we extrapolate the next frames by performing nonlinear traversal under target conditions . (iii) Counterfactual editing, where given two classes and , we generate class-conditional interpolated trajectories to transfer from class 0 to class 1, with condition .
ConDA separates control from synthesis by introducing two latent spaces and a local-neighborhood lifting step. The pipeline proceeds in three stages. First, we train a conditional diffusion model (e.g., cLDM or pretrained IsoDiff) and apply diffusion inversion (e.g., DDIM or Rex-RK4) to map each observation–auxiliary-variable pair to a diffusion feature latent space . This feature latent space is a high-dimensional, near-lossless representation that supports high-fidelity reconstruction through the diffusion decoder .
Second, we learn a compact structured embedding such that , designed so that the local geometry of aligns with the auxiliary variables and supports smooth, interpretable traversal. While preserves reconstruction fidelity, it remains high-dimensional (e.g., when using cLDM on an image frame with ) and its geometry is not explicitly organized for stable temporal or condition-dependent editing; direct manipulation in is therefore computationally expensive and brittle. In contrast, the structured embedding space is low-dimensional (e.g. for spline-based interpolation), whose local geometry aligns with auxiliary variables and explicitly designed for smooth and interpretable trajectory manipulation, enabling efficient and stable control operations.
Third, we perform trajectory editing by traversing the embedding sequence using an editing operator to interpolate, extrapolate, or transfer between conditions. The edited embeddings are then lifted back to the feature latent space using a local-neighborhood–preserving kNN decoder , which reconstructs each edited latent as a weighted combination of nearby training latents in . Finally, we render the edited sequence by decoding with the diffusion model decoder.
This principled separation of editing and rendering enables stable, interpretable control of spatiotemporal sequences while preserving the high generative fidelity of diffusion models. It supports faithful interpolation and extrapolation in , including missing-frame imputation and structured condition control, with high-quality synthesis achieved by lifting edited embeddings back to for decoding.
3.2. Encoding/Decoding to Diffusion Latent space
We train a conditional latent diffusion model (cLDM) to encode or decode to feature latent space, which operates diffusion process in the latent space of a pretrained VAE instead of pixel space which is very high-dimensional. The forward diffusion process progressively adds Gaussian noise to the data and a reverse diffusion iteratively denoises it, using a U-Net architecture. (Rombach et al., 2022) demonstrated that this approach achieves state-of-the-art performance in tasks such as text-to-image synthesis while significantly reducing computational overhead. We denote as encoder and as decoder of the pretrained VAE. We then learn the cLDM by minimizing the following objective
Here, denote the UNet model (Ronneberger et al., 2015), is a diffusion timestep, is a noisy version of the clean input , and denotes conditional label. This reduces compute cost and helps the model focus on semantic features rather than pixel-level noise.
For diffusion inversion, we employ DDIM (Song et al., 2021; Mokady et al., 2023) to invert a real encoded image to a noisy latent code with . When used as the starting point in the sampling process, this latent code enables reconstruction of the original image as (see Appendix B.1 for details). DDIM inversion provides a deterministic mechanism to compute inverted latent , yielding a latent trajectory that maps cyclically to and from the data sample. This cycle-consistency property ensures that latent edits remain faithful when decoded back into data space.
3.3. Structured Embedding and Controlled Generation via ConDA
The complete ConDA pipeline, including diffusion model training (or use of a pretrained model), diffusion inversion, contrastive embedding, trajectory traversal, kNN lifting, and diffusion sampling is summarized in Algorithm 1 (Training) and Algorithm 2 (Generation) in Appendix B.1.
Structured Embedding of Diffusion Latents.
We introduce a supervised contrastive learning framework ConDA by learning a map that organizes high dimensional diffusion latents into a low-dimensional structured space that encodes ordered trajectories. We train using a supervised InfoNCE objective, where positives are defined as belonging to the same label or condition , while negatives are drawn from samples with differing labels. The supervised contrastive loss is given by
| (1) |
where , denotes the set of positives for anchor (same label), is the similarity measure, and is a temperature parameter. This loss encourages embeddings with the same condition to cluster together while separating those with different conditions, enforcing that encodes dynamics in a condition-aware, low-dimensional structure.
Trajectory Modeling and Controlled Generation.
Within the space we introduce approaches that enable nonlinear dynamic modeling and controlled generation. The goal is to identify directions of movement in latent space that correspond to meaningful changes in observed data, either along the trajectory of a sequence or across distinct classes. We define a map that shifts a source embedding towards a target embedding , while leaving unrelated factors invariant. This is obtained by solving
| (2) |
where is a task-specific discrepency loss that ensures that the generated sample under the edited latent aligns with the target representation, while a regularization term , weighted by , enforces edits to be small. The solution, thus reflects the minimal, structured change in the latent space needed to achieve faithful, controllable generation aligned with the target condition.
- Spline Interpolation. For sequential data, we assume that embeddings lie on or near a smooth manifold that captures the intrinsic phase of the sequence. To recover this structure, we fit a a -continuous parametric curve , for , to the ordered pairs , where is a monotone ordering parameter (e.g., normalized index or latent phase). Concretely, parametric spline curve is obtained by minimizing a regularized least-squares objective that balances data fidelity and curvature: , subject to appropriate boundary conditions. This smooth parameterization lets us define edits as motion along the curve. Given a point at coordinate , the edit operator moves by a small phase increment :
Choosing or traverses forward or backward along the trajectory, enabling interpolation of missing states and extrapolation to unobserved phases.(3) - Taylor Extrapolation (TEX). In this local extrapolation approach, we estimate the direction of change in that moves a source embedding forward along the trajectory by a step size using a second-order Taylor expansion around a local coordinate :
where , are the first and second derivatives of the local trajectory estimated using finite differences. The first order TEX-1 uses only the linear term, while the second order TEX-2 adds , which captures local nonlinearities of the trajectory. This allows us to navigate the latent space along locally directed trajectories, enabling generation of sequences consistent with the estimated dynamics.(4) - Classification+KDE-Based Class Traversal. Given sequences of latent embeddings , we first train an SVM with an RBF kernel on to separate classes (e.g., responder vs. non-responder). To identify navigation directions between classes, we estimate class-conditional densities via KDE: , , where is a Gaussian kernel, is the bandwidth, and are samples from class . We then form the density difference , and detect class-specific peaks by . The transformation function here is defined as a traversal from the source to the target class along the line connecting these peaks:
This procedure provides interpretability by linking movements in latent space to density maxima of the two classes, enabling smooth and explainable transitions between non-responder and responders.(5)
4. Experiments
Datasets.
We evaluate on five spatiotemporal domains: fluid dynamics, neural calcium imaging, facial expressions, therapeutic neurostimulation, and neural spike dynamics; see Appendix A for acquisition, simulation, and split details.
Flow past a cylinder. 2D incompressible Navier–Stokes with cylinder interactions following the benchmark of Schäfer et al. (1996); simulated in FEniCS (Logg et al., 2012). We render total RGB images (velocity magnitude) of 82 different flow trajectories, with 3000 time points as . To reduce temporal leakage, we, use blocked splits (Roberts et al., 2017).
Two-photon calcium imaging (PFC). High-resolution recordings from mouse prefrontal cortex during cognitive flexibility tasks (Spellman et al., 2021). We convert videos to RGB images with (session and within-session frame).
DISFA facial expressions. Standard AU dataset (Mavadati et al., 2013). We use frames of 27 subjects with 12D facial action units as .
TMS-induced electric fields. Individualized head models and E-field simulations with SimNIBS (Thielscher et al., 2015); images from 121 patients with coil angles as . Used for classification and class-transfer analyses.
Monkey reach neural spiking. Premotor population activity during delayed reaches (Churchland and Kaufman, 2022; Pei et al., 2021). The number of training trials for dataset (non-image dynamics) is 2008 with trial length of 140 time bins and recordings from 182 neurons. Following Kapoor et al. (2024), spikes are mapped to 16-D S4 latents; we train conditional diffusion directly on these latents with 2D reach velocity as .
Experimental setup.
Complete hyperparameters and algorithmic steps appear in Appendix C.1 and Appendix B.1. For images, we use the LDM autoencoder (Rombach et al., 2022) to encode to , train a UNet2DModel (Hugging Face diffusers (Von Platen et al., 2022)) with 1000 diffusion steps, and apply DDIM inversion to obtain feature latents . As a solver baseline, we also implement the reversible REX-RK4 method (Blasingame and Liu, 2026) using the noise-prediction parameterization, coupling parameter 0.9999, and 8 steps. We evaluate Rex-RK4 with both cLDM and the pretrained IsoDiff. Contrastive embeddings are learned with CEBRA (Schneider et al., 2023) (offset10-model-mse); we use for fluid and otherwise (Appendix Fig. 10). We lift using kNN decoder and render via diffusion sampling. The spatiotemporal datasets consist of 82 fluid flow videos (3,000 frames each), 60 calcium imaging videos (approximately 4,800–10,000 frames), and 27 facial expression videos (4,844 frames each). For held-out segment prediction, we split video sequence into contiguous train-test blocks, each containing a held-out segment of length : Fluid:, ; Ca2+ : , ; DISFA : , .
Tasks and metrics.
Across datasets, we evaluate on the following tasks: (i) interpolation; (ii) -step-ahead prediction; (iii) classification and counterfactual editing in the embedding space; and (iv) interpretability. Interpolation: parametric cubic B-splines and finite-difference TEX on latent sequences ; baselines are linear (Lerp), spherical (Slerp) (Wang and Golland, 2023; Preechakul et al., 2022), and an LSTM (Hochreiter and Schmidhuber, 1997). n-step-ahead prediction: spline extrapolation, TEX-2 and LSTM. Ablation: ConDA vs linear (PCA) and variational (-VAE, ) baselines. Image fidelity: PSNR and SSIM; Trajectory error: RMSE. Classification: linear/RBF SVMs with leave-subject-out (TMS) and leave-(Re)-out (flow) (Osafo Nkansah et al., 2024); we report F1/Acc/AUC. Class transfer: KDE interpolation between class-conditional modes in the embedding (details in Appendix C.1). Interpretability: on monkey S4 latents, we compare ConDA embeddings to PCA in the same diffusion latents and evaluate prediction on 216 test samples using RMSE, total absolute error (mean/sd), and Procrustes distance.
5. Results
We benchmark cLDM against a continuous-label conditioned GAN (Ding et al., 2021) and find that cLDM substantially outperforms the GAN in both image generation and reconstruction (see Appendix C.10 for protocols and full results). In this section, we present both qualitative and quantitative results for our proposed approach ConDA. In addition to full-reference image quality metrics (PSNR, SSIM), we evaluate trajectory-level accuracy via RMSE between predicted and ground-truth embeddings.
Nonlinear Trajectory Modeling: Spline/TEX-2 vs. Baselines.
Our experiments show that the complex nonlinear dynamics in the high-dimensional diffusion latent space are difficult to model directly: linear baselines underperform, and even nonlinear methods such as LSTM and TEX-1 achieve limited accuracy when operating in (Tab. 1). In contrast, all methods especially Spline and TEX-2 achieve substantially better reconstruction scores when applied in the low-dimensional contrastive space , validating our approach. Qualitative results (Fig. 2) and generalization tests (Tab. 2, Fig. 11) further confirm that captures system dynamics in a more structured, dynamics-aligned geometry, while remaining robust to approximation sources such as kNN lifting, diffusion inversion, and VAE reconstruction (Tab. 8, Appendix C.2). The near-zero RMSE achieved by Spline and TEX-2 in highlights its suitability for accurate interpolation, prediction, and stable trajectory editing. We also show in Appendix C.3 that ConDA is solver-agnostic, transferring effectively across diffusion models and inversion solvers (e.g., IsoDiff, Rex-RK4, (Hahm et al., 2024; Blasingame and Liu, 2026)), and that kNN lifting which leverages neighbor-based contrastive structure, consistently outperforms a tuned MLP decoder across datasets (Appendix C.4).
Table 1. Baseline comparison of interpolations.
We compare spline and TEX-2 (second-order Taylor expansion) against Lerp, Slerp, LSTM, and TEX-1 (first-order Taylor). Linear baselines (Lerp/Slerp) consistently underperform in both and , indicating inherently nonlinear trajectories. In , TEX-2 yields the best fidelity. In , spline and TEX-2 perform best, consistent with a dynamics-aligned geometry that supports smooth, predictable traversal. Overall, nonlinear methods (LSTM, TEX) improve notably in compared to .
| Dataset | Method | PSNR ↑ | SSIM ↑ | RMSE ↓ | PSNR ↑ | SSIM ↑ | RMSE ↓ |
|---|---|---|---|---|---|---|---|
|
| |||||||
| DDIM -space | ConDA -space | ||||||
|
| |||||||
| Fluid | Lerp | 28.16 ± 0.49 | 0.56 ± 0.08 | 16.12 | 28.27 ± 0.47 | 0.59 ± 0.07 | 13.75 |
| Slerp | 28.11 ± 0.53 | 0.54 ± 0.09 | 17.24 | 28.27 ± 0.48 | 0.59 ± 0.07 | 13.09 | |
| LSTM | 34.50 ± 1.81 | 0.92 ± 0.09 | 4.04 | 34.53 ± 2.05 | 0.92 ± 0.08 | 1.07 | |
| TEX-1 | 29.28 ± 2.38 | 0.57 ± 0.25 | 14.20 | 32.98 ± 3.09 | 0.84 ± 0.15 | 3.16 | |
| TEX-2 | 35.29 ± 0.60 | 0.94 ± 0.01 | 0.26 | 35.70 ± 0.36 | 0.94 ± 0.01 | 0.02 | |
| Spline | — | — | — | 35.70 ± 0.36 | 0.94 ± 0.01 | 0.00 | |
|
| |||||||
| Ca2+ | Lerp | 32.36 ± 1.68 | 0.79 ± 0.04 | 16.60 | 32.92 ± 2.86 | 0.82 ± 0.04 | 43.87 |
| Slerp | 32.68 ± 2.54 | 0.80 ± 0.07 | 17.65 | 32.82 ± 2.81 | 0.82 ± 0.04 | 43.38 | |
| LSTM | 35.52 ± 2.70 | 0.86 ± 0.07 | 9.15 | 35.96 ± 2.91 | 0.87 ± 0.07 | 0.89 | |
| TEX-1 | 30.64 ± 1.07 | 0.57 ± 0.08 | 22.58 | 36.13 ± 2.96 | 0.87 ± 0.07 | 0.84 | |
| TEX-2 | 38.00 ± 0.51 | 0.92 ± 0.01 | 0.13 | 38.58 ± 0.59 | 0.93 ± 0.01 | 0.00 | |
| Spline | — | — | — | 38.58 ± 0.59 | 0.93 ± 0.01 | 0.00 | |
|
| |||||||
| DISFA | Lerp | 29.98 ± 2.70 | 0.74 ± 0.08 | 13.86 | 33.08 ± 3.25 | 0.83 ± 0.09 | 13.61 |
| Slerp | 31.13 ± 2.72 | 0.76 ± 0.09 | 14.97 | 33.13 ± 3.31 | 0.83 ± 0.09 | 13.68 | |
| LSTM | 38.13 ± 0.54 | 0.96 ± 0.00 | 3.64 | 38.74 ± 0.75 | 0.96 ± 0.01 | 0.34 | |
| TEX-1 | 35.18 ± 4.06 | 0.88 ± 0.14 | 7.49 | 38.77 ± 0.70 | 0.96 ± 0.00 | 0.24 | |
| TEX-2 | 38.27 ± 0.24 | 0.96 ± 0.00 | 0.07 | 38.99 ± 0.23 | 0.96 ± 0.00 | 0.00 | |
| Spline | — | — | — | 38.99 ± 0.23 | 0.96 ± 0.00 | 0.00 | |
Table 2.
-step-ahead prediction using nonlinear extrapolation methods (Spline, TEX-2, and LSTM). The results show that generalization remains stable and is not degraded by approximation sources such as k-NN lifting, diffusion inversion, and VAE reconstruction, indicating that these errors are negligible for downstream prediction and do not impede faithful recovery or extrapolation.
| Fluid | Ca2+ | DISFA | |||||||
|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||
| Method | PSNR ↑ | SSIM ↑ | RMSE ↓ | PSNR ↑ | SSIM ↑ | RMSE ↓ | PSNR ↑ | SSIM ↑ | RMSE ↓ |
|
| |||||||||
| ConDA -space | ConDA -space | ConDA -space | |||||||
|
| |||||||||
| LSTM | 34.18 ± 1.97 | 0.90 ± 0.11 | 1.87 | 35.11 ± 2.57 | 0.86 ± 0.06 | 0.90 | 36.44 ± 2.80 | 0.93 ± 0.06 | 0.75 |
| TEX-2 | 34.32 ± 2.31 | 0.91 ± 0.10 | 1.68 | 34.92 ± 2.53 | 0.86 ± 0.06 | 1.05 | 36.59 ± 2.71 | 0.93 ± 0.07 | 0.61 |
| Spline | 34.51 ± 2.13 | 0.92 ± 0.07 | 1.48 | 35.00 ± 2.57 | 0.86 ± 0.06 | 1.09 | 37.17 ± 2.17 | 0.95 ± 0.04 | 0.52 |
SVM Classification and KDE-Based Class Traversal.
We evaluated the ConDA embedding space () on downstream classification by training linear and RBF-kernel SVMs on two tasks: Fluid (steady vs. unsteady laminar flow) and E-Field (treatment responder vs. non-responder). As shown in Tab. 3, classifiers trained on -space consistently outperformed those trained directly in the diffusion latent space across Accuracy, F1, and ROC-AUC, independent of the kernel choice, indicating improved separability of task-relevant structure in . For example, in the E-Field task, an RBF-SVM classifier trained on achieved an F1 score of 0.63, a marked improvement over the 0.30 in . Leveraging the interpretability afforded by the low dimensionality of , we visualized the decision-relevant latent dynamics. We used kernel density estimation to model the class-conditional densities and then interpolated along the vector connecting the peaks of these densities. The resulting sequences, depicted in Fig. 3, illustrate the smooth trajectory of change required for a non-responder E-field pattern to morph toward that of a responder. The color-coded changes reveal specific cortical shifts, providing a tangible and interpretable path toward personalizing targeting strategies.
Table 3. SVM classification performance.
Classification of steady vs. unsteady laminar flow and responder vs. non-responder E-Fields in and -space.
| Steady vs. Unsteady |
Resp. vs. Non-Resp. |
|||||
|---|---|---|---|---|---|---|
| Method | Acc. ↑ | F1 ↑ | AUC ↑ | Acc. ↑ | F1 ↑ | AUC ↑ |
|
| ||||||
| DDIM -Space | ||||||
|
| ||||||
| SVM-Linear | 0.78 | 0.73 | 0.89 | 0.48 | 0.21 | 0.46 |
| SVM-RBF | 0.68 | 0.52 | 0.59 | 0.57 | 0.30 | 0.58 |
|
| ||||||
| ConDA -Space | ||||||
|
| ||||||
| SVM-Linear | 0.83 | 0.81 | 0.82 | 0.62 | 0.62 | 0.68 |
| SVM-RBF | 0.87 | 0.85 | 0.95 | 0.66 | 0.63 | 0.67 |
Ablation: ConDA vs. linear and variational baselines.
We compared ConDA against two baseline representation learning techniques: PCA, a linear method, and a -VAE, a variational method on test-segments prediction. To ensure a fair comparison, all models used identical train/validation splits and were configured with the same latent dimension. Each representation was evaluated with its corresponding decoder. As summarized in Tab. 4, ConDA consistently achieved superior performance across all datasets, as measured by PSNR, SSIM, and RMSE. Qualitative comparisons on DISFA (Fig. 4) further illustrate ConDA’s ability to recover fine facial motions at unseen frames with higher fidelity. These results indicate that the baseline models fail to capture the dynamics-relevant variance as effectively as ConDA.
Table 4. ConDA vs linear and variational baselines.
Performance metrics for test sequence prediction comparing ConDA to PCA and -VAE. ConDA achieves improved performance indicating closer alignment with the underlying dynamical manifold.
| Dataset | Method | PSNR ↑ | SSIM ↑ | RMSE ↓ |
|---|---|---|---|---|
|
| ||||
| Fluid | PCA | 31.82 ± 2.30 | 0.87 ± 0.11 | 10.43 |
| -VAE | 32.20 ± 2.55 | 0.85 ± 0.14 | 7.47 | |
| ConDA | 33.90 ± 2.52 | 0.90 ± 0.11 | 7.60 | |
|
| ||||
| Ca 2+ | PCA | 34.73 ± 2.29 | 0.86 ± 0.05 | 12.40 |
| -VAE | 34.62 ± 2.40 | 0.85 ± 0.06 | 11.58 | |
| ConDA | 35.69 ± 2.54 | 0.87 ± 0.05 | 11.02 | |
|
| ||||
| DISFA | PCA | 34.82 ± 1.03 | 0.92 ± 0.02 | 7.60 |
| -VAE | 35.76 ± 1.23 | 0.94 ± 0.02 | 6.59 | |
| ConDA | 36.26 ± 1.03 | 0.94 ± 0.01 | 5.50 | |
Interpretability of ConDA-space .
We assess interpretability on neural spiking data from a monkey performing a delayed center–out reach task (Kapoor et al., 2024). Following the LDNS pipeline, 182-channel spikes are encoded into 16-dimensional, time-aligned latents using an S4-based autoencoder. Conditional diffusion models are trained on these latents, conditioned on 2D hand velocity, with DDIM used for inversion. We visually compare predicted test embeddings in 2D PCA and spaces, evaluate alignment with held-out spiking data via RMSE, total absolute error (mean/std), and geometric measures (Procrustes distance). As shown in Fig. 5, embeddings exhibit clearer organization by reach direction and stronger alignment with true velocity trajectories than PCA. Quantitative metrics consistently favor , indicating that contrastive structuring better preserves task-relevant kinematics and improves interpretability relative to variance-only PCA embeddings. Predicted mean firing rates closely match held-out data (Pearson ; Fig. 5d).
The near-orthogonality of the ConDA latent subspace directions associated with temporal variations and those influenced by confounding factors (e.g., Reynolds number in the fluid dataset) is provided as evidence of successful disentanglement in Appendix C.9.
6. Conclusion and Limitations
We introduced ConDA, a contrastive alignment layer that organizes diffusion latents into compact, dynamics-aware embeddings, enabling smooth nonlinear traversals that outperform raw latent and linear baselines across physical and biological domains. ConDA is solver-agnostic and operates consistently across different inversion solvers (e.g., DDIM, Rex-RK4 (Blasingame and Liu, 2026)) as well as across different diffusion models (e.g., IsoDiff (Hahm et al., 2024) latents), see Appendix C. The method has three limitations: (1) the embedding is lossy and many-to-one, which we mitigate using a neighborhood-preserving kNN lifting (with learned decoders as future work); (2) the embedding emphasizes local rather than global geometry, which may distort long-range traversals, though locally fitted interpolators and models such as IsoDiff can help; and (3) the approach relies on DDIM inversion, adding computational cost that can be reduced through caching, multi-scale pipelines, or faster solvers such as Rex-RK4 or consistency models. Despite these trade-offs, approximation errors remain small in practice, and ConDA provides a practical path toward controllable and interpretable modeling of complex dynamical systems.
Supplementary Material
Impact Statement.
This paper proposes a method to enhance the latent space of diffusion models to support interpretable and controllable editing by aligning latent geometry with underlying dynamical factors. Our work shares the same ethical issues as generative models more broadly, including risks related to fake data generation, and malicious manipulation of images, or spatiotemporal signals. While ConDA does not introduce new generative capabilities beyond existing diffusion models, a more structured and disentangled latent representation may also lower the barrier for certain forms of misuse. At the same time, ConDA is designed primarily for scientific and biomedical applications, such as modeling physical systems, neural activity, and therapeutic neurostimulation, where interpretability and controlled counterfactual reasoning are critical. Ethical concerns related to dataset bias, representational fairness, and downstream discrimination remain unchanged by our approach; ConDA neither mitigates nor exacerbates these issues directly. We believe that responsible deployment, transparency about limitations, and domain-expert oversight are essential when applying such methods in high-stakes settings. A collective effort within the research community and society will be important to ensure that generative models and their extensions remain beneficial and are used in socially responsible ways.
Acknowledgments and Disclosure of Funding
LG is supported by NIH R01MH131534, NIH R01MH118388, the New Venture Fund 202423, the Whitehall Foundation grant (WF 2021-08-089), the Cornell Center for Pandemic Prevention Research seed grant, and an A2 Collective pilot grant (PennAITech, NIA). CL is supported by grants from the National Institute of Mental Health, Wellcome Leap, and the Hope for Depression Research Foundation. We acknowledge the Weill Cornell Medicine Scientific Computing Unit for providing computing resources that supported this work.
Footnotes
Datasets and Code Access Information
Our source code is available at https://github.com/Grosenick-Lab-Cornell/ConDA. We release the Flow Past a Cylinder benchmark dataset on Hugging Face at https://huggingface.co/datasets/ruchi-sandilya/Flow-Past-Cylinder. Full details of the FEM simulation procedure are provided in Section A.1, with simulation code available at https://github.com/ruchi-sandilya/Flow_past_a_cylinder_benchmark. The two-photon calcium imaging data are available upon request from the authors of the original study (Spellman et al., 2021). The DISFA dataset is available upon request through the official dataset website https://www.mohammadmahoor.com/pages/databases/disfa/. The monkey reaching dataset, MC Maze, is publicly available through the DANDI Archive under Dandiset ID 000128 and a CC-BY-4.0 license. It contains sorted single-unit spike times and synchronized behavioral measurements recorded from primary motor and dorsal premotor cortex during a delayed reaching task. Details for generating the E-field data are provided in A.2. However, we cannot provide the HAMD scores or real patient neuroimaging data because these data are part of an ongoing clinical trial and are HIPAA-protected.
References
- Abdal Rameen, Qin Yipeng, and Wonka Peter. Image2StyleGAN: How to embed images into the StyleGAN latent space? In Proceedings of the IEEE/CVF international conference on computer vision (ICCV), pages 4432–4441, 2019. [Google Scholar]
- Alcaraz Juan Miguel Lopez and Strodthoff Nils. Diffusion-based time series imputation and forecasting with structured state space models. Transactions on Machine Learning Research (TMLR), 2022. [Google Scholar]
- Avrahami Omri, Lischinski Dani, and Fried Ohad. Blended diffusion for text-driven editing of natural images. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 18208–18218, 2022. [Google Scholar]
- Baranchuk Dmitry, Rubachev Ivan, Voynov Andrey, Khrulkov Valentin, and Babenko Artem. Label-efficient semantic segmentation with diffusion models. In Proceedings of the International Conference on Learning Representations (ICLR), 2022. [Google Scholar]
- Blasingame Zander W. and Liu Chen. Rex: A family of reversible exponential (stochastic) runge-kutta solvers. arXiv preprint arXiv:2502.08834, 2026. [Google Scholar]
- Brooks Tim, Holynski Aleksander, and Efros Alexei A. InstructPix2Pix: Learning to follow image editing instructions. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 18392–18402, 2023. [Google Scholar]
- Brunton Steven L, Proctor Joshua L, and Kutz J Nathan. Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proceedings of the national academy of sciences, 113(15):3932–3937, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chen Baoying, Zeng Jishen, Yang Jianquan, and Yang Rui. DRCT: Diffusion reconstruction contrastive training towards universal detection of diffusion generated images. In Forty-first International Conference on Machine Learning (ICML), 2024. [Google Scholar]
- Chen Ting, Kornblith Simon, Norouzi Mohammad, and Hinton Geoffrey. A simple framework for contrastive learning of visual representations. In International conference on machine learning (ICML), pages 1597–1607. PmLR, 2020. [Google Scholar]
- Chen Xi, Duan Yan, Houthooft Rein, Schulman John, Sutskever Ilya, and Abbeel Pieter. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. Advances in neural information processing systems (NeurIPS), 29, 2016. [Google Scholar]
- Chung Junyoung, Gulcehre Caglar, Cho KyungHyun, and Bengio Yoshua. Empirical evaluation of gated recurrent neural networks on sequence modeling. In NIPS 2014 Workshop on Deep Learning, 2014. [Google Scholar]
- Churchland Mark and Kaufman Matthew. MC_Maze: macaque primary motor and dorsal premotor cortex spiking activity during delayed reaching. (Version 0.220113.0400) [Data set]. DANDI Archive. 10.48324/dandi.000128/0.220113.0400, 2022. [DOI] [Google Scholar]
- Cole Eleanor J, Stimpson Katy H, Bentzley Brandon S, Gulser Merve, Cherian Kirsten, Tischler Claudia, Nejad Romina, Pankow Heather, Choi Elizabeth, Aaron Haley, et al. Stanford accelerated intelligent neuromodulation therapy for treatment-resistant depression. American Journal of Psychiatry, 177(8):716–726, 2020. [DOI] [PubMed] [Google Scholar]
- Cui Jingyi, Huang Weiran, Wang Yifei, and Wang Yisen. AggNCE: Asymptotically identifiable contrastive learning. In NeurIPS Workshop, 2022. [Google Scholar]
- Dalva Yusuf and Yanardag Pinar. NoiseCLR: A contrastive learning approach for unsupervised discovery of interpretable directions in diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 24209–24218, 2024. [Google Scholar]
- Daneshzand Mohammad, Makarov Sergey N, Navarro de Lara Lucia I, Guerin Bastien, McNab Jennifer, Rosen Bruce R, Hämäläinen Matti S, Raij Tommi, and Nummenmaa Aapo. Rapid computation of tms-induced e-fields using a dipole-based magnetic stimulation profile approach. Neuroimage, 237:118097, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dhariwal Prafulla and Nichol Alexander. Diffusion models beat GANs on image synthesis. Advances in neural information processing systems (NeurIPS), 34:8780–8794, 2021. [Google Scholar]
- Ding Xin, Wang Yongwei, Xu Zuheng, Welch William J, and Wang Z. Jane. CcGAN: Continuous conditional generative adversarial networks for image generation. In International Conference on Learning Representations (ICLR), 2021. [Google Scholar]
- Drakaki Maria, Mathiesen Claus, Siebner Hartwig R, Madsen Kristoffer, and Thielscher Axel. Database of 25 validated coil models for electric field simulations for tms. Brain Stimulation, 15(3):697–706, 2022. [DOI] [PubMed] [Google Scholar]
- Gu Albert, Dao Tri, Ermon Stefano, Rudra Atri, and Ré Christopher. HiPPO: Recurrent memory with optimal polynomial projections. Advances in neural information processing systems (NeurIPS), 33:1474–1487, 2020. [Google Scholar]
- Gu Albert, Goel Karan, and Re Christopher. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations (ICLR), 2022. [Google Scholar]
- Hahm Jaehoon, Lee Junho, Kim Sunghyun, and Lee Joonseok. Isometric representation learning for disentangled latent space of diffusion models. Forty-first International Conference on Machine Learning (ICML), 2024. [Google Scholar]
- Hertz Amir, Mokady Ron, Tenenbaum Jay, Aberman Kfir, Pritch Yael, and Cohen-Or Daniel. Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626, 2022. [Google Scholar]
- Higgins Irina, Matthey Loic, Pal Arka, Christopher P Burgess Xavier Glorot, Botvinick Matthew, Mohamed Shakir, and Lerchner Alexander. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations (ICLR), 2017. [Google Scholar]
- Ho Jonathan, Jain Ajay, and Abbeel Pieter. Denoising diffusion probabilistic models. Advances in neural information processing systems (NeurIPS), 33:6840–6851, 2020. [Google Scholar]
- Ho Jonathan, Chan William, Saharia Chitwan, Whang Jay, Gao Ruiqi, Gritsenko Alexey, Kingma Diederik P, Poole Ben, Norouzi Mohammad, Fleet David J, et al. Imagen video: High definition video generation with diffusion models. arXiv preprint arXiv:2210.02303, 2022a. [Google Scholar]
- Ho Jonathan, Salimans Tim, Gritsenko Alexey, Chan William, Norouzi Mohammad, and Fleet David J. Video diffusion models. Advances in Neural Information Processing Systems (NeurIPS), 35:8633–8646, 2022b. [Google Scholar]
- Hochreiter Sepp and Schmidhuber Jürgen. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. [DOI] [PubMed] [Google Scholar]
- Kalman Rudolph Emil. A new approach to linear filtering and prediction problems. ASME. J. Basic Eng March 1960; 82(1): 35–45. 10.1115/1.3662552, 1960. [DOI] [Google Scholar]
- Kapoor Jaivardhan, Schulz Auguste, Vetter Julius, Pei Felix, Gao Richard, and Macke Jakob H. Latent diffusion for neural spiking data. Advances in Neural Information Processing Systems (NeurIPS), 37:118119–118154, 2024. [Google Scholar]
- Karras Tero, Laine Samuli, Aittala Miika, Hellsten Janne, Lehtinen Jaakko, and Aila Timo. Analyzing and improving the image quality of StyleGAN. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 8110–8119, 2020. [Google Scholar]
- Kidger Patrick. On neural differential equations. Doctoral Thesis, Mathematical Institute, University of Oxford, arXiv:2202.02435, 2022. [Google Scholar]
- Kidger Patrick, Foster James, Li Xuechen Chen, and Lyons Terry. Efficient and accurate gradients for neural SDEs. Advances in Neural Information Processing Systems (NeurIPS), 34:18747–18761, 2021. [Google Scholar]
- Logg Anders, Mardal Kent-Andre, and Wells Garth. Automated solution of differential equations by the finite element method: The FEniCS book. Springer Science & Business Media, 2012. [Google Scholar]
- Lyu Qi and Fu Xiao. On finite-sample identifiability of contrastive learning-based nonlinear independent component analysis. In International Conference on Machine Learning (ICML), pages 14582–14600. PMLR, 2022. [Google Scholar]
- Mavadati S Mohammad, Mahoor Mohammad H, Bartlett Kevin, Trinh Philip, and Cohn Jeffrey F. DISFA: A spontaneous facial action intensity database. IEEE Transactions on Affective Computing, 4(2):151–160, 2013. [Google Scholar]
- McCallum Samand Foster James. Efficient, accurate and stable gradients for neural ODEs. arXiv preprint arXiv:2410.11648, 2024. [Google Scholar]
- Meng Chenlin, He Yutong, Song Yang, Song Jiaming, Wu Jiajun, Zhu Jun-Yan, and Ermon Stefano. SDEdit: Guided image synthesis and editing with stochastic differential equations. International Conference on Learning Representations (ICLR), 2022. [Google Scholar]
- Miranda PC, Correia L, Salvador R, and Basser PJ. Tissue heterogeneity as a mechanism for localized neural stimulation by applied electric fields. Physics in Medicine & Biology, 52(18):5603, 2007. [DOI] [PubMed] [Google Scholar]
- Miyato Takeru and Koyama Masanori. cGANs with projection discriminator. In International Conference on Learning Representations (ICLR), 2018. [Google Scholar]
- Mokady Ron, Hertz Amir, Aberman Kfir, Pritch Yael, and Cohen-Or Daniel. Null-text inversion for editing real images using guided diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6038–6047, 2023. [Google Scholar]
- van den Oord Aaron, Li Yazhe, and Vinyals Oriol. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. [Google Scholar]
- Opitz Alexander, Windhoff Mirko, Heidemann Robin M, Turner Robert, and Thielscher Axel. How the brain tissue shapes the electric field induced by transcranial magnetic stimulation. Neuroimage, 58(3):849–859, 2011. [DOI] [PubMed] [Google Scholar]
- Osafo Nkansah Isaac, Gallagher Neil, Sandilya Ruchi, Liston Conor, and Grosenick Logan. Generalizing CNNs to graphs with learnable neighborhood quantization. Advances in neural information processing systems (NeurIPS), 37:82318–82349, 2024. [PMC free article] [PubMed] [Google Scholar]
- Pei Felix, Ye Joel, Zoltowski David, Wu Anqi, Chowdhury Raeed H., Sohn Hansem, O’Doherty Joseph E, Shenoy Krishna V, Kaufman Matthew T, Churchland Mark, Jazayeri Mehrdad, Miller Lee E, Pillow Jonathan, Park Memming Il, Dyer Eva L., and Pandarinath Chethan. Neural latents benchmark ‘21: Evaluating latent variable models of neural population activity. 35th Conference on Neural Information Processing Systems (NeurIPS), 2021. [Google Scholar]
- Poole Ben, Ozair Sherjil, van den Oord Aäron, Alemi Alexander A, and Tucker George. On variational lower bounds of mutual information. In NeurIPS Workshop on Bayesian Deep Learning, 2018. [Google Scholar]
- Preechakul Konpat, Chatthee Nattanat, Wizadwongsa Suttisak, and Suwajanakorn Supasorn. Diffusion autoencoders: Toward a meaningful and decodable representation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 10619–10629, 2022. [Google Scholar]
- Puonti Oula, Van Leemput Koen, Saturnino Guilherme B, Siebner Hartwig R, Madsen Kristoffer H, and Thielscher Axel. Accurate and robust whole-head segmentation from magnetic resonance images for individualized head modeling. Neuroimage, 219:117044, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Radford Alec, Metz Luke, and Chintala Soumith. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. [Google Scholar]
- Rasul Kashif, Seward Calvin, Schuster Ingmar, and Vollgraf Roland. Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting. In International conference on machine learning (ICML), pages 8857–8868. PMLR, 2021. [Google Scholar]
- Roberts David R, Bahn Volker, Ciuti Simone, Boyce Mark S, Elith Jane, Guillera-Arroita Gurutzeta, Hauenstein Severin, Lahoz-Monfort José J, Schröder Boris, Thuiller Wilfried, et al. Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography, 40(8):913–929, 2017. [Google Scholar]
- Rombach Robin, Blattmann Andreas, Lorenz Dominik, Esser Patrick, and Ommer Björn. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 10684–10695, 2022. [Google Scholar]
- Ronneberger Olaf, Fischer Philipp, and Brox Thomas. U-Net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention (MICCAI), pages 234–241. Springer, 2015. [Google Scholar]
- Rubanova Yulia, Chen Ricky TQ, and Duvenaud David K. Latent ordinary differential equations for irregularly-sampled time series. Advances in neural information processing systems (NeurIPS), 32, 2019. [Google Scholar]
- Schäfer Michael, Turek Stefan, Durst Franz, Krause Egon, and Rannacher Rolf. Benchmark computations of laminar flow around a cylinder. Springer, 1996. [Google Scholar]
- Schneider Steffen, Lee Jin Hwa, and Mathis Mackenzie Weygandt. Learnable latent embeddings for joint behavioural and neural analysis. Nature, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Shen Yujun, Gu Jinjin, Tang Xiaoou, and Zhou Bolei. Interpreting the latent space of GANs for semantic face editing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9243–9252, 2020. [Google Scholar]
- Shu Dule, Li Zijie, and Farimani Amir Barati. A physics-informed diffusion model for high-fidelity flow field reconstruction. Journal of Computational Physics, 478: 111972, 2023. [Google Scholar]
- Singer Uriel, Polyak Adam, Hayes Thomas, Yin Xi, An Jie, Zhang Songyang, Hu Qiyuan, Yang Harry, Ashual Oron, Gafni Oran, Parikh Devi, Gupta Sonal, and Taigman Yaniv. Make-A-Video: Text-to-video generation without text-video data. The Eleventh International Conference on Learning Representations (ICLR), 2023. [Google Scholar]
- Smith Jimmy T.H., Warrington Andrew, and Linderman Scott. Simplified state space layers for sequence modeling. In The Eleventh International Conference on Learning Representations (ICLR), 2023. [Google Scholar]
- Song Jiaming, Meng Chenlin, and Ermon Stefano. Denoising diffusion implicit models. In International Conference on Learning Representations (ICLR), 2021. [Google Scholar]
- Spellman Timothy, Svei Malka, Kaminsky Jesse, Manzano-Nieves Gabriela, and Liston Conor. Prefrontal deep projection neurons enable cognitive flexibility via persistent feedback monitoring. Cell, 184(10):2750–2766, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Thielscher Axel, Opitz Alexander, and Windhoff Mirko. Impact of the gyral geometry on the electric field induced by transcranial magnetic stimulation. Neuroimage, 54(1): 234–243, 2011. [DOI] [PubMed] [Google Scholar]
- Thielscher Axel, Antunes Andre, and Saturnino Guilherme B. Field modeling for transcranial magnetic stimulation: a useful tool to understand the physiological effects of TMS? In 37th annual international conference of the IEEE engineering in medicine and biology society (EMBC), pages 222–225. IEEE, 2015. [DOI] [PubMed] [Google Scholar]
- Voleti Vikram, Jolicoeur-Martineau Alexia, and Pal Chris. MCVD: Masked conditional video diffusion for prediction, generation, and interpolation. Advances in neural information processing systems (NeurIPS), 35:23371–23385, 2022. [Google Scholar]
- Von Platen Patrick, Patil Suraj, Lozhkov Anton, Cuenca Pedro, Lambert Nathan, Rasul Kashif, Davaadorj Mishig, and Wolf Thomas. Diffusers: State-of-the-art diffusion models. GitHub repository: https://github.com/huggingface/diffusers, 2022. [Google Scholar]
- Wallace Bram, Gokul Akash, and Naik Nikhil. EDICT: Exact diffusion inversion via coupled transformations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22532–22541, 2023. [Google Scholar]
- Wang Clinton and Golland Polina. Interpolating between images with diffusion models. International Conference on Machine Learning (ICML), 2023. [Google Scholar]
- Wang Fangyikang, Yin Hubery, Dong Yuejiang, Zhu Huminhao, Zhang Chao, Zhao Hanbin, Qian Hui, and Li Chen. BELM: Bidirectional explicit linear multi-step sampler for exact inversion in diffusion models. Advances in Neural Information Processing Systems (NeurIPS), 37: 46118–46159, 2024. [Google Scholar]
- Wang Tongzhou and Isola Phillip. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In International conference on machine learning (ICML), pages 9929–9939. PMLR, 2020. [Google Scholar]
- Wu Chen Henry and De la Torre Fernando. A latent space of stochastic diffusion models for zero-shot image editing and guidance. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 7378–7387, 2023. [Google Scholar]
- Xia Weihao, Zhang Yulun, Yang Yujiu, Xue Jing-Hao, Zhou Bolei, and Yang Ming-Hsuan. GAN inversion: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(3):3121–3138, 2022. [DOI] [PubMed] [Google Scholar]
- Yuan Xinyu and Qiao Yan. Diffusion-TS: Interpretable diffusion for general time series generation. The Twelfth International Conference on Learning Representations (ICLR), 2024. [Google Scholar]
- Zhang Guoqiang, Lewis Jonathan P, and Kleijn W Bastiaan. Exact diffusion inversion via bidirectional integration approximation. In European Conference on Computer Vision, pages 19–36. Springer, 2024. [Google Scholar]
- Zhang Lvmin, Rao Anyi, and Agrawala Maneesh. Adding conditional control to text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 3836–3847, 2023. [Google Scholar]
- Zhuang Juntang, Dvornek Nicha C, Tatikonda Sekhar, and Duncan James S. MALI: A memory efficient and reverse accurate integrator for neural ODEs. International Conference on Learning Representation (ICLR), 2021. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
