XM4D: 4D Reconstruction through Certifiable Geometric Optimization
Accurate 4D reconstruction remains challenging: jointly estimating camera motion, scene geometry, and non-rigid deformation entails highly nonconvex optimization, making global optimality difficult to guarantee. We present XM4D, a framework for accurate and efficient 4D reconstruction built upon certifiably globally optimal geometric optimization.
From the abstract. Our summary is in progress.
Full paper
XM4D: 4D Reconstruction through Certifiable Geometric Optimization
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.07902 (PDF).
\issuer
Harvard Computational Robotics Group \editionPreprint \logofilestyle/logo/computational-robotics.jpg 1]Harvard University 2]UC Berkeley \websitehttps://computationalrobotics.seas.harvard.edu/XM4D/ https://computationalrobotics.seas.harvard.edu/XM4D/
Abstract
Accurate 4D reconstruction remains challenging: jointly estimating camera motion, scene geometry, and non-rigid deformation entails highly nonconvex optimization, making global optimality difficult to guarantee. We present XM4D, a framework for accurate and efficient 4D reconstruction built upon certifiably globally optimal geometric optimization. By separating the estimation of camera motion from non-rigid deformation, we formulate both stages as structured quadratically constrained quadratic programs (QCQP) that admit semidefinite programming (SDP) relaxations and verifiable global optimality certificates. For camera motion estimation, we lift static point tracks into 3D using foundational depth prediction models and formulate a scaled bundle adjustment problem that jointly estimates camera poses, depth scales, and static landmarks. By analytically eliminating translations and landmarks, we reduce the problem to a QCQP over scaled rotations. For non-rigid reconstruction, we represent dynamic motion using an embedded deformation graph (EDG) and show that its tracking, rigidity, and temporal regularization objectives similarly reduce to a rotation-only QCQP. Both problems admit SDP relaxations that we solve efficiently with a GPU-accelerated Burer–Monteiro solver based on Riemannian optimization. The recovered geometry further initializes dynamic Gaussian splatting for photometric refinement. Extensive experiments across seven benchmarks demonstrate accurate camera motion estimation on both static and dynamic scenes, efficient optimization that scales to thousands of frames, and state-of-the-art novel-view rendering quality.
1 Introduction
4D reconstruction aims to recover the time-varying 3D structure of a scene from visual observations. It supports applications including dynamic novel-view rendering [36, 42], deformable and articulated object reconstruction [48, 24, 74], digital humans and digital twins [53, 70, 25], and motion retargeting for humanoid control [3, 21, 40]. Despite its broad utility, reconstructing a dynamic scene from monocular images or videos remains highly challenging [17, 18]. Camera and object motion are entangled in the visual observations [15], while dynamic geometry itself is weakly constrained and may undergo complex non-rigid deformation. Long sequences introduce further difficulties, including fragmented point tracks, noisy and scale-inconsistent monocular depth, and temporally incomplete observations of the dynamic scene [35, 68].
Recent 4D reconstruction methods commonly rely on coupled nonconvex optimization over camera poses, scene geometry, deformation, and appearance [35, 68]. Such formulations have achieved impressive results, but their strong coupling makes the optimization difficult: the objective is highly nonconvex and local optimization may therefore be sensitive to initialization and converge to undesired local minima. As illustrated in Fig. 3, local optimization of the motion of an embedded deformation graph (EDG) can converge to an inferior solution whereas the certifiable solver presented in this work achieves an accurate reconstruction. Similar failures of local optimization in static reconstruction were demonstrated in XM [20] (Fig. 10). This raises a natural question:
(C_{t},\mathbf{c}_{t})\in\mathrm{SO}(3)\times\mathbb{R}^{3} (red) observe static landmarks \mathbf{x}^{s}_{i}\in\mathbb{R}^{3} (blue triangles) and dynamic points (pink circles) through the depth-lifted measurements \tilde{\mathbf{u}}^{s}_{it} and \tilde{\mathbf{u}}^{d}_{it} (blue squares). Each dynamic keypoint is attached by skinning edges (dashed) to its neighboring nodes (R_{j,t},\mathbf{p}_{j,t}) of the embedded deformation graph (EDG) (purple capsules), whose nodes are connected by EDG edges (thick solid lines). (b) The view graph instantiated on a dynamic scene: a train moves along a circular track (black arrow), colored curves show the dynamic point tracks, and each part of the train is an EDG node with a free \mathrm{SE}(3) pose.In this work, we present XM4D, a framework for accurate and efficient 4D reconstruction based on globally certifiable geometric optimization. Our approach separates camera motion estimation from non-rigid deformation, allowing both stages to be formulated as structured (nonconvex) quadratically constrained quadratic programs (QCQPs) and solved through (convex) semidefinite programming (SDP) relaxations. Fig. 2(a) illustrates this decomposition as a view graph and Fig. 2(b) instantiates it on a real scene: static and dynamic point tracks share the same cameras and predicted depth, but static tracks constrain time-invariant landmarks and camera poses, while dynamic tracks constrain the motion of an EDG. In the following, we overview the problem formulation and solution approach for both stages.
I: Static stage. As shown in Fig. 2, let t\in\{1,\dots,T\} index video frames and i\in\{1,\dots,N_{s}\} index static points. The visibility set \mathcal{E}_{s} contains the tracked point-frame pairs, and \tilde{\mathbf{u}}^{s}_{it}\in\mathbb{R}^{3} denotes the corresponding 2D observation lifted to 3D using predicted monocular depth. Because monocular depth predictions are noisy and their scale drifts from frame to frame, we introduce a per-frame scale s_{t}>0 that corrects this frame-dependent scale error in the predicted depth. Weighting each observation by an optional confidence \omega_{it}>0, we jointly estimate camera poses, depth scales, and static landmarks via
\min_{\begin{subarray}{c}C_{t}\in\mathrm{SO}(3),\;\mathbf{c}_{t}\in\mathbb{R}^{3},\\
s_{t}>0,\;\mathbf{x}_{i}^{s}\in\mathbb{R}^{3}\end{subarray}}\sum_{(i,t)\in\mathcal{E}_{s}}\omega_{it}\left\lVert C_{t}(s_{t}\tilde{\mathbf{u}}_{it}^{s})+\mathbf{c}_{t}-\mathbf{x}_{i}^{s}\right\rVert^{2}.The objective enforces that observations of the same static point, after correcting the predicted depth scale and transforming them into the world frame, agree on a common 3D landmark. Without a scale constraint, the objective admits a degenerate solution as all variables shrink toward zero. The original XM formulation [20] prevents this collapse by anchoring the first-frame scale to s_{1}=1, making the reconstruction overfit onto the first frame. We instead impose a uniform sphere constraint, \sum_{t}s_{t}^{2}=T, which fixes the global scale without privileging any frame. We formulate this problem as a quadratically constrained quadratic program (QCQP), relax it to a semidefinite program (SDP), and solve it efficiently using Burer–Monteiro (BM) factorization together with a Riemannian staircase, following the certifiable optimization framework of XM and SE-Sync [20, 60].
II: Dynamic stage. After fixing the recovered camera trajectory, we transform dynamic observations into the world frame and model non-rigid motion with an EDG. Each dynamic point \mathbf{x}_{i}^{d} is warped by the rigid transformations (R_{j,t},\mathbf{p}_{j,t}) of its neighboring EDG nodes, where \mathbf{g}_{j} denotes the rest position of node j and w_{ij} the skinning weight. Let \mathbf{y}_{it}^{d}=C_{t}(s_{t}\tilde{\mathbf{u}}_{it}^{d})+\mathbf{c}_{t} denote the corresponding depth-lifted observation in the world frame. The tracking loss is
\begin{split}\mathcal{L}_{\mathrm{track}}&=\sum_{(i,t)\in\mathcal{E}_{d}}\left\lVert\Phi_{t}(\mathbf{x}_{i}^{d})-\mathbf{y}_{it}^{d}\right\rVert^{2},\\
\Phi_{t}(\mathbf{x}_{i}^{d})&=\sum_{j\in\mathcal{N}(i)}w_{ij}\!\left[R_{j,t}(\mathbf{x}_{i}^{d}-\mathbf{g}_{j})+\mathbf{g}_{j}+\mathbf{p}_{j,t}\right].\end{split}We optimize the EDG node transformations with tracking loss, as-rigid-as-possible (ARAP) and temporal smoothness regularization. Unlike MoSca [35], which models deformation through relative transformations between frames, we express all node transformations relative to a fixed rest frame. With fixed EDG structure and skinning weights, this choice makes the tracking, ARAP, and temporal smoothness objectives quadratic in the node transformations. Eliminating node translations then yields a rotation-only QCQP that admits the same SDP-based certifiable optimization framework as the static stage. The recovered geometry then initializes dynamic Gaussian splatting for rendering.
In summary, XM4D makes the following contributions:
- For static reconstruction, we build on the QCQP–SDP–BM framework of our conference version, XM [20], retaining its efficient optimization and global optimality certificates. We introduce a uniform sphere constraint that resolves the scale ambiguity without anchoring any individual frame.
- For dynamic reconstruction, we design an EDG-based non-rigid reconstruction formulation that incorporates tracking, rigidity, and temporal smoothness into a structured QCQP. This formulation admits the same globally certifiable optimization framework.
- We build XM4D, an accurate and efficient 4D reconstruction pipeline that combines certifiable geometric optimization with dynamic Gaussian splatting. Extensive experiments across seven benchmarks demonstrate leading camera accuracy, fast and scalable optimization, and the best average novel-view rendering performance on all three dynamic benchmarks (DyCheck, NVIDIA, and Syn4D).
Outline. The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 presents the static stage: the rotation-only QCQP and SDP relaxation, the BM solver with its optimality certificate, and the sphere constraint. Section 4 extends this machinery to the EDG-based dynamic reconstruction and shows that it admits the same certifiable solver. Section 5 describes the complete pipeline. Section 6 evaluates camera accuracy, runtime, and novel-view rendering on seven benchmarks. Proofs and implementation details are given in the appendices. Visualizations and code are available on the project page:
https://computationalrobotics.seas.harvard.edu/XM4D/.
2 Related Work
2.1 Dynamic Scene Reconstruction
Existing dynamic scene reconstruction methods can be grouped by how they constrain the reconstruction. Rendering-based methods fit time-varying scene representations to images, while geometry-driven methods use measurements such as depth and point tracks to estimate structure and motion. Rendering-based methods represent dynamics using time-varying (volumetric) fields [42, 36], deformable canonical radiance fields and their higher-dimensional extensions [57, 51, 52], or moving Gaussians [44, 72, 62]. Many of them incorporate geometric regularization, and some jointly estimate camera motion [41]. However, recovering object or part level \mathrm{SE}(3) motion for downstream scene understanding generally requires additional motion estimation. Moreover, many methods rely on accurate camera poses, carefully designed initialization, and heavy per-scene optimization.
Geometry-based methods use geometric measurements and motion priors to constrain dynamic reconstruction. Earlier non-rigid structure-from-motion methods recover 3D shape from monocular point tracks using low-rank or subspace priors [19, 88], while RGB-D methods use depth observations with deformation graphs or volumetric models to track motion and reconstruct geometry [48, 24, 9]. More recently, MoSca [35] lifts learned depth and point-track priors into a motion scaffold and anchors Gaussians to it for photometric reconstruction. Shape of Motion [68] represents scene motion using shared \mathrm{SE}(3) motion bases, with per-point weights combining the bases to recover persistent trajectories from monocular depth and long-range 2D tracks. XM4D also uses explicit local \mathrm{SE}(3) transformations as an EDG. Unlike them, XM4D estimates camera poses and temporally coupled graph transformations from depth and tracks with a certifiable geometric solver, making local rigid motions explicit without involving Gaussians.
2.2 Learning-Assisted Geometric Reconstruction
Learned geometric priors have become important components of reconstruction pipelines. Monocular depth models [79, 55, 23, 5, 38] predict dense scene depth, while point trackers [73, 30, 16, 85, 32] establish correspondences across frames. Together, depth and correspondence estimates provide complementary constraints for geometric reconstruction: depth informs scene structure, while tracks connect observations over time.
Recent feed-forward methods predict richer 3D scene representations directly from images. DUSt3R [69] predicts pointmaps for image pairs and aligns them in a shared coordinate frame, and MUSt3R [13] extends it to many views, and VGGT [67] jointly predicts camera parameters, depth maps, pointmaps, and 3D point tracks. In XM4D, learned depth and tracks are measurements for an explicit geometric optimization.
2.3 Certifiable Geometric Optimization
Certifiable geometric optimization solves nonconvex estimation problems, such as bundle adjustment, while verifying global optimality [33, 78, 84]. Semidefinite relaxations provide such certificates for pose synchronization [60, 82], outlier-robust registration [77], and general polynomial formulations of robust estimation [76].
Our prior conference work, XM [20], introduced depth-assisted scaled bundle adjustment with a scalable solver based on BM factorization [11] and Riemannian optimization [8], which XM4D extends to dynamic scenes.
3 Static Reconstruction with XM
This section presents the static stage of XM4D. Section 3.1 reviews scaled bundle adjustment and its QCQP reformulation (Propositions 1–2); Section 3.2 relaxes the QCQP to a convex SDP (Proposition 3); Section 3.3 solves the SDP with certified global optimality via the Riemannian staircase method (Algorithm 1). Section 3.4 highlights our main contribution compared to XM [20]: a uniform sphere constraint on the depth scales that replaces the first-frame anchor.
3.1 Bundle Adjustment with Learned Depth
The static observations originate from 2D correspondences, obtained by point trackers [16, 30, 85] or by classical keypoint detection and matching [43, 61], and \mathbf{u}^{s}_{it}\in\mathbb{R}^{2} denotes the normalized image coordinate of static point i in frame t obtained with the camera intrinsics, which are either calibrated or estimated by a foundation model [38, 67]. Each observation is lifted to a noisy 3D measurement using its predicted depth d_{it}>0,
\tilde{\mathbf{u}}^{s}_{it}=d_{it}\begin{bmatrix}\mathbf{u}^{s}_{it}\\
1\end{bmatrix}\in\mathbb{R}^{3},which constitutes the depth-lifted observation of Eq. (SBA).
The translations \{\mathbf{c}_{t}\} and landmarks \{\mathbf{x}^{s}_{i}\} in Eq. (SBA) are unconstrained variables and thus can be eliminated analytically to get a reduced scaled-rotation-only problem.
Proposition 1 (Scaled-Rotation-Only Formulation, adapted from [20]).
Problem (SBA) is equivalent to
\begin{split}\rho^{\star}_{\mathrm{SRO}}=\min_{\begin{subarray}{c}s_{t}>0,\;C_{t}\in\mathrm{SO}(3)\\
t=1,\dots,T\end{subarray}}&\operatorname{tr}\!\left(QU^{\top}U\right),\\
U=&\begin{bmatrix}s_{1}C_{1}&\cdots&s_{T}C_{T}\end{bmatrix},\end{split}where Q\in\mathbb{S}^{3T}, Q\succeq 0, is a data matrix built from the lifted measurements through the Moore–Penrose pseudo-inverse of the view-graph Laplacian. In particular, the optimal values coincide: \rho^{\star}_{\mathrm{SBA}}=\rho^{\star}_{\mathrm{SRO}}, where \rho^{\star}_{\mathrm{SBA}} denotes the optimal value of (SBA). The closed form of Q, the proof, and the recovery of the optimal translations and landmarks are given in Appendix 9.1.
The objective of (SRO) vanishes as U\to 0, a collapse of the global scale. XM excludes it by anchoring the first frame; we instead exclude it with the uniform sphere constraint \left\lVert U\right\rVert_{F}^{2}=3T motivated in Section 3.4.
By defining the set of scaled orthogonal matrices through the quadratic constraint
\begin{split}\mathrm{sO}(3)&=\left\{\bar{R}\in\mathbb{R}^{3\times 3}\;\middle|\;\bar{R}^{\top}\bar{R}=\alpha I_{3},\;\alpha\geq 0\right\}\\
&=\left\{sR\;\middle|\;s\geq 0,\;R\in\mathrm{O}(3)\right\},\end{split}which contains the scaled rotation \bar{C}_{t}=s_{t}C_{t} of each frame, (SRO) reduces to the following QCQP.
Proposition 2 (QCQP Formulation, adapted from [20]).
Consider the QCQP
\begin{split}\rho^{\star}_{\mathrm{QCQP}}=\min_{\begin{subarray}{c}\bar{C}_{t}\in\mathrm{sO}(3)\\
t=1,\dots,T\end{subarray}}&\operatorname{tr}\!\left(QU^{\top}U\right),\\
U=\begin{bmatrix}\bar{C}_{1}&\cdots&\bar{C}_{T}\end{bmatrix},&\qquad\left\lVert U\right\rVert_{F}^{2}=3T,\end{split}and let U^{\star}=[\bar{C}_{1}^{\star},\dots,\bar{C}_{T}^{\star}] be a global optimizer. If \det\bar{C}_{t}^{\star}>0 for all t, then U^{\star} is a global minimizer of (SRO) under the same sphere constraint. The proof is given in Appendix 9.2.
Otherwise, rotations in \mathrm{SO}(3) are recovered by projecting each block onto the scaled rotations through its singular value decomposition (Appendix 10.1).
3.2 Convex SDP Relaxation
Since local solvers for the QCQP may stall in suboptimal minima, we use a semidefinite relaxation [75, Chapter 3]. The basic idea is fairly simple: creating a matrix variable
X=U^{\top}U\in\mathbb{S}^{3T},which is quadratic in the original variable U, makes the objective of (QCQP) linear in X, namely \operatorname{tr}(QU^{\top}U)=\langle Q,X\rangle. The convex relaxation then enforces the matrix variable X through convex constraints. Partition X into 3\times 3 blocks X_{tt^{\prime}} with t,t^{\prime}\in\{1,\dots,T\}. Since each \bar{C}_{t}=s_{t}C_{t},
X_{tt}=\bar{C}_{t}^{\top}\bar{C}_{t}=s_{t}^{2}I_{3}=\alpha_{t}I_{3},\qquad\alpha_{t}=s_{t}^{2}.All diagonal blocks play identical roles, and the sphere constraint becomes the linear equality \operatorname{tr}(X)=3T. Ignoring the rank-3 constraint on X yields Shor’s SDP relaxation.
Proposition 3 (SDP Relaxation, adapted from [20]).
The semidefinite program
\displaystyle\rho^{\star}_{\mathrm{SDP}}=\min_{X} \\ \displaystyle\langle Q,X\rangle \\ \displaystyle\text{s.t.} \\ \displaystyle X\succeq 0, \\ \displaystyle X_{tt}=\alpha_{t}I_{3},\qquad t=1,\ldots,T, \\ \displaystyle\operatorname{tr}(X)=3T,where each scalar \alpha_{t} is not a separate variable but the common diagonal entry of the block X_{tt}, is a convex relaxation of (QCQP), i.e., \rho^{\star}_{\mathrm{SDP}}\leq\rho^{\star}_{\mathrm{QCQP}}. If a global minimizer X^{\star} has \operatorname{rank}(X^{\star})=3, then it factorizes as X^{\star}=(U^{\star})^{\top}U^{\star} with U^{\star}=[\bar{C}_{1}^{\star},\dots,\bar{C}_{T}^{\star}]\in\mathrm{sO}(3)^{T}, unique up to multiplication by \mathrm{O}(3), and U^{\star} is a global optimizer of (QCQP). In this case, the relaxation is said to be tight or exact (proof in Appendix 9.3).
In practice the relaxation is empirically tight [20]; when a minimizer has rank above three, it is projected to rank three through its three largest eigenpairs, a process known as rounding (Appendix 10.1).
3.3 Burer–Monteiro Optimization
Although (SDP) is convex, explicitly storing and optimizing the 3T\times 3T matrix X becomes prohibitive for long videos with a large T: interior-point solvers already struggle beyond a few thousand frames [20]. When the relaxation is tight, however, the optimal X^{\star} has rank three (Proposition 3), so its effective dimension is only 3\times 3T. BM factorization [11] exploits this low-rank structure: for a chosen rank r\geq 3, we substitute
X=U^{\top}U,\qquad U=\begin{bmatrix}U_{1}&\cdots&U_{T}\end{bmatrix}\in\mathbb{R}^{r\times 3T},with blocks U_{t}\in\mathbb{R}^{r\times 3} into (SDP), which yields the rank-r BM problem
\begin{split}\rho^{\star}_{\mathrm{BM},r}=\min_{U\in\mathbb{R}^{r\times 3T}}\ &\operatorname{tr}\!\left(QU^{\top}U\right)\\
\text{s.t.}\quad&U_{t}^{\top}U_{t}=\alpha_{t}I_{3},\quad t=1,\dots,T,\\
&\textstyle\sum_{t=1}^{T}\alpha_{t}=T.\end{split}At first glance, (BM) looks like a nonconvex constrained problem, but its constraints define a smooth manifold.
Proposition 4 (BM Riemannian Optimization, adapted from [20]).
Problem (BM) is equivalent to the unconstrained Riemannian optimization problem
\min_{(\mathbf{s},Y_{1},\dots,Y_{T})\in\mathcal{M}}\operatorname{tr}\!\left(QU^{\top}U\right),\qquad U_{t}=s_{t}Y_{t},over the product manifold
\mathcal{M}=\mathbb{S}^{T-1}_{\sqrt{T}}\times\mathrm{St}(r,3)^{T},where \mathbb{S}^{T-1}_{\sqrt{T}}=\{\mathbf{s}\in\mathbb{R}^{T}:\left\lVert\mathbf{s}\right\rVert_{2}^{2}=T\} is the radius-\sqrt{T} sphere, \mathrm{St}(r,3)=\{Y\in\mathbb{R}^{r\times 3}:Y^{\top}Y=I_{3}\} is the Stiefel manifold, and \alpha_{t}=s_{t}^{2}. The proof is given in Appendix 9.4.
We solve (7) with the Riemannian trust-region method with truncated conjugate gradients (Rtr-tCG) [7], using the C++/CUDA implementation from XM [20].
Three observations are in order [11, 75]. First, X=U^{\top}U\succeq 0 holds by construction, so the PSD constraint disappears. Second, at r=3, problem (BM) is exactly (QCQP) and hence nonconvex. Third, increasing the rank cannot increase the optimal objective value, since any feasible rank-r factor remains feasible at rank r{+}1 by appending a zero row; hence
\rho^{\star}_{\mathrm{BM},3}\;\geq\;\rho^{\star}_{\mathrm{BM},4}\;\geq\;\cdots\;\geq\;\rho^{\star}_{\mathrm{SDP}},with equality \rho^{\star}_{\mathrm{BM},r}=\rho^{\star}_{\mathrm{SDP}} as soon as r\geq r^{\star}, the minimum rank among optimal solutions of (SDP) [11, 75]. We emphasize that (9) is a statement about global minima: each \rho^{\star}_{\mathrm{BM},r} is the optimal value of the nonconvex problem (BM), which a local Riemannian solver alone is not guaranteed to attain. Attaining it—and thereby \rho^{\star}_{\mathrm{SDP}}—is precisely the role of the Riemannian staircase [8, 60] developed below.
Global optimality certification. Write (SDP) in standard primal form,
\displaystyle\min_{X\in\mathbb{S}^{3T}}\quad \\ \displaystyle\operatorname{tr}(QX) \\ \displaystyle\langle A_{i},X\rangle=b_{i},\quad i=1,\dots,m, \\ \displaystyle X\succeq 0.The associated dual standard SDP is
\displaystyle\max_{y\in\mathbb{R}^{m}}\quad \\ \displaystyle\sum_{i=1}^{m}b_{i}y_{i} \\ \displaystyle Z(y):=Q-\sum_{i=1}^{m}y_{i}A_{i}\succeq 0.Since Slater’s condition holds (X=I_{3T} is feasible for (SDP)), strong duality holds between (10) and (11) [71].
Theorem 5 (Dual Optimality Certificate, adapted from [20]).
Let U_{r}^{\star} be a locally optimal solution of (BM) with \alpha_{t}>0 for all t. Then there exists a unique multiplier y_{r}\in\mathbb{R}^{m} satisfying the first-order condition
Z(y_{r})(U_{r}^{\star})^{\top}=0.If, furthermore, Z(y_{r})\succeq 0, then U_{r}^{\star} is a global optimizer of (BM), and (U_{r}^{\star})^{\top}U_{r}^{\star}, y_{r}, Z(y_{r}) are optimal for the primal–dual pair (10)–(11). The proof is given in Appendix 9.5.
Theorem 5 gives a simple certification recipe: solve the linear system (12) for y_{r} (recall Z(y) is linear in y), form Z(y_{r}), and check its positive semidefiniteness. If the check fails, the next theorem provides an escape route.
Theorem 6 (Negative-Curvature Direction, adapted from [20]).
Let U_{r}^{\star} be a local minimizer of (BM) with multiplier y_{r}, and suppose Z(y_{r})\not\succeq 0. Let v be an eigenvector of Z(y_{r}) associated with a negative eigenvalue. Then, for the rank-(r{+}1) problem,
D=\begin{bmatrix}0\\
v^{\top}\end{bmatrix}\quad\text{is a second-order descent direction at}\quad\bar{U}=\begin{bmatrix}U_{r}^{\star}\\
0\end{bmatrix}:along the feasible retraction curve through \bar{U} in the direction D, the objective f satisfies f^{\prime}(0)=0 and f^{\prime\prime}(0)=2v^{\top}Z(y_{r})v<0. The proof is given in Appendix 9.6.
Since the objective decreases to second order along D, the halving line search in Algorithm 1 terminates with a strictly lower objective, and the optimization escapes the rank-r local minimizer by climbing one step of the rank “staircase”.
Theorem 7 (Global Convergence, adapted from [20]).
Algorithm 1 returns a globally optimal solution of the SDP pair (10)–(11), regardless of the initialization U_{r}^{0} (proof in Appendix 9.7).
Theorem 7 makes the approach initialization-free. In practice, Algorithm 1 terminates at r=3 or 4 [20], so the worst case r=3T is never approached and the scalability advantage of the low-rank factorization is retained.
3.4 Anchoring via a Uniform Sphere Constraint
As discussed in Section 3.1, the original XM formulation removes the scale and rotation ambiguities of (SBA) by anchoring the first frame (C_{1}=I_{3}, \mathbf{c}_{1}=\mathbf{0}, s_{1}=1). This pins the reconstruction to the first depth prediction, so the solver overfits to it when the first-frame observations are noisy, and XM’s scale-regularization adds a hyperparameter that must be tuned for each video. We instead fix the global scale with a constraint rather than a penalty: the uniform sphere constraint
\sum_{t=1}^{T}s_{t}^{2}=Texcludes the collapse toward zero while treating every frame symmetrically. It is quadratic in the scales, so (QCQP) remains a QCQP, and after relaxation it is the trace constraint \operatorname{tr}(X)=3T already in (SDP) and (BM).
Suboptimality gap. Since the staircase runs with finite tolerances, we report the relative gap
\eta=\frac{\hat{\rho}-\rho_{\mathrm{d}}}{1+|\hat{\rho}|+|\rho_{\mathrm{d}}|},\qquad\rho_{\mathrm{d}}=\mathbf{b}^{\top}y_{r}+3T\lambda_{\min}\!\left(Z(y_{r})\right),where \hat{\rho}=\operatorname{tr}(Q\hat{U}^{\top}\hat{U}) is the objective of the solution \hat{U} rounded to (SRO) under the sphere constraint (Appendix 10.1), \mathbf{b}=(b_{1},\dots,b_{m}) and Z(y) are defined in (10)–(11b), and y_{r} solves (12). By Theorem 11 (Appendix 10), \hat{\rho}\geq\rho^{\star}_{\mathrm{SRO}}\geq\rho^{\star}_{\mathrm{SDP}}\geq\rho_{\mathrm{d}}, so \eta\to 0 certifies that \hat{U} is numerically globally optimal for (SRO). Table 6 reports \eta per dataset: all static solves satisfy \eta<10^{-3}, where for the partial sphere constraint \eta uses the trace-restricted bound of Appendix 10.
4 Dynamic Reconstruction with XM
We extend the globally certifiable optimization framework of Section 3 to the dynamic part of the view graph. Section 4.1 introduces the EDG motion model and dynamic objective; Section 4.2 analytically eliminates the unconstrained variables to obtain a rotation-only QCQP, as in the static case; and Section 4.3 describes how the XM solver of Section 3.3 solves the resulting problem.
4.1 EDG Model and the Dynamic Objective
Dynamic motion is represented by an EDG [65], \mathcal{G}_{\mathrm{EDG}}=(\mathcal{V}_{\mathrm{EDG}},\mathcal{E}_{\mathrm{EDG}}), consisting of J sparse control nodes (Eq. (1)). Each node j has a rest position \mathbf{g}_{j}\in\mathbb{R}^{3} and a rigid transformation (R_{j,t},\mathbf{p}_{j,t})\in\mathrm{SO}(3)\times\mathbb{R}^{3} describing its motion at frame t. Dynamic points are attached to nearby nodes and deformed using linear blend skinning. In this section, the graph (its nodes, edges, rest positions, and skinning weights) is taken as given; Section 5.3 describes how it is built from the lifted dynamic tracks.
We first describe the EDG model for a single temporal window \mathcal{W}. Within this window, we choose a reference frame t_{0}\in\mathcal{W}, typically the frame with the most observed EDG nodes, and define the rest positions in that frame, which keeps the skinning offsets and ARAP constraints consistent. We anchor the node transformations at t_{0} by
R_{j,t_{0}}=I_{3},\qquad\mathbf{p}_{j,t_{0}}=\mathbf{0},\qquad j=1,\dots,J,so that \Phi_{t_{0}} is the identity. This is a local reference-frame convention for one solve; it does not require a single rest frame for the entire video (Section 5.3).
Since the cameras and depth scales are fixed at their static-stage estimates, the lifted observations \mathbf{y}^{d}_{it} are constants, and the dynamic problem estimates the node transformations alone,
\begin{split}\min_{\begin{subarray}{c}R_{j,t}\in\mathrm{SO}(3),\\
\mathbf{p}_{j,t}\in\mathbb{R}^{3}\end{subarray}}\quad&\lambda_{\mathrm{track}}\,\mathcal{L}_{\mathrm{track}}+\lambda_{\mathrm{ARAP}}\,\mathcal{L}_{\mathrm{ARAP}}+\lambda_{\mathrm{temp}}\,\mathcal{L}_{\mathrm{temp}}.\end{split}Here \mathcal{L}_{\mathrm{track}} is the tracking loss (1), which asks the warped rest positions to match the lifted observations; the as-rigid-as-possible (ARAP) energy over the EDG edges,
\begin{split}\mathcal{L}_{\mathrm{ARAP}}&=\sum_{t=1}^{T}\sum_{(j,k)\in\mathcal{E}_{\mathrm{EDG}}}\left\lVert\mathbf{r}^{\mathrm{arap}}_{jk,t}\right\rVert^{2},\\
\mathbf{r}^{\mathrm{arap}}_{jk,t}&=R_{j,t}(\mathbf{g}_{k}-\mathbf{g}_{j})+\mathbf{g}_{j}+\mathbf{p}_{j,t}-\mathbf{g}_{k}-\mathbf{p}_{k,t},\end{split}asks the transformation of node j to also explain the motion of its neighbor k, and the temporal smoothness energy
\mathcal{L}_{\mathrm{temp}}=\sum_{t=1}^{T-1}\sum_{j=1}^{J}\left\lVert R_{j,t}-R_{j,t+1}\right\rVert_{F}^{2}+\left\lVert\mathbf{p}_{j,t}-\mathbf{p}_{j,t+1}\right\rVert^{2}discourages large inter-frame deformation.
4.2 Rotation-Only QCQP
Every residual in (DYN) is affine: the tracking residual is affine in (R_{j,t},\mathbf{p}_{j,t}) for fixed skinning weights and rest positions, the ARAP residual is affine in (R_{j,t},\mathbf{p}_{j,t},\mathbf{p}_{k,t}) with the constant offset \mathbf{g}_{j}-\mathbf{g}_{k}, and the smoothness residuals are linear. The objective is thus quadratic in the stacked variables, and (DYN) is a QCQP whose only constraints are the orthogonality of the EDG blocks.
As in the static case, the node translations \mathbf{p}_{j,t} are unconstrained Euclidean variables and can be eliminated analytically, leaving a problem over the EDG rotations alone.
Proposition 8 (Rotation-Only Formulation of the Dynamic Problem).
Under the rest-frame convention (16), Problem (DYN) is equivalent to
\begin{split}\rho^{\star}_{\mathrm{DYN\text{-}RO}}=\min_{\begin{subarray}{c}R_{j,t}\in\mathrm{SO}(3)\\
t\neq t_{0}\end{subarray}}&\operatorname{tr}\!\left(QU^{\top}U\right)+2\,\langle P,U\rangle+c_{0},\\
U=&\begin{bmatrix}R_{j,t}\end{bmatrix}_{t\neq t_{0}},\end{split}where Q\in\mathbb{S}^{3J(T-1)}, Q\succeq 0, P\in\mathbb{R}^{3\times 3J(T-1)}, and c_{0}\in\mathbb{R} are built from the lifted observations, the skinning weights, and the rest positions through the Moore–Penrose pseudo-inverse of a node-translation Laplacian. In particular, the optimal values coincide: \rho^{\star}_{\mathrm{DYN}}=\rho^{\star}_{\mathrm{DYN\text{-}RO}}, where \rho^{\star}_{\mathrm{DYN}} denotes the optimal value of (DYN). The closed forms of Q, P, and c_{0}, the proof, and the recovery of the node translations are in Appendix 9.8.
Two differences from the static problem (SRO) are worth noting. First, a linear term \langle P,U\rangle appears: the ARAP and tracking residuals carry the constant offsets \mathbf{g}_{j}-\mathbf{g}_{k}, \sum_{j}w_{ij}\mathbf{g}_{j}, and \mathbf{y}^{d}_{it}, which survive the elimination. Second, every block is a unit-scale rotation, whose relaxed block constraint is X_{jj}=I_{3} rather than \alpha I_{3}, so no sphere normalization is needed.
Homogenization. The XM solver operates on a homogeneous quadratic objective, so we absorb the linear term and the constant of (DYN-RO) into a single matrix by introducing one auxiliary rotation V\in\mathrm{SO}(3) and defining
U_{h}=\begin{bmatrix}V&U\end{bmatrix},\qquad Q_{h}=\begin{bmatrix}\tfrac{c_{0}}{3}I_{3}&P\\
P^{\top}&Q\end{bmatrix}.The auxiliary block adds no physical degree of freedom; after solving, the EDG rotations are taken relative to it.
Proposition 9 (Homogeneous Formulation of the Dynamic Problem).
Problem (DYN-RO) is equivalent to
\rho^{\star}_{\mathrm{DYN\text{-}H}}=\min_{\begin{subarray}{c}V\in\mathrm{SO}(3),\;R_{j,t}\in\mathrm{SO}(3)\\
t\neq t_{0}\end{subarray}}\operatorname{tr}\!\left(Q_{h}U_{h}^{\top}U_{h}\right),in the following sense: the optimal values coincide, \rho^{\star}_{\mathrm{DYN\text{-}RO}}=\rho^{\star}_{\mathrm{DYN\text{-}H}}; if (V^{\star},U^{\star}) is optimal for (DYN-H), then V^{\star\top}U^{\star} is optimal for (DYN-RO); and if \widetilde{U}^{\star} is optimal for (DYN-RO), then (I_{3},\widetilde{U}^{\star}) is optimal for (DYN-H) (proof in Appendix 9.9).
4.3 Solving with the XM Solver
As in Proposition 2, we drop the determinant constraints of (DYN-H), replacing \mathrm{SO}(3) by \mathrm{O}(3). The resulting QCQP has orthogonal blocks only, so Section 3.3 carries over with n+1 unit-scale blocks, n=J(T-1), and no sphere constraint.
Proposition 10 (Certifiable Optimization of the Dynamic Problem).
The SDP
\displaystyle\rho^{\star}_{\mathrm{DYN\text{-}SDP}}=\min_{X\in\mathbb{S}^{3(n+1)}} \\ \displaystyle\langle Q_{h},X\rangle \\ \displaystyle\text{s.t.} \\ \displaystyle X\succeq 0, \\ \displaystyle X_{ii}=I_{3},\quad i=0,\dots,n,is a convex relaxation of (DYN-H). Its rank-r BM factorization X=U_{h}^{\top}U_{h} is equivalent to the unconstrained Riemannian problem
\min_{U_{h}\in\mathrm{St}(r,3)^{n+1}}\operatorname{tr}\!\left(Q_{h}U_{h}^{\top}U_{h}\right).Theorems 5–7 still hold for (DYN-SDP)–(DYN-BM), so Algorithm 1 returns a certified global optimum of (DYN-SDP), and hence of (DYN-H) whenever the relaxation is tight and the recovered relative rotation blocks lie in \mathrm{SO}(3). The proof is given in Appendix 9.10.
Global optimality matters in practice. Fig. 3 compares the certified solution with that of a local solver on the same input: the local solver converges to a local minimum in which some nodes are rotated incorrectly, whereas the certified solution recovers consistent node rotations.
Suboptimality gap. The gap (15) applies verbatim to (DYN-SDP), with Q replaced by Q_{h}, A_{i} and b_{i} now encoding X_{ii}=I_{3}, and 3T replaced by \operatorname{tr}(X)=3(n+1) (Appendix 10). Every segment solve on DyCheck, NVIDIA, and Syn4D is certified (Table 6).
5 The XM4D Pipeline
This section describes the end-to-end system that recovers both the static and the dynamic structure of the view graph in Fig. 2. We present it for a monocular video, but the formulation only requires that each image carry a time tag, and an image collection without time tags reduces the pipeline to static 3D reconstruction. The stages are preprocessing and tracking (Section 5.1), the static stage (Section 5.2), EDG construction, segment solving and completion (Section 5.3), and the final photometric stage (Section 5.4).
5.1 Preprocessing: Depth, Intrinsics, Masks, and Tracks
Every frame is processed by a monocular depth foundation model, with Depth Anything 3 (DA3) [38] as the default, which provides the metric depths d_{it} used in the lift (2) and, for uncalibrated videos, the camera intrinsics. Per-frame masks of the moving objects are obtained with SAM 3 [14], prompted either by a text description or by a few hand-selected keypoints on the dynamic object and then tracked across the video. Finally, both static and dynamic 2D correspondences are produced by point trackers, with TAPNext [85] as the default. The trackers are operated in an online fashion: as each frame arrives, new query points are sampled only at locations farther than a threshold from existing tracks. Unreliable observations are discarded (Appendix 12). Optionally, dynamic tracks can be assembled into long-range trajectories for the EDG (Appendix 12.5).
5.2 Static Stage: Certified Solve
The static stage solves (SBA) with the solver of Section 3, augmented with two robustness steps. First, we run XM2 [20]: the solver is applied twice, with an outlier filter in between that keeps only the observations with the smallest residuals under the first solution, so tracking failures or inaccurate depth predictions do not corrupt the final estimate. Second, the result is refined with Ceres [2], warm-started at the certified XM2 outputs and minimizing the classical 2D reprojection error. Further implementation details of the static stage are collected in Appendix 12.
Partial sphere constraint. In practice, some videos contain a small fraction of outlier frames—strong blur or large inter-frame motion, or depth predictions whose scale is far off—and forcing such frames onto the sphere lets them distort the global scale. We therefore use a mixed-manifold variant of the solver: frames are ranked by the trace of their diagonal block of Q, the top \lceil\rho T\rceil frames are constrained to the sphere of Section 3.4, and the scales of the remaining frames are optimized freely. Formally, with \mathcal{S} the set of these frames, the sphere constraint becomes \sum_{t\in\mathcal{S}}s_{t}^{2}=|\mathcal{S}|, i.e., \sum_{t\in\mathcal{S}}\operatorname{tr}(X_{tt})=3|\mathcal{S}| in (SDP), which is still linear, so the SDP relaxation and the certificate of Theorem 5 carry over. The suboptimality gap (15) is adapted accordingly in Appendix 10. In the same spirit, we optionally normalize the observation weights per frame: with w_{t}=\sum_{i}\omega_{it} the total weight of frame t, the solver uses the raw weights \omega_{it}, equalizes every frame’s influence (\omega_{it}/w_{t}), or applies a softer normalization (\omega_{it}/\sqrt{w_{t}}). Table 1 compares eight such configurations; configuration (6) is our default.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- BAL
- ATE-T
- 2.243
- 2.194
- 2.163
- 2.185
- 2.218
- 2.155
- 2.181
- 2.283
- RPE-T
- 4.003
- 3.942
- 3.934
- 3.936
- 3.935
- 3.957
- 3.949
- 3.979
- RPE-R
- 1.674
- 1.661
- 1.650
- 1.667
- 1.655
- 1.660
- 1.712
- 1.690
- Sintel
- ATE-T
- 53
- 53
- 54
- 51
- 52
- 56
- 49
- 74
- RPE-T
- 72
- 71
- 75
- 69
- 71
- 74
- 69
- 105
- RPE-R
- 76
- 71
- 70
- 66
- 67
- 52
- 56
- 121
- Sintel (Ceres)
- ATE-T
- 29
- 30
- 29
- 16
- 18
- 18
- 29
- 30
- RPE-T
- 35
- 37
- 37
- 25
- 28
- 26
- 36
- 43
- RPE-R
- 62
- 63
- 61
- 48
- 56
- 41
- 49
- 107
- TUM (Ceres)
- ATE-T
- 9.45
- 8.80
- 10.48
- 8.70
- 9.21
- 5.72
- 7.33
- 11.42
- RPE-T
- 12.85
- 12.22
- 14.51
- 12.42
- 12.99
- 8.02
- 10.04
- 16.23
- RPE-R
- 6.63
- 6.18
- 7.69
- 6.28
- 6.64
- 5.98
- 5.87
- 7.05
- IMC
- ATE-T
- 0.003
- 0.075
- 0.871
- –
- 0.047
- RPE-T
- 0.005
- 0.121
- 1.221
- –
- 0.074
- RPE-R
- 0.002
- 0.033
- 0.703
- –
- 0.044
- Replica
- ATE-T
- 0.009
- 0.014
- 0.067
- 0.060
- 0.002
- RPE-T
- 0.012
- 0.019
- 0.087
- 0.072
- 0.002
- RPE-R
- 0.015
- 0.005
- 0.574
- 0.007
- 0.001
- TUM
- ATE-T
- 0.006
- 0.008
- 0.007
- 0.009
- 0.006
- RPE-T
- 0.009
- 0.012
- 0.009
- 0.013
- 0.008
- RPE-R
- 0.006
- 0.006
- 0.006
- 0.007
- 0.006
- Sintel
- ATE-T
- 0.359
- 0.066
- 0.049
- 0.067
- 0.018
- RPE-T
- 0.462
- 0.095
- 0.058
- 0.094
- 0.026
- RPE-R
- 0.081
- 0.057
- 0.019
- 0.056
- 0.041
- Syn4D
- ATE-T
- 0.035
- 0.009
- 0.001
- 0.022
- 0.002
- RPE-T
- 0.060
- 0.011
- 0.001
- 0.031
- 0.002
- RPE-R
- 0.022
- 0.012
- 0.001
- 0.057
- 0.002
- NVIDIA
- ATE-T
- 0.150
- 0.111
- 0.024
- 0.174
- 0.038
- RPE-T
- 0.206
- 0.168
- 0.036
- 0.259
- 0.056
- RPE-R
- 0.010
- 0.010
- 0.005
- 0.107
- 0.005
- DyCheck
- ATE-T
- 0.006
- 0.019
- 0.005
- 0.048
- 0.008
- RPE-T
- 0.008
- 0.026
- 0.007
- 0.065
- 0.011
- RPE-R
- 0.009
- 0.035
- 0.007
- 0.024
- 0.012
- COLMAP
- VGGT
- MegaSAM
- MoSca
- Ours
- IMC
- Total
- 227.7
- 38.7
- 136.8
- –
- 23.2
- Replica
- Total
- 125.4
- 54.4
- 83.5
- 1054.4
- 115.1
- Preprocess
- –
- –
- 49.6
- 888.5
- 100.5
- Solver
- –
- –
- 33.9
- 165.9
- 14.6
- TUM
- Total
- 1743.7
- 52.8
- 79.5
- 403.8
- 83.7
- Preprocess
- –
- –
- 50.8
- 288.3
- 73.7
- Solver
- –
- –
- 28.5
- 115.3
- 10.0
- Sintel
- Total
- 206.0
- 29.3
- 48.4
- 410.2
- 62.0
- Preprocess
- –
- –
- 34.1
- 363.2
- 47.2
- Solver
- –
- –
- 14.3
- 47.0
- 14.8
- Syn4D
- Total
- 605.0
- 55.0
- 82.6
- 1729.3
- 110.3
- Preprocess
- –
- –
- 52.0
- 724.6
- 88.4
- Solver
- –
- –
- 30.6
- 1004.6
- 21.9
- NVIDIA
- Total
- 25
- 17
- 35
- 111
- 28
- Preprocess
- –
- –
- 28
- 92
- 25
- Solver
- –
- –
- 7
- 18
- 3
- DyCheck
- Total
- 843
- 38
- 316
- 942
- 96
- Preprocess
- 211
- –
- 149
- 555
- 78
- Solver
- 631
- –
- 167
- 387
- 18
- Replica room0
- N{=}100
- 36.4
- 37.6
- 89.6
- 468.5
- 73.7
- N{=}200
- 225.8
- OOM
- 149.0
- 892.6
- 131.3
- N{=}500
- 1451.9
- –
- 345.0
- 2140.1
- 383.5
- N{=}800
- 3230.0
- –
- 568.6
- err
- 862.3
- N{=}1200
- >1h
- –
- err
- –
- 1656.2
- N{=}2000
- –
- –
- –
- –
- 3322.4
- DyCheck
- Shape of Motion
- 230.0
- 282.4
- 512.4
- MoSca
- 9.2
- 31.3
- 40.5
- Ours
- 8.8
- 25.8
- 34.6
- NVIDIA
- Shape of Motion
- 0.6
- 48.3
- 48.8
- MoSca
- 1.5
- 32.1
- 33.6
- Ours
- 1.5
- 20.4
- 21.9
- Syn4D
- Shape of Motion
- 20.0
- 50.9
- 71.0
- MoSca
- 12.1
- 32.3
- 44.5
- Ours
- 6.6
- 10.4
- 16.9
5.3 EDG Construction, Segment Solve, and Completion
Starting from the lifted dynamic tracks of Section 4, we first build a time-independent graph connecting tracks that remain spatially close over time. We then subsample this graph to obtain sparse EDG nodes and inherit its connectivity to define the EDG edges. Because no single frame observes all nodes in long videos, we solve the EDG motion independently on short overlapping segments using the certified solver of Section 4.3, and fuse the segment solutions. Finally, missing EDG poses are filled by a completion step.
Track graph. The track graph \mathcal{G}_{\mathrm{tr}} records which tracks stay on the same part of the object. A single-frame distance cannot decide this, since points on different parts may pass close to each other in some frames. We therefore measure the distance of two tracks over their whole common lifetime. Let \mathcal{T}_{i} be the frames in which track i is reliable, \mathcal{T}_{ii^{\prime}}=\mathcal{T}_{i}\cap\mathcal{T}_{i^{\prime}} the frames in which tracks i and i^{\prime} are co-visible, and {\bm{\pi}}_{it}\in\mathbb{R}^{2} the pixel position of track i in frame t. We define the percentile distance of two tracks as the \beta-th percentile of their per-frame distance over co-visible frames,
\begin{split}d_{ii^{\prime}}&=\operatorname{perc}_{\beta}\big\{\left\lVert\mathbf{y}^{d}_{it}-\mathbf{y}^{d}_{i^{\prime}t}\right\rVert\big\}_{t\in\mathcal{T}_{ii^{\prime}}},\\
d^{\mathrm{2D}}_{ii^{\prime}}&=\operatorname{perc}_{\beta}\big\{\left\lVert{\bm{\pi}}_{it}-{\bm{\pi}}_{i^{\prime}t}\right\rVert\big\}_{t\in\mathcal{T}_{ii^{\prime}}},\end{split}in the world frame and in the image, respectively. We write i\sim_{(\tau,\tau_{\mathrm{2D}})}i^{\prime} if
\begin{gathered}|\mathcal{T}_{ii^{\prime}}|\geq\max\!\big(n_{\min},\,\gamma\min(|\mathcal{T}_{i}|,|\mathcal{T}_{i^{\prime}}|)\big),\\
d_{ii^{\prime}}\leq\tau\quad\text{or}\quad d^{\mathrm{2D}}_{ii^{\prime}}\leq\tau_{\mathrm{2D}},\end{gathered}that is, the tracks overlap in time and stay close in 3D or 2D, and connect them in \mathcal{G}_{\mathrm{tr}}; the thresholds \tau and \tau_{\mathrm{2D}} are proportional to the median nearest-neighbor distance of the tracks in 3D and in the image. Each track keeps at most D_{\max} edges with the smallest d_{ii^{\prime}}.
EDG nodes and edges. The same criterion selects the EDG nodes. Tracks are ranked by their length |\mathcal{T}_{i}|, and the longest remaining track j becomes a node and suppresses every remaining track i that stays on the same part of the object during their common lifetime, i.e., with i\sim_{(\tau_{\mathrm{E}},\tau_{\mathrm{E,2D}})}j in (21), with thresholds and overlap fraction that differ from those of the track graph, until every track is either a node or suppressed by one. If this yields more than J_{\max} nodes, J_{\max} of them are kept by farthest-point sampling under the same percentile distance. Two nodes j,j^{\prime} are connected if they are within k hops on the track graph, which keeps independently moving parts apart. A node left with fewer than three edges is connected to its nearest nodes that are reachable on the track graph.
Skinning. Every other dynamic track i is attached to nodes \mathcal{N}(i) chosen among the nodes within two hops of it on the track graph; an isolated track with no node within two hops falls back to its nearest node in percentile distance. The skinning weights w_{ij} are the normalized inverse distances from the track to its nodes at the rest frame. The graph and weights are fixed before solving, so the certificate covers the EDG motion given this graph.
Segment solve and fusion. For a long sequence, we apply the single-window formulation of Section 4 to overlapping windows \{\mathcal{W}_{k}\}. Each window has its own reference frame t_{0}^{(k)}, rest positions, and locally estimated transformations (R^{(k)}_{j,t},\mathbf{p}^{(k)}_{j,t}), obtained by solving (DYN) to certified global optimality with Proposition 10. We fuse the estimates over overlapping windows by averaging the estimated world-space node positions for each frame. We recover globally consistent rotations by synchronizing the relative rotations estimated within each window; see Appendix 12.4.
Completion. Node-frame pairs that remain empty after fusion are filled by a local version of (DYN): over all nodes and frames, we minimize the same objective, with a robust 2D reprojection error as the tracking term, plus an initialization loss that keeps the solution close to the fused table, using a local solver initialized from it. This yields a complete trajectory (R_{j,t},\mathbf{p}_{j,t}) for every node and frame.
5.4 Photometric Stage
The recovered geometry initializes a dynamic Gaussian-splatting representation [31]. We use gsplat [80] as the photometric training engine and add an EDG wrapper on top of it, which warps every dynamic Gaussian to frame t by linear blend skinning with the EDG transformations. During training, the rest positions of the dynamic Gaussians are optimized together with the EDG transformations (R_{j,t},\mathbf{p}_{j,t}), initialized from the certified solve, under a photometric loss and depth supervision.
6 Experiments
We compare XM4D with Structure-from-Motion (SfM) and 4D reconstruction baselines on seven static and dynamic benchmarks in camera accuracy, runtime, and novel-view rendering, and extend the qualitative evaluation to additional videos (Fig. 4); Fig. 5 summarizes the quantitative comparison.
6.1 Setup
Datasets. We use seven benchmarks. On four of them—IMC [28], Replica [63, 89], TUM [64], and Sintel [12]—we evaluate camera accuracy only. IMC and Replica are static, while TUM and Sintel contain moving objects. On the remaining three—Syn4D, NVIDIA [81], and the DyCheck iPhone dataset [18]—we additionally run the EDG solve and the photometric reconstruction of Section 5. Syn4D is a synthetic benchmark that we assemble from Replica [63] and RoboCasa [47]. Each dataset is described in Appendix 11. The solver-configuration study in Table 1 additionally uses three problems from BAL [1].
Baselines. For camera estimation, we compare against the classical SfM pipeline COLMAP [61], the feed-forward geometry model VGGT [67], and MegaSAM [37], which adapts DROID-SLAM [66] for camera pose and depth estimation in casual dynamic videos. For dynamic reconstruction, we compare against the geometry-based methods MoSca [35] and Shape of Motion [68]. For novel-view rendering, we additionally compare against rendering-based methods that use time-varying fields (T-NeRF [18], NSFF [36], CTNeRF [45], DyBluRF [10], and RoDynRF [41]), deformable canonical radiance fields (Nerfies [51], HyperNeRF [52]), or moving Gaussians (Gaussian Marbles [62]), and against DynPoint [86] and PGDVS [83], which render from depth-warped points.
Hardware. All experiments run on a workstation with an AMD Ryzen Threadripper PRO 7985WX CPU (64 cores, 128 threads), 256 GB of RAM, and two 48 GB NVIDIA RTX 6000 Ada GPUs, under Ubuntu 22.04 with CUDA 12.8. Every method, including ours, runs on a single GPU.
Metrics. We report the absolute trajectory error in translation (ATE-T) and the relative pose error in translation and rotation (RPE-T, RPE-R). The estimated camera centers \hat{\mathbf{c}}_{t} are first aligned to the ground-truth centers \mathbf{c}_{t} by a similarity transformation (\sigma,R,\mathbf{t}) estimated robustly with TEASER++ [77]. The translation errors are normalized by d+1, where d=\frac{1}{T}\sum_{t}\left\lVert\mathbf{c}_{t}-\bar{\mathbf{c}}\right\rVert is the mean distance of the ground-truth centers from their centroid:
\begin{split}\text{ATE-T}&=\frac{1}{d+1}\,\frac{1}{T}\sum_{t}\left\lVert\sigma R\hat{\mathbf{c}}_{t}+\mathbf{t}-\mathbf{c}_{t}\right\rVert,\\
\text{RPE-T}&=\frac{1}{d+1}\,\frac{1}{|\mathcal{P}|}\sum_{(t,t^{\prime})\in\mathcal{P}}\left\lVert(\mathbf{c}_{t}-\mathbf{c}_{t^{\prime}})-\sigma R(\hat{\mathbf{c}}_{t}-\hat{\mathbf{c}}_{t^{\prime}})\right\rVert,\end{split}where \mathcal{P} contains all frame pairs, and RPE-R is the mean angle, in radians, of the relative rotation error over the same pairs. The constant 1, in ground-truth units, prevents division by a near-zero d when the camera barely moves. For novel-view synthesis on DyCheck, NVIDIA, and Syn4D we report mPSNR, mSSIM, and mLPIPS or their alternates. Following MoSca [35], we refine each test camera photometrically against its test image with the scene frozen.
6.2 Camera Accuracy
Table 2 summarizes camera accuracy across all seven benchmarks. XM4D is the most accurate method on Replica and TUM, and in translation on Sintel; on Syn4D, NVIDIA, and DyCheck it is close to the best method, MegaSAM; and on the unordered image collections of IMC, XM4D is outperformed only by the dedicated SfM pipeline COLMAP. Fig. 7 shows the trajectories on one scene per benchmark.
COLMAP is the most accurate on IMC, the unordered setting it is designed for, and remains competitive on Replica and TUM, but degrades sharply on Sintel, Syn4D, and NVIDIA, where its ATE-T is 4–20\times that of XM4D. The feed-forward VGGT is roughly three times less accurate in translation. MegaSAM, designed for dynamic videos, is the most accurate on Syn4D, NVIDIA, and DyCheck, with XM4D close behind, but is less accurate on Replica and TUM and in translation on Sintel and fails on IMC, whose images lack the temporal continuity its optical-flow front end relies on. MoSca is 3–10\times less accurate than XM4D in ATE-T on the dynamic benchmarks and also fails on IMC; we attribute the gap to the XM solver, which recovers the cameras by a certifiably optimal SDP on static tracks alone, so errors in the deformation model cannot propagate into the trajectory. Overall, XM4D ranks first on Replica and TUM and in translation on Sintel, second on Syn4D, NVIDIA, and in translation on IMC.
6.3 Runtime
Static stage. Table 3 reports the runtime of camera estimation and, where available, its split into preprocessing (depth, masks, and tracking) and the solver. End to end, XM4D is faster than MoSca on every benchmark and up to 9\times faster than COLMAP on the long sequences, while the feed-forward VGGT is the fastest overall, as expected for a single network pass. Against MegaSAM the totals are mixed: XM4D is faster on IMC, NVIDIA, and DyCheck, and slower on Replica, TUM, Sintel, and Syn4D.
The preprocessing relies on foundation models and will speed up as they improve, so we focus on the solver, where XM4D is the fastest on every benchmark but Sintel.
Dynamic stage. Table 5 reports the runtime of the full dynamic reconstruction against MoSca and Shape of Motion. XM4D is the fastest end to end and in optimization on all three benchmarks. Shape of Motion is the slowest, mainly because its dense point tracking takes about four hours per scene on DyCheck.
Sequence length. Table 3 (bottom) reports the runtime on Replica room0 versus the number of frames N. VGGT runs out of GPU memory at N=200, MoSca fails beyond N=500, and beyond N=800 COLMAP exceeds one hour and MegaSAM its 1024-frame buffer, whereas XM4D completes every length, reaching N=2000 in 55 minutes. VGGT’s limit is also why it runs on subsampled frames on DyCheck, whose sequences exceed 100 frames.
6.4 Novel-View Rendering
Table 4 and Fig. 7 evaluate novel-view synthesis on DyCheck, NVIDIA, and Syn4D. XM4D attains the best average score on every metric of all three datasets. This holds although most baselines are given the ground-truth camera poses (all except MoSca and RoDynRF, and Shape of Motion on Syn4D), and Gaussian Marbles on Syn4D additionally the ground-truth depth, whereas XM4D estimates all cameras. The margins are largest on Syn4D, where XM4D improves PSNR by more than 2 dB over the best baseline, and on DyCheck, where it has the best mSSIM and mLPIPS on all seven scenes and the best mPSNR on three. As Fig. 7 shows, the baselines lose mainly because inaccurate geometry misaligns their renderings with the test view and blurs the dynamic parts. Since the recovered dynamic motion is hard to compare directly across methods, we further evaluate the geometry on Syn4D, whose moving objects have ground-truth geometry, through the Chamfer distance of the dynamic object and the error of the rendered depth (Table 7); XM4D is the most accurate on every scene.
6.5 Qualitative Results
Fig. 4 shows XM4D on dynamic videos beyond the benchmarks: in-the-wild videos from DAVIS [54], Sintel [12], egocentric hand–object interaction videos from EgoDexter [46], a Boston Dynamics humanoid robot performing a flip [6], and a generated video of a walking lion from Google Flow. These videos span real, synthetic, and generated footage, third-person and egocentric viewpoints, and the motion of animals, people, hands, and a robot; XM4D handles all of them, demonstrating the robustness of the pipeline.
For videos of human body and hands, we build the EDG from keypoints instead of subsampling the track graph. For hands, WiLoR [56] predicts a MANO [59] hand in every frame; we keep only its 21 3D joints and connect them by the kinematic skeleton of the hand. For bodies, RTMPose [26] detects the 17 COCO [39] keypoints in 2D within the bounding box of the person’s mask.
Because the EDG represents motion with explicit \mathrm{SE}(3) transformations, XM4D recovers the part-level rigid motion of objects without an extra motion-estimation step. Such part-level articulation is what simulation-ready digital twins of articulated objects require, especially in robotics [27, 87, 34, 58, 22]. Fig. 8 shows a refrigerator whose four doors are opened in turn: the reconstruction yields the opening angle and displacement of every door over time and its hinge axis.
7 Conclusions
We presented XM4D, a 4D reconstruction framework that recovers camera motion and non-rigid deformation through certifiably globally optimal geometric optimization. Separating the two stages turns both into QCQPs over (scaled) rotations: the static stage estimates camera poses, depth scales, and static landmarks, and the dynamic stage estimates the motion of an embedded deformation graph. Both QCQPs are relaxed to SDPs and solved by a GPU solver that returns a certificate of global optimality. Across seven benchmarks, XM4D estimates accurate cameras on both dynamic videos and unordered photo collections, scales to thousands of frames, and initializes dynamic Gaussian splatting for state-of-the-art novel-view rendering.
Limitations. The certificate covers the optimization, not its inputs: XM4D relies on the predicted monocular depth and point tracks, and errors that survive the filters of Appendix 12.2 bias the certified solution. The solver stores the data matrices densely, so its memory grows quadratically with the number of frames; exploiting their sparsity [50] is a natural next step. Finally, the EDG structure and skinning weights are fixed before the solve; estimating the graph jointly with its motion is future work.
Acknowledgements
This work was partially funded by Office of Naval Research grant N00014-25-1-2322.
References
\beginappendix
8 Additional Tables
Table 6 reports the suboptimality gaps per dataset. Table 7 compares the reconstructed geometry on Syn4D with MoSca [35], Shape of Motion [68], and Depth Anything 3 [38]. For the Chamfer distance, the dynamic object at frame t is represented by the centers of the dynamic Gaussians at t (for XM4D, warped by the EDG); 1000 points are drawn uniformly at random from them and from the ground-truth object point cloud, and the distance is the sum of the two mean squared nearest-neighbor distances, averaged over the 100 frames.
- Sintel
- 23
- 9.9\!\times\!10^{-12}
- 23/23
- –
- –
- –
- TUM
- 6
- 3.6\!\times\!10^{-11}
- 6/6
- –
- –
- –
- Replica
- 8
- 9.7\!\times\!10^{-10}
- 8/8
- –
- –
- –
- BAL
- 3
- 3.9\!\times\!10^{-5}
- 3/3
- –
- –
- –
- IMC
- 6
- 5.5\!\times\!10^{-12}
- 6/6
- –
- –
- –
- DyCheck
- 7
- 10^{-12}
- 7/7
- 7
- 10^{-12}
- 700/700
- NVIDIA
- 7
- 10^{-12}
- 7/7
- 7
- 3.5\!\times\!10^{-11}
- 511/511
- Syn4D
- 8
- 10^{-12}
- 8/8
- 8
- 10^{-12}
- 800/800
- Chamfer
- Ours
- 6.1
- 5.4
- 6.4
- 4.6
- 11.2
- 9.2
- 7.6
- 8.6
- 7.4
- MoSca
- 27.3
- 29.1
- 75.2
- 45.6
- 112.0
- 125.1
- 50.2
- 60.4
- 65.6
- SoM
- 34.4
- 214.7
- 90.8
- 172.4
- 38.3
- 33.3
- 69.3
- 2429.9
- 385.4
- Train depth
- Ours
- 0.012
- 0.012
- 0.026
- 0.015
- 0.077
- 0.029
- 0.054
- 0.045
- 0.034
- MoSca
- 0.031
- 0.029
- 0.035
- 0.029
- 0.123
- 0.049
- 0.081
- 0.069
- 0.056
- SoM
- 0.102
- 0.096
- 0.104
- 0.096
- 0.193
- 0.082
- 0.158
- 0.139
- 0.121
- DA
- 0.204
- 0.208
- 0.260
- 0.240
- 0.469
- 0.237
- 0.315
- 0.220
- 0.269
- Novel depth
- Ours
- 0.050
- 0.094
- 0.094
- 0.085
- 0.101
- 0.038
- 0.055
- 0.053
- 0.071
- MoSca
- 0.296
- 0.329
- 0.099
- 0.292
- 0.171
- 0.182
- 0.121
- 0.087
- 0.197
- SoM
- 0.321
- 0.322
- 0.273
- 0.334
- 0.253
- 0.143
- 0.188
- 0.210
- 0.255
- DA
- 0.210
- 0.286
- 0.368
- 0.296
- 0.458
- 0.255
- 0.357
- 0.262
- 0.312
9 Proofs
9.1 Proof of Proposition 1
Proof.
Let \mathbf{e}_{t}\in\mathbb{R}^{T} and \bar{\mathbf{e}}_{i}\in\mathbb{R}^{N_{s}} denote standard basis vectors. All vectors are columns; collect the unknown translations and landmarks as the columns of the matrix
Y=\begin{bmatrix}\mathbf{c}_{1}&\cdots&\mathbf{c}_{T}&\mathbf{x}^{s}_{1}&\cdots&\mathbf{x}^{s}_{N_{s}}\end{bmatrix}\in\mathbb{R}^{3\times(T+N_{s})}.For each observation (i,t)\in\mathcal{E}_{s} define
\mathbf{a}_{it}=\mathbf{e}_{t}\otimes\tilde{\mathbf{u}}^{s}_{it}\in\mathbb{R}^{3T},\hskip 18.49988pt\mathbf{b}_{it}=\begin{bmatrix}\mathbf{e}_{t}\\
-\bar{\mathbf{e}}_{i}\end{bmatrix}\in\mathbb{R}^{T+N_{s}},so that, with U=[s_{1}C_{1}\;\cdots\;s_{T}C_{T}], each residual of Eq. (SBA) reads C_{t}(s_{t}\tilde{\mathbf{u}}^{s}_{it})+\mathbf{c}_{t}-\mathbf{x}^{s}_{i}=U\mathbf{a}_{it}+Y\mathbf{b}_{it}. The objective of Eq. (SBA) is therefore the quadratic form
f(U,Y)=\operatorname{tr}(Q_{1}U^{\top}U)+2\operatorname{tr}(V^{\top}U^{\top}Y)+\operatorname{tr}(L_{\mathcal{G}}Y^{\top}Y),with
\displaystyle Q_{1} \\ \displaystyle=\textstyle\sum_{(i,t)\in\mathcal{E}_{s}}\omega_{it}\,\mathbf{a}_{it}\mathbf{a}_{it}^{\top}\in\mathbb{S}^{3T}, \\ \displaystyle V \\ \displaystyle=\textstyle\sum_{(i,t)\in\mathcal{E}_{s}}\omega_{it}\,\mathbf{a}_{it}\mathbf{b}_{it}^{\top}\in\mathbb{R}^{3T\times(T+N_{s})}, \\ \displaystyle L_{\mathcal{G}} \\ \displaystyle=\textstyle\sum_{(i,t)\in\mathcal{E}_{s}}\omega_{it}\,\mathbf{b}_{it}\mathbf{b}_{it}^{\top}\in\mathbb{S}^{T+N_{s}}.By construction, L_{\mathcal{G}} is the weighted Laplacian of the bipartite view graph \mathcal{G} on the T+N_{s} vertices \{\text{frames}\}\cup\{\text{landmarks}\} with edge weights \omega_{it} (cf. [20]): \mathbf{b}_{it}^{\top}\mathbf{1}=0 implies L_{\mathcal{G}}\mathbf{1}=\mathbf{0}, and when \mathcal{G} is connected the nullspace of L_{\mathcal{G}} is exactly \operatorname{span}(\mathbf{1}). Likewise, V\mathbf{1}=\sum\omega_{it}\mathbf{a}_{it}(\mathbf{b}_{it}^{\top}\mathbf{1})=\mathbf{0}.
For fixed U, f is a convex quadratic in Y, bounded below by zero, so its minimizers are the solutions of the stationarity condition YL_{\mathcal{G}}=-UV. This linear system is consistent: V\mathbf{1}=\mathbf{0} places the rows of -UV in the range of L_{\mathcal{G}}. Its minimum-norm solution is
Y^{\star}=-UVL_{\mathcal{G}}^{+},and every other solution differs by \mathbf{v}\mathbf{1}^{\top}. Substituting (28) into (24) and using L_{\mathcal{G}}^{+}L_{\mathcal{G}}L_{\mathcal{G}}^{+}=L_{\mathcal{G}}^{+} gives
\min_{Y}f(U,Y)=\operatorname{tr}\!\left(QU^{\top}U\right),\hskip 18.49988ptQ=Q_{1}-VL_{\mathcal{G}}^{+}V^{\top},the generalized Schur complement of L_{\mathcal{G}} in \sum\omega_{it}[\mathbf{a}_{it};\mathbf{b}_{it}][\mathbf{a}_{it};\mathbf{b}_{it}]^{\top}\succeq 0; since the columns of V^{\top} lie in \operatorname{range}(L_{\mathcal{G}}), Q\succeq 0. Minimizing both sides of (29) over \{s_{t}>0,\;C_{t}\in\mathrm{SO}(3)\} proves the claimed equivalence, and (28) recovers the optimal translations and landmarks from U^{\star}. ∎
9.2 Proof of Proposition 2
Writing a generic 3\times 3 matrix as \bar{C}=[\mathbf{a}_{1},\mathbf{a}_{2},\mathbf{a}_{3}], membership in the set (3) of scaled orthogonal matrices is described by the quadratic equalities
\displaystyle\mathbf{a}_{1}^{\top}\mathbf{a}_{1} \\ \displaystyle=\mathbf{a}_{2}^{\top}\mathbf{a}_{2}=\mathbf{a}_{3}^{\top}\mathbf{a}_{3}, \\ \displaystyle\mathbf{a}_{1}^{\top}\mathbf{a}_{2} \\ \displaystyle=\mathbf{a}_{2}^{\top}\mathbf{a}_{3}=\mathbf{a}_{3}^{\top}\mathbf{a}_{1}=0,which, together with the quadratic sphere constraint \left\lVert U\right\rVert_{F}^{2}=3T, are the constraints of (QCQP).
Proof.
We first characterize the feasible set. If \bar{C}=[\mathbf{a}_{1},\mathbf{a}_{2},\mathbf{a}_{3}] satisfies the quadratic equalities (30)–(31), then \bar{C}^{\top}\bar{C}=\sigma^{2}I_{3} with \sigma^{2}=\mathbf{a}_{1}^{\top}\mathbf{a}_{1}\geq 0. If \sigma>0, then \bar{C}/\sigma\in\mathrm{O}(3) and \bar{C}=\sigma R; if \sigma=0, then \bar{C}=0. The quadratic constraints therefore describe exactly the set (3), including the zero matrix, and the feasible set of (QCQP) is \{U:\bar{C}_{t}\in\mathrm{sO}(3),\;\left\lVert U\right\rVert_{F}^{2}=3T\}. This set contains the feasible set of (SRO) under the sphere constraint: for s_{t}>0 and C_{t}\in\mathrm{SO}(3), each block \bar{C}_{t}=s_{t}C_{t} lies in \mathrm{sO}(3), and \left\lVert U\right\rVert_{F}^{2}=\sum_{t}3s_{t}^{2}=3T holds if and only if \sum_{t}s_{t}^{2}=T. The QCQP thus relaxes (SRO) in exactly two ways: reflections are admitted (\mathrm{SO}(3) is relaxed to \mathrm{O}(3)), and individual blocks may vanish. Since the objectives coincide on the common feasible set,
\rho^{\star}_{\mathrm{QCQP}}=\operatorname{tr}\!\left(Q(U^{\star})^{\top}U^{\star}\right)\leq\rho^{\star}_{\mathrm{SRO}}.Now let U^{\star} be a global optimizer of (QCQP) with \det\bar{C}_{t}^{\star}>0 for all t. The determinant condition rules out both relaxations at once: every block is nonzero, so \bar{C}_{t}^{\star}=s_{t}^{\star}C_{t}^{\star} with s_{t}^{\star}=\left\lVert\bar{C}_{t}^{\star}\right\rVert_{F}/\sqrt{3}>0 and C_{t}^{\star}\in\mathrm{O}(3), and
\det C_{t}^{\star}=\frac{\det\bar{C}_{t}^{\star}}{(s_{t}^{\star})^{3}}>0,i.e., C_{t}^{\star}\in\mathrm{SO}(3). Moreover, \sum_{t}(s_{t}^{\star})^{2}=\left\lVert U^{\star}\right\rVert_{F}^{2}/3=T, so \{s_{t}^{\star},C_{t}^{\star}\}_{t=1}^{T} is feasible for (SRO) under the sphere constraint, which gives \operatorname{tr}(Q(U^{\star})^{\top}U^{\star})\geq\rho^{\star}_{\mathrm{SRO}}. Combined with (32), equality holds, and U^{\star} is a global minimizer of (SRO). Finally, since (GU)^{\top}(GU)=U^{\top}U, GU^{\star} is equally optimal for every G\in\mathrm{O}(3), and by (28) the recovered translations and landmarks rotate with it; the normalization U^{\star}\leftarrow(C_{1}^{\star})^{\top}U^{\star} selects the representative that aligns the first camera with the identity. ∎
9.3 Proof of Proposition 3
Proof.
Relaxation. Let U=[\bar{C}_{1},\dots,\bar{C}_{T}] be feasible for (QCQP) and set X=U^{\top}U. Then each diagonal block is X_{tt}=\bar{C}_{t}^{\top}\bar{C}_{t}=\alpha_{t}I_{3} by (3); and \operatorname{tr}(X)=\left\lVert U\right\rVert_{F}^{2}=3T. Hence X is feasible for (SDP) with the same objective value \langle Q,X\rangle=\operatorname{tr}(QU^{\top}U), and minimizing over U gives \rho^{\star}_{\mathrm{SDP}}\leq\rho^{\star}_{\mathrm{QCQP}}.
Tightness. Let X^{\star} be a global minimizer of (SDP) with \operatorname{rank}(X^{\star})=3, and write its eigendecomposition as X^{\star}=\sum_{k=1}^{3}\lambda_{k}\mathbf{v}_{k}\mathbf{v}_{k}^{\top} with \lambda_{k}>0. The matrix U^{\star}\in\mathbb{R}^{3\times 3T} with rows \sqrt{\lambda_{k}}\,\mathbf{v}_{k}^{\top} satisfies X^{\star}=(U^{\star})^{\top}U^{\star}. Partitioning U^{\star}=[\bar{C}_{1}^{\star},\dots,\bar{C}_{T}^{\star}] into 3\times 3 blocks, the block constraints give (\bar{C}_{t}^{\star})^{\top}\bar{C}_{t}^{\star}=X^{\star}_{tt}=\alpha_{t}I_{3}, so \bar{C}_{t}^{\star}\in\mathrm{sO}(3) by (3), and the trace constraint gives \left\lVert U^{\star}\right\rVert_{F}^{2}=\operatorname{tr}(X^{\star})=3T. Thus U^{\star} is feasible for (QCQP), and
\rho^{\star}_{\mathrm{QCQP}}\leq\operatorname{tr}\!\left(Q(U^{\star})^{\top}U^{\star}\right)=\langle Q,X^{\star}\rangle=\rho^{\star}_{\mathrm{SDP}}\leq\rho^{\star}_{\mathrm{QCQP}},so equality holds and U^{\star} is a global optimizer of (QCQP).
∎
9.4 Proof of Proposition 4
Proof.
Let U be feasible for (BM). Each block satisfies U_{t}^{\top}U_{t}=\alpha_{t}I_{3} with \alpha_{t}\geq 0; set s_{t}=\sqrt{\alpha_{t}}. If s_{t}>0, then Y_{t}=U_{t}/s_{t} satisfies Y_{t}^{\top}Y_{t}=I_{3}, i.e., Y_{t}\in\mathrm{St}(r,3); if s_{t}=0, then U_{t}=0 and any Y_{t}\in\mathrm{St}(r,3) gives U_{t}=s_{t}Y_{t}. The trace constraint \sum_{t}\alpha_{t}=T reads \left\lVert\mathbf{s}\right\rVert_{2}^{2}=T, so (\mathbf{s},Y_{1},\dots,Y_{T})\in\mathcal{M}. Conversely, every point of \mathcal{M} gives blocks U_{t}=s_{t}Y_{t} with U_{t}^{\top}U_{t}=s_{t}^{2}I_{3} and \sum_{t}s_{t}^{2}=T, which is feasible for (BM) with \alpha_{t}=s_{t}^{2}. The map (\mathbf{s},Y_{1},\dots,Y_{T})\mapsto U is therefore onto the feasible set of (BM), and the two problems share the objective \operatorname{tr}(QU^{\top}U), so they are equivalent. ∎
9.5 Proof of Theorem 5
Proof.
We first make the constraint matrices \{A_{i}\}_{i=1}^{m} of (10) explicit. For each frame t, the block constraint X_{tt}=\alpha_{t}I_{3} for some \alpha_{t} is equivalent to the five homogeneous equations \langle A_{5(t-1)+\ell},X\rangle=0, \ell=1,\dots,5, where A_{5(t-1)+\ell}\in\mathbb{S}^{3T} is zero except for its t-th diagonal 3\times 3 block, which equals
\begin{gathered}B^{1}=\left[\begin{smallmatrix}1&0&0\\
0&-1&0\\
0&0&0\end{smallmatrix}\right],\;B^{2}=\left[\begin{smallmatrix}0&0&0\\
0&1&0\\
0&0&-1\end{smallmatrix}\right],\;B^{3}=\left[\begin{smallmatrix}0&1&0\\
1&0&0\\
0&0&0\end{smallmatrix}\right],\\
B^{4}=\left[\begin{smallmatrix}0&0&1\\
0&0&0\\
1&0&0\end{smallmatrix}\right],\;B^{5}=\left[\begin{smallmatrix}0&0&0\\
0&0&1\\
0&1&0\end{smallmatrix}\right].\end{gathered}The \{B^{\ell}\}_{\ell=1}^{5} form a basis of the traceless symmetric 3\times 3 matrices. The trace constraint \operatorname{tr}(X)=3T of (SDP) corresponds to A_{m}=I_{3T} with b_{m}=3T.
LICQ. The gradient of the i-th constraint of the BM problem at U is 2A_{i}U^{\top}. Suppose \sum_{i=1}^{m}\gamma_{i}A_{i}U^{\top}=0 for some coefficients \gamma\in\mathbb{R}^{m}, evaluated at U=U_{r}^{\star}. The matrix A_{5(t-1)+\ell}U^{\top} is supported on rows 3t-2,\dots,3t only, while A_{m}U^{\top}=U^{\top} contributes U_{t}^{\top} to those same rows; collecting the rows of block t therefore gives
\left(\sum_{\ell=1}^{5}\gamma_{t\ell}B^{\ell}+\gamma_{m}I_{3}\right)U_{t}^{\top}=0,\hskip 18.49988ptt=1,\dots,T,where \gamma_{t\ell}=\gamma_{5(t-1)+\ell}. Since \alpha_{t}>0, the block U_{t} has full column rank; multiplying (36) on the right by U_{t} and using U_{t}^{\top}U_{t}=\alpha_{t}I_{3} yields \sum_{\ell}\gamma_{t\ell}B^{\ell}+\gamma_{m}I_{3}=0. Taking the trace gives 3\gamma_{m}=0 because every B^{\ell} is traceless, so \gamma_{m}=0; linear independence of \{B^{\ell}\} then forces \gamma_{t\ell}=0 for all t,\ell. Hence the constraint gradients \{2A_{i}U^{\top}\}_{i=1}^{m} are linearly independent, and LICQ holds at U_{r}^{\star}.
First-order condition. By LICQ, there exists a unique Lagrange multiplier y_{r}\in\mathbb{R}^{m} at which the Lagrangian of (BM) is stationary:
Q(U_{r}^{\star})^{\top}-\sum_{i=1}^{m}(y_{r})_{i}A_{i}(U_{r}^{\star})^{\top}=Z(y_{r})(U_{r}^{\star})^{\top}=0,which is exactly (12).
Global optimality. Suppose in addition Z(y_{r})\succeq 0. Then y_{r} is feasible for the dual (11), and X^{\star}=(U_{r}^{\star})^{\top}U_{r}^{\star} is feasible for the primal (10). Their objective values coincide:
\begin{split}\operatorname{tr}(QX^{\star})-\sum_{i=1}^{m}b_{i}(y_{r})_{i}&=\langle Z(y_{r}),X^{\star}\rangle\\
&=\operatorname{tr}\!\left(Z(y_{r})(U_{r}^{\star})^{\top}U_{r}^{\star}\right)=0,\end{split}using primal feasibility in the first equality and (12) in the last. The duality gap is zero, so X^{\star} and y_{r} are optimal for the primal–dual pair, and U_{r}^{\star} attains \rho^{\star}_{\mathrm{SDP}}\leq\rho^{\star}_{\mathrm{BM},r}, hence it is a global optimizer of (BM) [11, 75]. ∎
9.6 Proof of Theorem 6
Proof.
See [11] or [75]. ∎
9.7 Proof of Theorem 7
Proof.
In the worst case r=3T, every local optimizer of (BM) corresponds to a globally optimal solution of the SDP [29, Corollary 8]: if the local optimizer is rank-deficient, global optimality follows from [11, Proposition 4]; if it is full-rank, then (12) forces Z(y_{r})=0, which is positive semidefinite and again certifies global optimality. ∎
9.8 Proof of Proposition 8
Proof.
Let \Omega=\{(j,t):j=1,\dots,J,\;t\neq t_{0}\} be the free node-frame pairs of (DYN), n=|\Omega|=J(T-1), and fix an ordering of \Omega, the one used in U. Let \mathbf{e}_{jt}\in\mathbb{R}^{n} denote the standard basis vector of the pair (j,t)\in\Omega, set \mathbf{e}_{jt_{0}}=\mathbf{0}, and let \delta_{tt_{0}} be the Kronecker delta. Collect the unknown node translations as the columns of
Y=\begin{bmatrix}\mathbf{p}_{j,t}\end{bmatrix}_{(j,t)\in\Omega}\in\mathbb{R}^{3\times n},in the same order as U. Then, for every node j, frame t, and vector \mathbf{v}\in\mathbb{R}^{3}, the rest-frame convention (16) gives
R_{j,t}\mathbf{v}=U(\mathbf{e}_{jt}\otimes\mathbf{v})+\delta_{tt_{0}}\mathbf{v},\hskip 18.49988pt\mathbf{p}_{j,t}=Y\mathbf{e}_{jt},so the fixed rest-frame blocks contribute constants only.
Residuals. By (40), every residual \ell of (DYN) has the form
\mathbf{r}_{\ell}=U\mathbf{a}_{\ell}+Y\mathbf{b}_{\ell}+\mathbf{c}_{\ell},\hskip 18.49988pt\mathbf{a}_{\ell}\in\mathbb{R}^{3n},\;\mathbf{b}_{\ell}\in\mathbb{R}^{n},\;\mathbf{c}_{\ell}\in\mathbb{R}^{3},with weight \lambda_{\ell} equal to the coefficient of its term in (DYN). Using \sum_{j\in\mathcal{N}(i)}w_{ij}=1, the three terms give the following.
- Tracking, one residual per
(i,t)\in\mathcal{E}_{d}with weight\lambda_{\mathrm{track}}:\begin{split}\mathbf{a}&=\textstyle\sum_{j\in\mathcal{N}(i)}w_{ij}\,\mathbf{e}_{jt}\otimes(\mathbf{x}^{d}_{i}-\mathbf{g}_{j}),\\ \mathbf{b}&=\textstyle\sum_{j\in\mathcal{N}(i)}w_{ij}\,\mathbf{e}_{jt},\\ \mathbf{c}&=\bar{\mathbf{g}}_{i}+\delta_{tt_{0}}(\mathbf{x}^{d}_{i}-\bar{\mathbf{g}}_{i})-\mathbf{y}^{d}_{it},\hskip 9.24994pt\bar{\mathbf{g}}_{i}=\textstyle\sum_{j\in\mathcal{N}(i)}w_{ij}\,\mathbf{g}_{j}.\end{split}(42) - ARAP, one residual per edge
(j,k)\in\mathcal{E}_{\mathrm{EDG}}and framet\neq t_{0}with weight\lambda_{\mathrm{ARAP}}(att=t_{0}the residual vanishes identically):\mathbf{a}=\mathbf{e}_{jt}\otimes(\mathbf{g}_{k}-\mathbf{g}_{j}),\hskip 18.49988pt\mathbf{b}=\mathbf{e}_{jt}-\mathbf{e}_{kt},\hskip 18.49988pt\mathbf{c}=\mathbf{g}_{j}-\mathbf{g}_{k}.(43) - Temporal smoothness, for every node
jandt=1,\dots,T-1with weight\lambda_{\mathrm{temp}}: writing\left\lVert R_{j,t}-R_{j,t+1}\right\rVert_{F}^{2}=\sum_{m=1}^{3}\left\lVert(R_{j,t}-R_{j,t+1}){\bm{\epsilon}}_{m}\right\rVert^{2}with{\bm{\epsilon}}_{m}the standard basis of\mathbb{R}^{3}, three rotation residuals (m=1,2,3) and one translation residual,\begin{split}&\mathbf{a}=(\mathbf{e}_{jt}-\mathbf{e}_{j,t+1})\otimes{\bm{\epsilon}}_{m},\;\;\mathbf{b}=\mathbf{0},\\ &\mathbf{c}=(\delta_{tt_{0}}-\delta_{t+1,t_{0}}){\bm{\epsilon}}_{m},\\ &\mathbf{a}=\mathbf{0},\;\;\mathbf{b}=\mathbf{e}_{jt}-\mathbf{e}_{j,t+1},\;\;\mathbf{c}=\mathbf{0},\end{split}(44)
The node term of the implementation (Appendix 12.3) has the same form, with \mathbf{a}=\mathbf{0}, \mathbf{b}=\mathbf{e}_{jt}, and \mathbf{c}=\mathbf{g}_{j}-\mathbf{y}^{d}_{jt}, so the reduction below applies unchanged when it is included.
Quadratic form. Summing \lambda_{\ell}\left\lVert\mathbf{r}_{\ell}\right\rVert^{2} over all residuals, the objective of (DYN) is
\begin{split}f(U,Y)={}&\operatorname{tr}(Q_{1}U^{\top}U)+2\operatorname{tr}(W^{\top}U^{\top}Y)+\operatorname{tr}(LY^{\top}Y)\\
&+2\langle P_{1},U\rangle+2\langle P_{Y},Y\rangle+c_{1},\end{split}with
\displaystyle Q_{1} \\ \displaystyle=\textstyle\sum_{\ell}\lambda_{\ell}\,\mathbf{a}_{\ell}\mathbf{a}_{\ell}^{\top}\in\mathbb{S}^{3n}, \\ \displaystyle W \\ \displaystyle=\textstyle\sum_{\ell}\lambda_{\ell}\,\mathbf{a}_{\ell}\mathbf{b}_{\ell}^{\top}\in\mathbb{R}^{3n\times n}, \\ \displaystyle L \\ \displaystyle=\textstyle\sum_{\ell}\lambda_{\ell}\,\mathbf{b}_{\ell}\mathbf{b}_{\ell}^{\top}\in\mathbb{S}^{n}, \\ \displaystyle P_{1} \\ \displaystyle=\textstyle\sum_{\ell}\lambda_{\ell}\,\mathbf{c}_{\ell}\mathbf{a}_{\ell}^{\top}\in\mathbb{R}^{3\times 3n}, \\ \displaystyle P_{Y} \\ \displaystyle=\textstyle\sum_{\ell}\lambda_{\ell}\,\mathbf{c}_{\ell}\mathbf{b}_{\ell}^{\top}\in\mathbb{R}^{3\times n}, \\ \displaystyle c_{1} \\ \displaystyle=\textstyle\sum_{\ell}\lambda_{\ell}\,\left\lVert\mathbf{c}_{\ell}\right\rVert^{2}.Elimination. For fixed U, f is a convex quadratic in Y, bounded below by zero, so its minimizers solve the stationarity condition YL=-(UW+P_{Y}). This system is consistent: the rows of UW+P_{Y}=\sum_{\ell}\lambda_{\ell}(U\mathbf{a}_{\ell}+\mathbf{c}_{\ell})\mathbf{b}_{\ell}^{\top} lie in \operatorname{span}\{\mathbf{b}_{\ell}\}=\operatorname{range}(L). Its minimum-norm solution is
Y^{\star}=-(UW+P_{Y})L^{+},which is unique when L\succ 0, e.g., whenever \lambda_{\mathrm{temp}}>0, since every node’s temporal chain then reaches the fixed rest frame. Substituting (49) into (45) and using L^{+}LL^{+}=L^{+} gives \min_{Y}f(U,Y)=\operatorname{tr}(QU^{\top}U)+2\langle P,U\rangle+c_{0} with
\begin{split}Q&=Q_{1}-WL^{+}W^{\top},\\
P&=P_{1}-P_{Y}L^{+}W^{\top},\\
c_{0}&=c_{1}-\operatorname{tr}\!\left(P_{Y}L^{+}P_{Y}^{\top}\right).\end{split}The matrix Q is the generalized Schur complement of L in \sum_{\ell}\lambda_{\ell}[\mathbf{a}_{\ell};\mathbf{b}_{\ell}][\mathbf{a}_{\ell};\mathbf{b}_{\ell}]^{\top}\succeq 0, and the columns of W^{\top} lie in \operatorname{range}(L), so Q\succeq 0. Minimizing both sides over \{R_{j,t}\in\mathrm{SO}(3)\}_{(j,t)\in\Omega} proves the claimed equivalence, and (49) recovers the optimal node translations from U^{\star}. ∎
9.9 Proof of Proposition 9
Proof.
Since V^{\top}V=I_{3},
U_{h}^{\top}U_{h}=\begin{bmatrix}I_{3}&V^{\top}U\\
U^{\top}V&U^{\top}U\end{bmatrix},and therefore
\begin{split}\operatorname{tr}\!\left(Q_{h}U_{h}^{\top}U_{h}\right)&=\tfrac{c_{0}}{3}\operatorname{tr}(I_{3})+\operatorname{tr}\!\left(PU^{\top}V\right)\\
&\hskip 9.24994pt+\operatorname{tr}\!\left(P^{\top}V^{\top}U\right)+\operatorname{tr}\!\left(QU^{\top}U\right)\\
&=\operatorname{tr}\!\left(QU^{\top}U\right)+2\langle P,V^{\top}U\rangle+c_{0}.\end{split}Let \widetilde{U}=V^{\top}U. Orthogonality of V gives U^{\top}U=\widetilde{U}^{\top}\widetilde{U}, so by (52)
\operatorname{tr}\!\left(Q_{h}U_{h}^{\top}U_{h}\right)=\operatorname{tr}\!\left(Q\widetilde{U}^{\top}\widetilde{U}\right)+2\langle P,\widetilde{U}\rangle+c_{0},which is the objective of (DYN-RO) evaluated at \widetilde{U}. The blocks of \widetilde{U} are V^{\top}R_{j,t}, which lie in \mathrm{SO}(3) whenever V and R_{j,t} do, so \widetilde{U} is feasible for (DYN-RO). Hence every feasible (V,U) of (DYN-H) attains the objective value of a feasible point of (DYN-RO), and \rho^{\star}_{\mathrm{DYN\text{-}H}}\geq\rho^{\star}_{\mathrm{DYN\text{-}RO}}. Conversely, every feasible \widetilde{U} of (DYN-RO) is attained by the feasible pair (V,U)=(I_{3},\widetilde{U}), so \rho^{\star}_{\mathrm{DYN\text{-}H}}\leq\rho^{\star}_{\mathrm{DYN\text{-}RO}}. The two optimal values therefore coincide, and the correspondence of minimizers follows from the equality of objective values along the map (V,U)\mapsto V^{\top}U. The same argument applies verbatim with \mathrm{O}(3) in place of \mathrm{SO}(3). ∎
9.10 Proof of Proposition 10
Proof.
Identical to Propositions 3–4 and Theorems 5–7, with every block constraint X_{ii}=\alpha_{i}I_{3} fixed to X_{ii}=I_{3} and the trace constraint removed: X=I remains strictly feasible, so strong duality holds, and each block contributes six linear equalities, so LICQ holds as in Appendix 9.5. ∎
10 Suboptimality Gap for the Sphere-Constrained SDP
Algorithm 1 is run with finite gradient tolerances, so the returned Z(y_{r}) may have a slightly negative minimum eigenvalue even when the solution is essentially optimal. Adapting the suboptimality analysis of XM [20] to the sphere-constrained relaxation (10), the following bound quantifies the resulting optimality gap.
Theorem 11 (Suboptimality Bound, adapted from [20]).
Let \hat{X} be any feasible point of (10) with objective value \hat{\rho}=\operatorname{tr}(Q\hat{X}), let \mathbf{b}=(b_{1},\dots,b_{m}) collect the right-hand sides of (10b), let Z(y) be the dual slack of (11b), and let y\in\mathbb{R}^{m} be arbitrary. Then
\hat{\rho}\;\geq\;\rho^{\star}_{\mathrm{SDP}}\;\geq\;\mathbf{b}^{\top}y+3T\,\lambda_{\min}\!\left(Z(y)\right).Proof.
The first inequality holds because \hat{X} is feasible. For the second, let X be any feasible point of (10). Using \langle A_{i},X\rangle=b_{i},
\operatorname{tr}(QX)=\langle Z(y),X\rangle+\sum_{i=1}^{m}y_{i}\langle A_{i},X\rangle=\langle Z(y),X\rangle+\mathbf{b}^{\top}y.Since X\succeq 0, we have \langle Z(y),X\rangle\geq\lambda_{\min}(Z(y))\operatorname{tr}(X), and the trace constraint fixes \operatorname{tr}(X)=3T; hence \operatorname{tr}(QX)\geq\mathbf{b}^{\top}y+3T\lambda_{\min}(Z(y)). Minimizing over all feasible X yields the claim. ∎
In the static stage we apply (54) with \hat{X}=\hat{U}^{\top}\hat{U}, the rounded solution of Appendix 10.1, and y=y_{r} from the certification step (12); the resulting relative gap \eta is defined in (15) (Section 3.4). The same argument applies to the dynamic relaxation (DYN-SDP), whose block constraints X_{ii}=I_{3} fix \operatorname{tr}(X)=3(n+1); there the bound reads \mathbf{b}^{\top}y+3(n+1)\lambda_{\min}(Z(y)).
Partial sphere constraint. The partial sphere of Section 5.2 fixes only \sum_{t\in\mathcal{S}}\operatorname{tr}(X_{tt}), so \operatorname{tr}(X) is no longer constant. Restricting the partial-sphere variant of (10) to \operatorname{tr}(X)\leq\tau, the same proof gives \rho^{\star}_{\tau}\geq\mathbf{b}^{\top}y+\tau\min\{0,\lambda_{\min}(Z(y))\}, and without the restriction when Z(y)\succeq 0. In our implementation we take \tau=2\operatorname{tr}(\hat{X}), which bounds the suboptimality of \hat{X} among feasible points whose trace does not exceed twice its own.
10.1 Rounding to the Scaled-Rotation Problem
Let U_{r}^{\star}\in\mathbb{R}^{r\times 3T} be the output of Algorithm 1. We round it to a feasible point \hat{U}=[s_{1}C_{1}\;\cdots\;s_{T}C_{T}] of (SRO) under the sphere constraint \left\lVert\hat{U}\right\rVert_{F}^{2}=3T in three steps.
- Rank-three factor. Let
(\Lambda_{3},V_{3})be the three largest eigenpairs of(U_{r}^{\star})^{\top}U_{r}^{\star}and set\tilde{U}=\Lambda_{3}^{1/2}V_{3}^{\top}\in\mathbb{R}^{3\times 3T}, with blocks\tilde{U}_{t}\in\mathbb{R}^{3\times 3}. - Projection. Each block is projected onto the scaled rotations: with the singular value decomposition
\tilde{U}_{t}=A_{t}\Sigma_{t}B_{t}^{\top}, we setC_{t}=A_{t}\operatorname{diag}\!\big(1,1,\det(A_{t}B_{t}^{\top})\big)B_{t}^{\top}\in\mathrm{SO}(3)ands_{t}=\langle\tilde{U}_{t},C_{t}\rangle/3. - Sphere. We rescale all scales by the common factor
\sqrt{T}/\left\lVert\mathbf{s}\right\rVert_{2}.
Under the partial sphere constraint, step 3 uses the factor \sqrt{|\mathcal{S}|}/\left\lVert\mathbf{s}_{\mathcal{S}}\right\rVert_{2}, where \mathbf{s}_{\mathcal{S}} collects the scales of the frames in \mathcal{S}. This enforces \sum_{t\in\mathcal{S}}s_{t}^{2}=|\mathcal{S}|.
11 Dataset Details
IMC. Six scenes of the IMC PhotoTourism benchmark [28]—gate_00, gate_01, rome_00, rome_04, temple_00, and temple_01—each an unordered collection of internet photographs of a static landmark, subsampled from the original collection to about 200 images per scene.
Replica. Eight synthetic indoor sequences rendered from the Replica dataset [63] as in NICE-SLAM [89]: office1, office2, room1, and room2, two sequences each. Each sequence is subsampled from the original 2000 frames to 100 frames. The scenes are static.
TUM. Six sequences from the TUM RGB-D benchmark [64], each subsampled from the original sequence to 100 frames. The sequences contain moving objects; only camera accuracy is evaluated.
BAL. Three problems of the Bundle Adjustment in the Large dataset [1], BAL-93, BAL-394, and BAL-1936, used only for the solver-configuration study.
Sintel. Twenty-three synthetic sequences of the MPI Sintel dataset [12] with up to 50 frames each, containing fast articulated motion and large camera motion.
NVIDIA. The seven scenes of the NVIDIA dynamic scene dataset [81]—Balloon1, Balloon2, Jumping, Playground, Skating, Truck, and Umbrella—each with 12 frames.
DyCheck. The seven scenes of the DyCheck iPhone dataset [18]—apple, block, paper-windmill, space-out, spin, teddy, and wheel—with 277 to 473 frames each, captured by a handheld iPhone with realistic camera motion and evaluated from two static test cameras.
Syn4D. A synthetic benchmark of eight 100-frame sequences with ground-truth cameras and geometry, in two sub-datasets, Bear and RoboCasa. The four Bear sequences (bear1–bear4) place a scanned Christmas-bear model from Artec 3D [4] in a Replica [63] background, each with a different motion of the bear. The four RoboCasa sequences (casa1–casa4) are rendered from RoboCasa [47] scenes.
12 Implementation Details
Throughout, \mathbf{u}_{it}\in\mathbb{R}^{2} is the pixel of track i at frame t.
12.1 Online Tracking and Query Management
Online query sampling. At every frame, candidate queries \mathbf{c} are drawn uniformly and accepted iff
\min_{\mathbf{p}\in\mathcal{R}_{t}}\left\lVert\mathbf{c}-\mathbf{p}\right\rVert>r,where \mathcal{R}_{t} contains all tracks visible at frame t and all queries added in recent frames.
Mask filter. On the static side, a track whose observations fall inside the mask more than 20\% of the time leaves the static set (meaning it lives on the moving object); otherwise only its masked observations are dropped. On the dynamic side the masks play the opposite role.
12.2 Observation Filtering
Large 2D drift (static tracks). A static track that suddenly disagrees with the motion of its neighbors should be excluded. For every transition t-1\to t and every track i visible at both frames, define the flow and its local reference,
\mathbf{f}_{it}=\mathbf{u}_{it}-\mathbf{u}_{i,t-1},\hskip 18.49988pt\bar{\mathbf{f}}_{it}=\operatorname*{median}_{k\in\mathcal{N}_{it}}\mathbf{f}_{kt},where \mathcal{N}_{it} collects the other tracks visible at both frames whose position lies in a w\times w window centered on \mathbf{u}_{it}, and the median is taken component-wise. A transition is bad iff the relative-motion error exceeds a threshold,
e_{it}=\left\lVert\mathbf{f}_{it}-\bar{\mathbf{f}}_{it}\right\rVert>\theta_{t}.The threshold adapts to the motion speed of the frame: with m_{t}=\operatorname*{median}_{k}\left\lVert\mathbf{f}_{kt}\right\rVert the median flow magnitude over all tracks visible at the transition,
\theta_{t}=\max\left(\theta_{\min},\;\kappa\,m_{t}\right).For every track with at least one bad transition, the visible timeline is split at the bad transitions and only the longest contiguous segment is kept.
Depth filters. Each surviving observation, static or dynamic, is assigned the depth d_{it} of its nearest depth-map pixel when lifted to 3D. Observations with excessive depth,
d_{it}>\tau_{z}\hskip 18.49988pt(\text{typically }\tau_{z}=100),are discarded, as monocular depth is unreliable far from the camera. Observations on depth discontinuities, detected by thresholding the second-order Sobel gradient magnitude of the depth map at the sample location, are discarded as well, since the nearest-pixel depth lookup is unreliable there.
XM2 residual trim. After the first solve of the static problem, the per-observation residual
r_{it}=\omega_{it}\left\lVert C_{t}(s_{t}\tilde{\mathbf{u}}^{s}_{it})+\mathbf{c}_{t}-\mathbf{x}^{s}_{i}\right\rVert^{2}is computed, observations above the P-th percentile of \{r_{it}\} are removed (P=95 in our experiments), and the system is re-solved as described in Section 5.2.
12.3 Node Observation Term in the Dynamic Solve
Each EDG node is itself a tracked point with lifted observations \mathbf{y}^{d}_{jt} at the frames (j,t)\in\mathcal{E}_{\mathrm{node}} where it is observed. In the implementation, the segment solves add to (DYN) a node term that asks every node to follow its own observations,
\lambda_{\mathrm{node}}\,\mathcal{L}_{\mathrm{node}},\hskip 18.49988pt\mathcal{L}_{\mathrm{node}}=\sum_{(j,t)\in\mathcal{E}_{\mathrm{node}}}\left\lVert\mathbf{g}_{j}+\mathbf{p}_{j,t}-\mathbf{y}^{d}_{jt}\right\rVert^{2}.Propositions 8 and 10 hold unchanged (Appendix 9.8).
12.4 Fusion of Segment Solutions
Positions are averaged over all sequences that solved node j at frame t, each solution weighted by 1/(1+\delta), where \delta is the number of frames from t to the nearest frame in which node j is directly observed within that sequence, so that extrapolated poses count less than observed ones. Rotations cannot be averaged directly, since each sequence fixes its own gauge at its rest frame, but their relative motion does not depend on that choice: every sequence s that contains frames t and t^{\prime} provides the relative rotation \bar{R}^{s}_{j,tt^{\prime}}=R^{s}_{j,t^{\prime}}(R^{s}_{j,t})^{\top}. For each node we recover all its rotations at once by rotation synchronization,
\min_{\{R_{j,t}\}\subset\mathrm{SO}(3)}\;\sum_{s}\sum_{t,t^{\prime}}\left\lVert R_{j,t^{\prime}}-\bar{R}^{s}_{j,tt^{\prime}}R_{j,t}\right\rVert_{F}^{2},which we solve with a local solver, fixing the gauge by setting R_{j,t}=I_{3} at the first frame in which node j is observed. Solving (63) with XM is left to future work.
12.5 Long-Range Dynamic Tracks
Raw dynamic tracks are short and, on repetitive motion, swap the identity of similar-looking parts, so we optionally assemble them into long-range tracks in three steps. (a) Skeleton. A sparse but more reliable long-range tracker, CoWTracker [32], is restarted periodically from a grid inside the object mask and run forward and backward, so that every skeleton track spans the whole video; tracks with large 2D jumps, inconsistent color, or low coverage are filtered out. (b) Attachment. Short online tracks [85] are attached to every skeleton point whose percentile distance to them is small. (c) Averaging. Each skeleton point is replaced by the per-frame mean of its attached tracks, giving one long track per skeleton point; unattached online tracks are kept as additional shorter tracks.
12.6 GPU Solver
XM4D implements Rtr-tCG and the Riemannian staircase of Algorithm 1 on the GPU in double precision. The data matrices Q and Q_{h} are obtained by eliminating the linearly entering translations, landmarks, and node translations, an instance of variable projection that stays efficient when sparsity is exploited [50]. We store Q densely, so each inner conjugate-gradient iteration costs one dense matrix product for the Euclidean Hessian action 2\dot{U}Q, computed with cuBLAS [49]. The tangent-space projections and the retractions, a batched Gram–Schmidt QR for the Stiefel blocks and a renormalization onto the sphere for the scales, are custom CUDA kernels; the dynamic problem (DYN-BM) reuses them without the scale variables.