---
title: Generalized Optimal Partial Transport (GOPT)
url: https://www.emergentmind.com/topics/generalized-optimal-partial-transport-gopt
type: topic
---

# Generalized Optimal Partial Transport (GOPT)

Generalized Optimal Partial Transport (GOPT) denotes a class of optimal transport models that relax full mass preservation while allowing the cost of leaving mass unmatched to depend on location or support point. In the formulation introduced under the name GOPT, the constant destruction/creation parameter of classical optimal partial transport is replaced by measurable, bounded functions $\lambda_1,\lambda_2$, so that unmatched mass is penalized in a spatially varying way rather than by a single scalar [2407.06481]. Closely related developments extend partial transport through prescribed transported mass constraints, pointwise rejection costs, structural matching terms such as Gromov–Wasserstein and fused Gromov–Wasserstein objectives, and generalized multi-marginal or fluctuating-population formulations [2002.08276][2605.20030][1401.7255][2201.06859]. Across these variants, the common objective is to compare measures when total masses differ, outliers or missing components are present, or only a subset of the support should participate in the coupling.

## 1. Core formulations

Classical optimal transport imposes exact marginal constraints and therefore requires all mass to be matched. In discrete form, with marginals $\bp,\bq$ and cost matrix $\bC$, the standard problem is
\[
\min_{\bT \in \Pi(\bp,\bq)} \langle \bC, \bT \rangle_F,
\]
where $\Pi(\bp,\bq)$ enforces $\bT \mathbf{1} = \bp$ and $\bT^\top \mathbf{1} = \bq$ [2002.08276]. Classical optimal partial transport relaxes this by allowing only part of the mass to be moved. A standard partial coupling set is
\[
\Pi^u(\bp, \bq) = \bigg\{ \bT \in \mathbb{R}_+^{n \times m} : \bT \mathbf{1} \leq \bp,\, \bT^\top \mathbf{1} \leq \bq,\, \mathbf{1}^\top \bT \mathbf{1} = s \bigg\},
\]
with $0 < s \leq \min(\|\bp\|_1, \|\bq\|_1)$, and the corresponding partial Wasserstein objective is
\[
PW_p^p(\bp,\bq) = \min_{\bT \in \Pi^u(\bp,\bq)} \langle \bC, \bT \rangle_F
\]
[2002.08276].

The GOPT formulation introduced in 2024 starts from classical optimal partial transport with a total-variation penalty:
\[
OPT(\mu, \nu; \lambda)
 = \inf_{\gamma \in \mathcal{M}_+(\Omega^2)} \langle c, \gamma \rangle
 + \lambda \left[TV(\gamma_1 \parallel \mu) + TV(\gamma_2 \parallel \nu)\right]
\]
or equivalently
\[
OPT(\mu, \nu; \lambda)
 = \inf_{\gamma \in \Gamma_\leq(\mu,\nu)} \langle c, \gamma \rangle
 + \lambda\Big(\|\mu - \gamma_1\| + \|\nu - \gamma_2\|\Big),
\]
where $\Gamma_\leq(\mu,\nu)=\{\gamma \in \mathcal{M}_+(\Omega^2): \gamma_1 \leq \mu, \gamma_2 \leq \nu\}$. GOPT replaces the constant $\lambda$ by spatially varying functions $\lambda_1,\lambda_2:\Omega\to\mathbb{R}_+$ and defines
\[
GOPT(\mu, \nu; \lambda_1, \lambda_2) := \inf_{\gamma \in \mathcal{M}_+(\Omega^2)} \, \langle c, \gamma \rangle
 + \mathcal{R}_1(\gamma_1 \parallel \mu) + \mathcal{R}_2(\gamma_2 \parallel \nu),
\]
with choices such as $TV(\lambda_1 \gamma_1 \parallel \lambda_1 \mu)$ or $\overline{PTV}(\lambda_1 \gamma_1 \parallel \lambda_1 \mu)$, and similarly on the target side. Classical OPT is recovered when $\lambda_1=\lambda_2=\lambda$ [2407.06481].

