Source-linked AI summary

Robust Optimal Transport with Applications in Generative Modeling and Domain Adaptation

Yogesh Balaji, Rama Chellappa, Soheil Feizi

arXiv:2010.05862v1cs.LGcs.CV

TL;DR

OT’s exact marginal constraints make distance estimates sensitive to outliers, while existing unbalanced-OT dual solvers can be unstable in deep-learning applications. The paper derives a computationally efficient dual form for robust OT; it reports outlier-ignoring GANs and ∼5% improvement in adversarial domain adaptation.

  • Problem

    OT’s exact marginal constraints make distance estimates sensitive to outliers, while existing unbalanced-OT dual optimization can be unstable in deep-learning applications.

    Source: §1 · p. 2
  • Method

    The paper derives a computationally efficient dual form for robust OT that reduces to weighted OT and has discrete and continuous stochastic-relaxation solvers.

    Source: §1 · p. 2
  • Results

    Robust OT improves adversarial domain adaptation by ∼5% over the standard adversarial objective across experiments and enables robust Wasserstein GANs to ignore outliers.

    Source: §4.1 · p. 7, §4.2 · p. 8
  • Takeaways & Limitations

    The formulation’s instance weights can indicate how difficult input samples are to generate for a given task.

    Source: §1 · p. 2

    The exact unbalanced-OT dual considered for deep learning requires optimizing two constrained discriminator functions and showed severe instability with standard SGD for χ2 divergence.

    Source: §3.1 · p. 4

Abstract

from arXiv · show

Optimal Transport (OT) distances such as Wasserstein have been used in several areas such as GANs and domain adaptation. OT, however, is very sensitive to outliers (samples with large noise) in the data since in its objective function, every sample, including outliers, is weighed similarly due to the marginal constraints. To remedy this issue, robust formulations of OT with unbalanced marginal constraints have previously been proposed. However, employing these methods in deep learning problems such as GANs and domain adaptation is challenging due to the instability of their dual optimization solvers. In this paper, we resolve these issues by deriving a computationally-efficient dual form of the robust OT optimization that is amenable to modern deep learning applications. We demonstrate the effectiveness of our formulation in two applications of GANs and domain adaptation. Our approach can train state-of-the-art GAN models on noisy datasets corrupted with outlier distributions. In particular, our optimization computes weights for training samples reflecting how difficult it is for those samples to be generated in the model. In domain adaptation, our robust OT formulation leads to improved accuracy compared to the standard adversarial adaptation methods. Our code is available at https://github.com/yogeshbalaji/robustOT.

1 Introduction

Optimal Transport is used in generative modeling and domain adaptation, but its marginal constraints make it sensitive to outliers. The paper derives a stable, computationally efficient dual formulation for robust OT and demonstrates its use in GANs and domain adaptation.

1 Introduction

  • Optimal Transport measures the minimum cost of transporting a source distribution to a target and has applications in generative modeling and domain adaptation.In Wasserstein GANs, the approximate distance between real and generated distributions is minimized; domain adaptation uses distance minimization between source and target feature distributions.Source: §1 · pp. 1–2
  • Even 5% outliers can produce poor couplings and substantially change Wasserstein distance estimates because OT’s marginal constraints weigh every sample equally.The figure contrasts clean couplings, couplings with 5% outliers, and robust Wasserstein couplings.Source: §1 · p. 2, Figure 1 · p. 2
  • Existing unbalanced OT relaxes marginal constraints, but its exact dual optimization can converge poorly and behave unstably in large-scale deep-learning applications such as GANs.This motivates a more practical dual formulation.Source: §1 · p. 2
  • The proposed dual form reduces to weighted OT, assigning low weights to outlier samples; discrete and continuous stochastic-relaxation solvers demonstrate stability in large-scale deep learning.The resulting instance weights can indicate how difficult input samples are to generate for a given task.Source: §1 · p. 2
  • Robust OT improves adversarial domain adaptation by ∼5% and enables GANs to ignore outliers, while its distance is bounded by a constant factor of true OT under mild assumptions.The bound applies to any outlier distribution.Source: §1 · p. 2

2 Background on Optimal Transport

This section introduces OT as a minimum-cost transport problem constrained by matching source and target marginals. It presents the dual formulation and situates marginal relaxation among other OT relaxations.

2 Background on Optimal Transport

  • OT minimizes the cost of transporting one probability distribution to another over joint distributions whose marginals match the input distributions.The exact marginal constraints force outliers to receive nonzero coupling weights, potentially increasing transportation cost.Source: §2 · p. 3
  • The Kantorovich-Rubinstein dual optimizes over 1-Lipschitz functions, which can be represented by neural networks with constraints enforced by weight clipping or gradient penalties.The section describes this dual as simpler than the primal optimization.Source: §2 · p. 3
  • Entropy regularization and marginal relaxation are two popular OT relaxations; this work uses marginal relaxations to handle outlier noise in machine-learning applications.The paper distinguishes its unbalanced Kantorovich formulation from prior work on Monge unbalanced OT.Source: §2 · p. 3

3 Robust Optimal Transport

