Loops cannot see most registration error: measuring the visibility ceiling of cycle consistency

Russell Parrish, Parallax Metrology. Draft methods note, 20 November 2026. Not peer reviewed. · Code and data · Lab book

Abstract. Consistency and transitivity checks (register A to B, B to C and A to C; see whether the loop closes) are used as label-free quality checks on deformable image registration. True displacements are differences of positions, so the part of a registration set that fails to close is exactly the part of its error that fails to close. A Hodge decomposition of the error, computed wherever truth exists, therefore gives the share of error that any closure-based check can see. If errors were independent per registration, the invisible share on a complete graph of n images would be 2/n. On DIR-Lab thoracic 4DCT (10 patients, all 15 pairs among six phases per landmark) the invisible share is 93.1% for whole-volume Diffeomorphic Demons (750 landmarks; case-clustered 95% interval 90.3 to 96.2%) and 79.1% for a local translation registrar (477 landmarks; 73.3 to 95.8%), against 33.3% expected. Both stay above 70% after a pessimistic allowance for annotation noise, which is itself invisible to loops. On POPI (1 patient, 10 phases) the translation registrar gives 92.9% against 20%, though there annotation noise cannot be excluded as the main contributor. The visible part still names a landmark's worst registration above chance, but no better than an image residual. The invisible share bounds what any closure-only check can report, and it can be measured on a truth-bearing subset before such a check is relied on.

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

Truthpositions differ; every loop closesABCPer-image offsetB tracked wrongly; loop still closesABCestimated BOne bad registrationA to C wrong; loop fails to closeABCgap = visible error
Figure 1. Three images A, B, C of one point. Left: true displacements are differences of positions, so every loop closes. Middle: if the registrar tracks the point in B to a slightly wrong place, both edges touching B are wrong, yet the loop still closes; this error is invisible to any loop. Right: if one registration fails on its own, the loop misses by exactly that error; this error is visible.

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

32-voxel translation windowwhole-volume Demonsindependent-error baseline0%25%50%75%100%share of error energy invisible to every loopCase 1Case 1, window (n=35): 98.3%98.3%Case 1, Demons (n=75): 98.6%98.6%Case 2Case 2, window (n=44): 91.6%91.6%Case 2, Demons (n=75): 96.8%96.8%Case 3Case 3, window (n=46): 96.3%96.3%Case 3, Demons (n=75): 97.1%97.1%Case 4Case 4, window (n=47): 97.1%97.1%Case 4, Demons (n=75): 92.7%92.7%Case 5Case 5, window (n=45): 97.2%97.2%Case 5, Demons (n=75): 98.6%98.6%Case 6Case 6, window (n=64): 70.5%70.5%Case 6, Demons (n=75): 89.7%89.7%Case 7Case 7, window (n=49): 90.5%90.5%Case 7, Demons (n=75): 86.4%86.4%Case 8Case 8, window (n=46): 70.2%70.2%Case 8, Demons (n=75): 93.8%93.8%Case 9Case 9, window (n=48): 94.1%94.1%Case 9, Demons (n=75): 97.3%97.3%Case 10Case 10, window (n=53): 97.4%97.4%Case 10, Demons (n=75): 98.1%98.1%DIR-Lab pooledDIR-Lab pooled, window (n=477): 79.1%79.1%DIR-Lab pooled, Demons (n=750): 93.1%93.1%POPI pooledPOPI pooled, window (n=28): 92.9%92.9%
Figure 2. Share of registration error energy invisible to every loop, by DIR-Lab case and registrar, with the independent-error baseline (vertical tick: 33.3% for six phases, 20% for ten). Hover a bar for its landmark count.
Registrar, datasetLandmarksInvisible share95% intervalAfter noise allowanceBaseline
Demons, DIR-Lab75093.1%90.3 to 96.2%91.2% (87.8 to 94.6%)33.3%
Demons, DIR-Lab, window's landmarks47792.4%89.8 to 96.1%90.2%33.3%
Window (refined), DIR-Lab47779.1%73.3 to 95.8%77.2% (71.5 to 94.7%)33.3%
Window (FFT only), DIR-Lab47782.1%75.9 to 97.7%80.5%33.3%
Window (refined), POPI2892.9%88.0 to 96.4%not identifiable20.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.

CaseWindow landmarksWindow invisibleWindow after allowanceDemons landmarksDemons invisible
13598.3%88.3%7598.6%
24491.6%89.4%7596.8%
34696.3%95.5%7597.1%
44797.1%94.9%7592.7%
54597.2%96.1%7598.6%
66470.5%69.2%7589.7%
74990.5%89.8%7586.4%
84670.2%69.1%7593.8%
94894.1%93.3%7597.3%
105397.4%97.2%7598.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.