A related discrete generalization is intent-controlled partial optimal transport (IC-POT), which makes rejection explicit through side-specific slack variables and pointwise unmatched costs $c_s \in \mathbb{R}_+^n$ and $c_t \in \mathbb{R}_+^m$:
\[
\begin{aligned}
\min_{P, u, v} \quad & \langle C, P \rangle + \langle c_s, u \rangle + \langle c_t, v \rangle \\
\text{s.t.} \quad & P\mathbf{1}_m + u = \mu \\
& P^\top \mathbf{1}_n + v = \nu \\
& P_{ij} \geq 0,\ u_i \geq 0,\ v_j \geq 0.
\end{aligned}
\]
Its reduced sub-coupling form is
\[
\min_{P \in \Gamma_{\le}(\mu, \nu)} \sum_{i=1}^n \sum_{j=1}^m \bigl(C_{ij} - c_s(i) - c_t(j)\bigr) P_{ij},
\]
which shows that constant rebates recover classical partial transport [2605.20030].

## 2. Duality, penalties, and equivalent reformulations

The analytical structure of generalized partial transport is closely tied to duality. For entropic GOPT, the dual developed in 2024 is
\[
\sup_{\phi, \psi} \quad -\epsilon \left\langle e^{\frac{\phi \oplus \psi}{\epsilon} -1} K, dxdy \right\rangle
 + \langle \min(\phi, \lambda_1),\mu\rangle + \langle \min(\psi, \lambda_2), \nu\rangle,
\]
where $K=e^{-c/\epsilon}$ and the feasible set depends on whether the penalty uses $TV$ or $PTV$. Setting $\lambda_1,\lambda_2$ constant recovers the classical OPT dual, while $\epsilon\to 0$ yields the unregularized problem if the minimizer is absolutely continuous [2407.06481].

When both penalties are $PTV$, GOPT admits an explicit linear reformulation:
\[
GOPT(\mu, \nu) = \inf_{\gamma \in \Gamma_\leq(\mu, \nu)} \langle c - (\lambda_1 \oplus \lambda_2), \gamma \rangle + \langle \lambda_1, \mu \rangle + \langle \lambda_2, \nu \rangle.
\]
This leads to an augmented-space reduction with augmented marginals $\hat{\mu} = \mu + |\nu|\delta_{\hat{\infty}}$, $\hat{\nu} = \nu + |\mu|\delta_{\hat{\infty}}$, and an augmented cost with zeros on dummy locations, enabling the use of classical OT linear programming solvers [2407.06481].

IC-POT has a dual with explicit local caps:
\[
\begin{aligned}
\max_{f, g} \quad & \sum_{i=1}^n f_i \mu_i + \sum_{j=1}^m g_j \nu_j \\
\text{s.t.} \quad & f_i + g_j \leq C_{ij} \quad \forall i, j \\
& f_i \leq c_s(i) \quad \forall i \\
& g_j \leq c_t(j) \quad \forall j.
\end{aligned}
\]
In this form, $f_i \leq c_s(i)$ and $g_j \leq c_t(j)$ act as local acceptance thresholds. Complementary slackness gives
\[
P_{ij} > 0 \implies f_i + g_j = C_{ij}, \qquad
u_i > 0 \implies f_i = c_s(i),\quad v_j > 0 \implies g_j = c_t(j),
\]
and the admissible-support condition
\[
C_{ij} > c_s(i) + c_t(j) \implies P_{ij}=0
\]
holds in every optimal solution. IC-POT is also equivalent to balanced Kantorovich OT on an augmented support with
\[
\bar{\mu} = (\mu, \|\nu\|_1), \quad \bar{\nu} = (\nu, \|\mu\|_1),\quad
\bar{C} =
\begin{pmatrix}
C & c_s \\
c_t^\top & 0
\end{pmatrix},
\]
although proper equivalence fails under entropic regularization [2605.20030].

These model-specific duals fit a broader functional-analytic perspective. In an abstract Banach lattice setting, constrained optimal transport can be written as a primal supremum over a convex subset of the positive unit sphere of the dual, with a corresponding dual on the bi-dual, and the equality $P(a)=D(a)$ together with dual attainment holds under mild assumptions. This framework is presented as directly accommodating constrained OT, martingale OT, and generalized or partial OT through modifications of the annihilator subspace that encodes the constraints [1610.02940]. A different but related duality line is the weak optimal total variation transport theory, which establishes a Kantorovich duality for total-variation-penalized transport and recovers a version of the Caffarelli–McCann duality for partial optimal transport [1909.05517].