The section develops robust OT to handle noisy outliers by relaxing marginal constraints while controlling the extent of that relaxation. It reformulates the dual for deep-learning use and establishes a robustness guarantee under a one-sided outlier setting.

3 Robust Optimal Transport

  • Outliers are modeled as samples with large noise, and the section uses relaxed OT formulations to address them.Source: §3 · p. 3

3.1 Unbalanced Optimal Transport

  • Unbalanced OT [6] relaxes marginal constraints, but its dual is difficult to train in deep learning because it uses two constrained discriminators and standard SGD failed to converge in the authors’ χ²-divergence GAN test.The authors motivate a new dual reformulation as a scalable alternative.Source: §3.1 · pp. 3–4

3.2 Our Duality

  • Robust OT bounds the f-divergence of relaxed marginals to control relaxation and yields a dual with one function rather than the two used by unbalanced OT.The single-function form is presented as suited to deep-learning applications.Source: §3.2 · p. 4
  • The discrete formulation optimizes empirical sample weights, while the continuous stochastic relaxation represents those weights as functions and can be trained with stochastic gradient descent.The discrete weight optimization is a second-order cone program; the continuous formulation uses weight functions that can be implemented with neural networks.Source: §3.2 · pp. 4–5

3.3 Can robust OT handle outliers?

  • Robust OT is upper bounded by a constant factor of the true Wasserstein distance under the stated outlier model, with the bound depending on ρ.The result is derived for one-sided robust OT, the form used in the GAN and domain-adaptation experiments.Source: §3.3 · p. 5
  • When the outlier fraction γ is known, the section gives ρ = γ²/[2(1−γ)] as an appropriate choice; otherwise, validation performance can guide its selection.Source: §3.3 · p. 5

4 Experiments

Experiments test robust GAN training on noisy image datasets and robust adversarial adaptation on VISDA-17. The reported results show outlier-resistant generation and improved adaptation performance.

4.1 Generative modeling

  • On CIFAR-10 with MNIST or uniform-noise outliers, robust WGAN ignores outliers and maintains good FID as their fraction rises, unlike WGAN.Source: Figure 2 · p. 6, §4.1 · p. 7

4 Experiments

  • GAN training minimizes the one-directional robust Wasserstein measure in dual form, and the robust formulation can extend to non-saturating and hinge losses.Source: §4 · p. 5, §4.1 · p. 6

4.1 Generative modeling

  • On DomainNet sketches, robust SNGAN generates sketch-like samples while ignoring outliers, whereas SNGAN also generates non-sketch images.Source: Figure 4 · p. 7, §4.1 · p. 7

4.2 Domain adaptation

  • On VISDA-17, the robust adversarial objective improves performance by ∼5% over the standard adversarial objective and reaches parity with UDA-specific competitors when entropy-regularized.Source: Table 2 · p. 7, Table 3 · p. 8, Table 4 · p. 8

4.1 Generative modeling

  • On clean CIFAR-10 and CIFAR-100, robust WGAN shows no FID drop, which the authors take as evidence that generated distributions do not drop modes.Source: §4.1 · p. 7, Table 1 · p. 7
  • In CIFAR-MNIST and DomainNet-sketch examples, outliers receive lower weights than in-distribution samples, and the authors interpret weights as indicators of generation difficulty.Source: §4.1 · pp. 7–8

5 Conclusion

The paper develops robust optimal transport that is insensitive to noisy outliers and derives an efficient dual form for deep learning. It reports effective outlier handling and performance improvements in generative modeling and domain adaptation.

  • The method is designed to make robust optimal transport insensitive to outliers, defined as samples with large noise.Source: §5 · p. 9
  • A computationally efficient dual form makes the robust OT objective suited to deep learning applications.Source: §5 · p. 9
  • In GANs and domain adaptation, the proposed method is reported to handle outliers effectively and achieve good performance improvements.Source: §5 · p. 9

6 Broader Impact

The paper addresses OT's sensitivity to input noise in large-scale machine learning by developing an efficient method described as provably robust against outliers. Its stated broader impact is relevance to both theoretical and applied machine learning, with no anticipated negative ethical or societal outcomes.

  • OT's sensitivity to input noise can make it problematic for large-scale machine learning, where noise is inevitable.Source: §6 · p. 9
  • The developed learning method is described as efficient, provably robust against outliers, and amenable to deep generative modeling and domain adaptation.Source: §6 · p. 9
  • The authors state that the work may bridge theoretical and applied machine learning, and they identify no negative ethical or societal outcomes.Source: §6 · p. 9

A Proofs

The proofs derive a robust Wasserstein dual that, in metric spaces, can be simplified to a single discriminator. They also establish feasibility-based bounds and derive a dual objective for unbalanced OT using a quadratic f-divergence.

A Proofs

  • In metric spaces, the robust OT dual can be expressed using a single discriminator, making it easier to train in large-scale deep learning problems such as GANs.Source: Duality · pp. 12–13
  • When β satisfies the stated constraint, mixtures of outlier and clean transport plans are feasible for robust OT, but their cost is only an upper bound because the mixture need not be optimal.Source: Provable robustness · pp. 13–14

