HandXFM: Semantic-Structural Distillation for Hand Radiograph Foundation Models

Yuxi Long, Ganlin Feng, Lianghong Chen, Liam J. O'Neil, Carol A Hitchon, Pingzhao Hu

TL;DR

Looking at a hand X-ray, doctors can tell a child’s developmental age, track joint erosion from arthritis, or spot fractures—yet AI models usually have to be trained from scratch for each individual task. HandXFM changes this by creating a single, universal foundation model for hand radiographs. By distilling both high-level medical concepts and fine-grained structural cues from multiple "expert" models into one unified representation, it outperforms specialized baselines across six distinct clinical tasks.

What Problem Does This Paper Address?

Hand radiography is a workhorse of musculoskeletal medicine. Clinicians rely on subtle geometric clues—cortical bone contours, tiny joint gaps, and epiphyseal growth plates—to diagnose trauma, track rheumatoid arthritis via SvH (Sharp/van der Heijde) damage scores, and estimate pediatric bone age.

Despite the boom in large-scale AI, computational tools for hand X-rays remain fragmented: one custom model for bone age, another for segmentation, each trapped in its own hospital dataset. Why not just use existing foundation models? Natural-image giants (like CLIP or DINOv3) expect color textures rather than grayscale bone geometry. Meanwhile, broad medical vision-language models (like BiomedCLIP) learn great high-level clinical concepts from text reports, but often miss the razor-thin boundary details needed to measure a narrowing joint space. Prior to this work, the field lacked a reusable, structure-aware backbone tailored specifically to the anatomy of the hand.

Methods

HandXFM trains a DINOv3 Vision Transformer (ViT) student encoder on unlabeled hand X-rays using a clever combination of standard self-supervision and novel domain-specific tricks:

Figure 1: Overview of the proposed HandXFM framework. (A) Pretraining architecture. HandXFM jointly aligns the student encoder with multiple frozen medical experts while reconstruct- ing masked latent features through the regressor. Edge-aware masking emphasizes structurally salient regions using Sobel gradients. The student learns from complementary objectives: multi-expert alignment loss, masked latent reconstruction loss, and EMA-based consistency loss, with an addi- tional CLS-level supervision to preserve global semantics. (B) Downstream adaptation. After pretraining, the resulting foundation model serves as a universal encoder for diverse radiographic downstream tasks, including bone segmentation, joint detection, normal/abnormal classification, bone age prediction, SvH scoring, and VQA. The pretrained representation provides strong anatomical priors that transfer effectively across tasks and datasets.
  • Multi-Expert Latent Alignment (Novel): Rather than relying on a single teacher, the student aligns its internal patch and global ([CLS]) representations with two frozen, complementary medical experts via linear projections: BiomedCLIP (which injects semantic medical concepts) and a Chest X-ray ViT (which provides radiology-specific spatial and tonal cues).
  • Edge-Aware Masked Latent Reconstruction (Novel): Instead of masking random image pixels, the authors run a Sobel filter over the X-ray to find strong image gradients—essentially tracing bone edges and joint gaps. Patches along these anatomical boundaries are given a higher probability of being hidden. A cross-attention regressor must then predict the expert-aligned latent features of those missing structural regions from the surrounding context.
  • EMA Consistency (Standard): Following frameworks like DINO and BYOL, an Exponential Moving Average (EMA) copy of the student acts as a smoothed, self-distilling teacher to keep feature evolution stable during training.

Once pretrained, this single encoder powers lightweight, task-specific heads (like simple MLPs or DETR decoders) for downstream tasks.

Datasets

The authors assemble a large open-access benchmark collection, strictly using only training splits for unlabeled pretraining while holding out validation, test, and external sets:

  • Bone Age: RSNA (14,036 images), RHPE (6,279 images), and the Digital Hand Atlas (DHA; 1,103 images), which is held out entirely for external zero-shot head transfer.
  • Rheumatoid Arthritis (SvH Scoring): AIRINIIReumHands (330 images, joint-level erosion and joint-space narrowing scores) and Anhui (3,818 bilateral hand images).
  • Abnormality & VQA: MURA hand subset (6,003 normal/abnormal X-rays) and MedPix (108 hand X-ray question-answer pairs).
  • New Localization Benchmarks: The authors curate and release two new RSNA-derived datasets aligned with standard anatomical terminology: a 17-class joint detection set (6,130 images) and a 19-class bone segmentation set (549 images).

