Reliable Modeling of Distribution Shifts via Displacement-Reshaped Optimal Transport

Philip Naumann, Jacob Kauffmann, Klaus-Robert Müller, Grégoire MontavonarXiv 2026

TL;DR

Standard Optimal Transport (OT) often models distribution shifts poorly because it relies on naive Euclidean distances, causing it to take implausible "shortcuts" across data manifolds. This paper introduces ReshapeOT, a lightweight method that uses a small set of observed sample displacements to learn a Mahalanobis-type ground metric, effectively carving "expressways" through the input space. By aligning the transport cost with empirical data, ReshapeOT drastically improves the reliability of transport plans in both time-series modeling and domain adaptation tasks.

What Problem Does This Paper Address?

Optimal Transport is a powerful mathematical framework for modeling distribution shifts—such as tracking how single cells develop over time or adapting a machine learning model from a source domain to a target domain. However, standard OT algorithms typically use the straight-line Euclidean distance as their "ground metric" (the cost of moving mass from point A to point B).

This assumes that the shortest path in Euclidean space is always the most feasible one. In reality, data often lies on complex, non-linear manifolds. For instance, migratory birds follow specific geographic corridors, and cellular changes follow distinct biological pathways. When forced to use Euclidean metrics, OT solvers frequently exploit unrealistic shortcuts through empty space rather than following the true geometry of the data.

Methods

The authors propose Displacement-Reshaped Optimal Transport (ReshapeOT), which dynamically adapts the ground metric using a small amount of paired "side information" (sample displacements). The method operates in three simple steps:

  1. Compute Displacement Statistics: It aggregates a small set of known source-to-target pairs into a second-moment matrix ($\Sigma$) that captures the dominant directions of the observed shifts.
  2. Redefine the Ground Metric: It replaces the standard Euclidean distance with a Mahalanobis distance: $$d(x, y) = \sqrt{(x - y)^\top(I + \eta\Sigma)^{-1}(x - y)}$$ Here, $\eta$ is a hyperparameter controlling guidance strength. This transformation flattens the metric space along the directions of known displacements, making travel along these paths significantly "cheaper."
  3. Recalculate the OT Solution: Any standard cost-matrix-based OT solver can then be run using this newly reshaped cost matrix.

To handle highly non-linear paths (like rotations), the authors also introduce a kernelized version of ReshapeOT, extending the metric learning framework into Reproducing Kernel Hilbert Spaces (RKHS) using kernels like the Radial Basis Function (RBF).

Overview of ReshapeOT vs Classical OT on a curved manifold

Datasets

The authors evaluated ReshapeOT on both synthetic and real-world datasets:

  • Air Quality & Appliances Datasets: Real-world multivariate time-series datasets used to test how well the model can predict temporal shifts (1–6 hour delays).
  • Rotating Moons: A classic synthetic domain adaptation benchmark consisting of two interleaved, moon-shaped clusters that are rotated between $10^\circ$ and $90^\circ$.
  • Bird Migration Data: Real-world geospatial tracking data from the MoveBank repository, tracking autumn bird migrations across North America.

Key Insights and Ideas

  • Carving Expressways vs. Adding Barriers: Traditional manifold-learning approaches often try to restrict transport by adding barriers to invalid regions, which is computationally heavy. ReshapeOT takes the opposite approach: it leaves the feasible set intact but lowers the cost along empirically supported directions, making it incredibly lightweight.
  • Extreme Sample Efficiency: One of the most striking findings is that ReshapeOT doesn't need massive amounts of paired data. In time-series tasks, providing just a single correctly coupled pair ($\tilde{N}=1$) as guidance allowed the model to significantly outperform unguided classical OT.
  • Plug-and-Play Interoperability: Because ReshapeOT only modifies the underlying cost matrix, it can be seamlessly integrated on top of any existing OT variant (like Sinkhorn or Partial-OT) without changing the optimization algorithm itself.

Key Results

ReshapeOT demonstrated substantial performance gains across all experiments:

  • Time-Series Alignment: In the Air Quality and Appliances benchmarks, ReshapeOT consistently achieved the lowest mean transport error compared to classical OT and Sinkhorn regularized baselines (as shown in the table below).
Table 1. Mean transport errors ↓at different shift levels. The ablations of ReshapeOT use the same parametrization as their main counterparts. The values are the mean ± std. deviation. Bold = best, italic = 2nd best, ranked within row.
  • Domain Adaptation under Severe Rotation: On the Rotating Moons task at a steep $90^\circ$ rotation, classical OT suffered a classification error of nearly 50% due to cross-class shortcuts. In contrast, the kernelized version of ReshapeOT maintained an error rate of under 10%, successfully preserving the rotation geometry.
Domain adaptation classification error vs rotation angle
  • Bird Migration Tracking: Using tracking data from only four birds, ReshapeOT successfully recovered the dominant north-south migration corridor for an entire population, whereas classical OT erroneously predicted heavy east-west movements.

Limitations and Future Work

While highly effective, ReshapeOT relies entirely on the quality of its guidance data. If the provided sample displacements are noisy or unrepresentative of the true distribution shift, the optimizer can be misled. Additionally, the kernelized variant introduces extra hyperparameters ($\lambda$ and $\alpha$) that require careful tuning to balance flexibility and rigidity.

For future work, the authors suggest embedding ReshapeOT into an information-geometric framework. This would treat sample displacements as tangent vectors on a manifold of probability distributions, paving the way for more principled interpolations between source and target domains.

Summary updated

BibTeX
@misc{naumann2026reliable,
  author = {Philip Naumann and Jacob Kauffmann and Klaus-Robert Müller and Grégoire Montavon},
  title = {{Reliable Modeling of Distribution Shifts via Displacement-Reshaped Optimal Transport}},
  year = {2026},
  eprint = {2605.04965},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.04965},
}
Figure