Papers
Topics
Authors
Recent
Search
2000 character limit reached

Weighted Quaternion Averaging

Updated 12 April 2026
  • Weighted quaternion averaging is a method to compute a representative unit quaternion from a set of weighted rotations, addressing the non-Euclidean nature of S³.
  • It employs eigenvalue decomposition, fixed-point iterations, and gradient-flow algorithms to effectively minimize chordal or geodesic distances.
  • Applications include 3D registration, sensor fusion, and deep learning ensembles, with optimized weight selection improving accuracy and stability.

Weighted quaternion averaging refers to the computation of a representative or "mean" quaternion, given a set of unit quaternions and associated weights. This operation is central in fields such as 3D registration, pose estimation, ensemble sensor fusion, and probabilistic rotation regression, where robust estimation of orientation from multiple sources or predictions is critical. Weighted quaternion averaging methods address the challenge of averaging on the non-Euclidean manifold of unit quaternions (S3S^3), accounting for their double cover of SO(3)\mathrm{SO}(3) and the specifics of rotational metric geometry.

1. Problem Statement and Metrics

Given a collection {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^3 of unit quaternions with strictly positive weights {w1,,wN}\{w_1,\ldots,w_N\}, the objective is to compute a mean quaternion qˉS3\bar{q} \in S^3 that optimally represents the set according to a chosen rotational metric. Canonical formulations include:

  • Minimizing the weighted sum of squared chordal distances:

qˉ=argminq=1i=1Nwidchord2(q,qi),dchord(q,p)=min{qp,q+p}\bar{q} = \arg\min_{\|q\|=1} \sum_{i=1}^{N} w_i d_{\text{chord}}^2(q,q_i),\qquad d_{\text{chord}}(q,p) = \min\{\|q - p\|, \|q + p\|\}

  • Minimizing the weighted sum of squared geodesic distances:

J(q)=i=1NwidS32(q,qi),dS3(q,qi)=2arccosq,qiJ(q) = \sum_{i=1}^N w_i \, d_{S^3}^2(q, q_i), \qquad d_{S^3}(q, q_i) = 2\arccos |\langle q, q_i \rangle|

Handling the qqq \leftrightarrow -q antipodal identification is essential for well-posedness (Hanson, 2018, Peretroukhin et al., 2019).

2. Analytical and Algebraic Methods

A classical approach is to maximize

Δ(q)=i=1Nwi(qqi)=qV,Vi=1Nwiqi\Delta(q) = \sum_{i=1}^N w_i (q \cdot q_i) = q^\top V, \qquad V \equiv \sum_{i=1}^N w_i q_i

subject to q=1\|q\| = 1. The weighted outer-product method constructs the (real symmetric) SO(3)\mathrm{SO}(3)0 matrix

SO(3)\mathrm{SO}(3)1

and seeks the principal eigenvector: SO(3)\mathrm{SO}(3)2 The solution SO(3)\mathrm{SO}(3)3 is the normalized eigenvector associated with the largest eigenvalue of SO(3)\mathrm{SO}(3)4. This can be performed efficiently with standard eigensolvers or, for theoretical insights, the eigenproblem can be solved in closed form via quartic (Cardano–Ferrari) algebraic methods (Hanson, 2018). Block matrix expressions for SO(3)\mathrm{SO}(3)5 directly assemble the computation from quaternion components. In practice, quaternions may be hemisphere-aligned prior to averaging to preserve orientation consistency.

3. Riemannian Manifold (Karcher) Approaches

The minimization of the squared geodesic cost on SO(3)\mathrm{SO}(3)6 falls into the class of Karcher or Fréchet means on Riemannian manifolds. An explicit fixed-point iteration utilizes the exponential and logarithmic maps on SO(3)\mathrm{SO}(3)7: SO(3)\mathrm{SO}(3)8 where SO(3)\mathrm{SO}(3)9 and {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^30 have closed forms relying on principal angles and tangent space projections. The algorithm typically converges in a few iterations for moderate {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^31 and is well-suited for contexts such as deep ensemble networks or sensor fusion where direct probabilistic uncertainty injection in the tangent space is meaningful (Peretroukhin et al., 2019).

4. Dynamical Systems and Gradient-Flow Algorithms

Weighted quaternion averaging can be posed as the equilibrium of a negative gradient flow for a suitably chosen potential function. The non-Abelian Kuramoto model on {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^32 gives rise to a set of ODEs for {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^33 quaternions: {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^34 or, more invariantly,

{q1,,qN}S3\{q_1,\dots,q_N\} \subset S^35

Each iteration projects onto {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^36, and all {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^37 collapse to a common synchronization state almost globally asymptotically. The discrete-time Euler integration ("KLW quaternion algorithm") is practical, and convergence is tracked via an order parameter {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^38 (Kapić et al., 2021).

5. Weight Selection, Constraints, and Sensor Fusion

Weights {q1,,qN}S3\{q_1,\dots,q_N\} \subset S^39 determine the influence of each quaternion in the ensemble. In probabilistic estimation, weights can reflect epistemic or aleatoric uncertainty—e.g., inversely proportional to the trace or determinant of predictive covariance (Peretroukhin et al., 2019). For physical sensor ensembles, e.g., multiple spatially separated IMUs, weights are determined by solving a quadratic program (QP) that minimizes aggregate measurement noise, enforces convexity ({w1,,wN}\{w_1,\ldots,w_N\}0, {w1,,wN}\{w_1,\ldots,w_N\}1), and cancels lever-arm bias ({w1,,wN}\{w_1,\ldots,w_N\}2). In such sensor fusion frameworks, averaging is not performed directly in quaternion space but on frame-aligned gyroscope and accelerometer measurements, and the resulting rate is integrated to propagate the common orientation (Gao et al., 31 May 2025). This avoids direct closed-form expressions for the quaternion mean as a function of the input quaternions and weights in the presence of non-collocated sensors.

6. Practical Implementation and Stability Considerations

The eigenvalue-based approach is computationally efficient, requiring {w1,,wN}\{w_1,\ldots,w_N\}3 operations to form {w1,,wN}\{w_1,\ldots,w_N\}4 and constant-time symmetric eigendecomposition. Fixed-point (Karcher mean) iteration converges rapidly when initialization is close to consensus or when orientations are not near antipodal. Chordal versus geodesic metrics yield nearly indistinguishable results except when orientations are highly dispersed on {w1,,wN}\{w_1,\ldots,w_N\}5. The dynamical (gradient-flow/Kuramoto) method provably converges for positive-definite weights and is robust against initialization except for a measure zero of degenerate cases (Hanson, 2018, Kapić et al., 2021).

Direct mean-by-summation ({w1,,wN}\{w_1,\ldots,w_N\}6) following hemisphere-alignment is numerically less stable when sample orientations are broadly distributed due to the loss of convexity on {w1,,wN}\{w_1,\ldots,w_N\}7. In contrast, the outer-product and gradient-based methods are robust and yield consistent average orientations and covariances.

7. Applications and Experimental Outcomes

Weighted quaternion averaging underpins:

  • Batch and recursive pose estimation in robotics and vision.
  • Sensor fusion involving multiple attitude sources (e.g., multi-IMU arrays), where QP-based weight selection additionally suppresses noise and enforces spatial constraints (Gao et al., 31 May 2025).
  • Probabilistic regression pipelines, with applications in deep learning ensemble methods, which leverage quaternion averaging for rotation prediction and covariance extraction (Peretroukhin et al., 2019).
  • Rotational registration and 3D data alignment in computer vision (Hanson, 2018).

Performance results show that, for sensor fusion, increasing the number of fused IMUs and optimizing weights via QP can reduce rotational mean absolute error (MAE) by approximately 35% and positional MAE by around 20% in simulation, and halve positional error in real-world datasets (Gao et al., 31 May 2025). For direct averaging and registration, the eigenvalue-based and gradient-flow methods are observed to match geometric averaging performance and yield robust estimates across a range of datasets (Hanson, 2018, Kapić et al., 2021).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Weighted Quaternion Averaging.