Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2026 Feb 13:2026.02.12.705535. [Version 1] doi: 10.64898/2026.02.12.705535

Dynamic Compression Flows for Neuroscience Data

Ganchao Wei 1,2, Daniela de Albuquerque 3,4, Miles Martinez 3, Shiyang Pan 3, John Pearson 1,3
PMCID: PMC12919234  PMID: 41726914

Abstract

While neuroscience experiments have repeatedly demonstrated the involvement of large populations of neurons in even simple behaviors, these studies have just as often reported that the collective dynamics of neural activity are approximately low-dimensional. As a result, methods for identifying low-dimensional latent representations of time series data have become increasingly prominent in neuroscience. However, most existing methods either ignore temporal structure or model time evolution using latent dynamical systems approaches. In the first case, dynamics may be distorted or even scrambled in the latent space, while in the second, many possible latent dynamics may give rise to the same data. Here, we address these challenges using a novel flow-matching approach in which data are generated by a pair of flow fields, one governing time evolution, the other a mapping between data and a low-dimensional latent space. Importantly, the dimension-reducing flow is trained to minimize distortions of the temporal dynamics, learning an identifiable low-dimensional representation that preserves temporal relations in the original data. Additionally, we constrain our latent spaces to have low-dimensional support in a soft, parameterized manner, taking inspiration from ideas on nested dropout. Across both neural and behavioral data, we show that this dual flow approach produces both more interpretable dynamics and higher-quality reconstructions than competing models, including in noise-dominated data sets where conventional approaches fail.

1. Introduction

The emergence of large-scale neural recording technologies has drastically changed our understanding of neural function, shifting systems neuroscience from a single unit perspective to a focus on neural populations and their collective dynamics. Fortunately, several lines of empirical evidence have shown that such seemingly complex and high-dimensional data can actually be described in terms of a much smaller number of “latent” variables (Gao et al., 2017; Trautmann et al., 2019; Vyas et al., 2020; Ebitz & Hayden, 2021). Not surprisingly, this observation has led to a proliferation of dimensionality reduction algorithms for neuroscience data.

These algorithms broadly fall into two major types: In the first, the primary goal is to construct a lower-dimensional representation of the original high-dimensional data while maximizing some measure of information retained. This “mapping” from data to latent space can be accomplished using classic linear (e.g., PCA, ICA, NMF, Mairal et al., 2009; Charles et al., 2011b; Draelos et al., 2021), as well as non-linear approaches (e.g., Isomap, LLE, Tenenbaum et al., 2000; Roweis & Saul, 2000), visualization-based approaches (e.g., t-SNE, UMAP, PHATE, Van der Maaten & Hinton, 2008; McInnes et al., 2018; Moon et al., 2019), and even more modern approaches such as VAEs (Kingma & Welling, 2014; Rezende et al., 2014; Goffinet et al., 2021; Martinez & Williams, 2026), self-supervised learning (Azabou et al., 2024; Schneider et al., 2023), and the information bottleneck (Tishby et al., 2000). Regardless of the specific method, such models often ignore temporal structure, treating data as independent. Consequently, learned representations will often severely distort and scramble the original dynamics.

In the second class of models, nonlinear dynamical systems approaches attempt to capture temporal evolution directly, fitting flow fields to data (Charles et al., 2011a; Kutz et al., 2016; Gao et al., 2016; Rajan et al., 2016; Linderman et al., 2017; Pandarinath et al., 2018; Kerg et al., 2019; Zhao & Park, 2020; Wiltschko et al., 2020; Nair et al., 2023; Busch et al., 2023; Driscoll et al., 2024; Weinreb et al., 2024). Despite their considerable success in identifying repeating dynamical motifs in data (Mante et al., 2013; Markowitz et al., 2023; Nair et al., 2023; Liu et al., 2024; Vinograd et al., 2024), such models still struggle to identify useful structure under (1) non-repeatability and (2) noise-dominant regimes, which are ubiquitous in neuroscience data. That is, when modeling data without the benefit of smoothing and trial-averaging, these methods can struggle to identify structure, since they are tailored to identify repeating dynamical motifs (Williams & Linderman, 2021). Likewise, most models assume that noise is small and/or follows simple forms, so that system evolution is governed by a well-defined velocity field. However, these assumptions can fail catastrophically when variance in the data is mostly due to unmeasured variables (Musall et al., 2019) or has heavy-tailed structure, resulting in latent dynamics that appear random rather than lawful (Draelos et al., 2021).

Recent breakthroughs in “simulation-free” flow training and the development of flow matching (Lipman et al., 2024; 2023; Albergo & Vanden-Eijnden, 2023; Albergo et al., 2023; Pooladian et al., 2023; Tong et al., 2024a) from earlier diffusion-based models (DBMs, Song et al., 2021; Karras et al., 2022) have led to an explosion of work using latent flows (Polyak et al., 2024; Dao et al., 2023; Hu et al., 2024; Schusterbauer et al., 2024) and diffusions (Vahdat et al., 2021; Blattmann et al., 2023; Preechakul et al., 2022; Hudson et al., 2023). Yet despite their huge success as generative models, most of these approaches do not directly allow for dimensionality reduction, relying instead on a front-end encoder network to infer latent representations from data. Unfortunately, this approach only re-introduces the same identifiability issue mentioned above. Additionally, in their most common formulation, flow-matching models assume a fixed (Gaussian) form for the source distribution, which may not be helpful in understanding structure in the data.

Here, we propose Dynamic Compression Flows (DCFs) as a means of inferring low-dimensional latent structure in a way that respects temporal dynamics in the data (Figure 1). Our contributions are as follows:

Figure 1. Dynamic Compression Flows for dimension reduction.

Figure 1.

Dynamical data xt at τ=1 with dynamics defined by vθ are mapped to a lower-dimensional compressed representation (τ=0) via a compressive/generative flow uϕ. Both uϕ and vθ are trained via flow matching defined by an encoder/coupling μψ.

  1. We develop a dual flow-matching approach, learning one generative/compressive flow field that maps the data to a low-dimensional latent space and another that captures temporal dynamics at each level of compression. Critically, the latent representations inferred by our model remain identifiable (up to a sign), making latent spaces reproducible across runs and thereby addressing a major limitation of previous approaches.

  2. We achieve low-dimensional support for our latent distribution within the embedding space by training using nested dropout (Rippel et al., 2014), which ensures that our latent dimensions are ordered by construction while also allowing for controllable and soft dimensionality reduction.

  3. We apply our proposed model extensively to both synthetic and benchmark neural and behavioral data and compare it against a variety of competing approaches, demonstrating both its effectiveness and superior performance in challenging, noise-dominated regimes.

Related work: Flow-Based Approaches in Latent Space.