B.1 Dual Objective

  • The unbalanced OT dual objective is derived from a primal penalized by f-divergences between perturbed and original marginals, using f(x) = (x − 1)^2/2.Source: §B.1 · pp. 14–15
  • For the quadratic divergence, the derivation evaluates the conjugate across cases and substitutes its maximizing value into the dual.Source: §B.1 · pp. 14–15

B.2 Practical Implementation and Training Issues

The practical dual converges to a proper CIFAR-like solution where the unbalanced OT dual does not. The section also describes how to choose the marginal-relaxation parameter ρ and reports a tight bound and mode-retention observation.

B.2 Practical Implementation and Training Issues

  • The unbalanced OT implementation constrains two discriminator networks, and training failed to converge to a proper solution despite hyperparameter sweeps.Source: §B.2 · p. 15
  • The practical dual produces CIFAR-like samples, while the unbalanced OT dual has a flat loss curve and produces noisy images rather than a proper solution.Source: §B.2 · p. 15, Figure 5 · p. 16, Figure 6 · p. 16

C Choosing ρ and the tightness of the bound

D Biases And Mode Drop

The method treats outliers as samples with large noise, which may be far from the true distribution in Wasserstein distance. The authors report that rare modes were retained in their tested GAN settings, while noting that rare-mode dropping can still occur.

  • The assumed outliers are samples with large noise, far from the true data distribution in the Wasserstein sense.Source: D Biases And Mode Drop · p. 17
  • Even with males comprising 2% of CelebA inputs, the robust GAN generated male images; the authors also report no clean-CIFAR-10 FID drop.They interpret these observations as evidence that the model drops high-noise samples rather than rare modes.Source: D Biases And Mode Drop · p. 18
  • Rare modes can still be dropped; the authors propose using learned weights to visualize dropped modes and, in future work, boosting to train a balanced mixture model.Source: D Biases And Mode Drop · p. 18

E Properties of Robust OT

The appendix describes non-negativity and identity properties of robust Wasserstein, while noting that it is generally asymmetric when the two marginal constraints differ. It also says the robust GAN formulation extends to spectral-normalization and non-saturating GAN variants.

E Properties of Robust OT

F.1 Generative modeling

  • The robust Wasserstein GAN formulation can be extended to spectral-normalization GAN and non-saturating GAN variants.Source: §F.1 · p. 18

F.1.1 Dataset with outliers

The outlier experiments use CIFAR-10 datasets corrupted with MNIST or uniform-noise samples at varying outlier fractions. They report FID against clean CIFAR-10 and include sample visualizations, but the supplied passages do not give comparative scores.

  • CIFAR-10 datasets were corrupted with MNIST or uniform-noise outliers at varying fractions γ, with each dataset kept at 50,000 samples and models trained using robust Wasserstein loss.Experiments used DCGAN and ResNet architectures.Source: §F.1.1 · p. 19
  • FID scores were reported against clean CIFAR-10 without outliers, using Inception-feature means and covariances from clean data and generated samples; the mean and covariance matrices were computed over 50,000 samples.Source: §F.1.1 · p. 19
  • The appendix identifies a sketch-domain DomainNet experiment using robust spectral-normalization GAN with ResNet generator and discriminator architectures.Source: §F.1.1 · p. 19
  • Figures 8 and 9 visualize samples generated from CIFAR-10 corrupted with MNIST and uniform-noise outliers, respectively.Source: Figure 8 · p. 21, Figure 9 · p. 21

F.1.2 Clean datasets

The appendix records clean-dataset GAN settings, architecture references, and domain-adaptation procedures. The domain-adaptation experiments use VISDA-17 and visualize learned target-sample weights, but the supplied passages do not report accuracy results.

F.1.2 Clean datasets

  • Clean-data experiments train an unconditional robust Wasserstein GAN on CIFAR-10 and a conditional GAN on CIFAR-100.The CIFAR-100 model uses conditional batch normalization, similar to.Source: §F.1.2 · p. 21

F.1.3 Architectures and Hyper-parameters

  • Architecture and hyperparameter details are referred to in separate tables for the ResNet model, DCGAN, and weight network.Source: §F.1.3 · p. 21

F.2 Domain Adaptation

  • Domain adaptation is evaluated on VISDA-17 with ResNet-18, ResNet-50, and ResNet-101; target weights use the discrete optimization version, and target logits receive entropy regularization.Source: §F.2 · p. 22
  • The source-only baseline trains the feature network and classifier on labeled source data, while adversarial alignment adds domain-discrepancy minimization and is described as an unweighted version of the proposed objective.Source: §F.2 · p. 22
  • The domain-adaptation feature network uses ImageNet-pretrained ResNets with the final linear layer removed; a linear classifier is trained from scratch, and the discriminator is a spectrally normalized three-layer MLP.Source: §F.2 · pp. 22–23
  • The appendix visualizes learned target weights as histograms and shows target samples sorted by weight.Source: §F.2 · p. 23, Figure 10 · p. 23, Figure 11 · p. 23
Loading 2010.05862v1…