registration error, mmits loop-visible (cyclic) partTypical landmark (case 6)2.0% of this landmark's error energy is loop-visible0.02.34.67.0T00 to T10: error 2.38 mm, loop-visible part 0.19 mmT00 to T20: error 1.31 mm, loop-visible part 0.57 mmT00 to T30: error 2.11 mm, loop-visible part 0.38 mmT00 to T40: error 4.72 mm, loop-visible part 0.23 mmT00 to T50: error 5.19 mm, loop-visible part 0.55 mmT10 to T20: error 1.34 mm, loop-visible part 0.57 mmT10 to T30: error 1.26 mm, loop-visible part 0.54 mmT10 to T40: error 6.96 mm, loop-visible part 0.58 mmT10 to T50: error 6.96 mm, loop-visible part 0.69 mmT20 to T30: error 1.25 mm, loop-visible part 0.57 mmT20 to T40: error 4.12 mm, loop-visible part 0.53 mmT20 to T50: error 4.66 mm, loop-visible part 0.43 mmT30 to T40: error 3.91 mm, loop-visible part 0.90 mmT30 to T50: error 4.10 mm, loop-visible part 0.56 mmT40 to T50: error 1.35 mm, loop-visible part 0.64 mm15 phase pairs (T00 to T10 ... T40 to T50)mmLargest visible error (case 6)45.5% of this landmark's error energy is loop-visible0.017.034.051.0T00 to T10: error 0.87 mm, loop-visible part 9.00 mmT00 to T20: error 3.93 mm, loop-visible part 16.87 mmT00 to T30: error 1.40 mm, loop-visible part 17.14 mmT00 to T40: error 50.99 mm, loop-visible part 25.46 mmT00 to T50: error 50.24 mm, loop-visible part 17.53 mmT10 to T20: error 3.59 mm, loop-visible part 7.47 mmT10 to T30: error 3.59 mm, loop-visible part 9.66 mmT10 to T40: error 3.67 mm, loop-visible part 16.11 mmT10 to T50: error 47.19 mm, loop-visible part 24.20 mmT20 to T30: error 6.59 mm, loop-visible part 1.99 mmT20 to T40: error 2.85 mm, loop-visible part 6.99 mmT20 to T50: error 3.72 mm, loop-visible part 15.46 mmT30 to T40: error 2.10 mm, loop-visible part 10.52 mmT30 to T50: error 2.46 mm, loop-visible part 18.15 mmT40 to T50: error 1.11 mm, loop-visible part 8.13 mm15 phase pairs (T00 to T10 ... T40 to T50)mm
Figure 3. Error on each of the 15 phase pairs for two DIR-Lab landmarks (window registrar), with the loop-visible part of each edge's error inside. Left: the landmark whose invisible share is closest to the median (98.1%), within the case whose pooled share is closest to the DIR-Lab pooled value (case 6). Right: the landmark with the largest loop-visible error energy in the dataset. Both chosen by these rules, not by eye.
true (annotated), T00true (annotated), T10true (annotated), T20true (annotated), T30true (annotated), T40true (annotated), T50T50window registrar, T00window registrar, T10window registrar, T20window registrar, T30window registrar, T40window registrar, T50T50T00 (shared start)5 mmannotated landmarkwindow registrarT00 to T50, sagittalprojection; large dotsmark T00 and T50
Figure 4. The left-hand landmark of Figure 3 in the sagittal plane through the landmark (5 mm grid; the CT image is omitted in this public edition); plane chosen as the one showing the larger in-plane offset at T50. White: annotated positions T00 to T50. Orange: the window registrar's estimates, starting from the same T00 point. The landmark moves 5.9 mm from T00 to T50 while the estimate moves 1.0 mm, an offset of up to 5.2 mm, yet its 15 registrations close around every loop to within a few percent of the error energy.

5. What the visible part does

Worst registration of a landmark named byDIR-Lab, window (477)POPI, window (28)
Loop residual (cyclic part of the edge)18.4%7 of 28
NCC image residual20.5%1 of 28
Measured shift size8.0%1 of 28
Chance6.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

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

  1. 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
  2. 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
  3. Castillo E, Castillo R, Martinez J, Shenoy M, Guerrero T. Four-dimensional deformable image registration using trajectory modeling. Phys Med Biol 55:305 (2010).
  4. Christensen GE, Johnson HJ. Consistent image registration. IEEE Trans Med Imaging 20(7):568 (2001). doi:10.1109/42.932742
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. Vandemeulebroucke J, Sarrut D, Clarysse P. The POPI-model, a point-validated pixel-based breathing thorax model. Proc. ICCR (2007).
  12. Zach C, Klopschitz M, Pollefeys M. Disambiguating visual relations using loop constraints. Proc. IEEE CVPR (2010). doi:10.1109/CVPR.2010.5539801