Historically, Injective Flows (Brehmer & Cranmer, 2020; Cornish et al., 2020; Flouris & Konukoglu, 2023; Caterini et al., 2021) were among the first flow-based approaches aimed at learning one-to-one mappings (i.e., injections) between points in data space and points in a lower-dimensional latent space. However, early formulations of these models suffered from low expressivity due to the need for efficient Jacobian determinant calculations. More recently, as reviewed above, “simulation-free” training approaches have led to an explosion of latent flow-based models, but most such approaches still rely on pre-trained encoders for initial compression and are focused on generative performance as opposed to inference. Parallel lines of work have also sought to construct flow-based models that respect data manifold geometry (Mathieu & Nickel, 2020; Lou et al., 2020; Falorsi, 2021; Chen & Lipman, 2024; Atanackovic et al., 2024; Kapusniak et al., 2024; Kruiff et al., 2025; Diepeveen et al., 2025). However, this work has focused on generation on manifolds per se, not on dimension-reduced representations or latent dynamics.

Perhaps the closest approach to ours is de Albuquerque & Pearson (2024), who used probability flow ODEs (pfODEs) to directly map high-dimensional data into an effectively lower-dimensional latent space, while preserving identifiability. Importantly, that work did not model temporal dynamics. Additionally, that work proposed a “PR-reducing” noise schedule to map data into a low-rank source Gaussian. Here, we opt instead for additional flexibility, and use a jointly trained encoder network to learn our couplings, effectively allowing for more flexible source distributions. Another closely related work (Cai et al., 2025) proposed constructing a dual conditional flow-matching formulation to map data into a learned lower dimensional latent space and back. That work differs from this one in two important ways: First, it does not seek to model latent dynamics. Second, it uses a particular form of prior-informed coupling rather than learning the coupling from data, as we do.

Related work: Dynamical Modeling.

Neural ODEs and SDEs have been extensively used to model temporal dynamics and irregularly sampled time series data (Chen et al., 2018; Rubanova et al., 2019; Brouwer et al., 2019; Dupont et al., 2019; Hasan et al., 2022; Cheng et al., 2025). Historically, training such models required expensive backpropagation through the SDE/ODE solver, greatly restricting the scalability of such methods. However, recent breakthroughs in score and flow matching have allowed for efficient simulation-free training of such models (Zhang et al., 2024; Bartosh et al., 2025; Tong et al., 2024b). Additionally, several lines of work have extended existing score and flow matching approaches to multi-marginal settings (Albergo et al., 2024; Lee et al., 2025; Rohbeck et al., 2025) with the goal of modeling complex dynamics from limited “snapshot” observations sampled at irregular time points. In parallel, Wei & Ma (2025) proposed constructing conditional probability paths along instances of latent stochastic paths (i.e., “streams”) and modeling such streams using Gaussian Processes (GPs, Rasmussen & Nickisch (2010)), effectively creating a new GP-based flow-matching model capable of handling multiple correlated training points (i.e., a time series). Other lines of work have also extended flow-matching to model time point processes (TPPs, Shou, 2025; Kerrigan et al., 2025; Mukherjee et al., 2025), however the focus there is instead on event timing and occurrence (i.e., forecasting), as opposed to state evolution throughout time. Of note, none of these approaches seek to directly infer a latent representation of the data that preserves intrinsic dynamics, a key goal in neuroscience.

2. Model

2.1. Notation

Let xt∈RD denote the observation at time t. We use a superscript (τ) for the compression coordinate, where τ=1 is data space and τ=0 is the compressed space. Therefore, xt(τ) denotes the state at compression level τ∈[0,1] and time t, so that xt(1)=xt. In the following, we assume that data are sampled at times =kΔt, k∈Z, though our approach can accommodate non-uniform spacing. Our goal is to learn a pair of flow fields: a compressive flow uϕ that transports states along τ from a low-dimensional generative subspace to high-dimensional data space, and a dynamical flow vθ that transports states through time within each τ.

2.2. Encoder

For training a flow-matching model, we require a mapping, called the coupling, for pairing points in the target (data) distribution pτ=1(x) with those in the source (latent) distribution pτ=0(x) (Lipman et al., 2024). Here, rather than fixing the form of the source distribution, we instead choose a deterministic coupling that enforces dimension reduction:

xt(0)=b+LD1/2⋅μψxt1, (1)

where b∈RD is a bias term, L∈RD×D has orthonormal columns (e.g., parameterized via non-pivoted QR), D=diagd1,…,dD with di>0, and μψ(x)∈RD is a parameterized nonlinear mapping.

This parameterization separates source distribution orientation and spread: L defines the axes of the linear subspace in ambient space, and D controls per-coordinate scale, since sample energy ‖xt(0)-b‖22=μψ(xt(1))⊤Dμψ(xt(1)) when L has orthonormal columns. Moreover, when D is low-rank, the source points xt(0) lie in a low-dimensional subspace. Our goal is to learn an encoding map that effectively minimizes the rank of D while maintaining the predictive accuracy of both compressive and dynamical flows.

In practice, to stabilize training and remove the scale ambiguity between D and μψ(x), we normalize the encoder features dimension-wise (Ioffe & Szegedy, 2015; Ba et al., 2016). That is, if μψraw(x)∈RD denotes the raw feature output, we set

μψ(x)i=μψraw(x)i-miσi,i=1,…,D, (2)

where m∈RD and σ∈RD are the running (EMA) estimates of the coordinate-wise mean and standard deviation of the μψraw(x), respectively. Thus each coordinate of μψ(x) has approximately zero mean and unit variance over the data distribution. We additionally cap the per-sample ℓ2 norm of the raw features to prevent rare large activations from destabilizing the running statistics and downstream flow fitting (Pascanu et al., 2013).

Lastly, and critically for latent space reproducibility, the combination of our parameterization (1), the deterministic non-pivoted QR parameterization for L, the normalization (2), and nested dropout (Section 3.1), which enforces an ordered, prefix-based notion of coordinate importance, renders the encoder identifiable up to a sign for each component.

2.3. Compressive Flow

At any fixed time t, the compression/generation axis connects a compressed representation to a point in the data. Flow matching learns a marginal probability path by integrating over conditional probability paths (bridges) that connect endpoints drawn from the coupling. Given a data point xt(1) and its image under the encoder (1), xt(0), we define the linear τ-bridge as

xt(τ)=1-τxt0+τxt1, (3)

and learn a compression velocity field

uϕ:(xt(τ),τ)↦∂τx∈RD.

Note that while the bridge (3) is constructed using the encoder endpoint xt(0), the learned flow uϕ defines a distinct projection to τ=0 via integration from xt(1). We denote the data at compressive level τ, obtaining via compressive flow integration, by x˜t(τ). The flow-based endpoint (x˜t(0)) can differ from the encoder endpoint (xt(0)), effectively rearranging the encoder geometry at τ=0. In practice, flow matching tends to produce near-straight τ paths and local neighborhoods in data space are transported smoothly, while the marginal distribution at τ=0 is preserved by the transport (Lipman et al., 2023; Liu et al., 2023).

2.4. Dynamical Flow

