Flow-Based Density Ratio Estimation for Intractable Distributions with Applications in Genomics Egor Antipov, Alessandro Palma, Lorenzo Consoli, Stephan Günnemann, Andrea Dittadi, Fabian J. Theis Abstract Estimating density ratios between pairs of intractable data distributions is a core problem in probabilistic modeling, enabling principled comparisons of sample likelihoods under different data-generating processes across conditions and covariates. While exact-likelihood models such as normalizing flows offer a promising approach to density ratio estimation, naive flow-based evaluations are computationally expensive, as they require simulating costly likelihood integrals for each distribution separately. In this work, we leverage condition-aware flow matching to derive a single dynamical formulation for tracking density ratios along generative trajectories. We demonstrate competitive performance on simulated benchmarks for closed-form ratio estimation, and show that our method supports versatile tasks in single-cell genomics data analysis, where likelihood-based comparisons of cellular states across experimental conditions enable treatment effect estimation and batch correction evaluation. † † affiliationnotice: Equal contribution 1 Introduction Estimating the density of high-dimensional data has been a central research objective in both theoretical ( 31 ; 6 ) and applied ( 9 ; 23 ; 26 ) settings. The ability to identify modes and evaluate likelihoods in complex feature spaces enables a deeper understanding of the underlying data-generating process, laying the foundation for questions surrounding uncertainty quantification ( 19 ; 5 ) and the principled comparison of probabilistic models ( 11 ; 30 ) . In this context, generative models have emerged as a prominent data-driven approach to density estimation, with methods such as Continuous Normalizing Flows (CNFs) ( 7 ) learning expressive approximations of data distributions and enabling the exact evaluation of likelihoods for individual observations. A notable application of density estimation pertains to the study of likelihood ratios , where the likelihoods of a data point under two alternative probabilistic models are compared in terms of their ratio ( 36 ) . While this strategy is both simple and effective, the separate evaluation of sample likelihoods under different models poses computational challenges, particularly when likelihood approximation involves expensive integral expressions, as is the case for exact likelihood models such as CNFs. In this work, we introduce a novel method to efficiently evaluate the likelihood ratios of data points under different conditional models based on CNFs trained with flow matching ( 22 ; 1 ; 20 ) . Rather than independently estimating likelihoods and forming their ratio, we derive a single dynamical formulation to track the ratio along trajectories from data to noise. Our method only requires standard CNF models and estimates likelihood ratios at inference time via the compositional combination of vector fields and density scores. We show improved performance on data-driven synthetic likelihood ratio estimation, while use cases can be extended to other fields requiring density comparisons, such as hypothesis testing and anomaly detection. Moreover, we explore real-world applications of our likelihood ratio estimation method to high-dimensional cellular data, where the gene expression of individual cells is measured with single-cell RNA sequencing (scRNA-seq) across heterogeneous conditions ( 15 ) . Our model allows for the principled likelihood-based comparison of biological states arising from distinct experimental designs. Motivated by applications to cellular biology, we call the tool grounded in our framework s ingle- c ell R atio (scRatio). We summarize our main contributions as follows: • We derive a dynamical formulation for estimating density ratios between CNF models with a single simulation. • We introduce an inference procedure combining vector fields and score functions learned via flow matching to estimate likelihood ratios at individual data points. • We demonstrate competitive performance on synthetic closed-form ratio benchmarks across multiple dimensions. • We showcase the practical utility of our model, scRatio, on genomics data, supporting multiple conditional comparison tasks such as the analysis of perturbation data and the evaluation of batch correction algorithms. 2 Related Works Likelihood estimation with generative models. Our approach is related to likelihood approximation frameworks based on CNFs ( 7 ; 37 ; 14 ) and diffusion models ( 34 ; 16 ) . We further build on ideas from steering the dynamics of generative models, as commonly done in guidance methods ( 13 ; 44 ; 2 ) and in compositional generation ( 21 ; 32 ) . In this context, recent work on compositional diffusion ( 32 ) introduces strategies for computing the density of a model along trajectories simulated by another one, while a related formulation for density guidance is presented in 17 . We draw inspiration from these approaches to formalize our simulation-based likelihood ratio estimation. Density ratio estimation. Traditional methods for density ratio estimation include moment matching, probabilistic classification, and direct ratio matching, as reviewed in 36 , while recent work has revisited this problem. 30 propose a strategy that combines probability paths between distributions with classification-based objectives to estimate density ratios. Another method exploits Time Score Matching (TSM) ( 8 ) , which expresses the \log density ratio as the integral of the time-derivative of intermediate densities along an interpolation path. In this setting, authors in 42 introduce a diffusion-based extension of TSM with a closed-form objective on data-conditioned probability paths. In contrast, our model avoids interpolating between numerator and denominator densities and leverages the exact-likelihood properties of CNFs to track density ratios dynamically. Likelihood comparisons for scRNA-seq. Density estimation with Gaussian processes and mixture models has been used to identify prioritized cellular states during differentiation processes ( 28 ) and compare samples of cells as distributions ( 41 ) . Other methods focus on differential abundance analysis, assessing whether a cell state is enriched according to different conditional distributions approximated with k-Nearest-Neighbors (kNN) algorithms ( 10 ; 4 ) or Variational Autoencoders (VAE) ( 3 ) . However, none of the mentioned studies relies on flexible, parameterized exact-likelihood estimation as in scRatio. 3 Background Figure 1 : Naively approximating the likelihood ratio of a data point \bm{x}_{1} under conditions \bm{y} and \bm{y}^{\prime} requires estimating the likelihood of \bm{x}_{1} under two conditional models p_{t}^{\theta}(\cdot\mid\bm{y}) and p_{t}^{\theta}(\cdot\mid\bm{y}^{\prime}) , which implies the evaluation of two integrals. With scRatio, we directly estimate the likelihood ratio as the solution of a dedicated ODE while simulating time-marginals of a sample over time. 3.1 Continuous Normalizing Flows Unconditional CNFs. We consider a generative model over \mathbb{R}^{d} as a time-resolved probability density p_{t}:\mathbb{R}^{d}\rightarrow\mathbb{R}_{>0} , with t\in[0,1] and \int p_{t}(\bm{x})\,\mathrm{d}\bm{x}=1 , such that p_{0} is a standard normal distribution and p_{1} approximates a complex data distribution q from which we wish to sample. We use \bm{x}_{t}\in\mathbb{R}^{d} to denote a sample from the time-marginal distribution with density p_{t} . CNFs learn a time-dependent velocity field u_{t}:\mathbb{R}^{d}\rightarrow\mathbb{R}^{d} generating the family \{p_{t}\}_{t\in[0,1]} with partial time-derivative governed by the continuity equation: \frac{\partial}{\partial t}p_{t}(\bm{x})=-\nabla_{\bm{x}}\cdot\bigl(p_{t}(\bm{x})\,u_{t}(\bm{x})\bigr)\,. (1) Specifically, u_{t} defines the velocity of the following Ordinary Differential Equation (ODE): \frac{\mathrm{d}}{\mathrm{d}t}\bm{x}_{t}=u_{t}(\bm{x}_{t}),\qquad\bm{x}_{0}\sim\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d})\,, (2) where \mathbf{0}_{d} and \mathbb{I}_{d} are the d -dimensional zero-vector and identity matrix. The solution to Equation 2 transports samples from the prior p_{0} to the approximate data distribution p_{1} . CNFs enable exact likelihood computation on data samples \bm{x}_{1} and can be learned via maximum likelihood optimization. Using Equation 1 and expanding the total time derivative \frac{\mathrm{d}}{\mathrm{d}t}\log p_{t}(\bm{x}_{t}) , 7 derived an exact expression for the \log -density of the data under the model at t=1 : \log p_{1}(\bm{x}_{1})=\log p_{0}(\bm{x}_{0})-\int_{0}^{1}\nabla_{\bm{x}_{t}}\cdot u_{t}(\bm{x}_{t})\,\mathrm{d}t\,, (3) where \bm{x}_{0} and \bm{x}_{t} are defined as in Equation 2 , and p_{0} is a tractable standard normal density. As a result, a CNF can be trained by learning a parameterized vector field u_{t}^{\theta} that generates the probability path p_{t}^{\theta} maximizing the likelihood of the data. During inference, the likelihood of a data point \bm{x}_{1}\sim q(\bm{x}_{1}) under the learned model can be computed by integrating Equation 3 with samples obtained by solving the ODE in Equation 2 backwards in time. Condition-Aware CNFs. Given a conditioning random variable Y\in\mathbb{R}^{k} , one can extend CNFs to model conditional likelihoods by learning a parameterized family of distributions p_{t}^{\theta}(\bm{x}_{t}\mid\bm{y}) , generated by a conditional vector field u_{t}^{\theta}(\bm{x}_{t}\mid\bm{y}) , for each realization \bm{y} of Y . This enables comparing how likely a data point is under different conditions by evaluating Equation 3 with distinct conditional fields. 3.2 Flow Matching Flow matching ( 20 ; 22 ; 1 ) is a simulation-free approach to optimize CNFs, avoiding computationally expensive operations like Equation 3 . Given real data samples \bm{x}_{1}\sim q(\bm{x}_{1}) , the model expresses the time-marginal generating field u_{t}(\bm{x}_{t}) presented in Equation 1 in terms of a data-conditioned field u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) as follows: u_{t}(\bm{x}_{t}):=\int u_{t}(\bm{x}_{t}\mid\bm{x}_{1})\frac{p_{t}(\bm{x}_{t}\mid\bm{x}_{1})q(\bm{x}_{1})}{p_{t}(\bm{x}_{t})}\mathrm{d}\bm{x}_{1}\,. Crucially, regressing u_{t}^{\theta}(\bm{x}_{t}) against u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) is equivalent, up to a constant term, to learning u_{t}(\bm{x}_{t}) , which is used for generation from noise according to Equation 2 . The conditional field u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) generates a conditional probability path p_{t}(\cdot\mid\bm{x}_{1}) interpolating between the noise distribution at t=0 , p_{0}(\cdot\mid\bm{x}_{1})=\mathcal{N}(\bm{0}_{d},\mathbb{I}_{d}) , and a distribution at t=1 concentrated around the data point \bm{x}_{1} , which can be approximated in practice by a tractable distribution \tilde{q}(\cdot\mid\bm{x}_{1}) such as a narrow Gaussian or a point mass. Given a closed-form path from noise to data, the target field u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) is tractable. Here, we consider Gaussian paths: p_{t}(\cdot\mid\bm{x}_{1}):=\mathcal{N}(\alpha_{t}\bm{x}_{1},\sigma_{t}^{2}\mathbb{I}_{d}) (4) where \alpha_{t} and \sigma_{t} define a scheduler for the transition between noise and data. Throughout this work, we fix \alpha=t and explore three choices of variance used in the literature: (I) \sigma_{t}=1-t , (II) \sigma_{t}=1-(1-\sigma_{\mathrm{min}})t ( 20 ) , and (III) \sigma_{t}=\left[(1-\lambda)t^{2}+(\lambda-2)t+1\right]^{\frac{1}{2}} ( 1 ; 38 ) , where \sigma_{\mathrm{min}} and \lambda are hyperparameters controlling the magnitude of noise around the data and the shape of the probability path, respectively (see Section B.3 and Section B.4 for more details). From Equation 4 , one can derive a closed-form expression for the conditional field u_{t}(\cdot\mid\bm{x}_{1}) used as a regression target during training (see Section B.1 for a full derivation and Table 3 for its explicit form under different schedulers). 3.3 Application: scRNA-seq Data Density estimation via generative models is naturally applicable to single-cell biology, where each observation \bm{x}_{1}\in\mathbb{R}^{d} is a d -dimensional representation of the cellular state, measured under specific experimental conditions. Given a treatment label or biological covariate \bm{y} associated with each sample, conditional flows \{p_{t}^{\theta}(\cdot\mid\bm{y})\}_{t\in[0,1]} can be used to approximate cellular distributions across different biological contexts ( 18 ) . Modeling such context-specific densities provides a principled way to assess distributional shifts across experimental conditions, thereby supporting the analysis of perturbation assays. 4 Flow-based Likelihood Ratio Estimation 4.1 Problem Statement Let \bm{x}_{1}\in\mathbb{R}^{d} be a real data sample and \bm{y},\bm{y}^{\prime}\in\mathbb{R}^{k} realizations of a conditioning random variable Y such that \bm{y}\neq\bm{y}^{\prime} . Furthermore, consider \{p_{t}^{\theta}(\cdot\mid Y)\}_{t\in[0,1]} as a conditional CNF model, such that p_{1}^{\theta}(\cdot\,|\,Y)\approx q(\cdot\,|\,Y) , where q(\cdot\,|\,Y) is the true conditional data density, and with parameterized vector fields \{u_{t}^{\theta}(\cdot\mid Y)\}_{t\in[0,1]} . Our goal is to estimate the ratio between conditional likelihoods: r^{\theta}(\bm{x}_{1}\mid\bm{y},\bm{y}^{\prime}):=\frac{p_{1}^{\theta}(\bm{x}_{1}\mid\bm{y})}{p_{1}^{\theta}(\bm{x}_{1}\mid\bm{y}^{\prime})}\>. (5) In other words, we seek to score each data point based on whether it is more likely under the parameterized distribution conditioned on \bm{y} or \bm{y}^{\prime} . While we focus on conditional distributions, the same formulation can be applied to a couple of unconditional generative models on \mathbb{R}^{d} . A straightforward approach to address this goal is to compute both the numerator and denominator in Equation 5 by solving the ODE in Equation 3 using different conditional fields and deriving the ratio between the outcomes. We refer to this practice as the naive estimation of r^{\theta}(\bm{x}_{1}\mid\bm{y},\bm{y}^{\prime}) . However, each evaluation of the integral in Equation 3 is costly, which undermines the efficiency of the naive approach as the number of data points and features increases. 4.2 Simulation-Based Likelihood Ratio Estimation To address the computational cost of the naive estimation, we propose estimating the likelihood ratio in Equation 5 via the simulation of a single ODE . By eliminating the additional expensive integral evaluations required by the naive method, our approach efficiently scores individual data points while maintaining stable performance. Specifically, we derive a dynamical formulation of the ratio r_{t}^{\theta} for t\in[0,1] , such that r_{1}^{\theta}=r^{\theta} , with r^{\theta} as defined in Equation 5 . For CNFs, the vector fields u^{\theta}_{t}(\cdot\mid\bm{y}) and u^{\theta}_{t}(\cdot\mid\bm{y}^{\prime}) generate the corresponding conditional densities under the continuity equations in Equation 1 , sharing the same tractable prior: \displaystyle\quad p^{\theta}_{0}(\cdot\mid\bm{y})=p^{\theta}_{0}(\cdot\mid\bm{y}^{\prime})=\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d})\,. (6) We then establish the following dynamical formulation of the \log -ratio of densities in Equation 5 : \displaystyle\log r^{\theta}_{t}(\bm{x}_{t}\mid\bm{y},\bm{y}^{\prime}):=\log\frac{p_{t}^{\theta}(\bm{x}_{t}\mid\bm{y})}{p_{t}^{\theta}(\bm{x}_{t}\mid\bm{y}^{\prime})}\,, (7) \displaystyle\mathrm{with}\>\log r^{\theta}_{0}(\bm{x}_{0}\mid\bm{y},\bm{y}^{\prime})=0\,. (8) We seek to derive an integral equation to estimate \log r_{1}^{\theta}(\bm{x}_{1}\mid\bm{y},\bm{y}^{\prime}) akin to the change of variable formula in Equation 3 . However, while each conditional density satisfies a continuity equation, their ratio does not form a proper density function over \mathbb{R}^{d} , and thus cannot be sampled. Inspired by work on composing diffusion models ( 33 ) , we propose tracking the \log -ratio between densities in Equation 7 along interpolation trajectories between the noise and the data under an arbitrary velocity model. We formalize our solution in the following proposition. Proposition 4.1 . Let \bm{x}_{t} be the integral solution of the ODE with velocity \mathrm{d}\bm{x}_{t}/\mathrm{d}t=b_{t}(\bm{x}_{t}) and t\in[0,1] . Moreover, let \{p_{t}\}_{t\in[0,1]} and \{p^{\prime}_{t}\}_{t\in[0,1]} be two time-marginal probability paths, respectively generated by the vector fields \{u_{t}\}_{t\in[0,1]} and \{u^{\prime}_{t}\}_{t\in[0,1]} satisfying the continuity equations \frac{\partial}{\partial t}p_{t}(\bm{x})=-\nabla_{\bm{x}}\cdot\bigl(p_{t}(\bm{x})\,u_{t}(\bm{x})\bigr) and \frac{\partial}{\partial t}p^{\prime}_{t}(\bm{x})=-\nabla_{\bm{x}}\cdot\bigl(p^{\prime}_{t}(\bm{x})\,u^{\prime}_{t}(\bm{x})\bigr) , with p_{0}=p^{\prime}_{0} . Define the time-dependent density ratio r_{t}(\bm{x}):=p_{t}(\bm{x})/p^{\prime}_{t}(\bm{x}) . Then the logarithm of the ratio evaluated along the trajectory \bm{x}_{t} satisfies the following ODE: \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log r_{t} \displaystyle(\bm{x}_{t})=\nabla_{\bm{x}_{t}}\cdot\bigl(u^{\prime}_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr)+ (9) \displaystyle+\bigl(b_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr)^{\top}\,\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t})+ \displaystyle\quad+\bigl(u^{\prime}_{t}(\bm{x}_{t})-b_{t}(\bm{x}_{t})\bigr)^{\top}\,\nabla_{\bm{x}_{t}}\log p^{\prime}_{t}(\bm{x}_{t}), with \log r_{0}(\bm{x}_{0})=0 . Remark 4.2 . While in Proposition 4.1 we write b_{t}(\bm{x}_{t}) as a general vector field, in the simplest case one can choose b_{t}(\bm{x}_{t}):=u_{t}(\bm{x}_{t}) or b_{t}(\bm{x}_{t}):=u^{\prime}_{t}(\bm{x}_{t}) , which sets one of the last two terms in Equation 9 to zero and simplifies evaluation. The proof is in Section B.5 . In other words, one could estimate the ratio between two likelihoods at a data point \bm{x}_{1} by tracking Equation 9 evaluated at samples \bm{x}_{t}=\bm{x}_{1}+\int_{1}^{t}b_{s}(\bm{x}_{s})\mathrm{d}s , where b_{t}(\bm{x}_{t}) is a time-conditional marginal field. In our experiments with conditional densities in Equation 7 , we explore two natural settings of the simulating field b_{t} : • S1 . b_{t} as the numerator field: With b_{t}(\cdot):=u_{t}(\cdot):=u^{\theta}_{t}(\cdot\mid\bm{y}) and u^{\prime}_{t}(\cdot):=u^{\theta}_{t}(\cdot\mid\bm{y}^{\prime}) . • S2 . b_{t} as the unconditional field: With b_{t}(\cdot):=u_{t}(\bm{x}_{t}) , u_{t}(\cdot):=u^{\theta}_{t}(\cdot\mid\bm{y}) and u^{\prime}_{t}(\cdot):=u^{\theta}_{t}(\cdot\mid\bm{y}^{\prime}) . In Figure 1 , we use S1 to visualize how our method compares with its naive counterpart. In this scenario, following Proposition 4.1 leads to the following explicit \log -ratio estimation: \displaystyle\log\, \displaystyle r_{1}^{\theta}(\bm{x}_{1}\,|\,\bm{y},\bm{y}^{\prime})=-\int_{1}^{0}[\nabla_{\bm{x}_{t}}\!\cdot\!(u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}^{\prime})-u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y})) \displaystyle+(u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}^{\prime})-u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}))^{\top}\nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}^{\prime})]\mathrm{d}t\>, \displaystyle\mathrm{with}\quad\bm{x}_{t}=\bm{x}_{1}+\int_{1}^{t}u_{s}^{\theta}(\bm{x}_{s}\,|\,\bm{y})\mathrm{d}s\>. (10) A similar integral equation can be derived for S2 as well, counting an additional term as none of the fields in the ratio corresponds to the simulation velocity (see Section B.7 and Section B.7 for details on the choice of S1 and S2). We further detail the \log -density ratio estimation procedure in Algorithm 1 . 4.3 Score Estimation in Equation 9 From the Gaussian probability path formulation in Equation 4 , the density score \nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}) in Equation 9 can be directly reparametrized from the generating vector fields u_{t}(\bm{x}_{t}) according to the following equation ( 44 ) : \nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t})=\frac{\alpha_{t}u_{t}(\bm{x}_{t})-\dot{\alpha}_{t}\bm{x}_{t}}{\sigma_{t}(\dot{\alpha_{t}}\sigma_{t}-\alpha_{t}\dot{\sigma}_{t})}\,. (11) Thus, learning either the score or the vector field is equivalent up to a reparameterization depending on the schedule. In our conditional setting shown in Section 4.2 , Equation 11 allows us to recover \nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}\mid\bm{y}^{\prime}) from u_{t}^{\theta}(\bm{x}_{t}\mid\bm{y}^{\prime}) , enabling direct evaluation of the density-ratio ODE. However, for many choices of \alpha_{t} and \sigma_{t} , the denominator in Equation 11 implies a division by a low number at t=1 (see Table 4 ), causing numerical instability close to the data. Thus, we choose to parameterize the score with a neural network s_{t}^{\psi}(\bm{x}_{t}\mid\bm{y}^{\prime})\approx\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{y}^{\prime}) trained to regress the conditional score, which is tractably available for Gaussian probability paths (see Table 3 for the closed form conditional score objectives and Section B.3 for theoretical details). This provides a smooth estimator of the score close to the data, enabling a stable approximation of the \log -density ratio in Proposition 4.1 . 4.4 Use Cases in Single-Cell Data Analysis Many tasks in computational biology require comparing the likelihood of cellular profiles under alternative probabilistic models. In what follows, we formalize some examples of the usage of scRatio in cellular data analysis. Differential Abundance (DA) analysis. Consider a dataset \bm{X}=\{(\bm{x}_{1}^{(i)},y^{(i)})\}_{i=1}^{N} of N single cells, where \bm{x}_{1}^{(i)}\in\mathbb{R}^{d} denotes a representation of the gene expression profile of cell i , and y^{(i)}\in\{0,1\} is a perturbation label, with 0 and 1 indicating control and treatment conditions, respectively. Moreover, let \{p_{t}^{\theta}(\cdot\mid Y)\}_{t\in[0,1]} be a generative model approximating the distribution of cells under each realization of conditioning random variable Y , and \{u_{t}^{\theta}(\cdot\mid Y)\}_{t\in[0,1]} its generating velocity field. With scRatio, we tackle a core challenge in single-cell analysis: Are cells from a given perturbation more likely under their conditional distribution than under the control distribution? Given a perturbed cell \bm{x}_{1}^{(j)} , with j\in\mathcal{I}_{1}=\{i\,|\,y^{(i)}=1\} , we conduct this analysis by estimating the following ratio: \log r_{1}^{\theta}(\bm{x}_{1}^{(j)}\,|\,0,1)=\log\frac{p_{1}^{\theta}(\bm{x}_{1}^{(j)}\,|\,Y=1)}{p_{1}^{\theta}(\bm{x}_{1}^{(j)}\,|\,Y=0)}\,. In line with Equation 9 and using the parameterization setting S1 in Section 4.2 , we obtain: \displaystyle\Delta u_{t}^{\theta}(\bm{x}_{t}^{(j)}\mid 0,1):= \displaystyle u_{t}^{\theta}(\bm{x}_{t}^{(j)}\mid Y=0)-u_{t}^{\theta}(\bm{x}_{t}^{(j)}\mid Y=1)\>, \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log r_{t}^{\theta}(\bm{x}_{t}^{(j)}\,|\,0,1) \displaystyle=\nabla_{\bm{x}_{t}}\cdot\Delta u_{t}^{\theta}(\bm{x}_{t}^{(j)}\mid 0,1) \displaystyle\quad+\Delta \displaystyle u_{t}^{\theta}(\bm{x}_{t}^{(j)}\mid 0,1)^{\top}\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}^{(j)}\,|\,0), where \bm{x}_{t}^{(j)}=\bm{x}_{1}^{(j)}+\int_{1}^{t}u_{s}^{\theta}(\bm{x}_{s}^{(j)}\mid 1)\,\mathrm{d}s, and with initial condition \log r_{0}^{\theta}(\cdot\,|\,0,1)=0 . Intuitively, when the \log ratio is higher than 0, the cell is more likely under the perturbed distribution than the untreated one. Combining conditions. Let \bm{X}=\{(\bm{x}_{1}^{(i)},y^{(i)},z^{(i)})\}_{i=1}^{N} now be a dataset with two conditions: y^{(i)}\in\{1,...,k_{y}\} and z^{(i)}\in\{1,...,k_{z}\} . In an applied setting, the two conditions can represent combinations of treatments or batch and biological labels. With scRatio, we ask the following: Does conditioning on both y and z increase the likelihood of \bm{x}_{1} compared to conditioning on y only? For cells from a certain combination of conditions y and z , we can evaluate the following likelihood ratio: \log r_{1}^{\theta}(\bm{x}_{1}^{(i)}\mid(y,z),y)=\log\frac{p_{1}^{\theta}(\bm{x}_{1}^{(i)}\mid y,z)}{p_{1}^{\theta}(\bm{x}_{1}^{(i)}\mid y)} Crucially, it is not necessary to train different numerator and denominator fields, as flow matching enables optimizing simultaneously single- and double-conditional models by alternating z with an empty token \varnothing during training ( 13 ) . Thus, the derivative of the \log -ratio is: \displaystyle\Delta u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid(y,z),z):=u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid y,z)-u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid y,\varnothing)\>, \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log r_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid(y,z),y)=\nabla_{\bm{x}_{t}}\cdot\Delta u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid(y,z),z) \displaystyle+\Delta u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid(y,z),z)^{\top}\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}^{(i)}\mid y,\varnothing)\>, where \bm{x}_{t}^{(i)}=\bm{x}_{1}^{(i)}+\int_{1}^{t}u_{s}^{\theta}(\bm{x}_{s}^{(i)}\mid y,z)\,\mathrm{d}s, and with initial condition \log r_{0}^{\theta}(\cdot\mid(y,z),y)=0 . For example, in treatment combination studies, we can assess whether multiple perturbations cause additional state shifts ( \log r_{1}^{\theta}>0 ) due to the presence of interaction effects compared to single treatments. If y is a biological annotation and z is a batch label, the ratio indicates the extent to which technical effects drive the variation in the data ( \log r_{t}^{\theta}\approx 0 for mixed data and \log r_{t}^{\theta}\neq 0 with batch effect). 5 Experiments Figure 2 : a. The average MSE across 5 training runs between true and estimated likelihood ratios across models and simulation parameters. SB paths stand for Schrödinger Bridge probability paths. b. Runtime in seconds for likelihood ratio estimation comparing scRatio with the naive approach across simulation parameters. 5.1 Simulated High-Dimensional Gaussians Task and Dataset. First, we follow 42 and evaluate scRatio on estimating closed-form \log -likelihood ratios on multivariate Gaussian distributions. Consider the following tractable distributions: \displaystyle q:=\mathcal{N}(s \displaystyle\mathbbm{1}_{d},\mathbb{I}_{d})\>,\quad q^{\prime}:=\mathcal{N}(\bm{0}_{d},\mathbb{I}_{d})\>, where \mathbbm{1}_{d} is the one-vector of d -dimensions and s\in\{1,2\} a scalar. The aim is to estimate the true ratio r:=\log\frac{q}{q^{\prime}}\, using samples from the two distributions. For each value of s , we consider the performance across dimensions d\in\{2,5,10,20,30\} . Baselines. For this experiment, we compare scRatio with three baselines (see Section C.2 for a detailed discussion). • Naive approach: Instead of approximating r according to Proposition 4.1 , we estimate the numerator and denominator likelihoods in the \log -ratio using Equation 3 . • Time Score Matching (TSM): Given an interpolant p_{t} , for t\in[0,1] , between two densities p_{0} and p_{1} , TSM expresses the ratio between p_{1} and p_{0} as the time integral of the score \frac{\partial}{\partial t}\log p_{t}(\bm{x}) . We follow 8 ’s parameterization, which bypasses regressing an intractable time score via integration by parts. • Conditional TSM (CTSM): Using elements of flow matching to define p_{t} (see Section 3.2 ), 42 derive a tractable and more efficient formulation of the time score conditioned on samples from p_{0} and p_{1} . To compare with our method in modeling ratios between arbitrary data distributions, we consider variants of TSM and CSTM based on Schrödinger Bridge (SB) interpolants between p_{0} and p_{1} . This formulation relies solely on samples from the two distributions without any distributional assumptions (see Section C.2 for further elaboration). Metrics and Results. In Figure 2 , we report the Mean Squared Error (MSE) between the true and the estimated \log -ratios. For scRatio, we display the three best models for each of the three schedules described in Section 3.2 and Section B.4 . Notably, scRatio outperforms the baselines for the considered values of s and d , while no significant performance difference is apparent across schedules. Moreover, Figure 2 b shows that our approach achieves a significantly lower runtime for estimating the \log -ratio compared to the counterpart naive solution. Hence, results suggest a simultaneous gain in both performance and efficiency. Additional analyses and discussions are available in Section E.2 . 5.2 Mutual Information Estimation Table 1 : MAE ( \downarrow ) between true and predicted MI across data dimensions. Results are averaged over three training runs and reported as mean ± standard error. The best and second-best results per dimension are highlighted in bold and underlined, respectively. Model d 20 40 80 160 320 TSM with SB paths 0.04 ± 0.02 0.43 ± 0.02 1.29 ± 0.04 5.42 ± 0.05 28.85 ± 1.20 CTSM with SB paths 0.25 ± 0.00 0.43 ± 0.01 0.66 ± 0.02 0.74 ± 0.15 3 .39 ± 0.05 scRatio \sigma_{\mathrm{min}}=0,\lambda=0 0.23 ± 0.01 0.35 ± 0.02 0 .58 ± 0.06 0.90 ± 0.07 22.75 ± 0.18 scRatio \sigma_{\mathrm{min}}=0.1,\lambda=0 0 .17 ± 0.02 0.28 ± 0.03 0.49 ± 0.05 0 .88 ± 0.08 22.93 ± 0.11 scRatio \sigma_{\mathrm{min}}=0,\lambda=0.25 0 .17 ± 0.01 0 .29 ± 0.05 0.49 ± 0.08 1.03 ± 0.18 0.46 ± 0.15 Task and Dataset. We replicate the synthetic experiments in 42 for estimating the Mutual Information (MI) between structured Gaussians. Consider the distributions q=\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d})\>,\quad q^{\prime}=\mathcal{N}(\mathbf{0}_{d},\bm{\Sigma})\>, with d being an even number, and where \bm{\Sigma} is a block-diagonal matrix consisting of 2\times 2 blocks with 1 on the diagonal and 0.8 off-diagonal. Let \bm{x}\sim q_{0} and split it into \bm{x}^{\mathrm{{odd}}}=(x^{1},x^{3},...,x^{d-1}) and \bm{x}^{\mathrm{{even}}}=(x^{2},x^{4},...,x^{d}) , one can show that the MI between \bm{x}^{\mathrm{{odd}}} and \bm{x}^{\mathrm{{even}}} is available in closed form as the following expectation: I(\bm{x}^{\mathrm{{even}}},\bm{x}^{\mathrm{{odd}}})=\mathbb{E}_{q(\bm{x})}\left[\log\frac{q(\bm{x})}{q^{\prime}(\bm{x})}\right] (12) (see Section C.3 for more details). Following prior work, we consider how MI estimation scales across dimensions for d\in\{20,40,80,160,320\} . Baselines. We train scRatio under different scheduling strategies to approximate Equation 12 as a likelihood ratio, using 100,000 samples from each of the two distributions. The MI is estimated by averaging the learned ratios evaluated on samples from q . As baselines, we consider the CTSM and TSM models with SB paths as described in Section 5.1 . Similar to the previous setting, we adopt CTSM and TSM with SB paths to enable a fair comparison with scRatio in a purely sample-based setting without distributional assumptions. Table 2 : Comparison of scRatio with three distinct scheduling settings and baseline methods across increasing levels of DA controlled by the parameter a (Eq. 13 ). We report (I) the Spearman correlation \rho(\cdot,a) between each metric and the ground-truth DA level a , and (II) the average metric value over high-DA regimes ( a\geq 0.3 ). We describe the metrics in Section E.1 . Results are averaged over three independent training runs and reported as mean \pm standard error. In bold and underlined are the best and second-best results per metric, respectively. Model \rho(\textrm{AUC},a) ( \uparrow ) AUC ( a\geq 0.3 ) ( \uparrow ) \rho(\textrm{NAR},a) ( \uparrow ) NAR ( a\geq 0.3 ) ( \uparrow ) \rho(\textrm{CSP},a) ( \uparrow ) CSP ( a\geq 0.3 ) ( \uparrow ) MrVI 0.71 ± 0.09 0.89 ± 0.00 0.83 ± 0.01 7.33 ± 0.27 0.67 ± 0.06 0.97 ± 0.00 MELD 0.48 ± 0.00 0.93 ± 0.00 0.17 ± 0.00 6.45 ± 0.00 0.27 ± 0.00 0.99 ± 0.00 scRatio ( \sigma_{\mathrm{min}}=0,\lambda=0 ) 1.00 ± 0.00 0 .95 ± 0.00 1.00 ± 0.00 9 .64 ± 0.45 0 .95 ± 0.01 0 .98 ± 0.00 scRatio ( \sigma_{\mathrm{min}}=0.1,\lambda=0 ) 0 .99 ± 0.01 0.96 ± 0.00 1.00 ± 0.00 11.39 ± 0.30 0 .95 ± 0.03 0 .98 ± 0.00 scRatio ( \sigma_{\min}=0,\lambda=0.01 ) 0 .99 ± 0.01 0 .95 ± 0.00 0 .98 ± 0.02 9.39 ± 0.19 0.98 ± 0.01 0 .98 ± 0.00 Metrics and Results. As the MI is available for different dimensions (see Section C.3 ), we report the Mean Absolute Error (MAE) between the predicted and true value. Table 1 shows that different variants of scRatio overcome the baselines on three out of five dimensions and achieve the second-best performance on the remaining two. Crucially, adding noise to the flow matching probability path ( \lambda=0.25 ) yields significantly more precise performance in higher dimensions. 5.3 Single-Cell Differential Abundance Estimation Task. The most common application of likelihood ratio estimation on cellular data is DA analysis, as described in Section 4.4 . Here, positive and negative likelihood ratios at individual observations indicate that treatment or control cells, respectively, are overrepresented in the region of gene-expression space corresponding to that cellular state. Dataset. To compare scRatio with existing methods, we design a semi-synthetic dataset with distinct ground truth levels of treatment and control overrepresentation, similar to 3 . We use a dataset of 68k Peripheral Blood Mononuclear Cells (PBMC) from 43 , which we divide into four clusters, with labels c_{i}\in\{1,2,3,4\} for each cell i (see Figure 6 a). Then, we assign to each cell a control ( y_{i}=0 ) or treatment ( y_{i}=1 ) binary label with a cluster-specific probability \Pi=\{\pi^{k}\}_{k=1}^{4} , such that y_{i}\sim\mathrm{Ber}(\pi=\pi^{c_{i}}) . To test the model at different levels of DA, we create 8 datasets with cluster proportions \Pi^{a}=\{0.5,0.5+a,0.5-a,0.5\}, (13) for a\in\{0,0.05,0.1,0.2,0.3,0.4,0.45,0.5\} . Thus, in clusters 1 and 4 , cases and controls are always equally represented (ratio equals zero), while clusters 2 and 3 have a higher proportion of either treated or untreated cells based on a , introducing different levels of DA (see Figure 6 b-c). Baselines. We consider the following baselines: • MrVI ( 3 ) : A disentangled Variational Autoencoder (VAE) model relying on variational posterior approximation for the DA estimation. • MELD ( 4 ) : A kNN approach based on label smoothing over local neighborhoods. We do not compare scRatio with Milo ( 10 ) , despite their relatedness, because, unlike methods that score single cells, it only predicts DA at the level of cellular neighborhoods. Similar to scRatio, all models produce an estimate of the likelihood ratio \log r^{\theta}(\bm{x}\mid 1,0)=\log\frac{p^{\theta}(\bm{x}\mid 1)}{p^{\theta}(\bm{x}\mid 0)} applied to a cell \bm{x} with positive and negative values indicating higher treatment and control likelihoods, respectively. Metrics. As we do not have a ground-truth ratio per cell, we develop metrics that assess whether the distinct models predict likelihood ratios that match the DA in the dataset. • AUC: The A rea U nder the precision-recall C urve (AUC) between the absolute values of the estimated ratios and the vector of DA binary labels, which we set to 1 for clusters 2 and 3 and 0 for clusters 1 and 4. • Normalized Abundance Ratio (NAR): How much larger the absolute ratios are in DA clusters (2 and 3) versus non-DA clusters (1 and 4). • Correct Sign Proportion (CSP): Proportion of ratios that agree in sign with the real \log -odds of DA clusters (positive for cluster 2 and negative for cluster 3). All of the above metrics are expected to increase with the amount of DA in clusters 2 and 3. Thus, we report their Spearman correlation with a (see Equation 13 ), together with their average values for a\geq 0.3 (high DA). For scRatio, we choose the best results for different schedulers optimized over the mean \mathrm{AUC}(a\geq 0.3) metric. Results. In Table 2 , our model, especially with deterministic paths and \sigma_{\mathrm{min}}=0.1 , achieves the best performance across all the metrics, except for \mathrm{CSP}(a\geq 0.3) , where MELD marginally overcomes it. We expand on the advantages of using scRatio against competing methods in Section C.4 . Figure 3 : Ratio-based batch correction evaluation on the NeurIPS 2021 (panel a ) and C. Elegans (panel b ) datasets. Left: Distribution of the absolute estimated \log -ratio before and after batch correction for each of the measured batch and cell type combinations in the two datasets. Right: UMAP plots calculated before and after batch correction with scVI. To compute the UMAP, we use 50-dimensional representations obtained by PCA and scVI for uncorrected and corrected data, respectively. Batch names are annotated below each plot. 5.4 Batch Correction Evaluation Task. As a case study, we use scRatio to qualitatively assess the effectiveness of batch correction, a process that removes unwanted sources of variation from the data (technical effects) while preserving meaningful signals (biological effects). Let \bm{X}:=\{(\bm{x}_{1}^{(i)},y^{(i)},b^{(i)})\}_{i=1}^{N} denote the set of N collected measurements, where y^{(i)} and b^{(i)} are, respectively, cell type and batch labels, and \hat{\bm{x}}_{1}:=f(\bm{x}_{1}^{(i)},y^{(i)},b^{(i)}) the batch-corrected representation of sample \bm{x}_{1}^{(i)} , where f(\bm{x}_{1}^{(i)},y^{(i)},b^{(i)}) is a correction function. We train our model to approximate the true ratio \frac{q(\cdot\mid y^{(i)},b^{(i)})}{q(\cdot\mid y^{(i)})} first on samples \bm{x}_{1}^{(i)} and then on their corrected counterparts \hat{\bm{x}}_{1}^{(i)} . We use the change in the estimated ratios as a proxy for correction quality. Specifically, we expect a substantial decrease in the absolute value of the \log -likelihood ratio upon successful correction, as conditioning on b^{(i)} does not carry additional information about the samples (see Section C.5 ). Datasets and Results. We consider the following datasets: (I) The NeurIPS 2021 dataset ( 24 ) , consisting of 90,261 bone marrow cells from 12 healthy human donors. (II) The C. Elegans dataset ( 29 ) , comprising 89,701 cells across 7 distinct experimental sources. For both datasets, we regressed out the distributional shift induced by the batch label using scVI ( 23 ) . In Figure 3 a-b, we confirm our hypothesis by observing a decrease in \log -ratio magnitude upon batch correction, suggesting that scRatio could complement existing batch correction evaluations ( 25 ) with a principled likelihood-based approach (see Figure 10 ). Figure 4 : On the x-axis, the mean absolute \log -likelihood ratio \log r_{1}^{\theta}(\bm{x}_{1}\mid(d_{1},d_{2}),d_{1}) evaluated on cells perturbed with both (d_{1},d_{2}) and only d_{1} . On the y-axis, the mean log-odds of a classifier trained to discriminate cells treated with (d_{1},d_{2}) from cells treated with d_{1} only. Each point is a combination. UMAP plots show extreme cases of the combinatorial effect and lack thereof. 5.5 Drug Combination Effect Estimation Task and Dataset. Assessing treatment combinations is a key challenge in computational biology. In this experiment, we use likelihood ratios to detect interaction effects from combinatorial perturbations. For this, we analyze the ComboSciPlex dataset ( 35 ) , which contains 63,378 cells treated with either a single drug d_{1} or a combination (d_{1},d_{2}) . We quantify the difference between cells treated with (d_{1},d_{2}) versus d_{1} alone by computing \log\frac{p_{1}^{\theta}(\bm{x}\mid d_{1},d_{2})}{p_{1}^{\theta}(\bm{x}\mid d_{1})} using scRatio. Significant interactions correspond to larger absolute values of the \log -ratio, suggesting that single and double treatment populations do not mix. Metrics. In the absence of ground truth, we evaluate the plausibility of the estimated likelihood ratios through their correlation with classifier performance. For each pair of single d_{1} and combined (d_{1},d_{2}) treatments, we train a binary classifier inputting cell states to distinguish between the two conditions, and use the resulting absolute \log -odds as a measure of distributional separation. We also estimate absolute \log -ratios between the corresponding conditional likelihoods evaluated on cells treated with (d_{1},d_{2}) and d_{1} only (see Section C.6 ). Good calibration between the quantities indicates that our model pinpoints combinatorial effects. Results. In Figure 4 , mean absolute \log -odds and \log -likelihood ratios show positive correlation. Low values of both correspond to cases where adding d_{2} does not induce a state shift relative to a single treatment, whereas high values indicate a differential response between single perturbations and their combinations (UMAP plots in Figure 4 ). Additional qualitative validation is available in Section E.5 . Figure 5 : Patient-specific differential response to perturbation. ( a ) Depiction of the experimental setup. Following 27 , we divide donors into two groups responding differently to distinct cytokine treatments. (b) Absolute \log -likelihood ratios between treated and control distributions evaluated on perturbed cells from different donor groups. A higher ratio indicates evidence of a strong response to a cytokine by a donor group, while \log -ratios around 0 refer to a lower shift from controls. 5.6 Patient-specific Treatment Response Estimation Task and Dataset. Next, we assess whether the \log -likelihood ratios estimated by our model can be used to analyze the differential response of patients to treatment. We use a dataset of approximately 10 million PBMC cells from 12 donors ( 27 ) . For each sample, cells are measured in their control state and perturbed by 90 different cytokines. Let \bm{X}:=\{(\bm{x}_{1}^{(i)},s^{(i)},d^{(i)})\}_{i=1}^{N} be a set of N cells, where s^{(i)} and d^{(i)} are sample and cytokine treatment labels. Here, d\in\{d^{c}\}\cup\{d^{k}\} , where d^{c} is a control label and k\in\{1,...,90\} indicates the cytokine. For a cell \bm{x}_{1} from donor s and a treatment d^{k} , we use scRatio to compute \log r^{\theta}_{1}(\bm{x}_{1}\mid(s,d^{k}),(s,d^{c}))=\log\frac{p_{1}^{\theta}(\bm{x}_{1}\mid s,d^{k})}{p_{1}^{\theta}(\bm{x}_{1}\mid s,d^{c})} . Positive average scores correspond to donor-treatment pairs showing a statistical difference between cases and controls. Evaluation. In 27 , the authors identify cytokine treatments inducing a differential response between two groups of donors. In Figure 5 a, we illustrate our setup. We select two treatments that induce a strong shift from controls in one of the two groups (IL-10 for group 1 and IFN-omega for group 2), and one that exhibits a similar weak response in both groups (APRIL). For perturbed cells from different donors, we evaluate the \log -likelihood ratio between treated cells and controls. In this setting, we qualitatively evaluate our results, inspecting whether the distribution of scores reflects the reported biological differences between donors. Results. Figure 5 b shows that likelihood ratios estimated by our models reflect biological trends reported in the dataset. Higher statistical differences between treated and controls for IFN-omega and IL-10 lead to higher scores in patient groups 2 and 1, respectively, when compared to the counterpart group. Moreover, the distributions of \log -ratios similarly center around zero for both groups for cytokine APRIL, confirming expectations. In line with our results, scRatio provides a tool for patient stratification and donor-based analysis in large perturbation cohorts. 6 Discussion Summary. We introduce scRatio, a method for estimating likelihood ratios between pairs of intractable distributions by explicitly modeling the dynamics of the log-density ratio along sampling trajectories. We derive an ODE that governs the evolution of the \log -ratio under arbitrary vector fields and approximate it using conditional flow-based generative models. By composing learned velocity fields and scores from multiple conditionings, scRatio tracks likelihood ratios directly along a single simulation path, avoiding redundant ODE solves. We demonstrate that this formulation captures complex statistical dependencies across both synthetic benchmarks and real-world single-cell applications. Limitations. When comparing distributions with limited or no overlap in support, the \log -likelihood ratios are evaluated along vector fields that are non-generative for at least one of the densities in the ratio. This can lead to numerical instabilities and lower simulation quality, particularly in high-dimensional settings. In addition, the method incurs the overhead of training two separate neural networks for the score and the velocity field. Impact Statement The presented work addresses a fundamental problem in probabilistic modeling for single-cell data by enabling efficient likelihood-based comparisons between complex conditional data distributions. By providing a principled approach to density ratio estimation, scRatio supports key biological analyses such as treatment effect estimation and evaluation of batch effects. We envision releasing scRatio as a user-friendly, open-source tool to facilitate its adoption in single-cell research. As scRatio operates on biological data, it may be applied in sensitive settings involving clinical information and patient-derived datasets. Appendix A Code Availability We made our code available at scRatio repo . All datasets are public and extracted from the cited publications. Appendix B Theoretical Supplement B.1 Derivation of the Conditional Vector Field Consider the following conditional Gaussian probability path from 20 : \displaystyle\bm{x}_{t}\sim p_{t}(\bm{x}_{t}\mid\bm{x}_{1}):=\mathcal{N}(\alpha_{t}\bm{x}_{1},\sigma_{t}^{2}\mathbb{I}_{d})\,, (14) where \bm{x}_{1}\sim q(\bm{x}_{1}) is a data point from the data distribution q , t\in[0,1] and (\alpha_{t},\sigma_{t}) is a time-dependent scheduler. In the simplest setting, \alpha_{0}=\sigma_{1}=0 and \alpha_{1}=\sigma_{0}=1 . Nevertheless, we also consider the option of adding noise around the data by setting \sigma_{1}=\sigma_{\mathrm{min}} , where \sigma_{\mathrm{min}} is a small constant (see Section B.4 ). In the conditional setting, one can draw a sample from p_{t}(\cdot\mid\bm{x}_{1}) in closed form: \bm{x}_{t}=\alpha_{t}\bm{x}_{1}+\sigma_{t}\epsilon,\quad\epsilon\sim\mathcal{N}(\bm{0}_{d},\mathbb{I}_{d})\,. As the path from the realization of a noise variable \epsilon and data is tractable, its time derivative can be written as: \displaystyle u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) \displaystyle=\dot{\alpha}_{t}\bm{x}_{1}+\dot{\sigma}_{t}\epsilon \displaystyle=\dot{\alpha}_{t}\bm{x}_{1}+\frac{\dot{\sigma}_{t}}{\sigma_{t}}(\bm{x}_{t}-\alpha_{t}\bm{x}_{1})\;, (15) where we used \epsilon=\frac{\bm{x}_{t}-\alpha_{t}\bm{x}_{1}}{\sigma_{t}} . B.2 Relationship Between Score and Vector Field The score of the logarithm of the conditional Gaussian paths in Equation 14 is: \nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1})=-\frac{\bm{x}_{t}-\alpha_{t}\bm{x}_{1}}{\sigma_{t}^{2}}\;. (16) Following 44 , we isolate \bm{x}_{1} and plug the result into Equation 15 . Thus, we get the following relationship: u_{t}(\bm{x}_{t}\mid\bm{x}_{1})=\frac{\dot{\alpha}_{t}}{\alpha_{t}}\bm{x}_{t}+\frac{\sigma_{t}}{\alpha_{t}}(\dot{\alpha}_{t}\sigma_{t}-\alpha_{t}\dot{\sigma}_{t})\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1})\>. (17) The relationship between the conditional score and vector field holds for the marginals as well. Setting a_{t}:=\frac{\dot{\alpha}_{t}}{\alpha_{t}} and b_{t}:=\frac{\sigma_{t}}{\alpha_{t}}(\dot{\alpha}_{t}\sigma_{t}-\alpha_{t}\dot{\sigma}_{t}) , and using the following results from 44 \displaystyle\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}) \displaystyle=\int\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1})\frac{p_{t}(\bm{x}_{t}\mid\bm{x}_{1})q(\bm{x}_{1})}{p_{t}(\bm{x}_{t})}\mathrm{d}\bm{x}_{1} (18) \displaystyle=\int\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1})p_{t}(\bm{x}_{1}\mid\bm{x}_{t})\mathrm{d}\bm{x}_{1}\,, one can show that \displaystyle u_{t}(\bm{x}_{t}) \displaystyle=\int u_{t}(\bm{x}_{t}\mid\bm{x}_{1})p_{t}(\bm{x}_{1}\mid\bm{x}_{t})\mathrm{d}\bm{x}_{1} (19) \displaystyle=\int\left[a_{t}\bm{x}_{t}p_{t}(\bm{x}_{1}\mid\bm{x}_{t})+b_{t}\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1})p_{t}(\bm{x}_{1}\mid\bm{x}_{t})\right]\mathrm{d}\bm{x}_{1}\, (20) \displaystyle=a_{t}\bm{x}_{t}\int p_{t}(\bm{x}_{1}\mid\bm{x}_{t})\mathrm{d}\bm{x}_{1}+b_{t}\int\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1})p_{t}(\bm{x}_{1}\mid\bm{x}_{t})\mathrm{d}\bm{x}_{1}\, (21) \displaystyle=a_{t}\bm{x}_{t}+b_{t}\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t})\,. (22) B.3 Reparameterization Challenges We provide a list of the closed-form objectives for the conditional score and vector field across scheduling approaches in Table 3 , as both can be evaluated analytically following Equation 15 and Equation 16 . Moreover, we expand on the different schedules presented in Table 3 in Section B.4 . Table 3 : Closed-form conditional vector field u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) and score \nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1}) for different conditional probability path schemes. The tuple (\alpha_{t},\sigma_{t}) represents the schedule of the path between noise and data. A more detailed description of the schedules is in Section B.4 . \alpha_{t} \sigma_{t} u_{t}(\bm{x}_{t}\mid\bm{x}_{1}) \nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}\mid\bm{x}_{1}) t 1-t (\bm{x}_{1}-\bm{x}_{t})/(1-t) (t\bm{x}_{1}-\bm{x}_{t})/(1-t)^{2} t 1-(1-\sigma_{\mathrm{min}})t (\bm{x}_{1}-(1-\sigma_{\min})\,\bm{x}_{t})/(1-(1-\sigma_{\min})\,t) (t\bm{x}_{1}-\bm{x}_{t})/(1-t+t\sigma_{\mathrm{min}})^{2} t C=\left[(1-\lambda)t^{2}+(\lambda-2)t+1\right]^{\frac{1}{2}} (((\lambda-2)t+2)\bm{x}_{1}+(\lambda+2(1-\lambda)t-2)\bm{x}_{t})/(2C^{2}) (t\bm{x}_{1}-\bm{x}_{t})/((1-\lambda)t^{2}+(\lambda-2)t+1) Based on Section B.2 , one can learn the relationship between the score and the generating vector field, retrieving the counterpart through reparameterization in Equation 11 . In Table 4 we list the explicit equations tying the score and the generating vector field together in the marginal setting. One of the main challenges of this approach is the stability of the reparameterization method, where most of the tractable results from evaluating Equation 11 explode at certain values of t . Score explosion. At t=1 , the score takes high values as the probability path concentrates most of the mass around the data. This results in the division by a low number in the conditional case, and in most of the reparameterization settings in Table 4 . Vector field explosion. Given an approximation for the marginal score, deriving the vector field implies a division by 0 at t=0 (see Table 4 ). However, if we learn the exact marginal score in Equation 18 , the proportionality with 1/t would cancel out. In fact, by the linearity of the conditional formulation, one can write the marginal score in Equation 18 as \nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t})=(\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}]-\bm{x}_{t})/\sigma_{t}^{2} and plug it into Equation 17 , yielding: \displaystyle u_{t}(\bm{x}_{t}) \displaystyle=\frac{\dot{\alpha}_{t}}{\alpha_{t}}\bm{x}_{t}+\frac{\sigma_{t}}{\alpha_{t}}(\dot{\alpha}_{t}\sigma_{t}-\alpha_{t}\dot{\sigma}_{t})\frac{\alpha_{t}\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}]-\bm{x}_{t}}{\sigma_{t}^{2}} \displaystyle=\frac{\dot{\alpha}_{t}}{\alpha_{t}}\bm{x}_{t}+\frac{\dot{\alpha}_{t}}{\alpha_{t}}\left[\alpha_{t}\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}]-\bm{x}_{t}\right]-\frac{\dot{\sigma}_{t}}{\sigma_{t}}\left[\alpha_{t}\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}]-\bm{x}_{t}\right] \displaystyle=\frac{\dot{\sigma}_{t}}{\sigma_{t}}\bm{x}_{t}+\dot{\alpha}_{t}\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}]-\frac{\dot{\sigma}_{t}}{\sigma_{t}}\alpha_{t}\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}] \displaystyle=\frac{\dot{\sigma_{t}}\bm{x}_{t}+(\dot{\alpha}_{t}\sigma_{t}-\alpha_{t}\dot{\sigma}_{t})\mathbb{E}_{p_{t}(\bm{x}_{1}\mid\bm{x}_{t})}[\bm{x}_{1}]}{\sigma_{t}}\,. (23) Note that Equation 23 does not have \alpha_{t} in the denominator. However, given a parameterization s^{\psi} of the score, we have s^{\psi}\approx\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}) . Thus, computing the vector field as a function of a parameterized score still involves a division by a low number, causing numerical instability. Table 4 : Closed-form relation between score and vector field for different noise schedules. The tuple (\alpha_{t},\sigma_{t}) represents the schedule of the path between noise and data, while (\dot{\alpha}_{t},\dot{\sigma}_{t}) is the respective time derivative. The relationship between score and vector field is obtained from Equation 11 . \alpha_{t} \sigma_{t} \dot{\alpha}_{t} \dot{\sigma}_{t} \nabla_{\bm{x}_{t}}\log p^{\theta}_{t}(\bm{x}_{t}) u_{t}^{\theta}(\bm{x}_{t}) t 1-t 1 -1 (tu_{t}^{\theta}(\bm{x}_{t})-\bm{x}_{t})/(1-t) (\bm{x}_{t}+(1-t)\nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}))/t t 1-(1-\sigma_{\mathrm{min}})t 1 \sigma_{\mathrm{min}}-1 (tu_{t}^{\theta}(\bm{x}_{t})-\bm{x}_{t})/(1-(1-\sigma_{\mathrm{min}})t) (\bm{x}_{t}+(1-(1-\sigma_{\mathrm{min}})t)\nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}))/t t C=\left[(1-\lambda)t^{2}+(\lambda-2)t+1\right]^{\frac{1}{2}} 1 (\lambda-2(\lambda-1)t-2)/2C (2(tu_{t}^{\theta}(\bm{x}_{t})-\bm{x}_{t}))/((\lambda-2)t+2) (2\bm{x}_{t}+((\lambda-2)t+2)\nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}))/2t B.4 Explanation of the Schedules In the above Table 3 and Table 4 , we introduce three different scheduling options. We differentiate between schedules using the following taxonomy: • Deterministic path between noise samples and data. Point mass around the data. • Deterministic path between noise samples and data. Gaussian distribution around the data. • Gaussian distribution around the path between the noise samples and the data. Point mass around the data. Note that, while the probability paths are always stochastic in flow matching, the standard formulation form 20 involves deterministic interpolations between the data and the prior distribution, once the prior samples are fixed. In the following, we use Equation 4 as a reference for the probability path. Deterministic path between noise samples and data. Point mass around the data. The schedule consisting of \alpha_{t}=t and \sigma_{t}=1-t defines a deterministic interpolation between a noise sample \epsilon\sim\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d}) and a data point \bm{x}_{1} . This can be easily seen after rewriting the formula for \bm{x}_{t} : \bm{x}_{t}=t\bm{x}_{1}+(1-t)\epsilon\>. (24) In other words, the interpolation exactly retrieves \bm{x}_{1} and \epsilon at times t=1 and t=0 , respectively. Deterministic path between noise samples and data. Gaussian distribution around the data. A common approach is to set a small variance \sigma_{\mathrm{min}} at t=1 ( 20 ) , preventing probability paths from degenerating at the data. This leads to \alpha_{t}=t and \sigma_{t}=1-(1-\sigma_{\mathrm{min}})t . Gaussian distribution around the path between the noise samples and the data. Point mass around the data. The last schedule we explore sets \alpha_{t}=t and \sigma_{t}=\left[(1-\lambda)t^{2}+(\lambda-2)t+1\right]^{\frac{1}{2}} . This is equivalent to drawing noise samples from \epsilon\sim\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d}) and adding Gaussian noise to the path in Equation 24 with variance \lambda\,t(1-t) , as in 38 . Specifically, we can rewrite this setting as follows: \displaystyle\bm{x}_{t}\sim\mathcal{N}(\bm{\mu}_{t},\lambda\,t(1-t)\mathbb{I}_{d})\,, (25) \displaystyle\bm{\mu}_{t}\sim\mathcal{N}(\alpha_{t}\bm{x}_{1},(1-t)^{2}\mathbb{I}_{d})\,. The above hierarchical model can be collapsed into a single Gaussian path with, as variance, the sum of the variances of the two nested models. One can draw a sample thereof as: \displaystyle\bm{x}_{t} \displaystyle=\bm{\mu}_{t}+\sqrt{\lambda\,t(1-t)}\epsilon (26) \displaystyle=(\alpha_{t}\bm{x}_{1}+(1-t)\epsilon^{\prime})+\sqrt{\lambda\,t(1-t)}\epsilon \displaystyle=\alpha_{t}\bm{x}_{1}+((1-t)\epsilon^{\prime}+\sqrt{\lambda\,t(1-t)}\epsilon)\,, with \epsilon,\epsilon^{\prime}\sim\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d}) . By the property of the sum of Gaussian distributions, Equation 26 implies: \displaystyle\bm{x}_{t} \displaystyle\sim\mathcal{N}(\alpha_{t}\bm{x}_{1},[\lambda\,t(1-t)+(1-t)^{2}]\mathbb{I}_{d}) (27) \displaystyle=\mathcal{N}(\alpha_{t}\bm{x}_{1},[(1-\lambda)t^{2}+(\lambda-2)t+1]\mathbb{I}_{d})\,, which is the schedule reported in Table 3 and Table 4 . In the simplest case where \lambda=1 , \sigma_{t}=\sqrt{1-t} . B.5 Proof of Proposition 4.1 Let \bm{x}_{t}\in\mathbb{R}^{d} be an integral trajectory as the solution of the following ODE: \frac{\mathrm{d}}{\mathrm{d}t}\bm{x}_{t}=b_{t}(\bm{x}_{t})\,, (28) with t\in[0,1] . Moreover, let \{p_{t}(\bm{x}_{t})\}_{t\in[0,1]} and \{p^{\prime}_{t}(\bm{x}_{t})\}_{t\in[0,1]} be two probability paths generated, respectively, by the vector fields \{u_{t}(\bm{x}_{t})\}_{t\in[0,1]} and \{u^{\prime}_{t}(\bm{x}_{t})\}_{t\in[0,1]} according to the continuity equation: \displaystyle\frac{\partial}{\partial t}p_{t}(\bm{x}) \displaystyle=-\nabla\cdot\bigl(p_{t}(\bm{x})\,u_{t}(\bm{x})\bigr), (29) \displaystyle\frac{\partial}{\partial t}p^{\prime}_{t}(\bm{x}) \displaystyle=-\nabla\cdot\bigl(p^{\prime}_{t}(\bm{x})\,u^{\prime}_{t}(\bm{x})\bigr)\,, (30) such that p_{0}=p^{\prime}_{0}=\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d}) . Note that these paths correspond to two distinct generative models sampling the data distribution starting from standard Gaussian noise. We define the logarithm of the time-marginal density ratio as the solution of the following ODE: \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log r_{t}(\bm{x}_{t}) \displaystyle:=\frac{\mathrm{d}}{\mathrm{d}t}\log\frac{p_{t}(\bm{x}_{t})}{p^{\prime}_{t}(\bm{x}_{t})} (31) \displaystyle:=\frac{\mathrm{d}}{\mathrm{d}t}\log p_{t}(\bm{x}_{t})-\frac{\mathrm{d}}{\mathrm{d}t}\log p^{\prime}_{t}(\bm{x}_{t})\,, (32) with \log r_{0}(\bm{x}_{0})=0 . We express the total derivative of the individual densities as follows: \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log p_{t}(\bm{x}_{t}) \displaystyle=\frac{1}{p_{t}(\bm{x}_{t})}\frac{\mathrm{d}}{\mathrm{d}t}p_{t}(\bm{x}_{t}) (33) \displaystyle=\frac{1}{p_{t}(\bm{x}_{t})}\left[\frac{\partial}{\partial t}p_{t}(\bm{x}_{t})+(\nabla_{\bm{x}_{t}}p_{t}(\bm{x}_{t}))^{\top}\frac{\mathrm{d}}{\mathrm{d}t}\bm{x}_{t}\right] (34) \displaystyle=\frac{1}{p_{t}(\bm{x}_{t})}\left[-\nabla_{\bm{x}_{t}}\cdot\bigl(p_{t}(\bm{x}_{t})u_{t}(\bm{x}_{t})\bigr)+(\nabla_{\bm{x}_{t}}p_{t}(\bm{x}_{t}))^{\top}b_{t}(\bm{x}_{t})\right] (35) \displaystyle=\frac{1}{p_{t}(\bm{x}_{t})}\left[-(\nabla_{\bm{x}_{t}}p_{t}(\bm{x}_{t}))^{\top}u_{t}(\bm{x}_{t})-p_{t}(\bm{x}_{t})\,\nabla_{\bm{x}_{t}}\cdot u_{t}(\bm{x}_{t})+(\nabla_{\bm{x}_{t}}p_{t}(\bm{x}_{t}))^{\top}b_{t}(\bm{x}_{t})\right] (36) \displaystyle=-\nabla_{\bm{x}_{t}}\cdot u_{t}(\bm{x}_{t})+\bigl(b_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr)^{\top}\frac{\nabla_{\bm{x}_{t}}p_{t}(\bm{x}_{t})}{p_{t}(\bm{x}_{t})} (37) \displaystyle=-\nabla_{\bm{x}_{t}}\cdot u_{t}(\bm{x}_{t})+\bigl(b_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr)^{\top}\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}). (38) and \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log p^{\prime}_{t}(\bm{x}_{t}) \displaystyle=\frac{1}{p^{\prime}_{t}(\bm{x}_{t})}\frac{\mathrm{d}}{\mathrm{d}t}p^{\prime}_{t}(\bm{x}_{t}) (39) \displaystyle=\frac{1}{p^{\prime}_{t}(\bm{x}_{t})}\left[\frac{\partial}{\partial t}p^{\prime}_{t}(\bm{x}_{t})+(\nabla_{\bm{x}_{t}}p^{\prime}_{t}(\bm{x}_{t}))^{\top}\frac{\mathrm{d}}{\mathrm{d}t}\bm{x}_{t}\right] (40) \displaystyle=\frac{1}{p^{\prime}_{t}(\bm{x}_{t})}\left[-\nabla_{\bm{x}_{t}}\cdot\bigl(p^{\prime}_{t}(\bm{x}_{t})u^{\prime}_{t}(\bm{x}_{t})\bigr)+(\nabla_{\bm{x}_{t}}p^{\prime}_{t}(\bm{x}_{t}))^{\top}b_{t}(\bm{x}_{t})\right] (41) \displaystyle=\frac{1}{p^{\prime}_{t}(\bm{x}_{t})}\left[-(\nabla_{\bm{x}_{t}}p^{\prime}_{t}(\bm{x}_{t}))^{\top}u^{\prime}_{t}(\bm{x}_{t})-p^{\prime}_{t}(\bm{x}_{t})\,\nabla_{\bm{x}_{t}}\cdot u^{\prime}_{t}(\bm{x}_{t})+(\nabla_{\bm{x}_{t}}p^{\prime}_{t}(\bm{x}_{t}))^{\top}b_{t}(\bm{x}_{t})\right] (42) \displaystyle=-\nabla_{\bm{x}_{t}}\cdot u^{\prime}_{t}(\bm{x}_{t})-\bigl(u^{\prime}_{t}(\bm{x}_{t})-b_{t}(\bm{x}_{t})\bigr)^{\top}\frac{\nabla_{\bm{x}_{t}}p^{\prime}_{t}(\bm{x}_{t})}{p^{\prime}_{t}(\bm{x}_{t})} (43) \displaystyle=-\nabla_{\bm{x}_{t}}\cdot u^{\prime}_{t}(\bm{x}_{t})-\bigl(u^{\prime}_{t}(\bm{x}_{t})-b_{t}(\bm{x}_{t})\bigr)^{\top}\nabla_{\bm{x}_{t}}\log p^{\prime}_{t}(\bm{x}_{t}). (44) Then we plug the results from Equation 38 and Equation 44 into Equation 32 to get: \displaystyle\frac{\mathrm{d}}{\mathrm{d}t}\log r_{t}(\bm{x}_{t}) \displaystyle=\nabla_{\bm{x}_{t}}\cdot\bigl(u^{\prime}_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr) (45) \displaystyle+\bigl(b_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr)^{\top}\,\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t})+\bigl(u^{\prime}_{t}(\bm{x}_{t})-b_{t}(\bm{x}_{t})\bigr)^{\top}\,\nabla_{\bm{x}_{t}}\log p^{\prime}_{t}(\bm{x}_{t}). B.6 Remarks on Proposition 4.1 We provide an interpretation of the effect of the individual terms in Equation 45 on the density ratio as follows: (I) r_{t}(\bm{x}_{t}) increases when the field u_{t} concentrates probability mass more strongly around \bm{x}_{t} than u^{\prime}_{t} , as quantified by \nabla_{\bm{x}_{t}}\cdot(u^{\prime}_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})) . This suggests that the mass aggregates more at the numerator than at the denominator of the ratio. (II) \bigl(b_{t}(\bm{x}_{t})-u_{t}(\bm{x}_{t})\bigr)^{\top}\,\nabla_{\bm{x}_{t}}\log p_{t}(\bm{x}_{t}) and \bigl(u^{\prime}_{t}(\bm{x}_{t})-b_{t}(\bm{x}_{t})\bigr)^{\top}\,\nabla_{\bm{x}_{t}}\log p^{\prime}_{t}(\bm{x}_{t}) suggest that: • r_{t}(\bm{x}_{t}) decreases when p^{\prime}_{t} grows faster along its generated field u^{\prime}_{t} than the simulating field b_{t} . • r_{t}(\bm{x}_{t}) increases when p_{t} grows faster along its generated field u_{t} than the simulating field b_{t} . In other words, these terms can be interpreted as correction terms that account for the fact that the densities in the ratio are tracked along trajectories that do not correspond to their own generating vector fields. Either term vanishes when the simulation field b_{t} coincides with u_{t} or u_{t}^{\prime} . B.7 Integral Ratio Formulation with b_{t}(\bm{x}_{t}):=u_{t}(\bm{x}_{t}) In Section 4.2 we write the explicit formulation of the \log -likelihood ratios between conditional densities when the simulating field is also the generating field of the numerator (S1 setting). Here, we provide the same formulation for S2 when the simulating vector field b_{t}(\bm{x}_{t}) is the velocity u_{t}^{\theta}(\bm{x}_{t}) generating the unconditional density p_{t}^{\theta}(\bm{x}_{t}) : \displaystyle\log\,r_{1}^{\theta}(\bm{x}_{1}\,|\,\bm{y},\bm{y}^{\prime})=-\int_{1}^{0}[ \displaystyle\nabla_{\bm{x}_{t}}\!\cdot\!(u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}^{\prime})-u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y})) \displaystyle+(u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}^{\prime})-u_{t}^{\theta}(\bm{x}_{t}))^{\top}\nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}^{\prime}) (46) \displaystyle+(u_{t}^{\theta}(\bm{x}_{t})-u_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y}))^{\top}\nabla_{\bm{x}_{t}}\log p_{t}^{\theta}(\bm{x}_{t}\,|\,\bm{y})]\mathrm{d}t\> \displaystyle\mathrm{with}\quad\bm{x}_{t} \displaystyle=\bm{x}_{1}+\int_{1}^{t}u_{s}^{\theta}(\bm{x}_{s})\mathrm{d}s\>. Note that, different from Section 4.2 , none of the terms disappear, similar to the general setting described in Proposition 4.1 . As explained in Section 4.4 , u_{t}^{\theta}(\bm{x}_{t}) follows the same parameterization as the conditional counterpart and can be achieved during training by replacing the conditioner with an empty token \varnothing with a certain probability \beta . S1 vs. S2 choice ( Section 4.2 ). We use S1 across the whole paper, except for the MI experiment in Section 5.2 , where S2 worked significantly better in a high-dimensional setting (especially for d=320 ). Empirically, we recommend working with S2 in the presence of a lower overlap between the conditional densities in the ratio and a higher dimensionality, while prioritizing S1 in all other cases for efficiency. Appendix C Experimental Setup C.1 Parameterizations As explained in Section B.3 , we parameterize the score and the vector field with neural networks. Our model consists of the following units: 1. Encoder: A fully connected neural network that encodes observations into a latent space. The number of latent dimensions is a hyperparameter. 2. Condition representation network: A neural network that takes one-hot-encoded conditions as input and returns a dense representation. 3. Time encoder: A standard sinusoidal time encoder ( 40 ) followed by a fully-connected representation module. 4. Separate score and vector field head: Two fully connected neural networks inputting a concatenation between latent state, time, and condition encodings and outputting predictions for the marginal score and vector fields (see Table 4 for the conditional objectives used for the optimization). For all modules, we use the SELU activation function. Moreover, we fix the architecture of both the score and vector field heads to 1024 neurons for three layers. C.2 Gaussian Simulation Experiment Task. In the first synthetic experiment, we follow 42 and evaluate the model on estimating closed-form \log -likelihood ratios on multivariate Gaussian distributions. We consider the following tractable ratio: \displaystyle\log r(\bm{x})=\log\frac{q(\bm{x})}{q^{\prime}(\bm{x})}\,, \displaystyle q=\mathcal{N}(s \displaystyle\mathbbm{1}_{d},\mathbb{I}_{d})\quad q^{\prime}=\mathcal{N}(\bm{0}_{d},\mathbb{I}_{d})\>, where \mathbbm{1}_{d} is the d -dimensional all-ones vector, s\in\{1,2\} a scalar defining different datasets, and \bm{x}\in\mathbb{R}^{d} . For each value of s , we consider the model’s performance across d\in\{2,5,10,20,30\} . Choices for scRatio. We use a condition-aware flow matching model \{p_{t}^{\theta}(\bm{x}_{t}\mid y)\}_{t\in[0,1]} , with parameterized vector field \{u_{t}^{\theta}(\bm{x}_{t}\mid y)\}_{t\in[0,1]} , to implement scRatio. Here, p_{t}^{\theta}(\cdot\mid y=0) and p_{t}^{\theta}(\cdot\mid y=1) approximate, respectively, q^{\prime} and q . After training the flow model, we simulate the ratio using Proposition 4.1 as a simulation field while tracking the ratio. As a dataset, we sample 100,000 points from the two distributions and split them into 90\% training and 10\% test sets. Models are trained with a learning rate of 1e-4 across 100,000 steps. The results are averaged across 5 repetitions. scRatio Parameter Sweep. As presented in Section 5.1 , we evaluate our approach across different schedulers. The results shown in Figure 2 are based on, for each scheduler, the configuration that yielded the best test-set performance. Alongside the scheduling hyperparameters, we also consider model size and encoding mechanisms, and provide the grid of tested hyperparameters in Table 5 . Table 5 : The hyperparameter grid explored for the Gaussian simulation dataset. Each model with a different configuration of hyperparameters is compared based on the test-set ratio estimation performance measured as MSE. Hyperparameters Values Latent space size 32, 64, 128, 256, 512 \lambda 0, 0.1, 0.25, 0.5, 0.75, 1 \sigma_{\mathrm{min}} 0, 1e-4, 1e-3, 0.01, 0.1 Use sinusoidal time embedding True, False Sinusoidal time embedding size 32, 64, 128 Condition embedding size 32, 64, 128 Baselines. For this experiment, we compare scRatio with three baselines. • Naive approach: In the naive approach, instead of estimating the ratio according to Proposition 4.1 , we separately evaluate the numerator and denominator likelihoods. Notably, the difference between scRatio and the naive approach is only at inference time. Therefore, in our results, we use the same trained conditional model to evaluate both scRatio and the naive solution to exclude any performance differences grounded in neural network optimization. • Time Score Matching (TSM) ( 8 ) : TSM relies on probability paths between pairs of densities. For convenience, given a point \bm{x}\in\mathbb{R}^{d} , we restate the task as the estimation of the following ratio between pairs of probability distributions: \log r(\bm{x})=\log\frac{p_{1}(\bm{x})}{p_{0}(\bm{x})}\,, where p_{0}(\bm{x}) and p_{1}(\bm{x}) are two densities over \mathbb{R}^{d} . Let \{p_{t}(\bm{x}_{t})\}_{t\in[0,1]} be a time-resolved interpolant between p_{0}(\bm{x}) and p_{1}(\bm{x}) . One can express the ratio between densities as follows: \log r(\bm{x})=\log\frac{p_{1}(\bm{x})}{p_{0}(\bm{x})}=\int_{0}^{1}\frac{\partial}{\partial t}\log p_{t}(\bm{x})\mathrm{d}t\,. Hence, the goal of TSM is to parameterize the time-score \frac{\partial}{\partial t}\log p_{t}(\bm{x})\mathrm{d}t with a neural network s_{t}^{\psi}(\bm{x}) and integrate it through time. More specifically, 8 uses the following simulation-free objective relying on integration by parts: \mathcal{L}_{\mathrm{TSM}}(\psi)=2\,\mathbb{E}_{p_{0}(\bm{x})}\left[s_{0}^{\psi}(\bm{x})\right]-2\,\mathbb{E}_{p_{1}(\bm{x})}\left[s_{1}^{\psi}(\bm{x})\right]+\mathbb{E}_{p_{t}(\bm{x})}\left[2\,\frac{\partial}{\partial t}s_{t}^{\psi}(\bm{x})+2\,\dot{\lambda}(t)\,s_{t}^{\psi}(\bm{x})+\lambda(t)\,s_{t}^{\psi}(\bm{x})^{2}\right]\,, with \lambda(t) representing a time-dependent weighting function. • Conditional Time Score Matching (CTSM) ( 42 ) : CTSM borrows concepts from flow matching ( 1 ; 20 ; 37 ) to define a TSM objective conditioned on the data points. By defining a tractable interpolation between samples from p_{0} and p_{1} , the time-score of the conditional p_{t} is available in closed form and can be regressed against. In analogy with flow matching, regressing the conditional version of the CTSM objective corresponds to learning the marginal TSM in expectation. Moreover, the authors offer a vectorized variant (CTSMv), where they split the optimization problem across the d dimensions. Choice of Sample-based Ratio Estimation Variants for TSM and CTSM. In the simulation experiments described in Section 5.1 and Section 5.2 , one of the two densities in the ratio is a closed-form standard normal. This opens the door to assuming tractability of p_{0} and using closed-form probabilistic interpolants relying exclusively on samples from p_{1} . For a fair comparison with scRatio, which does not assume any distributional form for either the numerator or denominator of the density ratio, we focus on the CTSM and TSM model variants with Schrödinger Bridge (SB) probability paths. In essence, instead of relying on schedules interpolating between the data and a standard normal distribution, we define paths between samples from both distributions as stochastic interpolants. Let \bm{x}_{0}\sim p_{0}(\bm{x}_{0}) and \bm{x}_{1}\sim p_{1}(\bm{x}_{1}) be samples from the two distributions whose ratio we seek to estimate. The SB path is: \bm{x}_{t}=t\bm{x}_{1}+(1-t)\bm{x}_{0}+\sigma\sqrt{t(1-t)}\epsilon\,, where, in our experiments, we fix \sigma=1 following the original CTSM publication ( 42 ) and \epsilon\sim\mathcal{N}(\bm{0}_{d},\mathbb{I}_{d}) . Note that, with this formulation, p_{0} can be any distribution for which samples are available, allowing for data-driven likelihood ratio estimation similar to scRatio. Note on the difference between scRatio, TSM, and CTSM. scRatio has the same goal as CTSM and TSM, but it is methodologically very different. TSM-based methods use interpolations between densities to derive their ratio, while scRatio achieves the ratio-modeling objective by combining vector fields and density scores of different models along trajectories from data to noise. Our model is flexible; it enables custom conditioning of the generative fields to compare and enables versatile modeling questions. C.3 Mutual Information Estimation Experiment Task. In this experiment, we use density ratios as a proxy for Mutual Information (MI) estimation. More specifically, we consider the following two Gaussian distributions: \quad q=\mathcal{N}(\mathbf{0}_{d},\bm{\Sigma})\,,q^{\prime}=\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d})\,, where d is an even number of dimensions and \bm{\Sigma} is a block-diagonal matrix of 2\times 2 blocks with 1’s on the diagonals and 0.8 in the off-diagonal entries. In other words, each odd dimension k is correlated with the even dimension k+1 and uncorrelated with the others. Given this structured setup and an observation \bm{x}\sim q(\bm{x}) , one can show that the expectation of the \log density ratio between q and q^{\prime} corresponds to the MI between the vectors \bm{x}^{\mathrm{{odd}}}=(x^{1},x^{3},...,x^{d-1}) and \bm{x}^{\mathrm{{even}}}=(x^{2},x^{4},...,x^{d}) . Relationship between MI and density ratio. Consider the two multivariate random variables X^{\mathrm{even}} and X^{\mathrm{odd}} representing the even and odd dimensions of X , respectively. Individually, X^{\mathrm{even}} and X^{\mathrm{odd}} are multivariate standard normal as: • Odd dimensions are correlated only with even dimensions (and vice versa) and uncorrelated with each other. • The individual dimensions of a multivariate Gaussian random variable are also normally distributed. In other words, the following is true: q(X^{\mathrm{even}})=q(X^{\mathrm{odd}})=\mathcal{N}(\mathbf{0}_{\frac{d}{2}},\mathbb{I}_{\frac{d}{2}}),\quad q(X^{\mathrm{even}},X^{\mathrm{odd}})=\mathcal{N}(\mathbf{0}_{d},\bm{\Sigma})\,. (47) Now, we write the MI as a Kullback-Leibler (KL) divergence: \displaystyle I(X^{\mathrm{even}},X^{\mathrm{odd}}) \displaystyle=\mathbb{E}_{q(X^{\mathrm{even}},X^{\mathrm{odd}})}\left[\log\frac{q(X^{\mathrm{even}},X^{\mathrm{odd}})}{q(X^{\mathrm{even}})q(X^{\mathrm{odd}})}\right]\> (48) \displaystyle=\mathbb{E}_{q(X^{\mathrm{even}},X^{\mathrm{odd}})}\left[\log\frac{q(X)}{q^{\prime}(X)}\right]\>, where the last step follows from the fact that X^{\mathrm{even}} and X^{\mathrm{odd}} are independent multivariate standard normal random variables and their concatenation X=(X^{\mathrm{even}},X^{\mathrm{odd}}) follows a standard multivariate normal distribution, i.e., q^{\prime}(X)=\mathcal{N}(\mathbf{0}_{d},\mathbb{I}_{d}) . In other words, considering a Monte Carlo approximation of the MI in Equation 48 , we can estimate the MI by averaging an estimate of the \log -likelihood ratio between distributions over samples from q . Ground truth MI. By the properties of the multivariate normal distribution, the ground truth MI of Equation 48 is available in closed form as follows: I(X^{\mathrm{even}},X^{\mathrm{odd}})=\frac{1}{2}\log\left(\frac{1}{|\bm{\Sigma}|}\right)\,, where we indicate with |\bm{\Sigma}| the determinant of the covariance matrix of q . Since \bm{\Sigma} is a block diagonal, we have: |\bm{\Sigma}|=|\bm{\Sigma}^{(b)}|^{\frac{d}{2}}\,, where \bm{\Sigma}^{(b)} is a single block. Hence, the actual MI depends on the dimensionality of the data (see Table 6 for the ground truth values). Here, we use the real MI as a ground truth for our experiments. Table 6 : The real MI values for different data dimensions. d MI 20 5.11 40 10.22 80 20.43 160 40.86 320 81.73 Dataset and Evaluation. We consider a dataset of 100,000 data points drawn independently from both distributions. Out of these, we leave out 10,000 samples from q as a test set. The models are evaluated based on the Mean Absolute Error (MAE) between the average \log -likelihood ratio estimated on the samples from q and the ground truth MI. Choices for scRatio. We train scRatio as in Section C.2 , considering a smaller grid for hyperparameter tuning that focuses on scheduling (see Table 7 ). Additionally, in this experiment, we leverage S2 from Section 4.2 and set b_{t}(\bm{x}) from Proposition 4.1 to b_{t}(\bm{x}):=u_{t}^{\theta}(\bm{x}_{t}) , namely the field generating the unconditional distribution p_{t}^{\theta}(\bm{x}_{t}) , as we empirically find that it improves the results. As mentioned in Section B.7 , this practice does not require training the unconditional field separately from the rest. In our experiments, we replace the condition y with the empty condition token \varnothing with a 50 \% frequency. Table 7 : The hyperparameter grid explored for the MI estimation experiment. Hyperparameters Values \lambda 0, 0.1, 0.25, 0.5 \sigma_{\mathrm{min}} 0, 0.01, 0.1 Baselines. We choose TSM and CTSM with SB paths as in Section C.2 . C.4 Differential Abundance Experiment Task. In this experiment, we show how to use scRatio for the Differential Abundance (DA) estimation task. DA is a standard analysis in single-cell perturbation studies that estimates whether a cellular state is significantly enriched in a condition (e.g., a donor or a perturbation) compared to another. Dataset. We provide a description of the data in Section 5.3 . In essence, we create a synthetic version of the popular PBMC68k dataset ( 44 ) by assigning different proportions of synthetic treatment labels to four different clusters, derived with the Leiden algorithm ( 39 ) with a resolution parameter of 0.4. By varying the parameter a in Equation 13 , we create more or less differentially abundant clusters for treatments 2 and 3, while we introduce no DA for clusters 1 and 4 (see Figure 6 ). Metrics. Since we do not have a ground truth, our metrics assess the ability of detecting differential abundance and the absence thereof at different levels of the parameter a . All the metrics quantify the extent of DA continuously, meaning that their value should vary for different choices of a . We describe the metrics in Section 5.3 . For each of such metrics, we present: • Mean value for a\geq 0.3 : This suggests whether the metrics are promising in the presence of high DA. • The Spearman correlation between the metric and the value of a . Metrics are expected to calibrate with the level of differential abundance introduced. Hence, we expect a high correlation between their values and a . In these experiments, we evaluate the ratio predictions directly on the dataset used for model training, as a baseline like MELD does not enable generalization. Experimental setup for scRatio. We train scRatio for 100,000 steps with a learning rate of 1e-4. As a representation for gene expression, we use the top- k Principal Components (PCs) for different values of k . We explore the hyperparameters on a grid presented in Table 8 and evaluate model optimality based on the Mean AUC metric (see Table 2 ). Table 8 : The hyperparameter grid explored for the DA estimation experiment on the PBMC68k dataset. Hyperparameters Grid \lambda 0, 0.01, 0.1, 0.25, 0.5 \sigma_{\mathrm{min}} 0, 0.01, 0.1 Batch size 256, 512,1024 Top-k PCs 10, 20, 30, 40, 50 Baselines. We consider the following baseline models developed specifically for the task. Although following different approaches, all the methods produce a score that can be interpreted as a \log -likelihood ratio between the densities conditioned on different treatment labels. • MrVI ( 3 ) : MrVI is a disentangled Variational Autoencoder (VAE) compatible with DA analysis in single-cell data. It learns a low-dimensional latent representation in which biological and technical sources of variation are separated, while conditioning on experimental covariates. DA is assessed through variational posterior approximations of cell-type or neighborhood-specific abundances across conditions. We train the model across 200 epochs with default parameters. • MELD ( 4 ) : MELD estimates differential abundance by smoothing condition labels over a kNN graph built from single-cell embeddings. It computes a continuous, cell-level density estimate for each condition via local averaging and derives DA scores by comparing these smoothed densities. We ran the model with default parameters. Notes on advantages of scRatio over competing models. We present some advantages of modeling likelihood ratios with scRatio compared to baseline models. • Exact likelihood estimation: Using generative CNFs, our model enables numerically tractable likelihood-ratio estimation via ODE integration, while all other methods rely on heuristic approaches (MrVI) or neighborhood-based approximations (MELD). • Flexibility: Because it relies on conditional vector fields, scRatio can model flexible likelihood ratios based on the conditioning variables used during training. This allows tailoring the estimated likelihood ratio to a flexible research question, such as combining different hierarchies of variables or estimating batch-specific effects. • Generalization. Our deep generative model is a proxy for future generalization studies, while models like MELD produce graph-smoothed density ratio scores evaluated on the observed dataset, rather than likelihood-based generative estimates. C.5 Batch Correction Experiment Task. In Section 5.4 we show that likelihood ratios reveal the presence of batch effect. Let y and b be cell type and batch labels and \bm{X}=\{\bm{x}_{1}^{(i)},y^{(i)},b^{(i)}\}_{i=1}^{N} a single-cell dataset of N observations. Furthermore, let \{p_{t}^{\theta}(\cdot\mid y,b)\}_{t\in[0,1]} and \{p_{t}^{\theta}(\cdot\mid y)\}_{t\in[0,1]} be doubly- and singly-conditional time-resolved densities generated by the neural vector fields \{u_{t}^{\theta}(\cdot\mid y,b)\}_{t\in[0,1]} and \{u_{t}^{\theta}(\cdot\mid y,\varnothing)\}_{t\in[0,1]} ( 13 ) . We use Proposition 4.1 to estimate the following ratio: \log r_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid(y^{(i)},b^{(i)}),y^{(i)}\right)=\log\frac{p_{1}^{\theta}(\bm{x}_{1}^{(i)}\mid y^{(i)},b^{(i)})}{p_{1}^{\theta}(\bm{x}_{1}^{(i)}\mid y^{(i)})}\>. (49) We distinguish two settings: • Presence of batch effect: The ratio in Equation 49 is nonzero, as adding the batch variable affects the conditional density around \bm{x}_{1}^{(i)} . • Absence of batch effect: The ratio in Equation 49 is approximately 0 , as adding information on the batch does not increase the likelihood of the data. In other words, the batch covariate does not add information beyond the annotated cell type. In Section 5.4 we propose using this notion to evaluate the effectiveness of batch correction. Given an arbitrary batch correction function f(\bm{x}_{1},y,b) , we evaluate the following ratios: \log r_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid(y^{(i)},b^{(i)}),y^{(i)}\right),\quad\log r_{1}^{\theta}\!\left(f(\bm{x}_{1}^{(i)},y^{(i)},b^{(i)})\mid(y^{(i)},b^{(i)}),y^{(i)}\right)\>. If \log r_{1}^{\theta}\!\left(f(\bm{x}_{1}^{(i)},y^{(i)},b^{(i)})\mid(y^{(i)},b^{(i)}),y^{(i)}\right) drops considerably towards 0 compared to \log r_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid(y^{(i)},b^{(i)}),y^{(i)}\right) , a substantial extent of batch information has been removed. Datasets. For this analysis, we choose two datasets holding both technical and biological annotations: • NeurIPS ( 24 ) : 90,261 bone marrow cells from 12 healthy donors. • C. Elegans ( 29 ) : 89,701 cells across 7 sources. As a preprocessing step, we normalize the counts to sum to 10{,}000 , \log -transform them, and perform dimensionality reduction by taking the first 50 PCs of the data ( 12 ) . Batch correction tool. As a batch correction tool we use scVI ( 23 ) with default hyperparameters. Evaluation. Since this is a qualitative experiment, we limit ourselves to the empirical evaluation of how the likelihood ratios change when training scRatio on cellular representations before and after batch correction. In the former case, we use the top-50 PCs as a representation. For the latter, we consider a batch-corrected 50-dimensional latent space predicted by scVI. Hyperparameters. We focus on the flow-matching formulation with deterministic paths between noise and data samples and \sigma_{\mathrm{min}}=0.01 . Moreover, we train a doubly-conditional model, a singly-conditional model, and an unconditional counterpart by randomly replacing conditioning variables y and b with probability 0.2 . We train the model for 100,000 steps and take the absolute value of the predicted ratios, as their distance from zero semantically reflects the presence of a batch effect (see Figure 3 and Figure 10 ). C.6 Drug Combination Experiment In this experiment, we demonstrate how scRatio can be used to score combinations of drugs. More specifically, we assess whether treating cells with two perturbations induces a state shift compared to treatment with a single perturbation. Task. We propose a formulation analogous to the batch correction task (see Section 5.4 and Section C.5 ), but instead of considering batch and cell type labels, we consider combinations of drug labels. In analogy with Equation 49 , we define two drug conditions, denoted by d_{1} and d_{2} , and estimate the following ratio: \log r_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid(d_{1}^{(i)},d_{2}^{(i)}),d_{1}^{(i)}\right)=\log\frac{p_{t}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid d_{1}^{(i)},d_{2}^{(i)}\right)}{p_{t}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid d_{1}^{(i)}\right)}\>. (50) In other words, we assess whether a cell is more likely under a distribution conditioned on both drugs than under a distribution conditioned only on the first. From an application perspective, this corresponds to evaluating the distributional shift induced by a drug combination and enables hypothesis generation regarding synergistic effects and chemical interactions. A strong combinatorial effect corresponds to a large absolute \log -likelihood ratio, whereas its absence corresponds to ratios concentrated around zero. Dataset. For this experiment, we use the ComboSciPlex dataset ( 35 ) , which contains 63, 378 cells treated with combinations of drugs. We investigate whether combining Alvespimycin, Dacinostat, Dasatinib, Givinostat, Panobinostat, or SRT2104 with >20 additional drugs induces a significant state shift compared to treatment with each drug alone. Experimental setup. We estimate Equation 50 using scRatio. To approximate the denominator, we use a doubly conditional model combining a drug label with a control label, which conceptually corresponds to the absence of a second perturbation. We train scRatio for 200,000 steps in its deterministic variant, using a Gaussian distribution around the data ( \lambda=0 and \sigma_{\mathrm{min}}=0.001 ), with a batch size of 512. As a data representation, we use 5-dimensional autoencoder embeddings. Evaluation. As is common for real-world datasets, no ground-truth likelihood ratios are available. Since we use this experiment as a qualitative case study, we provide two complementary analyses: • Qualitative analysis: For reported active perturbation combinations, we show that the estimated ratios attain large absolute values, whereas for inactive double perturbations, the ratios remain close to zero. This qualitative validation is available in Section E.5 . • Correlation with classification probability: We show that the estimated absolute \log ratios are well calibrated with the binary classification absolute \log -odds of a deep classifier trained to discriminate between singly and doubly perturbed cells. C.7 Patient-specific Treatment Response Experiment Task. In this experiment, we demonstrate how scRatio can be used to quantify patient-specific responses to perturbations. More specifically, we assess whether cytokine stimulation induces a donor-dependent state shift compared to the corresponding control condition. In analogy to the drug combination experiment (see Section C.6 ), we formulate a conditional likelihood ratio comparing treated and control cells within the same donor. Let s denote a donor (sample) label and d^{k} a cytokine treatment, with d^{c} representing the control condition. For a cell \bm{x}_{1}^{(i)} from donor s^{(i)} treated with cytokine d^{k(i)} , we estimate \log r_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid(s^{(i)},d^{k(i)}),(s^{(i)},d^{c})\right)=\log\frac{p_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid s^{(i)},d^{k(i)}\right)}{p_{1}^{\theta}\!\left(\bm{x}_{1}^{(i)}\mid s^{(i)},d^{c}\right)}\>. (51) In other words, we evaluate whether a treated cell is more likely under the donor-specific treatment distribution than under the donor-specific control distribution. A strong donor-specific treatment effect corresponds to large absolute \log -likelihood ratios, whereas the absence of a differential response results in ratios concentrated around zero. Dataset. We use a large-scale PBMC perturbation dataset comprising approximately 10 million cells from 12 donors ( 27 ) . For each donor, cells are profiled in a control condition and under stimulation with 90 different cytokines. The dataset includes previously reported donor groupings with cytokine-specific differential responses, enabling qualitative validation of patient-specific effects. Experimental setup. We train scRatio to model conditional distributions over cell states given donor and treatment labels. As in previous experiments, we use the deterministic variant of scRatio with a Gaussian distribution around the data ( \lambda=0 and \sigma_{\mathrm{min}}=0.001 ). Training is performed for 100,000 steps with a batch size of 512. Cells are represented using low-dimensional autoencoder embeddings to capture their transcriptional state. To estimate Equation 51 , we condition the numerator on both donor and cytokine labels, and the denominator on the same donor paired with the control label. This design ensures that estimated likelihood ratios capture treatment-induced shifts while controlling for inter-donor variability. Evaluation. As no ground-truth likelihood ratios are available, we conduct a qualitative evaluation guided by biological findings reported in 27 . Specifically, we analyze cytokines that were shown to induce group-specific responses (e.g., IL-10 and IFN-omega), as well as cytokines with weak or similar effects across donor groups (e.g., APRIL). For each donor-treatment pair, we examine the distribution of estimated \log -likelihood ratios for treated cells relative to controls. Consistency between reported biological differences and the magnitude and separation of likelihood ratio distributions serves as validation that scRatio captures meaningful patient-specific treatment effects. Appendix D Algorithms We provide an algorithmic description of the scRatio inference procedure here. Note that, when evaluating functions on collections of objects, we override the notation to emphasise the vectorizability of the operation and assume the returned object is the same collection mapped with the used function. Algorithm 1 Inference with scRatio. 1: Input: Trained Neural Velocity Field u_{t}^{\theta}(\cdot\mid Y) and Score s_{t}^{\psi}(\cdot\mid Y) . Two realizations \bm{y} and \bm{y}^{\prime} with \bm{y}\neq\bm{y}^{\prime} of conditioning random variable Y . Set of data-points \bm{X}_{1}:=\{(\bm{x}_{1}^{(i)},\bm{y})\}_{i=1}^{N} , with \bm{x}_{1}^{(i)}\sim q(\cdot\mid Y=\bm{y}) . 2: Output: Estimated \log -likelihood ratio \log\frac{p^{\theta}(\cdot\mid Y=\bm{y})}{p^{\theta}(\cdot\mid Y=\bm{y}^{\prime})} 3: \frac{\mathrm{d}}{\mathrm{d}t}r_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid\bm{y},\bm{y}^{\prime})\leftarrow\nabla_{\bm{x}_{t}^{(i)}}\cdot\bigl(u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid Y=\bm{y}^{\prime})-u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid Y=\bm{y})\bigr)+ \quad+\bigl(u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid Y=\bm{y}^{\prime})-u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid Y=\bm{y})\bigr)^{\top}\,s_{t}^{\psi}(\bm{x}_{t}^{(i)}\mid Y=\bm{y}^{\prime}) // Define ratio dynamics to estimate Equation 9 . 4: \hat{b}_{t}(\bm{x}_{t}^{(i)}\mid\bm{y},\bm{y}^{\prime})\leftarrow[u_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid Y=\bm{y}),\frac{\mathrm{d}}{\mathrm{d}t}r_{t}^{\theta}(\bm{x}_{t}^{(i)}\mid\bm{y},\bm{y}^{\prime})] // Define augmented dynamics. 5: [\hat{\bm{X}}_{0},\bm{r}_{0}]\leftarrow\text{OdeSolve($[\bm{X}_{1},\bm{0}],\hat{b}_{t}(\cdot\mid\bm{y},\bm{y}^{\prime}),t_{0}=1,t_{1}=0$)} // Solve ODE backwards in time. 6: return -\bm{r}_{0} // Return \log ratio. Appendix E Additional Results E.1 Differential Abundance Experiments A general depiction of the semi-synthetic PBMC68k datasets can be found in Figure 6 . Figure 6 : a. UMAP plot of the PBMC68K dataset colored by cluster labels. The clusters are assigned to each cell through the Leiden algorithm ( 39 ) . b. The proportion of treated cells per cluster for different values of a (see Equation 13 for a description of a ). c. UMAP colored by the treatment label sampled for each cluster using different values of a . E.2 Additional Results Gaussian Simulation Experiments We report the Mean Squared Error (MSE) between the true and estimated \log -ratios across different dimensions, averaged over 5 runs. Results in Figure 7 show that scRatio outperforms all baselines for both locations 1 and 2 across all dimensions, except for location 1 at 2 dimensions, where TSM and the naive approach achieve comparable performance. Different scRatio schedules yield similar performance across dimensions. For location 4, however, we observe a markedly different behavior, with some baselines outperforming scRatio. This can be attributed to the limited overlap between the distributions for which the ratio is estimated. Specifically, baselines such as TSM, CTSM, and CTSMv learn probability paths directly between these distributions, whereas scRatio learns probability paths separately from the source to each target distribution. The effect of distribution overlap as a function of the distance between Gaussian means is illustrated in Figure 8 . Figure 7 : Mean Squared Error (MSE) of different methods across varying data dimensionalities and values of s (mean shifts from the origin). TSM and CTSM denote baseline models, and SB paths indicate Schrödinger Bridge probability paths. Figure 8 : Overlap between Gaussian distributions as a function of the distance between their means. One of the distributions is fixed as a standard Gaussian. E.3 MSE vs Ratios’ Absolute Value Figure 9 : Mean Squared Error (MSE) as a function of the absolute value of the log-ratio, shown for different locations and dimensionalities. E.4 Additional Results on Batch Correction Evaluation. Figure 10 : UMAP projections for the two datasets across different dimensionalities ( 10 , 50 , 100 , and 200 ). Each cell is colored by the estimated \log -likelihood ratio, computed as described in Section C.5 . Beside each UMAP, the corresponding box plot shows the distribution of the mean absolute log-ratio per condition combination. E.5 Additional Results on Combinatorial Drug Estimation. We present additional plots in Figure 11 to illustrate how the estimated \log -ratio changes as the combinatorial effect increases. Starting with the first UMAP, which has no combinatorial effect, and progressing to those with increasingly pronounced effects, the box plots clearly show the corresponding rise in the estimated \log -ratio. Figure 11 : Right: Four UMAPs showing the gradual increase of combinatorial effects across several single perturbations and their combinations. Left: Corresponding box plots for each UMAP, displaying the absolute values of the estimated log-likelihood ratios.