NASA-IBM Lunar Foundation Model

FAIR Multimodal Explorer & Remote Sensing Diagnostics

ViT-B / TerraMind SomBench (~2M Bundles) Apache-2.0

Model at a Glance

Backbone ArchitectureViT-B Encoder + 12-layer Transformer Decoder
Hidden Dimension768 (12 layers, 12 attention heads)
Input Native Resolution256 × 256 pixels
Pretraining Patch Size16 × 16 (FlexiViT resizable to 8x8)
Tokenization ObjectiveMasked-Token Modeling (TerraMind, discrete FSQ vocabularies)
Tokenizers9 modality-specific VQ-VAEs (levels 8,8,8,6,5 = 15,360 states)
Training DataSomBench: 963,609 WAC + 1,000,113 NAC bundles (1,963,722 total)
Compute Infrastructure16 × NVIDIA H100, 150k steps, bf16 (~1.1k GPU-hours)
LicenseApache-2.0 Open Source

Core Scientific Innovations

☀️

Acquisition Geometry as Explicit Context

Lunar appearance is dominated by solar illumination angles rather than intrinsic surface variations. The model tokenizes incidence, emission, phase, and azimuth as sequence inputs, so it is given the dominant illumination confound rather than having to infer it (model card).

🔍

Joint Mixed-Resolution Pretraining

A single set of weights covers both regional WAC (~100 m/px) and meter-scale NAC (~1 m/px) in a single pretraining loop, bridging a 100× spatial scale gap.

🧩

FlexiViT & Modality Decoupling

FlexiViT patch embedding lets you resize patch grids (e.g. ps8 for higher dense resolution) without backbone retraining; late-fusion tokenization allows dropping or adding modalities at fine-tuning time.

SomBench 11 Modalities

Interactive Illumination Simulator

Explore how solar incidence and azimuth cast dramatic shadows across lunar topography, the visual confound that NASA-IBM LFM receives as sequence tokens.

Tokenized Sequence Representation:

INC=65.0 | AZIM=120.0 | EMISS=0.0 | PHASE=65.0 | C_LAT=0.00 | C_LON=0.00

Dynamic Shadow Simulation

Simulated 256×256 px crater tile with dynamic shadow casting vector

FlexiViT Patch Embedding Explorer

FlexiViT allows evaluating or fine-tuning the pretrained ViT-B backbone at different patch sizes without retraining weights.

16 × 16 Patch Grid
256 Patches / Modality
1,280 Dense Tokens (5 WAC modalities)

Multimodal Token Late Fusion

Tokens are embedded per-modality and concatenated along the sequence dimension:

Dense Image Tokens (5 × 256 = 1,280 tokens)
Optical metadata (8 fields, ≤10 tokens)
Static-map context (28 fields, ≤31 tokens)
Late fusion: baselines stack all layers as channels at a shared stem. NASA-IBM LFM gives each modality its own patch adapter and concatenates tokens along the sequence axis, so modalities can be dropped or added at fine-tuning time (model card). Context lengths ≤10 and ≤31 are the max_length values in the released backbone/config.yaml.

Architecture Scheme & Dataflow

NASA-IBM Lunar Foundation Model Architecture Diagram

Figure 1: Tokenization and fusion scheme for the 11 modalities: 9 dense (WAC: vis, uv, dtm, slope, aspect; NAC: nac, dtm_3m, slope_3m, aspect_3m) plus the optical-metadata and static-map context sequences, feeding the ViT-B encoder. Diagram drawn for this explorer; the official scheme is model_scheme.png in the model's Hugging Face repository.

Candidate Landing Regions near Shackleton

Shackleton crater is centred at 89.67°S, 129.78°E, with a 20.92 km diameter (IAU Gazetteer). NASA named the three regions below among 13 Artemis III candidate landing regions in August 2022; none of them is in NASA's updated list of 9 regions (October 2024).

🗺️ Open in LROC QuickMap (South Pole) Inspect LROC NAC mosaics, LOLA slope and Diviner thermal maps for these regions on ACT-REACT QuickMap.

What This Explorer Does and Does Not Show

This repository holds no slope, illumination, Earth-visibility or rock-abundance data for these regions, so it shows none, and it gives no safety ratings.

Model card disclosure

The NASA-IBM LFM is "not validated for operational decisions such as landing-site certification or hazard clearance". The model card reports no landing-hazard or shadow-disambiguation evaluation, and this repository has run none.

Why polar lighting is hard

At Shackleton's latitude the Sun is never more than about 1.9° above the horizon (0.33° from the pole plus the Moon's 1.54° axial tilt), so long shadows dominate. The model takes each tile's illumination angles as input tokens rather than having to infer them from the image.

Schematic 3D Crater Model (Blender 5.2)

An analytic mesh: 21 km rim diameter, rim +1.2 km and floor −3.8 km (5.0 km relief in the model), with a smooth ridge added at 135° azimuth. It is not derived from LOLA or SLDEM2015 data. Rendered tiles use illustrative lighting.

🌕 Drag to Orbit · Scroll/Pinch to Zoom · 897 KB glTF Mesh

Schematic mesh generated headless in Blender 5.2 from an analytic formula (160×160 vertices, 30×30 km); not real terrain. Source: scripts/blender/generate_shackleton_3d.py

3D Multi-Angle Lighting Lab (schematic Blender models)

Schematic crater models with ray-marched shadows baked for each lighting angle. Orbit to see how shadows move with the Sun's direction. Illustrative only: the terrain is analytic, not real, and nothing here is run through the model.

🌕 3D Model: Incidence 85°, azimuth 0° · 766 KB glTF · Drag to Orbit / Scroll to Zoom
Camera Presets:

Schematic models generated headless in Blender 5.2 with ray-marched shadows on analytic terrain. Source: scripts/blender/generate_multi_illum_3d_models.py

Incidence 85°, azimuth 0°

Sun 5° above the horizon from azimuth 0°. Illustrative: at Shackleton the Sun never rises more than about 1.9°.

85.0° Solar Incidence
0.0° Solar Azimuth
5.0° Solar Elevation

How the real model sees lighting

In the NASA-IBM LFM, each tile's illumination angles (incidence, emission, phase, azimuth) and sub-solar and tile-centre coordinates are binned and given to the encoder as text tokens alongside the image (model card). These renders were not run through the model.

Rendered tile of the schematic crater
Rendered tile (256×256)

The model's input size, but not LROC data and not passed through the model.

SomBench Benchmark Results (from the model card)

Scientific & Operational Disclosures (ABAI [[L001]], [[L006]])

Hugging Face Repository Probe

Querying repository metadata...