GazeWorld
Weights for A World Model of Radiologist Reading for Medical Image Representation Learning (arXiv:2605.23992). Code: github.com/levyisthebest/gazeworld Β· Project page: levyisthebest.github.io/gazeworld
GazeWorld treats a chest radiograph as a world and the radiologist's fixation sequence as a trajectory through it. An autoregressive predictor forecasts the latent representation of the next fixated patch from all previously visited ones, and a spatial-completion branch predicts the representations of unvisited patches. At inference it needs only the image, no gaze.
Files
| File | What it is | Paper |
|---|---|---|
gazeworld_stage1.pth |
GazeWorld world model after Stage-1 pretraining on MIMIC-EYE gaze: MedCLIP Swin-T encoder (224Β², 49 patches, d=768), 8-layer causal predictor, spatial-completion decoder, EMA target. | Tables 1, 2, 4, 5 |
scanpath/scanpath_chex.pth |
GazeSearch scanpath decoder + torchxrayvision DenseNet121 (densenet121-res224-nih) backbone. |
Table 3, "Ours (CheX)" |
scanpath/scanpath_res.pth |
GazeSearch scanpath decoder + torchvision Mask R-CNN ResNet50-FPN (COCO) backbone. | Table 3, "Ours (Res)" |
scanpath/scanpath_medclip.pth |
GazeSearch scanpath decoder + MedCLIP Swin-T backbone initialised from the Fixation-AR-JEPA V3 checkpoint. | Table 3, "Ours (MedCLIP)" |
Each file is a torch.save dict with the weights under the "model" key.
Diagnostic classification (stage-1)
The paper's classification results use frozen stage-1 features; there is no separate classification head. Table 1 fits an β2 logistic-regression probe (C=1) on standardised features at evaluation time; Table 2 is zero-shot through MedCLIP's text encoder.
git clone https://github.com/levyisthebest/gazeworld && cd gazeworld
pip install -r requirements.txt
huggingface-cli download Levi980623/GazeWorld --local-dir weights
python scripts/benchmark_v4b.py --stage1_ckpt weights/gazeworld_stage1.pth # Table 1 linear probe
import torch
from models.fixation_ar_jepa_v4b import build_v4b
st = torch.load("weights/gazeworld_stage1.pth", map_location="cpu")["model"]
model = build_v4b({"model": {"img_size": 224,
"max_fixations": st["fix_embedder.temporal_pe"].shape[1]}})
model.load_state_dict(st, strict=False)
model.eval()
feats = model.get_features(images) # (B, 1536): readout token β mean-pooled patches
Linear probe, AUROC (%), 1% / 10% / 100% labels:
| CheXpert | RSNA | SIIM-ACR | |
|---|---|---|---|
| GazeWorld | 78.37 / 83.41 / 87.61 | 83.27 / 85.75 / 90.15 | 87.85 / 90.48 / 94.27 |
Zero-shot, AUROC / Acc / F1 (%):
| CheXpert 5Γ200 | RSNA | SIIM-ACR | |
|---|---|---|---|
| GazeWorld | 58.13 / 59.42 / 56.85 | 62.84 / 70.18 / 47.31 | 64.29 / 66.59 / 63.26 |
Scanpath prediction (GazeSearch)
The scanpath files hold backbone + decoder. The decoder is a 6-layer causal Transformer (d=512,
8 heads) on a 14Γ14 grid at 448Β² input, with spatial (196-way), duration and termination heads,
predicting 7 fixations per search task (13 finding categories). Trained on 3,870 GazeSearch
scanpaths; evaluate with scanpath/scripts/eval_scanpath_v5*.py.
GazeSearch test set (488):
| SM β | SED β | STDE β | Vec β | Dir β | Pos β | |
|---|---|---|---|---|---|---|
| Ours (MedCLIP) | 0.479 | 3.74 | 0.909 | 0.941 | 0.649 | 0.837 |
| Ours (Res) | 0.484 | 3.66 | 0.912 | 0.966 | 0.678 | 0.917 |
| Ours (CheX) | 0.489 | 3.63 | 0.911 | 0.966 | 0.686 | 0.915 |
Training data
Stage-1 was trained on MIMIC-EYE radiologist gaze (REFLACX / EGD over MIMIC-CXR), which is PhysioNet credentialed data and is not redistributed here. The GazeSearch scanpath annotations are mirrored at Levi980623/GazeWorld-data.
Citation
@article{li2026gazeworld,
title = {A World Model of Radiologist Reading for Medical Image Representation Learning},
author = {Li, Yiwei and Wu, Zihao and Zhao, Huaqin and Zhou, Yifan and Cao, Chao
and Zhu, Dajiang and Liu, Tianming and Zhao, Lin},
journal = {arXiv preprint arXiv:2605.23992},
year = {2026}
}