Unlike the compressive flow bridge (3), the dynamical bridge requires a coupling between pairs of points in data space and their source representations. Additionally, because we want the dynamical flow vθ to exist at every compression level τ, the corresponding linear bridge must involve a double interpolation (Figure 2). More specifically, given a fixed compression level τ∈[0,1], we first interpolate along the compression dimension for each data point as in (3), yielding start and end points xkΔt(τ) and x(k+1)Δt(τ). We then perform a second, dynamical interpolation between these points for s∈[0,1]:

xt(τ)=1-sxkΔtτ+sxk+1Δtτ. (4)

Figure 2. Interpolation scheme for the conditional dynamic flow.

Figure 2.

(4) with k=0. For τ,t∈[0,1], intermediate points are first interpolated in the compressive (τ) dimension for each data sample using (3) (green lines), then along the dynamical (t) dimension (blue line). The encoder μψ (red line) maps points in the data space (τ=1) to points in source space (τ=0).

The dynamical flow vθ then models the instantaneous dynamical velocity,

vθ:(xt(τ),τ,s,xhist(τ))↦∂tx∈RD.

Here, in addition to the bridge variables τ and s, we have allowed a potential dependence on the lag-h history at compression level τ, xhist(τ)=x(k-h)Δt(τ),…,x(k-1)Δt(τ),xkΔt(τ) (Zhang et al., 2024).

3. Training

Our model comprises both the parameters (b,L,D,ψ) of the encoder (1) and of the compression and dynamical flows (ϕ,ψ). The goal is to minimize flow matching losses for both uϕ and vψ while minimizing the dimensionality of the source distribution.

One potential approach to minimizing this latent dimensionality would be to shrink the diagonal scales di using, e.g., standard regularizers (ridge, LASSO) (Hoerl & Kennard, 1970; Tibshirani, 1996) or global-local shrinkage such as the horseshoe (Carvalho et al., 2010). However, we found that even for very severe shrinkage, the generative power of flow matching models is able to compensate nearly down to machine precision, encoding significant information in “unused” dimensions. As a result, such “soft” minimization approaches fail to provide meaningful limits on the dimensionality of source representations. An alternative, which we describe below, is to introduce stochastic sampling over source dimensionality, averaging over the size of this bottleneck during training.

3.1. Nested Dropout for Encoder Training

Nested dropout (ND) (Rippel et al., 2014) addresses two key issues previously noted: (1) the need to break permutation invariance among the entries of D to ensure identifiability; and (2) the requirement of a true low-dimensional source representation. ND addresses these by randomly sampling the rank of D in a way that enforces an ordering on latent coordinates. More specifically, at each forward pass, it samples a prefix length K∼Geom(p), with E(K)=1/p. This makes 1/p an effective latent dimensionality, and marginalizing over K provides control over the capacity of the source representation. In practice, we further truncate K to [1,D], then apply the prefix mask

mK(i)=1{i≤K},μψ(K)(x)=mK⊙μψ(x), (5)

with μψ(K) replacing μψ in (1). As a result, only coordinates 1:K receive encoder updates in that pass, yielding explicit control of effective dimension.

Note, however, that the flexibility of the nonlinear map μψ that defines the encoder still defines an infinite family of source distributions pψ,τ=0(x). Of these, we choose the one that minimizes a masked alignment loss under nested dropout,

ℒalign=ExEK‖xt(1)-xt(0,K)‖22, (6)

where xt(0,K)=b+LD1/2μψ(K)(xt(1)) is the masked encoder output as in (5).

3.2. Flow Matching

We train the compressive flow and dynamical flow using conditional flow matching on the linear interpolations defined in (3) and (4) above.

Compressive flow matching.

Sample τ∼Unif[0,1] and form xt(τ) via (3). For the linear bridge, the target conditional flow is constant,

ut⋆=∂τxt(τ)=xt(1)-xt(0).

As in (Lipman et al., 2024), we minimize

ℒcf=ExEτ‖uϕ(xt(τ),τ)-ut⋆‖22. (7)

Dynamical flow matching.

At a fixed compression level τ, sample s∼Unif[0,1] and construct xt(τ) using the linear within-step bridge (4). For this bridge, the target velocity is constant in t,

vk,τ⋆=∂txt(τ)=x(k+1)Δt(τ)-xkΔt(τ)Δt,

and we minimize

ℒdf=ExEτ,s‖vθ(xt(τ),τ,s,xhist(τ))-vk,τ⋆‖22. (8)

Training objective.

Putting (6), (7), and (8) together, we obtain the combined loss function

ℒ=αℒcf+βℒdf+ηℒalign. (9)

In all experiments, we set α=β=η=1. Appendix A.3 provides a sensitivity check by varying (α,β,η) on the rotating-ball simulation. We found that the results were robust to these hyperparameters.

4. Experiments

Across experiments, we analyze representations at compression levels τ∈{0,1}. At generation time, we integrate both learned flows (dynamic and compressive) as neural ODEs using an adaptive Dormand–Prince (DOPRI5) solver. We obtain the flowed data representation {x˜t(τ)} (cf. Section 2.3) by two methods: flowed, where each observed frame xt(1) is compressed pointwise to level τ by integrating the compressive flow uϕ from τ=1; and simulated, where we first compress an initial frame to x˜0(τ) and then integrate the dynamical flow vθ forward in time at the same τ. At τ=0, we map compressed states to encoder-normalized latent coordinates via μ˜t=(LD1/2)-1(x˜t(0)-b) and visualize the first three coordinates, which are the most important under nested-dropout ordering. We also project velocities by using μ˜˙t=LD1/2-1x˜˙t(0), and plotting dynamical velocities at the start of each step (s=0 in Equation (4)). Experiment train times and parameter choices can be found in Appendix B, trajectory roll-out time estimates in Appendix C, and code at DCF.

4.1. Simulated data

To test the ability of DCF to extract low-dimensional dynamics from high-dimensional data, we simulate 10 short videos of a ball moving counterclockwise (Figure 3). Each video comprises 50 time steps, with each frame being a 28 × 28 grayscale image. Both the compressive flow uϕ and the dynamical flow vθ are parameterized by 4-level convolutional encoder-decoders (U-Net style) with channel widths {32, 64, 128, 256} and a 256-dimensional bottleneck embedding. The encoder feature map μψ(x) is a convolutional VAE with the same multiscale channel schedule. We use no dynamical history. That is, h=0 for xhist(τ) in Section 2.4.

Figure 3. Rotating-ball simulation.

Figure 3.

We simulated 10 videos of a ball moving counterclockwise (50 frames, 28 × 28) and train DCF with nested dropout (p=1/50) and no history (h=0). (A) Ground-truth frames (top) and rollouts decoded in data space (middle, τ=1), with the corresponding simulated states in compressed space (bottom, τ=0), shown at t∈{0,5,10,15,20}. (B) Simulated trajectories visualized in the first three coordinates of the latent space. Colored points correspond to frames in (A).

