Closed-Loop Forward Kinematics: Letting Each Joint Look Back at the Image

A pose network can be forced to output a skeleton that is physically possible. The standard way is to have it predict joint rotations and bone lengths rather than raw 3D coordinates, then pass those through forward kinematics (FK). FK is the fixed chain computation that places each joint by rotating its bone relative to the parent joint. Bones then never stretch and limbs never detach. The price is that errors compound: a small mistake at the shoulder moves the elbow, the wrist and the fingers. DDHPose measured this directly on Human3.6M. Regressing bone lengths and directions through an FK tree raised mean per-joint position error (MPJPE, the average 3D distance between predicted and true joints) from 39.65 mm to 40.48 mm compared with regressing coordinates. In contrast, a depth-based hand model with a differentiable FK layer reached 12.7 mm against 18.7 mm for an earlier hybrid. So the field holds two findings in tension: hard kinematic structure helps, and hard kinematic structure hurts.

We argue the compounding is not inherent to FK. It comes from running FK open loop, meaning every rotation is predicted from a single global feature before any joint has been placed. Consider instead predicting the rotations one joint at a time down the tree. Before choosing each child's rotation, the network projects the parent's already-computed position into the image and attends to image features along the bone it is about to place. The child's rotation can then partly cancel the parent's error, and every output skeleton is still valid by construction. The proposal is to build this closed-loop FK decoder, test whether it removes the error-versus-depth slope that open-loop FK shows, and determine whether that makes hard constraints free in accuracy.

Core Claim

In open-loop FK, the error at a joint at depth $k$ in the tree grows roughly as the sum of the angular errors along its chain times the bone lengths, because no step can observe the steps before it. In closed-loop FK, each step is conditioned on visual evidence at the parent's current estimate. A child can therefore land near the true joint even when its parent missed, up to the reach of one rotation. Error should then stay roughly constant with tree depth instead of growing.

The decoder computes, for each joint $c$ with parent $\pi(c)$:

$$\mathbf{p}_c = \mathbf{p}_{\pi(c)} + \ell_c \, \mathbf{G}_{\pi(c)} \mathbf{R}_c \mathbf{e}, \qquad \mathbf{R}_c = h\big(\mathrm{Attn}(\mathbf{q}_c, \{F_s\})\big).$$

Here $\mathbf{p}$ are 3D joint positions, $\ell_c$ is the bone length, $\mathbf{G}_{\pi(c)}$ is the parent's accumulated global rotation, $\mathbf{e}$ is a canonical bone direction, and $h$ maps an attended feature to a rotation that is clamped to anatomical limits. The query $\mathbf{q}_c$ encodes the joint's identity together with the projected 2D positions of the parent and of the provisional child. The query attends over backbone feature maps $F_s$ at several resolutions $s$.

The claim is falsifiable in three ways. We will plot MPJPE against tree depth. The closed-loop version should flatten the positive slope that open-loop FK shows under an identical backbone. It should also match or beat unconstrained coordinate regression on MPJPE while keeping zero bone-length violation.

Research Program

The four directions play unequal roles. Kinematic constraint violation is the problem, and the constraint is hard, not a loss penalty. Cross-attention is the mechanism for closing the loop. The two "modalities" are a stream of skeleton-state tokens (where the chain currently is) and the image feature pyramid. This is the gap between HANet, whose velocity and acceleration queries attend only to coordinate sequences inside a post-hoc refiner, and methods that never let a kinematic stream query pixels.

Multi-scale fusion decides where each query looks. Each joint learns softmax weights over pyramid levels, so a torso joint can rely on coarse context and a wrist on fine detail. This replaces the fixed concatenation of pixel-wise contour detection, whose fused layers raised boundary-detection ODS (its F-measure score on BSDS500) from .699 to .741, with depth weights that depend on the joint.

Channel and spatial attention supply the local evidence map. We borrow the sequential spatial-then-channel structure of the CSCA block, which aligns RGB with thermal or depth patches and then reweights channels. We change one thing. Our spatial map is not computed by pooling features. It is drawn geometrically as a Gaussian tube around the projected candidate bone segment. The channel gate is conditioned on joint identity, so a finger bone and a thigh can select different feature channels. This directly targets the stated weakness of CBAM-style modules, which assume spatial salience is the same in every channel. The tube also echoes Glimpse, which samples features along limb segments. Glimpse feeds those samples to a coordinate regressor with no FK. We use them to steer rotations inside a hard chain.

Bone lengths follow the lesson of the hand paper. There, 15 free bone scales drifted and 5 per-finger scales worked better, so we predict a small set of symmetric limb-group lengths once per image. The chain is traversed in a fixed order, which makes the decoder a deterministic analogue of Tree Cross Attention. That method routes queries through a learned k-d tree using a policy trained with REINFORCE. Our tree is the skeleton itself, so no routing policy is needed.

One training detail matters. If children are trained only on ground-truth parent positions (teacher forcing), they never learn to correct parent errors. We therefore feed predicted parents with a schedule and add noise to parent estimates during training.