## 3. Exact algorithms, Sinkhorn-type methods, and large-scale solvers

For discrete partial Wasserstein transport, an exact reduction via virtual points replaces entropic approximation by an augmented balanced OT problem. Given transported mass $s$, one adds a new bin $n+1$ to $\bp$ with mass $p_{n+1} = \|\bq\|_1 - s$, a new bin $m+1$ to $\bq$ with mass $q_{m+1} = \|\bp\|_1 - s$, and the extended cost
\[
\overline{\bC} =
\begin{bmatrix}
\bC & \xi \mathbf{1} \\
\xi \mathbf{1}^\top & 2\xi + A
\end{bmatrix},
\]
with $A > \max C_{ij}$. The top-left block of the optimal transport plan on the extended problem is the exact partial plan, and
\[
W_p^p(\overline{\bp}, \overline{\bq}) - PW_p^p(\bp,\bq) = \xi(\|\bp\|_1+\|\bq\|_1-2s).
\]
The same work develops a Frank–Wolfe method for partial Gromov–Wasserstein in which each linearized subproblem is solved as a partial Wasserstein problem via the dummy-point construction, with convergence to a stationary point stated in the supplementary material [2002.08276].

For entropic GOPT, the generalized Sinkhorn procedure updates dual scalings through proximal-divide operators. With $TV$ penalties, one update has the form
\[
u \gets \text{clip}\left(\frac{d\mu/dx}{Kv}, [e^{-\lambda_1/\epsilon}, e^{\lambda_1/\epsilon}]\right),
\]
while with $PTV$ penalties,
\[
u \gets \min\left(\frac{d\mu/dx}{Kv}, e^{\lambda_1/\epsilon}\right),
\]
and similarly for $v$. This yields Algorithm 1 (opt-Sinkhorn). For non-entropic GOPT with $PTV$ penalties, Algorithm 2 (opt-lp) solves the augmented OT linear program and projects the result back to the original partial problem [2407.06481].

The numerical status of Sinkhorn for partial transport is more delicate than for balanced OT. A 2023 study identifies the incompatibility of standard OT rounding with the POT sum constraint $\mathbf{1}^\top X \mathbf{1}=s$ and shows that the resulting violation can be lower bounded by
\[
V := \mathbf{1}^\top \bar{X} \mathbf{1} - s \geq \exp\left(-\frac{12A \log n}{\varepsilon} - O(\log n)\right).
\]
It proposes a new feasible rounding procedure, Round-POT, and derives a feasible Sinkhorn complexity of $\widetilde O(n^2/\varepsilon^4)$, together with two first-order methods: Adaptive Primal-Dual Accelerated Gradient Descent with complexity $\widetilde O(n^{2.5}/\varepsilon)$ and Dual Extrapolation with complexity $\widetilde O(n^2/\varepsilon)$ [2312.13970].

A separate large-scale optimization line addresses generalized transport problems through an inexact primal-dual method derived from the time discretization of a dynamical system. The inner nonsmooth subproblem is solved by semismooth Newton iterations, and the resulting linear systems are transformed into graph Laplacian systems handled by algebraic multigrid. The method is stated to cover a large class of generalized optimal transport problems, including partial transport, and to achieve global linear or superlinear convergence for function residual and feasibility violation via a Lyapunov analysis [2207.14082].