We set nested dropout to K∼Geom(p) with p=1/50, so that Ktarget=E(K)=50 can provide a generous latent budget. With no additional penalty on D, the fitted scales di decay rapidly (first column of Figure S1A). We define the effective dimension as the smallest K such that ∑i=1Kdi≥0.95∑i=1Ddi, which yields Keff=30 in this run. As expected (Figure 3A), simulated frames in data space (τ=1) track the ground-truth ball location over time, while the corresponding rollouts in compressed space (τ=0, embedded in image space) provide a nearly identical image. Moreover, the simulated latent trajectory in the first three coordinates of μ˜ forms a smooth closed loop (Figure 3B), consistent with the underlying periodic motion. In further experiments imposing additional shrinkage on D (Figures S1, S2), we found that inferred dynamics and latent spaces were reproducible across runs. This is expected given that our model produces identifiable representations by construction.

For these and subsequent experiments (cf. Sections 4.2, 4.3) we compare DCF against several other competing approaches, namely VAEs (Kingma & Welling, 2014; Rezende et al., 2014), MARBLE (Gosztolai et al., 2025), LFADS (Pandarinath et al., 2018), DMD (Kutz et al., 2016), T-PHATE (Busch et al., 2023), and CEBRA (Schneider et al., 2023). (For larger datasets, we could only train T-PHATE, which needs to load everything into memory, on a subset of data.) Results for these models on the balls dataset are shown in Figure S4. Surprisingly, several of these models struggled to identify a simple, low-dimensional manifold underlying the data.

4.2. Neural data

We evaluated DCF on a dataset comprising population neural activity from a center-out reach task performed by non-human primates (592 training trials, 197 held-out test trials; Pei et al., 2021). Each trial’s data consisted of smoothed spike counts from 137 neurons over 100 time steps. For this experiment, the encoder feature map μψ(x), the compressive flow uϕ, and the dynamical flow vθ were all parameterized by multilayer perceptrons (MLPs) with depth 4 and width 256. We use a lag-10 dynamical history (h=10) and nested dropout p=1/50 for all reported results.

As expected, most latent models, including DCF, learned a well-organized latent space in which neural dynamics corresponding to distinct reach targets organized topographically (Figure S5). Quantification on a velocity prediction task using these latent spaces (Table 1) shows that DCF outperforms other models, despite falling well short of larger, prediction-focused approaches (e.g., Azabou et al., 2023). Additionally, our model achieves higher reconstruction quality of neural activity (i.e., firing rates) on held-out data (Table S3).

Table 1.

Model comparisons: neural data.

Method Median R2 (25thpercentile, 75thpercentile)

DCF (ours) 0.304 (0.020, 0.505)
VAE* 0.242 (0.041, 0.427)
MARBLE* 0.195 (−0.083, 0.336)
LFADS 0.311 (0.093, 0.416)
DMD* 0.014 (−0.157, 0.128)
T-PHATE* −0.012 (−0.152, 0.010)
CEBRA* 0.202 (0.010, 0.294)

Decoding (linear predictions) of cursor velocity from 3D latent representations of neural activity. Reported values are R2 quartiles across held-out trials. Asterisks (*) indicate models performing significantly worse than ours (p-value < 0.05, one-sided Wilcoxon signed-rank test with Bonferroni correction for multiple comparisons)

4.3. Video Data

We next applied DCF to a well-studied behavioral video dataset (Musall et al., 2019), which consists of a single long video with 71, 942 frames of size 64 × 64. These are challenging data for most dimension reduction methods, since most parts of the frame are highly static, with only intermittent bursts of activity. Here, since we focus on inference, we did not use a train/test split and do not report long-horizon trajectory rollouts. Both flows were parameterized by 4-level convolutional encoder-decoders (U-Net style) with channel widths {32, 64, 128, 256} and a 256-dimensional bottleneck embedding. We fit the model with nested dropout p=1/50 and no history (h=0), yielding an effective dimension Keff=30. Since the behavior is highly repetitive, we visualized only the first 1,438 frames (about 2% of the video), which is sufficient to capture the latent structure.

The latent structure forms four prominent bands in 3D latent space (Figure 4A), separated primarily along (μ1,μ2) while sharing a common within-band axis μ3. Within each band, lower values of μ3 correspond to stronger mouth movement, while higher μ3 is more quiescent (Figure 4B). Across bands, the mean appearance is broadly similar, but each band captures a slightly different baseline visual state, reflected by systematic mean shifts and variability patterns (Figure S6). Moreover, outliers selected by maximal latent distance or maximal velocity magnitude (Figure 4C) correspond to transient paw and controller movements. Importantly, this latent structure was not well captured by comparison models (Figures 4D, S7).

Figure 4. Latent structure in behavioral video.

Figure 4.

(A) Flowed latent structure forms four prominent bands (colored points), with outliers marked by maximal latent distance (brown ×) and maximal velocity magnitude (cyan ×). (B) Representative snapshots along each band (top/mid/low in μ3). Lowering μ3 corresponds to stronger mouth movement, paw lift, or both. (C) Outlier frames selected by maximal latent distance (left) or maximal velocity magnitude (right), correspond to transient paw and controller movements. (D) 3D Latent representations from comparison models. Most either collapse the four bands or fail to capture outliers. See Figure S6, Figure S7 and Supplemental Videos for additional details on structure identified by our model and comparisons against competing approaches.

4.4. Audio Data

Lastly, we evaluated DCF on a birdsong dataset (262 training trials, 66 test trials) converted to 26 64 × 64 sequential spectrograms. We used the same convolutional architectures as in the video experiment, and the encoder feature map μψ(x) was a convolutional VAE with the same multiscale schedule. We fit the model with nested dropout p=1/50 and no history (h=0), evaluating simulated rollouts.

On training trials, DCF rollouts preserved the syllable-level structure of the motif and reproduced the major time-frequency energy patterns across successive syllables (Figure 5A). In the learned 3D latent coordinates, simulated trajectories concentrate on a low-dimensional curved manifold, and transitions between syllables align with regions of larger latent velocity magnitude (Figure 5B–C). On held-out trials, the same latent geometry is retained and the decoded rollouts remain qualitatively consistent with the ground-truth spectrograms, indicating that the learned dynamics generalize beyond the training set (Figure S8). This is in contrast to typical VAE-based approaches (Goffinet et al., 2021; Sainburg et al., 2020), which preserve structure at the syllable level while failing to smoothly capture dynamics (Figure S9).

Figure 5. DCF captures birdsong latent dynamics.

Figure 5.

(A) Example motif with syllables A–D, shown as ground-truth spectrogram frames (top), simulated rollouts decoded in data space (middle, τ=1), and compressed space (bottom, τ=0). (B) Projected latent velocity field from simulated rollouts in the first three latent coordinates, with arrows normalized to unit length and color indicating velocity magnitude. (C) Simulated latent trajectories in the same 3D space, with one representative rollout highlighted and colored by time.

5. Conclusion