Key Insights and Ideas

  • Semantics and structure are better together: Ablations reveal that single teachers have blind spots. Distilling only from the Chest X-ray ViT excels at structural tasks (like joint-space narrowing), while BiomedCLIP boosts semantic screening. Combining them creates a synergy that beats both single-teacher setups across the board.
  • Where you mask matters: Standard random masking wastes compute on empty black background or uniform tissue. Biasing masks toward high-gradient edges forces the transformer to learn bone topology, jumping joint-detection accuracy (mAP@50:95) from 0.7125 to 0.7636.
  • It’s the algorithm, not just the extra X-rays: When the authors adapted native DINOv3 on the exact same hand X-ray corpus without HandXFM's multi-expert objective, joint detection barely budged (0.5857 to 0.5900), whereas HandXFM hit 0.7636.
  • Emergent anatomical grounding: Even though HandXFM is pretrained without paired hand-text reports, pairing it with a text encoder produces crisp cross-attention maps that light up exact regions when prompted with terms like "scaphotrapezial" or "metacarpals".

Key Results

Across six tasks, HandXFM consistently outperforms both task-specific pipelines and radiology foundation models (RadFM, RadCLIP):

(Note: See Table 1 and Table 2 below for detailed regression and classification metrics.)

Table 1: Regression results on SvH scoring and bone age prediction.
  • Bone Age & External Generalization: Achieves a Mean Absolute Error (MAE) of 7.34 months (0.972 PCC) on RSNA, beating specialized bone-age networks. When evaluated directly on the unseen DHA dataset without tuning the head, it maintains a 0.965 PCC ($R^2 = 0.930$).
  • Arthritis Scoring: Drops whole-hand SvH RMSE on Anhui from 22.67 (RadCLIP) down to 18.23, and hits 0.929 PCC on joint erosion.
  • Abnormality Screening: Reaches 78.6% accuracy and 0.860 AUC on MURA hands, outperforming supervised DenseNet-169 (71.1% ACC) and RadCLIP (75.0% ACC).
  • Detection & Segmentation: Using a matched DETR head, HandXFM reaches 0.7636 mAP@50:95 on 17-class joint detection and 0.6101 mAP@50:95 on 19-class bone segmentation—surpassing even fully supervised YOLOv12 baselines (0.7391 and 0.5051, respectively).

Limitations and Future Work

  • Small-scale datasets on certain tasks: The authors note that the MedPix hand VQA subset is quite small (108 pairs), meaning VQA scores (63.6% Top-1 accuracy, tying RadCLIP) should be viewed as a proof-of-concept for cross-modal capability rather than a definitive leaderboard ranking. Similarly, AIRINIIReumHands is relatively small (330 images), requiring multi-seed stability checks.
  • Expanding expert modalities: Currently, HandXFM distills knowledge from two specific teachers (BiomedCLIP and a Chest ViT). For future work, the authors suggest scaling this blueprint by integrating a broader spectrum of complementary expert models beyond these modalities.

Summary updated

Abstract

Hand radiographs support diverse clinical tasks, including skeletal maturity assessment, rheumatoid arthritis scoring, abnormality screening, and anatomical localization, yet existing models are typically trained separately for each task and dataset. We present HandXFM, a domain-specific foundation model that leverages cross-modality knowledge for comprehensive hand X-ray understanding. HandXFM distills semantic priors from BiomedCLIP and structural cues from a chest X-ray Vision Transformer (ViT) through a unified alignment framework, integrating complementary medical knowledge in an interpretable way. After pretraining, HandXFM can be adapted to a range of musculoskeletal tasks, including bone age estimation, SvH score prediction, abnormality detection, joint localization, bone segmentation, and visual question answering. It consistently outperforms task-specific and single-expert baselines, achieving up to 0.11 improvement in Pearson correlation coefficient (PCC) for bone age prediction and a 12\% accuracy gain in abnormality classification. Moreover, HandXFM generalizes to unseen datasets and yields cross-attention maps linking clinical terms to anatomical regions. These results demonstrate that multi-expert distillation effectively unifies semantic and structural supervision within a single pretrained model, establishing HandXFM as an interpretable and generalizable foundation model for hand radiograph analysis.
BibTeX
@inproceedings{long2026handxfm,
  author = {Yuxi Long and Ganlin Feng and Lianghong Chen and Liam J. O'Neil and Carol A Hitchon and Pingzhao Hu},
  title = {{HandXFM: Semantic-Structural Distillation for Hand Radiograph Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fKr07Pdg6F},
}
Figure