Loops cannot see most registration error: measuring the visibility ceiling of cycle consistency
1. Why measure this
Registration quality is hard to check without ground truth, so self-consistency is attractive. Clinical registration QA in radiotherapy is framed by AAPM TG-132 [Brock et al. 2017]. The MIRSIG position paper [Lowther et al. 2022] accepts testing consistency (independence from registration direction) and, where needed, transitivity (independence from the route through three or more images), and notes that passing a consistency tolerance does not by itself establish spatial accuracy. Cycle consistency is also built into recent registration methods [van Harten et al. 2024]. The caveat is widely stated; its size is rarely measured. This note measures it.
2. The identity
Take n images and independent pairwise registrations among them, forming a graph whose nodes are images and whose edges carry measured displacements yij of a material point. The truth is tij = pj − pi, a gradient on the graph. Write the error e = y − t. The Hodge decomposition splits any edge field orthogonally into an integrable (gradient) part and a cyclic part [Jiang et al. 2011]. Because t is purely integrable,
cyclic(y) = cyclic(e).
Every closure statistic built from the measured edges, from one triangle's transitivity residual to cycle residuals on a larger graph, is a function of cyclic(y), so it sees only cyclic(e). We report the invisible share, the fraction of error energy in the integrable part, pooled over landmarks. (This note measures displacements of tracked points; for nonlinear maps the argument applies to the sampled displacements.)
Independent-error baseline. For independent, isotropic edge errors on the complete graph Kn, the integrable subspace has dimension n − 1 per axis out of n(n − 1)/2 edges, so the expected invisible share is 2/n: 66.7% for three images, 33.3% for six, 20% for ten. Simulation reproduces these values (66.7%, 33.2%, 19.9%). A share far above 2/n means errors are organised per image (a node offset, as in Figure 1, middle) rather than per registration.
Annotation noise is invisible too. A landmark placed slightly wrong in one image is a node offset. We bound this with a pessimistic allowance: the published mean repeat-annotation distance d is read as the mean 3-D error of a single annotation, giving expected noise energy 2·3·(d/1.596)2 per edge (1.596 = 2√(2/π)), which is removed from the integrable part.
3. Data and registrars
DIR-Lab 4DCT [Castillo et al. 2009, 2010]: 10 patients, 0.97 to 1.16 mm in-plane, 2.5 mm slices; 75 landmarks per case on the six expiratory phases T00 to T50 (T10 to T40 coordinates are propagated); published per-case repeat-observer errors 0.70 to 1.13 mm. Obtained through DIR-Lab's access form. POPI [Vandemeulebroucke et al. 2007]: one patient, ten phases, 40 expert landmarks, 0.98 mm in-plane, 2 mm slices.
Whole-volume Demons. SimpleITK Diffeomorphic Demons, three-level pyramid (8, 4, 2 mm grids; 80, 60, 40 iterations; HU clipped to [−1000, 400]), fitted independently for all 15 phase pairs of each DIR-Lab case (150 fits; 150 with positive Jacobians throughout the interior). Query points follow the landmark: its T00 position is mapped to each phase with the T00-to-phase field, and each edge is read from its own field at that point. Parameters were fixed in advance, not tuned to these data. Mean edge error 1.99 mm.
Local translation window. Tapered FFT cross-correlation on a 32-voxel window at the T00 landmark, refined by spatial NCC; the same centre in every phase. Kept if the window fit in the volume and passed a fixed texture check: 477 of 750 DIR-Lab landmarks, 28 of 40 POPI landmarks (POPI also used a body-interior guard). Mean edge error on DIR-Lab 2.46 mm.
Every registration was independent, so no loop closes by construction. Only T00 landmarks were read during measurement; measurements were sealed (hashed) before targets were read for scoring, and analysis plans were hashed before each run.
4. Results
| Registrar, dataset | Landmarks | Invisible share | 95% interval | After noise allowance | Baseline |
|---|---|---|---|---|---|
| Demons, DIR-Lab | 750 | 93.1% | 90.3 to 96.2% | 91.2% (87.8 to 94.6%) | 33.3% |
| Demons, DIR-Lab, window's landmarks | 477 | 92.4% | 89.8 to 96.1% | 90.2% | 33.3% |
| Window (refined), DIR-Lab | 477 | 79.1% | 73.3 to 95.8% | 77.2% (71.5 to 94.7%) | 33.3% |
| Window (FFT only), DIR-Lab | 477 | 82.1% | 75.9 to 97.7% | 80.5% | 33.3% |
| Window (refined), POPI | 28 | 92.9% | 88.0 to 96.4% | not identifiable | 20.0% |
Intervals: 4000 bootstrap resamples of patients (DIR-Lab) or landmarks (POPI). Shares pool error energy, so landmarks with larger errors weigh more.
DIR-Lab. Both registrars sit far above the baseline in every case. For Demons, annotation noise under the pessimistic allowance is at most 21.6% of error energy; for the window, 8.4%. Per landmark the split is extreme: the median landmark's error is 98.2% invisible for Demons and 98.1% for the window. The pooled share sits below the median because visible energy is concentrated: for the window, the 10% of landmarks with the most visible energy carry 94.3% of it; for the window the two cases with the largest errors (6 and 8) have the lowest shares.
| Case | Window landmarks | Window invisible | Window after allowance | Demons landmarks | Demons invisible |
|---|---|---|---|---|---|
| 1 | 35 | 98.3% | 88.3% | 75 | 98.6% |
| 2 | 44 | 91.6% | 89.4% | 75 | 96.8% |
| 3 | 46 | 96.3% | 95.5% | 75 | 97.1% |
| 4 | 47 | 97.1% | 94.9% | 75 | 92.7% |
| 5 | 45 | 97.2% | 96.1% | 75 | 98.6% |
| 6 | 64 | 70.5% | 69.2% | 75 | 89.7% |
| 7 | 49 | 90.5% | 89.8% | 75 | 86.4% |
| 8 | 46 | 70.2% | 69.1% | 75 | 93.8% |
| 9 | 48 | 94.1% | 93.3% | 75 | 97.3% |
| 10 | 53 | 97.4% | 97.2% | 75 | 98.1% |
POPI. The window's invisible share is 92.9%, but POPI errors are small (mean squared edge error 2.5 mm²). Under the allowance with d = 0.5 mm the adjusted share is 90.6%; with d = 0.85 mm, 77.0%; with d of 1.13 mm or more the allowance exceeds the total error energy. POPI publishes no repeat-annotation figure, so on POPI annotation noise cannot be excluded as the main invisible component. POPI is consistent with DIR-Lab but does not establish the result alone.
5. What the visible part does
| Worst registration of a landmark named by | DIR-Lab, window (477) | POPI, window (28) |
|---|---|---|
| Loop residual (cyclic part of the edge) | 18.4% | 7 of 28 |
| NCC image residual | 20.5% | 1 of 28 |
| Measured shift size | 8.0% | 1 of 28 |
| Chance | 6.7% | 0.6 of 28 |
Loop residuals name a landmark's worst registration well above chance. On POPI they did so more often than the image residual; that did not replicate on DIR-Lab, where the two are indistinguishable (difference -6.6 to +2.1 points, case-clustered 95%) and the image residual ranks all edges better (mean within-landmark Spearman 0.30 versus 0.09). Using loops to correct rather than detect fares no better: least-squares synchronisation of all 45 POPI registrations increased phase-10 error by 2.8% and reduced all-pairs error by 2.4%.
6. Where the invisible error comes from (exploratory)
For the window registrar three checks narrow it. Estimator shrinkage is small: exact integer-voxel shifts of real POPI windows are recovered with gains of 0.98, 0.92, 0.93 (z, y, x, refined). Re-centring each window on the estimated landmark position in its source phase left POPI all-pairs error essentially unchanged (1.383 to 1.378 mm). And an unrelated registrar shares the error: on POPI, Demons and the window have error correlations of 0.85, 0.81, 0.90 per axis. With annotation noise bounded on DIR-Lab, the main invisible component is a per-image tracking offset: the registrar follows a trajectory close to, but not the same as, the landmark's, consistently across every pairing (Figure 4).
A pre-registered attempt to read the error shared between the two registrars as annotation noise (triple collocation [Stoffelen 1998]) failed its known-answer test against DIR-Lab's published observer errors: on T00 to T50, estimates ran 1.3 to 5.2 times the published values and tracked motion amplitude. The two registrars share tracking error, which violates that method's independence assumption.
7. Relation to prior work
That consistent errors escape consistency checks is understood qualitatively. Inverse consistency has long been imposed as a desirable property of registration [Christensen and Johnson 2001], yet a consistent registration can still be wrong, as the MIRSIG position paper states for clinical QA [Lowther et al. 2022]. Loop constraints are used to detect erroneous pairwise relations in structure from motion [Zach et al. 2010], which works only where an error breaks closure. Image-similarity surrogates are likewise unreliable proxies for accuracy [Rohlfing 2012]. Synchronisation methods exploit closure on graphs [Singer 2011]. The contribution here is a measurement: the Hodge split of the error on a truth-bearing subset, with an independent-error baseline of 2/n and an annotation-noise allowance, turns the qualitative caveat into a number per registrar and data type.
8. Limits
- Two registrars, both run with fixed parameters and neither tuned to these data; their DIR-Lab errors (2.5 and 2.0 mm mean edge error over all 15 phase pairs) are above the roughly 1 mm that the best published methods reach on DIR-Lab's extreme phases. Registrars near the annotation floor, including learned ones, may split differently; the measurement applies per registrar.
- Lung 4DCT only, 11 patients. POPI alone does not separate registration error from annotation noise, and its targets had been examined in a preceding pilot.
- Energy pooling weights large errors heavily; per-landmark medians are reported beside pooled shares.
- DIR-Lab intermediate-phase landmarks are propagated rather than independently annotated; their error is per-image and therefore inside the invisible share and the allowance.
- Demons query points come from the registrar's own T00-to-phase estimates, as they would in use.
- Everything except the pre-registered covariance test in section 6 (which failed) is exploratory.
9. Reproducibility
Code and per-landmark results: github.com/parallaxmetrology/loop-visibility. python reproduce.py recomputes every number in this note from the per-landmark files (81 checks; no images or landmark files needed). The repository also holds the analysis plans with the SHA-256 hashes recorded before each run, the exact study scripts, and standalone copies of both registrars and of the Hodge split, verified to reproduce the study's outputs exactly on DIR-Lab data. The Demons run was interrupted by an out-of-memory crash after five cases; cases 6 to 10 were completed by a memory-lean script with identical parameters and query rule, declared and hashed before it ran. DIR-Lab and POPI images, landmark coordinates and raw measurements are not redistributed; DIR-Lab data are available from its authors on request. Analysis code was written with AI coding assistants (OpenAI Codex for the preceding pilot, Anthropic Claude for this study).
References
- Brock KK, Mutic S, McNutt TR, Li H, Kessler ML. Use of image registration and fusion algorithms and techniques in radiotherapy: Report of the AAPM Radiation Therapy Committee Task Group No. 132. Med Phys 44(7):e43 (2017). doi:10.1002/mp.12256
- Castillo R, Castillo E, Guerra R, et al. A framework for evaluation of deformable image registration spatial accuracy using large landmark point sets. Phys Med Biol 54:1849 (2009). doi:10.1088/0031-9155/54/7/001
- Castillo E, Castillo R, Martinez J, Shenoy M, Guerrero T. Four-dimensional deformable image registration using trajectory modeling. Phys Med Biol 55:305 (2010).
- Christensen GE, Johnson HJ. Consistent image registration. IEEE Trans Med Imaging 20(7):568 (2001). doi:10.1109/42.932742
- Jiang X, Lim L-H, Yao Y, Ye Y. Statistical ranking and combinatorial Hodge theory. Math Program 127:203 (2011). doi:10.1007/s10107-010-0419-x
- Lowther N, Louwe R, Yuen J, Hardcastle N, Yeo A, Jameson M. MIRSIG position paper: the use of image registration and fusion algorithms in radiotherapy. Phys Eng Sci Med 45:421 (2022). doi:10.1007/s13246-022-01125-3
- Rohlfing T. Image similarity and tissue overlaps as surrogates for image registration accuracy: widely used but unreliable. IEEE Trans Med Imaging 31(2):153 (2012). doi:10.1109/TMI.2011.2163944
- Singer A. Angular synchronization by eigenvectors and semidefinite programming. Appl Comput Harmon Anal 30(1):20 (2011). doi:10.1016/j.acha.2010.02.001
- Stoffelen A. Toward the true near-surface wind speed: error modeling and calibration using triple collocation. J Geophys Res Oceans 103:7755 (1998). doi:10.1029/97JC03180
- van Harten LD, Stoker J, IĆĄgum I. Robust deformable image registration using cycle-consistent implicit representations. IEEE Trans Med Imaging 43(2):784 (2024). doi:10.1109/TMI.2023.3321425
- Vandemeulebroucke J, Sarrut D, Clarysse P. The POPI-model, a point-validated pixel-based breathing thorax model. Proc. ICCR (2007).
- Zach C, Klopschitz M, Pollefeys M. Disambiguating visual relations using loop constraints. Proc. IEEE CVPR (2010). doi:10.1109/CVPR.2010.5539801