For high-dimensional settings, slicing provides another scalable route. Sliced optimal partial transport defines
\[
SOPT_\lambda(\mu, \nu) = \int_{\mathbb{S}^{d-1}} \text{OPT}_{\lambda(\theta)}(\langle \theta, \cdot \rangle_{\#} \mu, \langle \theta, \cdot \rangle_{\#} \nu) \, d\sigma(\theta),
\]
with Monte Carlo approximation over random directions. The same work provides a fast one-dimensional primal-dual algorithm, proves that $(SOPT_\lambda(\mu,\nu))^{1/p}$ is a metric when the cost is a $p$-th power of a metric and $\lambda(\theta)>0$, and uses slicing to reduce the computational burden of partial transport in high dimension [2212.08049].

## 4. Geometric structure, regularity, and free boundaries

A defining analytical feature of partial transport is the emergence of active regions and free boundaries. For bounded domains $\Omega,\Omega^*\subset\mathbb{R}^2$, with $\Omega^*$ a non-convex polygonal domain and $0<m<\min\{|\Omega|,|\Omega^*|\}$, there is an active region $U\subset\Omega$ of mass $m$ that is transported to $V\subset\Omega^*$, and the free boundaries are
\[
\mathcal{F} := \partial U\cap \Omega, \qquad \mathcal{F}^* := \partial V\cap \Omega^*.
\]
When $\Omega$ and $\Omega^*$ are separated by a straight line, the free boundary $\mathcal{F}$ is smooth except for a finite number of singular points. The singular set consists of points mapped to vertices of $\Omega^*$ and points whose normal subdifferential contacts multiple open edges; away from these finite exceptional sets, the free boundary is locally smooth [2311.15655].

The same paper gives a corresponding result for full transport to non-convex polygonal targets: the singular set of the convex potential is locally a $1$-dimensional smooth curve, except for a finite set of points. Its analysis uses localization of sublevel sets, the interior ball property, Monge–Ampère regularity theory, convex duality, and a bootstrapping argument from $C^{1,\alpha}$ to $C^\infty$ [2311.15655]. Within the broader GOPT context, this establishes that partial-transport free boundaries can remain sharply structured even under non-convex geometry.

Regularity questions also appear in barycentric and weak formulations. Weak optimal total variation transport yields generalized Wasserstein distances of Piccoli–Rossi type, including
\[
\widetilde{W}_1^{a,b}(\mu, \nu)
=
\sup_{f \in \mathcal{F}} \int_X f\, d(\mu - \nu),
\qquad
\mathcal{F} = \{ f \in C_b(X) : |f| \leq a,~|f|_{\mathrm{Lip}} \leq b \},
\]
and supports a barycenter theory with existence for measures with compact support and consistency under weak convergence [1909.05517]. A plausible implication is that free-boundary geometry and generalized barycentric structure are complementary aspects of the same non-conservative transport regime: one describes the active set in physical space, the other the induced geometry on spaces of measures.

## 5. Structural extensions and neighboring generalizations

One important extension replaces extrinsic pointwise costs by intrinsic structural comparisons. Partial Gromov–Wasserstein transport compares intra-domain geometries and is defined by
\[
PGW_2^2(\bp, \bq) = \min_{\bT \in \Pi^u(\bp, \bq)} \mathcal{J}_{\bC^s, \bC^t}(\bT),
\]
with
\[
\mathcal{J}_{\bC^s, \bC^t}(\bT)
=
\frac{1}{2} \sum_{i,k=1}^n \sum_{j,l=1}^m (C^s_{ik} - C^t_{jl})^2 T_{ij}T_{kl},
\]
and fused Gromov–Wasserstein adds a trade-off between attribute and structural terms. In topology tracking, merge trees are modeled as measure networks $(V,p,W)$, partial fused Gromov–Wasserstein is used to compute a partial coupling $C^*$ between adjacent time steps, and the resulting coupling is interpreted as a probabilistic tracking graph. The same work proves the stability estimate
\[
d^{GW}_q(G_f, G_g) \leq \frac{1}{2} |V|^{2/q} \|f - g\|_{L^q(p)}
\]
for merge trees encoded via the LCA matrix [2302.02895].

Multi-marginal partial transport generalizes the two-marginal problem to measures $\mu_1,\ldots,\mu_N$ and a transported mass $m$, with admissible plans in $\Pi_\leq(\mu_1,\ldots,\mu_N)$ and quadratic cost
\[
c(x_1,\ldots,x_N)=\sum_{j\neq k}^N |x_j-x_k|^2
=
2N\min_{y\in\mathbb{R}^n}\sum_{j=1}^N |x_j-y|^2.
\]
Under the sharp condition $m \geq M\{\lambda\}$, where $\lambda=\min_{1\leq j\leq N}\rho_j(x)\,dx$, the optimal plan is unique. The work also establishes equivalence with a Monge–Kantorovich partial barycenter problem and shows that monotonicity of active marginals may fail for $N\ge 3$, unlike in the two-marginal case [1401.7255].

In a different direction, grand-canonical optimal transport allows the number of marginals to fluctuate. The admissible object is a family $P=(P_n)_{n\ge 0}$ with
\[
P_0 + \sum_{n=1}^\infty P_n(\Omega^n) = 1
\]
and average density
\[
\rho_P:= P_1 + \sum_{n=2}^\infty n\,P_n(\cdot \times \Omega^{n-1}) = \rho.
\]
The associated cost is
\[
C(\rho) := \inf\left\{ \sum_{n=0}^\infty \int_{\Omega^n} c_n\, dP_n : P \in \Pi_{GC}(\rho) \right\},
\]
and the formulation is presented as a generalization of classical multi-marginal OT that also relates to partial and unbalanced transport [2201.06859]. This suggests that GOPT sits within a larger family of transport models in which either the amount of transported mass, the admissible support, or even the number of participating marginals becomes variable.

A further terminological extension appears in econometrics, where “Generalized Optimal Transport” denotes an infinite-dimensional optimization framework over Borel measures constrained by arbitrary identified joint subdistributions and structural conditions such as independence or conditional independence. The model is encoded through moment equalities of characteristic kernels and reduced, via duality and approximation theory, to finite-dimensional convex programs. In the special case of empirical optimal transport with Lipschitz cost, the resulting estimator is stated to be $\sqrt{n}$-uniformly valid from one side [2507.22422]. This use of the term is distinct from function-weighted partial transport, but it reinforces the broader pattern that “generalized” transport often means replacing fixed marginal constraints by richer collections of admissibility conditions.

## 6. Applications

Machine learning has been a major application area for generalized partial transport. In positive-unlabeled learning, partial Wasserstein transport is used to move a mass equivalent to the class prior $s=\pi$ from unlabeled to positive samples, with negatives assigned to a dummy point; an optional group-lasso penalty on the transport plan enforces cleaner separation. On UCI, MNIST, and domain adaptation datasets, partial-W and partial-GW are reported to match or outperform state-of-the-art PU methods. In standard SCAR settings, partial-W usually performs best, while under selection bias (SAR) or feature distribution shift, partial-GW remains accurate because it exploits intra-domain structure [2002.08276].

IC-POT extends this application pattern to settings where rejection must depend on side information. The reported examples include positive-unlabeled learning, open-partial domain adaptation, and multi-modal satellite ocean measurements. In the PU and OPDA cases, pointwise rejection rules encode local selection probability, posterior confidence, or neighborhood-based confidence rather than a blanket global rule. In the geophysical case, physical priors and sensor reliability maps define $c_s,c_t$ so that only physically meaningful or available data are compared [2605.20030].

Topology and scientific visualization provide a structurally different application. Using partial fused Gromov–Wasserstein couplings between merge trees, topological features in time-varying scalar fields are assigned probabilistically across time, allowing splits and merges to appear as multiple nonzero couplings. The reported datasets include 2D Heated Cylinder, 2D Unsteady Cylinder Flow, 2D von Kármán Vortex Street, 2D Ionization Front, and 3D Hurricane Isabel. Compared with Global Feature Tracking and Lifted Wasserstein Matcher, pFGW yields more continuous, fewer oversegmented, and more robust matchings, especially under subsampling [2302.02895].

Computer vision and geometry processing use partial transport for point cloud registration and color transfer. Sliced optimal partial transport is applied to noisy point cloud registration and is reported to deliver computational and accuracy benefits through one-dimensional slicing [2212.08049]. Partial optimal transport has also been used in color transfer, point-cloud registration, mini-batch OT, and domain adaptation, which is precisely why feasible approximations and correct rounding become important in large-scale settings [2312.13970].

Simulation and computational geometry form another application line. In partial optimal transport-based fluid simulation, generalized Laguerre cells are defined as intersections between Laguerre cells and spheres. An analytic construction computes these restricted cells directly, replacing convex cell clipping and enabling more precise evaluation of cell volume and facet area. The method is stated to support free-surface fluid simulation and deformation mechanics in schemes such as Gallouët–Mérigot and Power Particles, while also providing a rendering framework based on the computed volumetric structure [2601.05765].

Taken together, these applications show that GOPT is used whenever transport must remain selective: only a prescribed fraction of mass should move, rejection should depend on spatial or statistical reliability, geometry should be matched without a common ambient metric, or free boundaries and unmatched regions carry intrinsic information rather than being nuisances.

Source: https://www.emergentmind.com/topics/generalized-optimal-partial-transport-gopt