Accurate, reproducible methods for understanding and mapping high-dimensional neural dynamics and behavior remain one of the most pressing needs in systems neuroscience. Here, using a flow-matching approach, we combine the strengths of both “mapping” approaches to dimensionality reduction, which assume i.i.d. data, and “dynamical” approaches that focus on the relationships between successive time points. By learning a pair of vector fields, one for compressing data, one for dynamics, we reduce dimensionality while preserving temporal structure. This is made possible by two key innovations: First, rather than specify a simple source distribution like an isotropic Gaussian, we implicitly fit this distribution by learning an encoder (data coupling). Second, we train using Nested Dropout, which allows us to produce an ensemble of true low-dimensional latent spaces. Just as importantly, we have constructed a model that is identifiable up to signs, with the result that our learned latent space is reproducible across training runs.

In experiments, we applied this method to a challenging toy data set, along with population neural data, behavioral video, and audio data. We found that while some comparison models were able to identify latent spaces with known structure in simple cases (neural data), comparison models failed to identify structure in the more challenging behavioral video data, and many failed at even very simple toy examples (balls data). Moreover, the flow-based approach produced both higher-accuracy data reconstructions (Table S3) than other generative models and higher latent space decoding accuracy (Table 1) than all but LFADS.

Limitations:

Without smoothing, the modeling framework presented here is not directly applicable to discrete data (e.g., spike counts), which are ubiquitous in neuroscience. However, this limitation can be easily addressed by leveraging recent developments in discrete flow-matching techniques (Gat et al., 2024; Campbell et al., 2024), though we leave this for future work. Another limitation lies in the fact that our model does not directly estimate data intrinsic dimensionality but instead requires practitioners to choose the hyperparameter Keff (cf. Section 3.1), which dictates effective latent space dimensionality. For our experiments, we proposed a simple definition of Keff, which allows the model to train stably and provides a conservative estimate of the true data dimensionality. Future work might further extend our existing approach to allow for latent dimension pruning and adaptive learning of Keff based on some measure of information preservation in latent space.

Supplementary Material

Supplement 1
media-1.zip (13.8MB, zip)
Supplement 2

Impact Statement.

This work proposes a new deep generative model capable of inferring low-dimensional representations from larger-scale, high-dimensional data while also preserving intrinsic dynamics. Such a model could provide crucial insight into the latent dynamics underlying several neural and biological phenomena of interest, thus having a high potential positive impact in both basic science and medicine. However, advancements in deep generative technologies always have the potential for misuse and can generate content that is misleading, exploitative, or plagiarized. Of note, the model proposed here is not aimed at improving generative quality per se, but instead seeks to infer more informative and organized latent representations from data. Achieving this goal may prove beneficial in restricting certain types of generation by allowing practitioners to selectively remove, prohibit, or flag regions of the compressed latent space corresponding to potentially harmful content.

Acknowledgements

This work was supported in part by the U.S. National Institutes of Health (NIH) under grants RF1 DA056376 (JP), F30 MH129086 (DdA), and F31 NS132469 (MM).

References

