SPEXT weights, anchor metadata and model card
Browse filesFiles changed (7)
- .gitattributes+1
- README.md+107
- SHA256SUMSAdded+3
- architecture.pngAdded
- spext_vitb8_s2.safetensorsAdded+3
- spext_vitb8_s2_pretrain.safetensorsAdded+3
- ssl4eos12_anchor_metadata.tar.gzAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textarchitecture.png filter=lfs diff=lfs merge=lfs -text
123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110---license: mitlibrary_name: pytorchpipeline_tag: image-feature-extractiontags:- earth-observation- remote-sensing- sentinel-2- multi-spectral- foundation-model- vision-language- neurips-2026datasets:- embed2scale/SSL4EO-S12-v1.1- ibm-esa-geospatial/Llama3-SSL4EO-S12-v1.1-captions---# SPEXT: A Decoupled Multi-Spectral Foundation Model for Earth Observation and Vision-Language GroundingSPEXT is a ViT-B/8 foundation model for 10-band Sentinel-2 imagery (NeurIPS 2026). One forward pass produces twooutputs:* **Patch tokens** (256 x 768) for dense prediction and as visual input to a vision-language model.* An **alignment token**, projected into the frozen[Qwen3-Embedding-0.6B](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) text space, for zero-shot text-to-imageretrieval.Pixel reconstruction and latent masked text prediction act on the patch tokens. The image-text alignment loss actsonly on the alignment token, so it does not compress the dense spectral features. The patch embedding isparameterised by the physical band wavelengths.**Code:** [github.com/Sannaraek/SPEXT](https://github.com/Sannaraek/SPEXT)## Files| File | Size | Contents | Use ||---|---|---|---|| `spext_vitb8_s2.safetensors` | 353 MB | Encoder (87.5 M parameters) and alignment projection | Feature extraction, fine-tuning, retrieval, VLM tokens || `spext_vitb8_s2_pretrain.safetensors` | 565 MB | Encoder, MAE pixel decoder and MTP decoder | Spectral-fidelity evaluation, continued pre-training || `ssl4eos12_anchor_metadata.tar.gz` | 41 MB | Geographic anchor metadata for SSL4EO-S12 | Re-creating the pre-training data || `SHA256SUMS` | | Checksums of the three files | `sha256sum -c SHA256SUMS` |## Usage```bashpip install "spext[hub] @ git+https://github.com/Sannaraek/SPEXT"``````pythonimport torchfrom spext import S2_MEAN, S2_STD, load_spextmodel = load_spext("spext_vitb8_s2", device="cuda") # downloads the weights from this repository# x: Sentinel-2 L2A digital numbers incl. the +1000 offset, bands [B2, B3, B4, B5, B6, B7, B8, B8A, B11, B12], 128 x 128 pxx = 1000 + torch.rand(1, 10, 128, 128) * 4000x = (x - torch.tensor(S2_MEAN).view(1, -1, 1, 1)) / torch.tensor(S2_STD).view(1, -1, 1, 1)with torch.no_grad():out = model(x.cuda())out["patch_tokens"] # (1, 256, 768) dense featuresout["alignment_embedding"] # (1, 1024) text-aligned embedding for retrieval```If your data has the +1000 L2A offset removed (`DN = 10000 * reflectance`), add `spext.S2_L2A_OFFSET` beforenormalising.See the [GitHub README](https://github.com/Sannaraek/SPEXT#quickstart) for input conventions, text retrieval and theevaluation code.## Results reported in the paper**PANGAEA** (test mIoU, full training data): average **60.11** over HLS Burn Scars, MADOS, PASTIS, Sen1Floods11,xView2, CropTypeMapping, SpaceNet7 and AI4SmallFarms, the best average of the 15 encoders compared.**Zero-shot text-to-image retrieval** (mAP@100, average over EuroSAT, BigEarthNet and METER-ML): SPEXT 48.38,Llama3-MS-CLIP 42.79, OpenCLIP L/14 38.16, Llama3-RGB-CLIP 35.72, RemoteCLIP 27.01.**VLM grounding on RSVQAxBEN** (overall accuracy, frozen Qwen3-VL-8B-Instruct with a small adapter): SPEXT 81.09,Llama3-MS-CLIP 77.03, RGB through Qwen3-VL's own vision tower 75.81.## Training dataStage I: [fMoW-Sentinel](https://purl.stanford.edu/vg497cb6002). Stage II:[SSL4EO-S12 v1.1](https://huggingface.co/datasets/embed2scale/SSL4EO-S12-v1.1) Sentinel-2 L2A with the[Llama3-SSL4EO-S12 captions](https://huggingface.co/datasets/ibm-esa-geospatial/Llama3-SSL4EO-S12-v1.1-captions).About 1.7 M Sentinel-2 tiles in total, trained on 4 NVIDIA GH200 GPUs.## LimitationsThe model expects 10-band Sentinel-2 L2A input at 10 m resolution, 128 x 128 px. Other optical sensors need theirband wavelengths and fine-tuning (the paper shows this for Landsat). It sees single dates, not time series.## Citation```bibtex@inproceedings{ek2026spext,title = {{SPEXT}: A Decoupled Multi-Spectral Foundation Model for Earth Observation and Vision-Language Grounding},author = {Ek, Sannara and Tang, Chong and Koch, Dirk and Weddell, Alex and Chauhan, Jagmohan and Mullins, Robert},booktitle = {Advances in Neural Information Processing Systems},year = {2026}}```## AcknowledgementsSupported by the Engineering and Physical Sciences Research Council (EPSRC), project Perfect Recollection for ClearerInsight (grant EP/Y036077/1). Computed on the Isambard-AI National AI Research Resource (AIRR).
12396845b0e0902dddc5421435680cecdc63f962cf7638931699b3060c3f774aeb0 spext_vitb8_s2.safetensors13146c97e5280a330407be75f8f9899e59391322fb9253b97aecd044fc642964 spext_vitb8_s2_pretrain.safetensors128d60c534a66cb2e51aee70f8324e95ddb940522ec69ceaa201b73004734c74 ssl4eos12_anchor_metadata.tar.gz123version https://git-lfs.github.com/spec/v1oid sha256:96845b0e0902dddc5421435680cecdc63f962cf7638931699b3060c3f774aeb0size 353244648123version https://git-lfs.github.com/spec/v1oid sha256:13146c97e5280a330407be75f8f9899e59391322fb9253b97aecd044fc642964size 564679896123version https://git-lfs.github.com/spec/v1oid sha256:128d60c534a66cb2e51aee70f8324e95ddb940522ec69ceaa201b73004734c74size 40994804.gitattributes+1
README.md+107
SHA256SUMSAdded+3
architecture.pngAdded

Large File Pointer Details
- SHA256: 98abefc421dcc82f62301a8edf7525eaf7bbb2ae0085c687e0d2e2cbb90f2e8c
- Pointer size: 131 Bytes
- Size of remote file: 836 kB
spext_vitb8_s2.safetensorsAdded+3
spext_vitb8_s2_pretrain.safetensorsAdded+3
ssl4eos12_anchor_metadata.tar.gzAdded+3