We also state a limitation in advance. Projection into the image exposes errors in the image plane far better than errors in depth. We expect closed-loop gains to concentrate in the image-plane components of the error, and we will report those components separately from depth error.

Baselines

The naive reference is direct regression of root-relative joint coordinates. It uses the same backbone and the same multi-scale feature pyramid, with a joint-query decoder of identical width, trained with an MPJPE loss. It shows what accuracy is available with no constraint. Beating it on MPJPE is not required. Matching it within about 0.5 mm while cutting bone-length and joint-limit violations to zero would already settle the tension in DDHPose's favour or against it.

The strongest existing single-image method in the file that also reads image features around joints is Glimpse. It reports 39.3 mm MPJPE on Human3.6M. We will run it with its released protocol and retrain it on our backbone if its reported training setup differs, giving both methods the same 2D detections, training epochs and hyperparameter search budget. Beating it means lower MPJPE under the standard protocol, together with guaranteed validity, which Glimpse's soft canonical anchoring does not provide.

For context only, HYPERPOSE reports 36.0 mm and DDHPose reports 39.0 mm. Both use temporal input, so they are not direct single-frame competitors. A temporal extension of our decoder would be judged against them.

The decisive ablation is open-loop FK. It keeps the identical backbone, pyramid, bone-length head, angle limits and parameter count, but predicts all rotations in parallel from pooled joint queries that never see projected parent positions. This isolates closing the loop as the only change. A second ablation removes the geometric bone tube and lets the query attend freely, which tests whether the geometric spatial attention matters beyond the conditioning on the parent. A third fixes the pyramid weights to be uniform, which tests the per-joint scale selection.

For hands, the baseline is the 5Scales FK model, which reports 12.7 mm mean 3D joint error on HandSet. Its backbone is small, three convolutional layers and two fully connected layers, so we will also re-implement it on our backbone to separate backbone gains from decoder gains.

Why not just…?

Why not just add a bone-length consistency loss to coordinate regression? This is the most serious competitor for the validity half of the claim. A soft penalty can drive average bone-length deviation very low at almost no cost. What it cannot do is guarantee validity on hard, occluded frames, and the tail of that distribution is where "zombie" limbs appear. We will train this baseline with the penalty weight tuned on the same budget. We will report the 99th-percentile bone-length deviation and joint-limit violations, not just means. If the soft-loss model matches our MPJPE and its tail violations are negligible, the validity argument weakens. The error-versus-depth analysis of FK would still stand as a result.

Why not just regress coordinates freely and fit a skeleton afterwards with inverse kinematics? The hand paper's comparison with Zhou et al. (18.7 mm against 12.7 mm when pose and bone lengths are learned jointly) suggests that post-hoc fitting to a fixed skeleton costs accuracy. That evidence comes from a different backbone and domain, however. We will run the fit, using per-subject bone lengths estimated from the unconstrained output, on Human3.6M. Closed-loop FK must beat fit-after-regression on MPJPE. If it does not, end-to-end kinematic structure buys nothing over post-processing.

Why not just use a hybrid, predicting FK coordinates plus a free per-joint residual? DDHPose's better number came from exactly this kind of hybrid coordinate path. A residual absorbs compounding error but reintroduces bone stretching wherever it is non-zero. We will train the hybrid and report both its accuracy and its violation rates. If it wins on MPJPE, the question becomes whether closed-loop FK closes most of that gap with zero violations. The depth-slope plot shows how much of the hybrid's advantage the closed loop recovers without breaking constraints.

Why not just give open-loop FK a bigger backbone? Capacity cannot make a parallel predictor observe its own upstream mistakes. If compounding is structural, the depth slope should persist at larger scale. We will train both open-loop and closed-loop decoders at two backbone sizes. If the slope of the open-loop model vanishes with capacity alone, our explanation is wrong.

Proposed Experiments

The main study uses Human3.6M under the standard subject split and protocols, single-frame, with MPI-INF-3DHP and 3DPW for transfer. The file lists no reported numbers on 3DPW for the methods here, so all 3DPW results will be our own reruns. Metrics are MPJPE and scale-normalized MPJPE. We add three validity measures: per-frame bone-length deviation from the subject's true lengths (median and 99th percentile), the rate of joint angles outside biologically grounded limit tables of the kind used by DH-AUG, and error broken down by kinematic depth and by image-plane versus depth components.

The decisive check is the MPJPE-versus-depth curve for open-loop and closed-loop FK on the same backbone. We will also run it on the subset of Human3.6M frames with self-occlusion, where Glimpse reported its largest gains. Plain accuracy is secondary. If closed-loop FK flattens the slope and matches coordinate regression, the DDHPose penalty is explained and removed. If the slope stays, the compounding comes from something other than open-loop prediction, which is itself worth reporting.

The secondary study uses HandSet depth images. Hands have deeper chains and a smaller body, so compounding should be sharper and any flattening easier to see. A corruption test, perturbing 2D inputs as in Glimpse's noise-tolerance experiment, checks whether looking back at the image makes the chain more robust than open-loop FK when upstream detections are poor.