https://anonymous.4open.science/r/Velocity_Flow_Matching-217D/README.md.

  1. Albergo M. S. and Vanden-Eijnden E. Building normalizing flows with stochastic interpolants. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1–5, 2023. OpenReview.net, 2023. [Google Scholar]
  2. Albergo M. S., Boffi N. M., and Vanden-Eijnden E. Stochastic interpolants: A unifying framework for flows and diffusions. CoRR, abs/2303.08797, 2023. doi: 10.48550/ARXIV.2303.08797. [DOI] [Google Scholar]
  3. Albergo M. S., Boffi N. M., Lindsey M., and Vanden-Eijnden E. Multimarginal generative modeling with stochastic interpolants. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7–11, 2024. OpenReview.net, 2024. [Google Scholar]
  4. Atanackovic L., Zhang X., Amos B., Blanchette M., Lee L. J., Bengio Y., Tong A., and Neklyudov K. Meta flow matching: Integrating vector fields on the wasserstein manifold. CoRR, abs/2408.14608, 2024. doi: 10.48550/ARXIV.2408.14608. [DOI] [Google Scholar]
  5. Azabou M., Arora V., Ganesh V., Mao X., Nachimuthu S., Mendelson M., Richards B., Perich M., Lajoie G., and Dyer E. A unified, scalable framework for neural population decoding. Advances in Neural Information Processing Systems, 36:44937–44956, 2023. [Google Scholar]
  6. Azabou M., Mendelson M., Ahad N., Sorokin M., Thakoor S., Urzay C., and Dyer E. Relax, it doesn’t matter how you get there: A new self-supervised approach for multi-timescale behavior analysis. Advances in Neural Information Processing Systems, 36, 2024. [Google Scholar]
  7. Ba J. L., Kiros J. R., and Hinton G. E. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. [Google Scholar]
  8. Bartosh G., Vetrov D. P., and Naesseth C. A. SDE matching: Scalable and simulation-free training of latent stochastic differential equations. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13–19, 2025. Open-Review.net, 2025. [Google Scholar]
  9. Blattmann A., Rombach R., Ling H., Dockhorn T., Kim S. W., Fidler S., and Kreis K. Align your latents: High-resolution video synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 22563–22575, 2023. [Google Scholar]
  10. Brehmer J. and Cranmer K. Flows for simultaneous manifold learning and density estimation. Advances in neural information processing systems, 33:442–453, 2020. [Google Scholar]
  11. Brouwer E. D., Simm J., Arany A., and Moreau Y. Gru-ode-bayes: Continuous modeling of sporadically-observed time series. In Wallach H. M., Larochelle H., Beygelzimer A., d’Alché-Buc F., Fox E. B., and Garnett R. (eds.), Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8–14, 2019, Vancouver, BC, Canada, pp. 7377–7388, 2019. [Google Scholar]
  12. Busch E. L., Huang J., Benz A., Wallenstein T., Lajoie G., Wolf G., Krishnaswamy S., and Turk-Browne N. B. Multi-view manifold learning of human brain-state trajectories. Nature computational science, 3(3):240–253, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Cai W., Wang Y., and Shi N. Coupled flow matching, 2025. [Google Scholar]
  14. Campbell A., Yim J., Barzilay R., Rainforth T., and Jaakkola T. S. Generative flows on discrete state-spaces: Enabling multimodal flows with applications to protein co-design. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21–27, 2024. OpenReview.net, 2024. [Google Scholar]
  15. Carvalho C. M., Polson N. G., and Scott J. G. The horseshoe estimator for sparse signals. Biometrika, 97(2):465–480, 2010. [Google Scholar]
  16. Caterini A. L., Loaiza-Ganem G., Pleiss G., and Cunningham J. P. Rectangular flows for manifold learning. Advances in Neural Information Processing Systems, 34:30228–30241, 2021. [Google Scholar]
  17. Charles A., Asif M. S., Romberg J., and Rozell C. Spa rsity penalties in dynamical system estimation. In 2011 45th annual conference on information sciences and systems, pp. 1–6. IEEE, 2011a. [Google Scholar]
  18. Charles A. S., Olshausen B. A., and Rozell C. J. Learning sparse codes for hyperspectral imagery. IEEE Journal of Selected Topics in Signal Processing, 5(5):963–978, 2011b. [Google Scholar]
  19. Chen R. T. Q. and Lipman Y. Flow matching on general geometries. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7–11, 2024. OpenReview.net, 2024. [Google Scholar]
  20. Chen T. Q., Rubanova Y., Bettencourt J., and Duvenaud D. Neural ordinary differential equations. In Bengio S., Wallach H. M., Larochelle H., Grauman K., Cesa-Bianchi N., and Garnett R. (eds.), Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3–8, 2018, Montréal, Canada, pp. 6572–6583, 2018. [Google Scholar]
  21. Cheng S., Kong D., Xie J., Lee K., Wu Y. N., and Yang Y. Latent space energy-based neural odes. Trans. Mach. Learn. Res., 2025, 2025. [Google Scholar]
  22. Cornish R., Caterini A., Deligiannidis G., and Doucet A. Relaxing bijectivity constraints with continuously indexed normalising flows. In International conference on machine learning, pp. 2133–2143. PMLR, 2020. [Google Scholar]
  23. Dao Q., Phung H., Nguyen B., and Tran A. Flow matching in latent space. CoRR, abs/2307.08698, 2023. doi: 10.48550/ARXIV.2307.08698. [DOI] [Google Scholar]
  24. de Albuquerque D. and Pearson J. M. Inflationary flows: Calibrated bayesian inference with diffusion-based models. In Globersons A., Mackey L., Belgrave D., Fan A., Paquet U., Tomczak J. M., and Zhang C. (eds.), Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 – 15, 2024, 2024. [Google Scholar]
  25. Diepeveen W., Batzolis G., Shumaylov Z., and Schönlieb C. Score-based pullback riemannian geometry: Extracting the data manifold geometry using anisotropic flows. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13–19, 2025. OpenReview.net, 2025. [Google Scholar]
  26. Draelos A., Gupta P., Jun N. Y., Sriworarat C., and Pearson J. Bubblewrap: Online tiling and real-time flow prediction on neural manifolds. Advances in Neural Information Processing Systems, 34, 2021. [PMC free article] [PubMed] [Google Scholar]
  27. Driscoll L. N., Shenoy K., and Sussillo D. Flexible multitask computation in recurrent networks utilizes shared dynamical motifs. Nature Neuroscience, pp. 1–15, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Dupont E., Doucet A., and Teh Y. W. Augmented neural odes. In Wallach H. M., Larochelle H., Beygelzimer A., d’Alché-Buc F., Fox E. B., and Garnett R. (eds.), Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8–14, 2019, Vancouver, BC, Canada, pp. 3134–3144, 2019. [Google Scholar]
  29. Ebitz R. B. and Hayden B. Y. The population doctrine in cognitive neuroscience. Neuron, 2021. ISSN 0896–6273. doi: 10.1016/j.neuron.2021.07.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Falorsi L. Continuous normalizing flows on manifolds. CoRR, abs/2104.14959, 2021. [Google Scholar]
  31. Flouris K. and Konukoglu E. Canonical normalizing flows for manifold learning. In Oh A., Naumann T., Globerson A., Saenko K., Hardt M., and Levine S. (eds.), Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 – 16, 2023, 2023. [Google Scholar]
  32. Gao P., Trautmann E., Yu B., Santhanam G., Ryu S., Shenoy K., and Ganguli S. A theory of multineuronal dimensionality, dynamics and measurement. BioRxiv, pp. 214262, 2017. [Google Scholar]
  33. Gao Y., Archer E. W., Paninski L., and Cunningham J. P. Linear dynamical neural population models through nonlinear embeddings. Advances in neural information processing systems, 29:163–171, 2016. [Google Scholar]
  34. Gat I., Remez T., Shaul N., Kreuk F., Chen R. T. Q., Synnaeve G., Adi Y., and Lipman Y. Discrete flow matching. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. [Google Scholar]
  35. Goffinet J., Brudner S., Mooney R., and Pearson J. Low-dimensional learned feature spaces quantify individual and group differences in vocal repertoires. eLife, 10: e67855, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Gosztolai A., Peach R. L., Arnaudon A., Barahona M., and Vandergheynst P. Marble: interpretable representations of neural population dynamics using geometric deep learning. Nature Methods, February 2025. ISSN 1548–7091, 1548–7105. doi: 10.1038/s41592-024-02582-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Hasan A., Pereira J. M., Farsiu S., and Tarokh V. Identifying latent stochastic differential equations. IEEE Trans. Signal Process., 70:89–104, 2022. doi: 10.1109/TSP.2021.3131723. [DOI] [Google Scholar]
  38. Hoerl A. E. and Kennard R. W. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1):55–67, 1970. [Google Scholar]
  39. Hu V. T., Zhang W., Tang M., Mettes P., Zhao D., and Snoek C. Latent space editing in transformer-based flow matching. In Wooldridge M. J., Dy J. G., and Natarajan S. (eds.), Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20–27, 2024, Vancouver, Canada, pp. 2247–2255. AAAI Press, 2024. doi: 10.1609/AAAI.V38I3.27998. [DOI] [Google Scholar]
  40. Hudson D. A., Zoran D., Malinowski M., Lampinen A. K., Jaegle A., McClelland J. L., Matthey L., Hill F., and Lerchner A. Soda: Bottleneck diffusion models for representation learning. arXiv preprint arXiv:2311.17901, 2023. [Google Scholar]
  41. Ioffe S. and Szegedy C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Bach F. and Blei D. (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 448–456, Lille, France, 07–09 Jul 2015. PMLR. [Google Scholar]
  42. Kapusniak K., Potaptchik P., Reu T., Zhang L., Tong A., Bronstein M. M., Bose A. J., and Giovanni F. D. Metric flow matching for smooth interpolations on the data manifold. In Globersons A., Mackey L., Belgrave D., Fan A., Paquet U., Tomczak J. M., and Zhang C. (eds.), Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 – 15, 2024, 2024. [Google Scholar]
  43. Karras T., Aittala M., Aila T., and Laine S. Elucidating the design space of diffusion-based generative models. Advances in Neural Information Processing Systems, 35:26565–26577, 2022. [Google Scholar]
  44. Kerg G., Goyette K., Puelma Touzel M., Gidel G., Vorontsov E., Bengio Y., and Lajoie G. Non-normal recurrent neural network (nnrnn): learning long time dependencies while improving expressivity with transient dynamics. Advances in neural information processing systems, 32, 2019. [Google Scholar]
  45. Kerrigan G., Nelson K., and Smyth P. Eventflow: Forecasting continuous-time event data with flow matching, 2025. [Google Scholar]
  46. Kingma D. P. and Welling M. Auto-encoding variational bayes. In Bengio Y. and LeCun Y. (eds.), 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14–16, 2014, Conference Track Proceedings, 2014. [Google Scholar]
  47. Kruiff F. d., Bekkers E., Oktem Ö., Schönlieb C.-B., and Diepeveen W. Pullback flow matching on data manifolds. CoRR, (arXiv:2410.04543), 2025. arXiv:2410.04543 [cs]. [Google Scholar]
  48. Kutz J. N., Brunton S. L., Brunton B. W., and Proctor J. L. Dynamic mode decomposition: data-driven modeling of complex systems. SIAM, 2016. [Google Scholar]
  49. Lee J., Moradijamei B., and Shakeri H. Multi-marginal stochastic flow matching for high-dimensional snapshot data at irregular time points. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13–19, 2025. OpenReview.net, 2025. [Google Scholar]
  50. Linderman S., Johnson M., Miller A., Adams R., Blei D., and Paninski L. Bayesian learning and inference in recurrent switching linear dynamical systems. In Artificial Intelligence and Statistics, pp. 914–922, 2017. [Google Scholar]
  51. Lipman Y., Chen R. T. Q., Ben-Hamu H., Nickel M., and Le M. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1–5, 2023. OpenReview.net, 2023. [Google Scholar]
  52. Lipman Y., Havasi M., Holderrieth P., Shaul N., Le M., Karrer B., Chen R. T. Q., Lopez-Paz D., Ben-Hamu H., and Gat I. Flow matching guide and code. CoRR, abs/2412.06264, 2024. doi: 10.48550/ARXIV.2412.06264. [DOI] [Google Scholar]
  53. Liu M., Nair A., Coria N., Linderman S. W., and Anderson D. J. Encoding of female mating dynamics by a hypothalamic line attractor. Nature, pp. 1–3, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Liu X., Gong C., and Liu Q. Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1–5, 2023. OpenReview.net, 2023. [Google Scholar]
  55. Lou A., Lim D., Katsman I., Huang L., Jiang Q., Lim S., and Sa C. D. Neural manifold ordinary differential equations. In Larochelle H., Ranzato M., Hadsell R., Balcan M., and Lin H. (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6–12, 2020, virtual, 2020. [Google Scholar]
  56. Mairal J., Bach F., Ponce J., and Sapiro G. Online dictionary learning for sparse coding. In Proceedings of the 26th annual international conference on machine learning, pp. 689–696, 2009. [Google Scholar]
  57. Mante V., Sussillo D., Shenoy K. V., and Newsome W. T. Context-dependent computation by recurrent dynamics in prefrontal cortex. nature, 503(7474):78–84, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Markowitz J. E., Gillis W. F., Jay M., Wood J., Harris R. W., Cieszkowski R., Scott R., Brann D., Koveal D., Kula T., et al. Spontaneous behaviour is structured by reinforcement without explicit reward. Nature, 614(7946):108–117, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Martinez M. and Williams A. H. Quasi monte carlo methods enable extremely low-dimensional deep generative models, 2026. URL https://arxiv.org/abs/2601.18676.
  60. Mathieu E. and Nickel M. Riemannian continuous normalizing flows. In Larochelle H., Ranzato M., Hadsell R., Balcan M., and Lin H. (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6–12, 2020, virtual, 2020. [Google Scholar]
  61. McInnes L., Healy J., and Melville J. Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426, 2018. [Google Scholar]
  62. Moon K. R., Van Dijk D., Wang Z., Gigante S., Burkhardt D. B., Chen W. S., Yim K., Elzen A. v. d., Hirn M. J., Coifman R. R., et al. Visualizing structure and transitions in high-dimensional biological data. Nature biotechnology, 37(12):1482–1492, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Mukherjee A., Deng R., Zhao H., Mao Y., Sigal L., and Tung F. Adiff4tpp: Asynchronous diffusion models for temporal point processes. CoRR, abs/2504.20411, 2025. doi: 10.48550/ARXIV.2504.20411. [DOI] [Google Scholar]
  64. Musall S., Kaufman M. T., Juavinett A. L., Gluf S., and Churchland A. K. Single-trial neural dynamics are dominated by richly varied movements. Nature neuroscience, 22(10):1677–1686, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Nair A., Karigo T., Yang B., Ganguli S., Schnitzer M. J., Linderman S. W., Anderson D. J., and Kennedy A. An approximate line attractor in the hypothalamus encodes an aggressive state. Cell, 186(1):178–193, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  66. Pandarinath C., O’Shea D. J., Collins J., Jozefowicz R., Stavisky S. D., Kao J. C., Trautmann E. M., Kaufman M. T., Ryu S. I., Hochberg L. R., et al. Inferring single-trial neural population dynamics using sequential autoencoders. Nature methods, 15(10):805–815, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Pascanu R., Mikolov T., and Bengio Y. On the difficulty of training recurrent neural networks. In Dasgupta S. and McAllester D. (eds.), Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pp. 1310–1318, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR. [Google Scholar]
  68. Pei F., Ye J., Zoltowski D. M., Wu A., Chowdhury R. H., Sohn H., O’Doherty J. E., Shenoy K. V., Kaufman M. T., Churchland M., Jazayeri M., Miller L. E., Pillow J., Park I. M., Dyer E. L., and Pandarinath C. Neural latents benchmark ‘21: Evaluating latent variable models of neural population activity. In Advances in Neural Information Processing Systems (NeurIPS), Track on Datasets and Benchmarks, 2021. [Google Scholar]
  69. Polyak A., Zohar A., Brown A., Tjandra A., Sinha A., Lee A., Vyas A., Shi B., Ma C.-Y., Chuang C.-Y., Yan D., Choudhary D., Wang D., Sethi G., Pang G., Ma H., Misra I., Hou J., Wang J., Jagadeesh K., Li K., Zhang L., Singh M., Williamson M., Le M., Yu M., Singh M. K., Zhang P., Vajda P., Duval Q., Girdhar R., Sumbaly R., Rambhatla S. S., Tsai S., Azadi S., Datta S., Chen S., Bell S., Ramaswamy S., Sheynin S., Bhattacharya S., Motwani S., Xu T., Li T., Hou T., Hsu W.-N., Yin X., Dai X., Taigman Y., Luo Y., Liu Y.-C., Wu Y.-C., Zhao Y., Kirstain Y., He Z., He Z., Pumarola A., Thabet A., Sanakoyeu A., Mallya A., Guo B., Araya B., Kerr B., Wood C., Liu C., Peng C., Vengertsev D., Schonfeld E., Blanchard E., Juefei-Xu F., Nord F., Liang J., Hoffman J., Kohler J., Fire K., Sivakumar K., Chen L., Yu L., Gao L., Georgopoulos M., Moritz R., Sampson S. K., Li S., Parmeggiani S., Fine S., Fowler T., Petrovic V., and Du Y. Movie gen: A cast of media foundation models. (arXiv:2410.13720), October 2024. doi: 10.48550/arXiv.2410.13720. arXiv:2410.13720 [cs]. [DOI] [Google Scholar]
  70. Pooladian A., Ben-Hamu H., Domingo-Enrich C., Amos B., Lipman Y., and Chen R. T. Q. Multisample flow matching: Straightening flows with minibatch couplings. In Krause A., Brunskill E., Cho K., Engelhardt B., Sabato S., and Scarlett J. (eds.), International Conference on Machine Learning, ICML 2023, 23–29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pp. 28100–28127. PMLR, 2023. [Google Scholar]
  71. Preechakul K., Chatthee N., Wizadwongsa S., and Suwajanakorn S. Diffusion autoencoders: Toward a meaningful and decodable representation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10619–10629, 2022. [Google Scholar]
  72. Rajan K., Harvey C. D., and Tank D. W. Recurrent network models of sequence generation and memory. Neuron, 90(1):128–142, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Rasmussen C. E. and Nickisch H. Gaussian processes for machine learning (GPML) toolbox. J. Mach. Learn. Res., 11:3011–3015, 2010. doi: 10.5555/1756006.1953029. [DOI] [Google Scholar]
  74. Rezende D. J., Mohamed S., and Wierstra D. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the 31th International Conference on Machine Learning, ICML 2014, Beijing, China, 21–26 June 2014, volume 32 of JMLR Workshop and Conference Proceedings, pp. 1278–1286. JMLR.org, 2014. [Google Scholar]
  75. Rippel O., Gelbart M. A., and Adams R. P. Learning ordered representations with nested dropout, 2014. [Google Scholar]
  76. Rohbeck M., Bunne C., Brouwer E. D., Huetter J.-C., Biton A., Chen K. Y., Regev A., and Lopez R. Modeling complex system dynamics with flow matching across time and conditions. In The Thirteenth International Conference on Learning Representations, 2025. [Google Scholar]
  77. Roweis S. T. and Saul L. K. Nonlinear dimensionality reduction by locally linear embedding. science, 290(5500):2323–2326, 2000. [DOI] [PubMed] [Google Scholar]
  78. Rubanova Y., Chen R. T. Q., and Duvenaud D. Latent odes for irregularly-sampled time series. CoRR, abs/1907.03907, 2019. [Google Scholar]
  79. Sainburg T., Thielk M., and Gentner T. Q. Finding, visualizing, and quantifying latent structure across diverse animal vocal repertoires. PLoS computational biology, 16(10):e1008228, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  80. Schneider S., Lee J. H., and Mathis M. W. Learnable latent embeddings for joint behavioural and neural analysis. Nature, 617(7960):360–368, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  81. Schusterbauer J., Gui M., Ma P., Stracke N., Baumann S. A., Hu V. T., and Ommer B. Fmboost: Boosting latent diffusion with flow matching. In Leonardis A., Ricci E., Roth S., Russakovsky O., Sattler T., and Varol G. (eds.), Computer Vision - ECCV 2024 – 18th European Conference, Milan, Italy, September 29-October 4, 2024, Proceedings, Part LXI, volume 15119 of Lecture Notes in Computer Science, pp. 338–355. Springer, 2024. doi: 10.1007/978-3-031-73030-6\_19. [DOI] [Google Scholar]
  82. Shou X. Unified flow matching for long horizon event forecasting. CoRR, abs/2508.04843, 2025. doi: 10.48550/ARXIV.2508.04843. [DOI] [Google Scholar]
  83. Song Y., Sohl-Dickstein J., Kingma D. P., Kumar A., Ermon S., and Poole B. Score-based generative modeling through stochastic differential equations. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3–7, 2021. OpenReview.net, 2021. [Google Scholar]
  84. Tenenbaum J. B., Silva V. d., and Langford J. C. A global geometric framework for nonlinear dimensionality reduction. Science, 290(5500):2319–2323, 2000. [DOI] [PubMed] [Google Scholar]
  85. Tibshirani R. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological), 58(1):267–288, 1996. [Google Scholar]
  86. Tishby N., Pereira F. C., and Bialek W. The information bottleneck method. arXiv preprint physics/0004057, 2000. [Google Scholar]
  87. Tong A., Fatras K., Malkin N., Huguet G., Zhang Y., Rector-Brooks J., Wolf G., and Bengio Y. Improving and generalizing flow-based generative models with minibatch optimal transport. Trans. Mach. Learn. Res., 2024, 2024a. [Google Scholar]
  88. Tong A., Malkin N., Fatras K., Atanackovic L., Zhang Y., Huguet G., Wolf G., and Bengio Y. Simulation-free schrödinger bridges via score and flow matching. In Dasgupta S., Mandt S., and Li Y. (eds.), International Conference on Artificial Intelligence and Statistics, 2–4 May 2024, Palau de Congressos, Valencia, Spain, volume 238 of Proceedings of Machine Learning Research, pp. 1279–1287. PMLR, 2024b. [Google Scholar]
  89. Trautmann E. M., Stavisky S. D., Lahiri S., Ames K. C., Kaufman M. T., O’Shea D. J., Vyas S., Sun X., Ryu S. I., Ganguli S., et al. Accurate estimation of neural population dynamics without spike sorting. Neuron, 103 (2):292–308, 2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  90. Vahdat A., Kreis K., and Kautz J. Score-based generative modeling in latent space. Advances in neural information processing systems, 34:11287–11302, 2021. [Google Scholar]
  91. Van der Maaten L. and Hinton G. Visualizing data using t-sne. Journal of machine learning research, 9(11), 2008. [Google Scholar]
  92. Vinograd A., Nair A., Kim J., Linderman S. W., and Anderson D. J. Causal evidence of a line attractor encoding an affective state. Nature, pp. 1–3, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  93. Vyas S., Golub M. D., Sussillo D., and Shenoy K. V. Computation through neural population dynamics. Annual Review of Neuroscience, 43:249–275, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  94. Wei G. and Ma L. Stream-level flow matching with gaussian processes. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13–19, 2025. OpenReview.net, 2025. [Google Scholar]
  95. Weinreb C., Pearl J. E., Lin S., Osman M. A. M., Zhang L., Annapragada S., Conlin E., Hoffmann R., Makowska S., Gillis W. F., et al. Keypoint-moseq: parsing behavior by linking point tracking to pose dynamics. Nature Methods, 21(7):1329–1339, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  96. Williams A. H. and Linderman S. W. Statistical neuroscience in the single trial limit. Current opinion in neurobiology, 70:193–205, 2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  97. Wiltschko A. B., Tsukahara T., Zeine A., Anyoha R., Gillis W. F., Markowitz J. E., Peterson R. E., Katon J., Johnson M. J., and Datta S. R. Revealing the structure of pharmacobehavioral space through motion sequencing. Nature neuroscience, 23(11):1433–1443, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  98. Zhang X., Pu Y., Kawamura Y., Loza A., Bengio Y., Shung D., and Tong A. Trajectory flow matching with applications to clinical time series modelling. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. [Google Scholar]
  99. Zhao Y. and Park I. M. Variational online learning of neural dynamics. Frontiers in computational neuroscience, 14, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1
media-1.zip (13.8MB, zip)
Supplement 2

Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES