Anatomical landmark detection means finding a handful of precise points, such as the tip of a tooth root or a point on the skull, in a medical image. Expert labels for this task are scarce. A common remedy is a teacher-student scheme: a model trained on a few labeled images (the teacher) guesses landmark positions on many unlabeled images, and a second model (the student) trains on those guesses. The scheme breaks down when the teacher's wrong guesses are copied as if they were right. Many landmark detectors already produce a full probability map over pixel positions. The soft-argmax, a differentiable operation that returns the probability-weighted average position, reads a coordinate out of that map. The same map also has a covariance, meaning a spread along each direction. Our claim is that this covariance, once trained to be honest, tells the student which directions of a pseudo-label to trust. Landmarks on bone edges are often well pinned across the edge and poorly pinned along it. A scalar confidence throws that structure away, and an anisotropic weight keeps it.
The concrete proposal is a teacher-student landmark localizer with three parts. The teacher's heatmap spread is trained with a likelihood objective on the few labeled images, so that it predicts actual error. Each pseudo-label is then used through a Mahalanobis loss weighted by the teacher's covariance. Finally, a small set of checks establishes whether the directional information adds anything beyond a single confidence number. If it does not, the paper reports that negative result cleanly. That outcome would still settle a question the literature leaves open.
Why this gap, and what is already done
Soft-argmax regression has been standard since Integral Human Pose Regression, which replaced the non-differentiable argmax with an expectation and reported [email protected] on MPII rising from 17.2% to 29.3%. In medical radiographs it gives sub-pixel accuracy from small heatmaps (KNEEL). Two papers show that the spread of the map carries usable information. 3D-Aware Object Localization using Gaussian Implicit Occupancy Function computes both the mean and the covariance differentiably from predicted maps. Multistage Probabilistic Approach for the Localization of Cephalometric Landmarks displays standard-deviation ellipses as confidence on ISBI 2015. Neither uses the covariance to decide how unlabeled data should supervise a model. We reuse the E-DSNT moment computation as a method and change its role.
The label-efficient work at this intersection does not use distributional pseudo-labels. Few-shot DAG runs a mean-teacher on pelvis, hand and chest X-rays. It adds a Jensen–Shannon consistency on intermediate features, but it treats the pseudo-labeled points themselves as deterministic and fails at one shot. CC2D generates pseudo-labels by patch matching to a single template and then trains a U-Net on them unweighted. GeoSapiens uses soft-argmax in a few-shot setting to backpropagate hand-crafted geometric losses, not to weight unlabeled data. It uses no unlabeled images at all. The closest overlap is therefore semi-supervised landmark work, which weights points by nothing, combined with soft-argmax uncertainty work, which never touches unlabeled data. Joining the two with a directional, rather than scalar, weight is the new element.
Two papers constrain the design. Localization with Sampling-Argmax shows that a plain soft-argmax loss supervises only the mean. The map's shape is then unconstrained: a diffuse cloud or two symmetric false peaks can average to the right place. Its remedy, minimizing the expected error through differentiable sampling, raised confidence-accuracy correlation by 85.4% on COCO. Heatmap Regression without Soft-Argmax goes further and argues that soft-argmax causes multi-peak optimization failures. Taken together, these results mean the raw covariance of an ordinary soft-argmax model cannot be trusted as an uncertainty estimate. Our method fails unless the spread is trained to be meaningful, so the first component below exists to address exactly this.
Core Claim
Suppose the teacher's heatmap spread is trained with a likelihood objective. Its second moment then predicts both the size and the direction of the teacher's error on unlabeled radiographs. Weighting pseudo-labels by the inverse of that covariance reduces confirmation bias more than filtering by a scalar confidence does, with the largest gains for landmarks that lie on elongated structures and in the 1–10 label regime.
Research Program
The teacher and student share one architecture. A convolutional encoder-decoder outputs one logit map per landmark. A spatial softmax turns each map into a distribution $P_k$, and we compute its mean $\mu_k$ and covariance $\Sigma_k$ as the first and second spatial moments. On labeled images, the teacher is trained with a Gaussian negative log-likelihood of the ground-truth point $x_k^*$:
$$\mathcal{L}_{\text{lab}} = \sum_k (x_k^* - \mu_k)^\top \Sigma_k^{-1} (x_k^* - \mu_k) + \log\det\Sigma_k .$$
This objective penalizes a map that is too wide or too narrow for its actual error, which a mean-only loss cannot do. We compare it against the sampling-argmax objective as an alternative way to shape the spread.
A peaked map can place probability mass beyond the image border, which truncates the distribution. To handle landmarks near the border, the moments are computed on a padded grid.
On unlabeled images, the exponential-moving-average teacher produces $(\mu^T_k, \Sigma^T_k)$ under a weak augmentation. The student sees a strong augmentation, with the teacher's outputs mapped through the known geometric transform, and minimizes
$$\mathcal{L}_{\text{unl}} = \sum_k (\mu^S_k - \mu^T_k)^\top (\Sigma^T_k + s^2 I)^{-1} (\mu^S_k - \mu^T_k),$$
where $s$ is a small floor in pixels that stops near-singular covariances from dominating the loss. Along a bone edge the teacher's variance is large, so the student is barely pulled in that direction. Across the edge the variance is small, and the pull is strong.
A multimodal teacher map, such as two symmetric peaks, shows up as a very large covariance. It therefore contributes almost nothing, without needing a hand-set threshold.
Before any semi-supervised result, the analysis step checks calibration on held-out labeled images. It asks three things. Do the squared Mahalanobis residuals follow a chi-square distribution with two degrees of freedom? Is the predicted variance along the principal axis correlated with the error along that axis? Is the principal axis of $\Sigma$ aligned with the local edge direction more often than chance? If these checks fail, the method has no basis. We would then stop and report why, rather than tune until the downstream numbers move.
Baselines
The naive reference point is the teacher alone: the same network trained with $\mathcal{L}_{\text{lab}}$ on the labeled images only, with no unlabeled data. Any semi-supervised gain is measured against it.
The strongest existing semi-supervised competitor is the Few-shot DAG teacher-student method with Jensen–Shannon feature consistency. That paper reports Mean Euclidean Error on the Pelvis dataset falling from 25.89 to 18.45 with 10 labeled images, and the Hand failure rate dropping from 1.51% to 0.47%. We will run their method on our splits and our unlabeled pool. We will also quote their published numbers as a sanity check, because our splits may differ. Beating it means lower mean error and lower failure rate at 5 and 10 labels on both Pelvis and Hand, across three seeds.
For the one-shot regime the strongest reference is CC2D, which reports 81.01% SDR within 4 mm on ISBI 2015 from a single annotated image. Beating it means exceeding that SDR at 4 mm and also improving SDR at 2 mm, where the precision benefit of soft-argmax should appear. Because one shot is where our teacher is weakest, we also test using CC2D's patch-matching pseudo-labels as the initial teacher.
Three ablations isolate the key ingredient. The first is an unweighted mean-teacher, which applies an $\ell_2$ loss to pseudo-labels from the same teacher. The second is isotropic scalar weighting, which uses the trace of $\Sigma^T$, a peak-height confidence threshold, or both. The third is the directional loss applied to a teacher trained with a mean-only soft-argmax loss, which tests whether spread training matters.
All arms use the same backbone initialization, unlabeled pool, augmentation, number of iterations and learning-rate schedule. Hyperparameters are selected on ISBI 2015 at 10 labels and then frozen for every other dataset and label count. This prevents a larger tuning budget from favoring any one method in the tiny-label regime.
Why not just…?
Why not just filter pseudo-labels by heatmap peak height or a scalar variance? This is the most serious threat, since it is essentially free and may capture most of the benefit. The two approaches differ only for anisotropic errors. The experiment therefore splits landmarks by the ratio between the two eigenvalues of the teacher covariance. The claim holds only if the directional loss beats trace-weighting and peak-height filtering specifically on high-ratio, edge-lying landmarks, such as cephalometric contour points and pelvic rim points. If the gap is within seed noise, we will report that the scalar version is sufficient.
Why not just use an ensemble or dropout disagreement as the uncertainty? Ensembles can also produce a covariance by taking the spread of member predictions, and their calibration is often good. The cost is several forward passes per unlabeled image. We include a five-member ensemble teacher whose disagreement covariance is plugged into the same Mahalanobis loss. If it matches our single-model moments, the contribution reduces to a cheaper estimate of the same quantity. If the single-model moments are worse calibrated, the calibration analysis will show that directly.
Why not just pretrain on unlabeled radiographs and fine-tune on the few labels? MRM and MGCA show large label-efficiency gains from domain pretraining, but only on classification, segmentation and detection. No reported result on Lacuna covers them on landmark regression. Pretraining and pseudo-labeling are complementary rather than exclusive, so we run a two-by-two design. One axis is ImageNet versus masked-image pretraining on the unlabeled pool. The other is with versus without directional pseudo-labels. If pretraining alone closes the gap, we say so.
Why not just drop soft-argmax for structured heatmap prediction? Heatmap Regression without Soft-Argmax reports faster convergence on WFLW (20 versus 44 epochs) and a small NME edge over STAR. It works in the fully supervised facial setting, and it does not produce a normalized distribution whose moments can weight unlabeled data. We add its argmax-based output with scalar-confidence pseudo-labels as an extra arm. Its multi-peak critique is exactly why our loss down-weights high-covariance teachers instead of trusting them.
Proposed Experiments
The benchmarks are ISBI 2015 cephalometric (19 landmarks), the Pelvis and Hand X-ray sets from Few-shot DAG, and OAI knee radiographs from KNEEL. OAI provides a real-deformity setting with a reported fully supervised reference of 85.36% PCK at 2 mm. We use 1, 5, 10 and 25 labeled images, with the rest of each training set serving as unlabeled data. Metrics are mean radial error and SDR at 2, 2.5 and 4 mm, plus failure rate above 10 mm. For calibration we report the chi-square fit of Mahalanobis residuals and the correlation between predicted and observed directional error.
We look for three results. Spread training must produce calibrated directional uncertainty on held-out images; without it the method has no basis. Directional weighting must beat trace-weighting on high-anisotropy landmarks at 5–10 labels; this is the claim that separates the work from scalar confidence filtering. Finally, the gains must persist on top of domain pretraining; this shows that the method is not merely a substitute for a better encoder. A secondary analysis tracks pseudo-label error over training for each arm. It tests whether directional weighting slows the growth of confirmation bias, which is the mechanism we claim, rather than just shifting the final number.
References
- Integral Human Pose Regression
- KNEEL: Knee Anatomical Landmark Localization Using Hourglass Networks.
- 3D-Aware Object Localization using Gaussian Implicit Occupancy Function
- Multistage Probabilistic Approach for the Localization of Cephalometric Landmarks
- Scalable Semi-supervised Landmark Localization for X-ray Images Using Few-Shot Deep Adaptive Graph
- One-Shot Medical Landmark Detection
- Geometric-Guided Few-Shot Dental Landmark Detection with Human-Centric Foundation Model
- Localization with Sampling-Argmax
- Heatmap Regression without Soft-Argmax for Facial Landmark Detection
- Advancing Radiograph Representation Learning with Masked Record Modeling
- Multi-Granularity Cross-modal Alignment for Generalized Medical Visual Representation Learning