arXiv:2610.39214math.NAOct 2026

Manuscript Offprint

arXiv:2610.39214

Fast rigid rotational alignment of voxelized 3-D density maps in sliced Wasserstein distance

Oscar Mickelin, Yunpeng Shi, Amit Singer, Eric J. Verbeke

Abstract

We develop a fast method for the rigid alignment of voxelized three-dimensional density functions over SO(3) using sliced optimal transport. Our approach efficiently transforms each density map into a tensor of one-dimensional quantile functions, taken from central slices over the unit sphere, such that the Euclidean distance of the transformed volumes approximates the sliced 2-Wasserstein distance. Our formulation is therefore compatible with existing, fast, voxel-based Euclidean alignment algorithms. We provide theoretical analysis and numerical experiments demonstrating that the sliced 2-Wasserstein distance is a robust metric for comparing three-dimensional shapes and for computing their rigid alignment.

1 Introduction

We consider the problem of three-dimensional (3-D) rigid alignment between density functions ff and gg which are defined on N×N×NN \times N \times N Cartesian voxel grids, and are supported on the closed unit ball B={x∈R3:∥x∥2≤1}\mathbb{B} = \{x \in \mathbb{R}^3 : \|x\|_2 \leq 1\}. Additionally, the functions are assumed to be non-negative with f≥0,g≥0f \geq 0, g \geq 0 and normalized to ∫Bf(x)dx=∫Bg(x)=1\int_{\mathbb{B}} f(x) dx = \int_{\mathbb{B}} g(x) = 1, such that they may be thought of as probability density functions and are therefore compatible with optimal transport frameworks described later. Specifically, we seek to find:

arg⁡min⁡R∈SO(3)d(f,Rg),(1)\arg \min_{R \in \mathrm{SO}(3)} d(f, Rg), \tag{1}

where R∈SO(3)R \in \mathrm{SO}(3) is a rotation and d(⋅,⋅)∈[0,∞)d(\cdot, \cdot) \in [0, \infty) denotes a generic distance function. In particular, we are motivated by the case where f≠Rgf \neq Rg for any R∈SO(3)R \in \mathrm{SO}(3), which we refer to as heterogeneous functions (or heterogeneous 3-D volumes). This type of problem arises in many applications, most prominently in 3-D modeling [1] and biological imaging methods such as electron cryo-microscopy (cryo-EM) [2]. Typically, eq. (1) is solved using the Euclidean distance or standard correlation as the metric for comparison. However, it is known that the landscape with respect to these metrics can be highly irregular, especially for heterogeneous volumes [3].

We therefore focus on using metrics from optimal transport, as they are known to be more robust to changes in the geometry of the objects being compared [4, 5]. However, these metrics, in particular the Wasserstein distance (or Kantorovich-Rubenstein distance), come with a high computational cost. The naive computational complexity for the 2-Wasserstein distance between two N×N×NN \times N \times N functions using linear programming is O(N9)\mathcal{O}(N^9) operations. For rotational alignment, where the distance must be computed over a grid of rotations (typically N3N^3 rotations, to scale with the size of the input functions), the computational complexity increases to O(N12)\mathcal{O}(N^{12}) operations. Although there exist fast algorithms for approximating the

*oscarmi@tsinghua.edu.cn †ypshi@ucdavis.edu ‡amits@math.princeton.edu §ev9102@princeton.edu

Wasserstein distance [6], especially on geometric domains [7], they are still too slow for large-scale and high-dimensional 3-D alignments. This high computational cost drastically limits the application of the Wasserstein distance to rigid alignment tasks. Meanwhile, there exist efficient algorithms for computing the correlation over a grid of rotations in SO(3)\mathrm{SO}(3) with complexity O(N4)\mathcal{O}(N^{4}) operations [8, 9]. Therefore, this work attempts to unify the two frameworks of fast rotational correlations in SO(3)\mathrm{SO}(3) with optimal transport metrics. Our contributions are twofold:

  1. We detail an optimal transport-based alignment algorithm that performs a full grid optimization over SO(3)\mathrm{SO}(3) in O(N4)\mathcal{O}(N^{4}) operations. Interestingly, we show how selecting d in eq. (1) as the sliced 2-Wasserstein distance leads to a problem of aligning two helper quantities in the Euclidean distance. Many alignment algorithms exist for the Euclidean distance and our approach therefore results in a modular and efficient framework where improved algorithms for Euclidean alignment can be leveraged to the setting of alignment in sliced 2-Wasserstein metrics.

As an additional advantage, our alignment algorithm works directly on voxel-representations of the data, unlike several approaches that require an initial conversion to point-cloud representations. Lastly, the algorithm is deterministic and does not require sufficiently accurate initializations or sufficiently tuned hyperparameters, whereas many related algorithms (discussed later) do.

  1. We provide two theorems about the stability of three-dimensional sliced Wasserstein metrics between a structure and a deformation of itself. These results can be used to inform alignment of two heterogeneous functions, since the distance of the aligned structures results in a lower bound on the degree of the heterogeneity through the stability theorems.

This work builds on [10] which studied sliced Wasserstein-based alignment algorithms for two-dimensional functions. Compared to the 2-D case, the 3-D case poses additional challenges since the higher dimension adds a degree of freedom to the parametrization of the rotations. This means that we cannot simply apply a variation of the 2-D algorithm and care must be taken both theoretically and implementation-wise to obtain fast and accurate algorithms. We therefore phrase our results in terms of a more general and modular framework, as discussed in bullet point 1 above. We show numerical results that highlight the advantage of our algorithm over traditional correlation-based Euclidean alignment methods and a selection of other optimal transport-based alignment algorithms. Our code is available at [https://github.com/EricVerbeke/fast_volume_alignment_ot].

References (42)