Optimal Transport is the mathematical framework that computes the minimal-cost mapping between two probability distributions. Originating from Gaspard Monge's 18th-century work on moving earth efficiently, OT solves the Kantorovich relaxation problem—finding a coupling matrix that minimizes the total transport cost while preserving marginal constraints. In computational biology, this cost is typically defined by gene expression dissimilarity between cells.
Glossary
Optimal Transport

What is Optimal Transport?
Optimal Transport (OT) is a mathematical theory for finding the most efficient way to move mass between probability distributions, minimizing a defined cost function. In single-cell biology, it aligns cells across batches, time points, or modalities.
In single-cell multi-omics integration, OT algorithms like Sinkhorn divergences and Gromov-Wasserstein distances align cells from different batches or modalities without requiring shared features. Unlike Canonical Correlation Analysis (CCA), OT preserves local neighborhood structure and handles non-linear correspondences, making it essential for batch effect correction, spatial transcriptomics alignment, and cross-species cell-type matching.
Core Characteristics of Optimal Transport
Optimal Transport provides a rigorous geometric framework for comparing and aligning probability distributions by finding the most cost-effective way to transform one distribution into another.
Monge Formulation
The original formulation of Optimal Transport seeks a deterministic mapping T that pushes forward a source distribution μ to a target distribution ν while minimizing the total transportation cost. The objective is to find T such that for each point x, T(x) specifies its unique destination, minimizing ∫ c(x, T(x))dμ(x). This formulation is non-convex and may not admit a solution, particularly when mass needs to be split—a limitation that motivated Kantorovich's relaxation.
Kantorovich Relaxation
Kantorovich generalized the Monge problem by allowing probabilistic coupling through a joint distribution π (the transport plan) with marginals μ and ν. Instead of a deterministic map, mass at x can be split across multiple destinations. The problem becomes a linear program: minimize ∫∫ c(x,y)dπ(x,y) over all couplings π. This convex relaxation guarantees existence and uniqueness under mild conditions, making it computationally tractable for modern applications like domain adaptation and single-cell alignment.
Wasserstein Distance
The minimal cost achieved by the optimal transport plan defines the Wasserstein distance (Earth Mover's Distance) between distributions. For p≥1, the p-Wasserstein distance is W_p(μ,ν) = (inf ∫∫ ||x-y||^p dπ(x,y))^(1/p). Unlike f-divergences (KL, JS), the Wasserstein distance:
- Respects the underlying geometry of the space
- Provides meaningful gradients even when distributions have disjoint supports
- Is a true metric satisfying symmetry and triangle inequality This makes it the preferred loss function in Wasserstein GANs and single-cell trajectory inference.
Entropic Regularization
Computing exact Optimal Transport scales as O(n³ log n) for discrete distributions with n points, making it prohibitive for large-scale single-cell datasets. Entropic regularization, introduced by Cuturi (2013), adds an entropy term -εH(π) to the objective, making the problem strictly convex and solvable via the Sinkhorn algorithm in O(n²) time. The parameter ε controls the trade-off:
- Small ε: Sharp, sparse transport plans approximating exact OT
- Large ε: Diffuse, smoother plans with faster convergence This breakthrough enabled OT to scale to modern single-cell atlases with millions of cells.
Gromov-Wasserstein Distance
The Gromov-Wasserstein (GW) distance extends OT to compare distributions defined on different metric spaces by comparing pairwise distances within each domain rather than cross-domain distances. Given distributions on spaces X and Y with distance matrices d_X and d_Y, GW finds a coupling that preserves intrinsic relational structure. In single-cell biology, GW enables:
- Aligning cells across different species where gene orthologs differ
- Integrating different omics modalities (scRNA-seq to scATAC-seq) without shared features
- Matching developmental trajectories across experimental conditions by comparing cellular similarity graphs
Unbalanced Optimal Transport
Classical OT requires exact mass conservation: the total mass of source and target distributions must be equal. Unbalanced Optimal Transport relaxes this constraint by allowing mass creation and destruction through divergence penalties (e.g., KL divergence) on the marginals. This is critical for single-cell applications where:
- Cell populations may proliferate or die between time points
- Technical dropout in scRNA-seq creates spurious zero counts
- Different samples contain varying cell-type proportions Unbalanced OT formulations, such as the Wasserstein-Fisher-Rao distance, handle these realistic biological scenarios by jointly optimizing transport and mass variation.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about applying optimal transport theory to single-cell biology and multi-omics data integration.
Optimal transport (OT) is a mathematical framework that finds the most efficient mapping between two probability distributions by minimizing a cost function. In single-cell biology, OT aligns cells from different batches, time points, or omics modalities by treating each cell as a unit of probability mass and computing the minimal-cost transportation plan that maps one cellular distribution onto another. The cost is typically defined by the dissimilarity between cells in a shared feature space, such as gene expression or a latent embedding. The Kantorovich relaxation allows for probabilistic, fractional mappings rather than strict one-to-one assignments, making it ideal for biological scenarios where cell populations expand, contract, or differentiate. Algorithms like Sinkhorn distances add entropic regularization to make the computation tractable for large single-cell datasets containing hundreds of thousands of cells. The resulting coupling matrix directly identifies which cells in one condition correspond to which cells in another, enabling robust batch correction, temporal alignment, and cross-modality translation without requiring paired measurements.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Optimal transport provides a rigorous mathematical backbone for aligning heterogeneous biological data. Explore the core algorithms and related frameworks that enable robust multi-omics integration.
Wasserstein Distance
The Earth Mover's Distance quantifies the minimal cost to transform one probability distribution into another. In single-cell biology, it serves as a robust metric for comparing cell populations, measuring the dissimilarity between two samples by calculating the optimal transport plan. Unlike KL-divergence, it respects the underlying geometry of the gene expression space.
- Key Property: Satisfies metric axioms (symmetry, triangle inequality)
- Application: Quantifying differentiation trajectories between time points
- Advantage: Remains stable even when distributions have non-overlapping support
Sinkhorn Algorithm
An entropically regularized approximation of the classic optimal transport problem that makes computation tractable for high-dimensional biological data. By adding an entropy penalty to the transport plan, the Sinkhorn algorithm enables GPU-accelerated, differentiable OT solvers.
- Mechanism: Iteratively normalizes rows and columns of a kernel matrix
- Benefit: Reduces computational complexity from O(n³ log n) to O(n²)
- Use Case: Aligning thousands of single cells across batches in seconds
Gromov-Wasserstein Distance
An extension of optimal transport that compares distributions residing in incomparable metric spaces. It aligns datasets by preserving intra-domain pairwise distances rather than requiring a pre-defined cross-domain cost function.
- Multi-Omics Application: Matching cells profiled with scRNA-seq to cells profiled with scATAC-seq where feature spaces differ
- Mechanism: Minimizes the distortion of pairwise similarity structures
- Output: A soft mapping that identifies corresponding cellular states across modalities
Kantorovich Relaxation
The foundational mathematical formulation that transforms the Monge problem into a convex linear programming task. Instead of seeking a deterministic map, it solves for a probabilistic coupling matrix that allows mass splitting.
- Formulation: Finds a joint distribution with prescribed marginals minimizing expected cost
- Dual Form: Enables the use of Kantorovich potentials for adversarial training
- Biological Relevance: Models the stochastic nature of cellular state transitions
Unbalanced Optimal Transport
A relaxed formulation that allows for the creation and destruction of mass during transport, accommodating differences in total cellular abundance. This is critical for comparing samples with varying cell counts or when certain populations proliferate or die off.
- Divergence: Uses Csiszár divergences instead of hard marginal constraints
- Application: Modeling cell proliferation and apoptosis in developmental time courses
- Parameter: A relaxation coefficient controls the penalty for mass variation

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us