Skip to main content

TASK: Reproduce Earth-OneVision End-to-End

You are a senior ML research engineer. Your task is to build a complete, runnable, reproducible implementation of the Earth-OneVision model and training pipeline described in:

Earth-OneVision: Extending Remote Sensing Multimodal Large Language Models to More Sensor Modalities and Tasks arXiv:2606.10819

Paper URL:

https://arxiv.org/pdf/2606.10819

Do NOT implement a generic remote-sensing VLM.

Do NOT substitute another RS-MLLM.

Do NOT use the earlier RSVLM/MF-RSVLM architecture.

The target is specifically Earth-OneVision.

Your final deliverable must be a complete repository containing:

  1. model implementation

  2. tokenizer/vocabulary extension

  3. all three proposed mechanisms:

    • FGVLA
    • SLIS
    • PCMA
  4. multimodal input pipeline

  5. dataset conversion pipeline

  6. MMRS-OneVision-compatible dataset construction framework

  7. training code

  8. DeepSpeed configuration

  9. inference code

  10. evaluation code

  11. checkpoint conversion/loading

  12. unit tests

  13. smoke tests

  14. documentation

  15. reproducibility/configuration infrastructure

The repository must be usable by another researcher without manually reconstructing missing pieces from your implementation.


1. FIRST: READ AND ANALYZE THE PAPER

Before writing implementation code, thoroughly inspect the entire paper.

Extract and record:

  • architecture
  • model components
  • dimensions
  • pretrained components
  • visual encoder
  • LLM
  • projector
  • intermediate ViT layers
  • ACSA equations
  • DeepStack injection mechanism
  • SLIS vocabulary
  • coordinate serialization
  • R-RLE serialization
  • input preprocessing
  • modality conversion
  • multi-image handling
  • video frame sampling
  • temporal input handling
  • cross-sensor fusion
  • PCMA stages
  • loss
  • optimizer
  • learning-rate schedule
  • batch size
  • sequence length
  • precision
  • DeepSpeed configuration
  • number of GPUs
  • dataset composition
  • dataset proportions
  • task/subtask distribution
  • evaluation benchmarks
  • reported metrics

Create a file:

docs/paper_spec.md

containing a table:

ComponentPaper specificationImplementationConfidence
LLM......Explicit/Inferred
Vision encoder......Explicit/Inferred
ACSA......Explicit
DeepStack......Explicit
............

IMPORTANT:

Never silently invent an unspecified detail.

If the paper does not specify something, explicitly mark it:

UNSPECIFIED_BY_PAPER

Then choose a reasonable implementation and document:

IMPLEMENTATION_ASSUMPTION

This distinction is extremely important for scientific reproducibility.


2. TARGET MODEL

Implement the Earth-OneVision architecture described in the paper.

The paper describes a roughly 2B-parameter model consisting of:

Input
↓
SigLIP-2 ViT
↓
FGVLA
├── ACSA
└── DeepStack
↓
MLP vision-language projector
↓
visual tokens
+
text instruction tokens
↓
Qwen3 2B decoder
↓
unified autoregressive output

The model must support:

  • optical
  • SAR
  • infrared
  • multispectral
  • temporal
  • video
  • cross-sensor fusion

without creating a separate task-specific model for every modality.

The paper explicitly says the six sensor modalities plus cross-sensor fusion are unified into two encoding modes through input reorganization rather than modality-specific encoders. Optical is directly processed; SAR and infrared are replicated into pseudo-RGB; multispectral bands are grouped into pseudo-RGB; multiple images are independently encoded and concatenated; video uses sampled frames. Implement this faithfully.


3. PRETRAINED COMPONENTS

Use the actual foundation models specified by the paper.

The intended architecture is:

Vision:
SigLIP-2 ViT

Language:
Qwen3 2B

Do NOT replace Qwen3 with:

  • LLaMA
  • Vicuna
  • Qwen2.5
  • Qwen2.5-VL
  • InternVL
  • another language model

Do NOT replace SigLIP-2 with:

  • CLIP
  • DINO
  • DINOv2
  • EVA
  • ConvNeXt
  • another vision encoder

unless explicitly creating an experimental ablation.

The main implementation must target the paper architecture.

Use Hugging Face Transformers where practical.

Pin versions in:

requirements.txt

and preferably:

pyproject.toml

and record the exact model identifiers in:

backend/configs/base.yaml


4. ARCHITECTURE

Implement:

EarthOneVision
├── VisionEncoder
│ └── SigLIP2VisionEncoder
│
├── FGVLA
│ ├── ACSA
│ └── DeepStack
│
├── VisionLanguageProjector
│
├── TokenEmbeddingExtension
│
└── Qwen3ForCausalLM

The final model must remain autoregressive.

There must NOT be:

detection head
segmentation decoder
classification head
captioning head
VQA head

for the main architecture.

Everything must ultimately become tokens and be trained through the unified autoregressive objective.


5. FGVLA

Implement the paper's:

Full-Granularity Vision-Language Alignment

FGVLA has two complementary parts:

  1. ACSA on the encoder side
  2. DeepStack on the decoder side

The paper uses three intermediate visual layers.

Represent them as:

S = 3

F_l1
F_l2
F_l3
F_final

Do not arbitrarily choose unrelated layers.

Determine the correct layer indexing from the actual SigLIP-2 architecture and document the mapping.


6. ACSA

Implement:

Adaptive Cross-Scale Attention

The paper defines ACSA approximately as follows.

The final vision representation is the query source:

F_N

For each intermediate level:

l_s, s ∈ {1,2,3}

compute:

Q_s = F_N W_Q + Δq_s

K_s = F_ls W^d_K,s W^u_K,s

V_s = F_ls W^d_V,s W^u_V,s

where the down projections are low-rank.

Attention:

A_s =
softmax(
Q_s K_s^T / sqrt(d_h)
)
V_s

Fuse scales with learned normalized weights:

α = softmax(w)

and:

Z = Σ_s α_s A_s

then:

F̃_N = F_N + LN(Z W_O)

Implement this as a clean module:

model/fgvla/acsa.py

Requirements:

  • configurable rank
  • configurable number of scales
  • batched operation
  • mixed precision support
  • flash attention where appropriate
  • no unnecessary materialization of huge attention matrices
  • unit tests for shapes
  • numerical stability

Expose:

ACSA(
hidden_size,
num_scales=3,
low_rank=...,
...
)

Do not hard-code dimensions until verified from the actual backbone.


7. DEEPSTACK

Implement the decoder-side FGVLA mechanism.

The paper states that each of the three intermediate visual layers has an MLP projector and is injected into corresponding early LLM layers through residual addition.

Conceptually:

F_l1 → φ1 → early LLM layer 1
F_l2 → φ2 → early LLM layer 2
F_l3 → φ3 → early LLM layer 3

The paper specifies:

φ_s : R^(L×d) → R^((L/4)×d')

where the visual sequence is reduced to approximately one quarter of its length before injection.

Implement:

model/fgvla/deepstack.py

with:

DeepStackProjector
DeepStackInjector

The injection must occur during the Qwen forward pass, not merely concatenate everything to the initial embedding.

The implementation must preserve compatibility with:

  • causal masking
  • KV cache
  • training
  • generation
  • gradient checkpointing
  • distributed training

Document exactly which Qwen layers are used.

If the paper leaves exact layer indices unspecified, expose them as configuration:

deepstack:
injection_layers:
- ...
- ...
- ...

and document the assumption.


8. VISION-LANGUAGE PROJECTOR

Implement the final two-layer MLP projector described in the paper.

Conceptually:

FGVLA-enhanced visual feature
↓
Linear
↓
activation
↓
Linear
↓
Qwen hidden dimension

Make the dimensions derive from the actual SigLIP-2 and Qwen3 configurations.

Do not hard-code dimensions blindly.


9. MULTI-IMAGE INPUT

Implement a generalized visual-token pipeline.

Each image/frame/temporal phase is:

image
↓
preprocess
↓
SigLIP-2
↓
FGVLA
↓
projector
↓
visual token sequence

For multiple images:

image_1 → visual tokens
image_2 → visual tokens
image_3 → visual tokens
...

concatenate:

[V1][V2][V3]...[VN]

and feed them alongside the language instruction.

The paper explicitly states that multi-image inputs include:

  • multi-temporal image pairs
  • temporal sequences
  • sampled video frames
  • multi-source/cross-sensor combinations

and their visual token sequences are concatenated sequentially.

Implement this generically.


10. MODALITY HANDLING

Implement a common abstraction:

ModalityProcessor

with:

OpticalProcessor
SARProcessor
InfraredProcessor
MultispectralProcessor
TemporalProcessor
VideoProcessor
FusionProcessor

However, these processors should perform INPUT REORGANIZATION, not create independent neural networks.


Optical​

Normal RGB input.


SAR​

Convert SAR to the pseudo-RGB representation used by the paper.

If exact preprocessing is not specified:

  • implement a deterministic normalization
  • replicate the single SAR channel to 3 channels
  • make preprocessing configurable
  • document the assumption

Do not invent a learned SAR encoder.


Infrared​

Convert infrared to pseudo-RGB.

Again, no dedicated encoder.


Multispectral​

Implement band grouping into pseudo-RGB groups.

The implementation must allow:

multispectral:
band_groups:
- [...]
- [...]
- [...]

If the paper does not provide exact band mappings, do not pretend it does.

Document the selected mapping.


Temporal​

Represent temporal images as a sequence:

T1
T2
T3
...

Each frame is encoded independently.

Concatenate visual tokens.


Video​

Implement frame sampling.

Support:

num_frames
sampling_strategy

with at least:

uniform
range

The default should reproduce the paper as closely as possible.

If exact sampling parameters are not explicitly stated, mark them as assumptions.


11. CROSS-SENSOR FUSION

Implement inputs such as:

optical + SAR
optical + infrared
optical + multispectral
optical + temporal
multiple sensor combinations

Each image/sensor observation is independently encoded.

Then:

visual_tokens =
concat(
tokens_sensor_1,
tokens_sensor_2,
...
)

Do NOT create a separate cross-sensor fusion transformer unless the paper specifies one.

The paper's central design is that cross-sensor inputs are unified through the same visual-language pipeline.


12. SLIS

Implement:

Spatial-Linguistic Isomorphic Serialization

This is a critical component.

Create:

model/slis/
├── coordinate_tokens.py
├── r_rle.py
├── serializer.py
├── parser.py
└── vocabulary.py

13. UNIFIED VOCABULARY

The paper defines:

V = V_text ∪ V_coord ∪ V_seg

where:

V_text

is the Qwen tokenizer vocabulary.

Coordinate vocabulary:

V_coord = 1000 dedicated coordinate tokens

These MUST be special tokens.

Do not tokenize coordinate digits as normal text.

For example:

<282>

must correspond to a dedicated vocabulary entry, not the text sequence:

"282"

Implement explicit token IDs.


14. COORDINATE QUANTIZATION

Implement:

q(c) = floor(c * 1000)

for:

c ∈ [0,1]

with correct handling of:

c = 1

to prevent producing token 1000.

Use:

q = min(999, floor(c * 1000))

and document this boundary condition.

Implement inverse decoding:

decode_coord(token)

Use the convention most consistent with the paper.


15. HORIZONTAL BOX

Serialize:

[x1, y1, x2, y2]

as:

<coord_x1>
<coord_y1>
<coord_x2>
<coord_y2>

The paper uses 4 coordinate tokens.

Implement:

serialize_hbox(box)
deserialize_hbox(tokens)

16. ORIENTED BOX

Serialize:

[x1,y1,x2,y2,x3,y3,x4,y4]

as eight coordinate tokens.

Implement:

serialize_obb(points)
deserialize_obb(tokens)

Preserve polygon ordering.


17. POINTS

Points use:

[x,y]

and therefore two coordinate tokens.

Implement:

serialize_point()
deserialize_point()

18. SPATIAL JSON

The paper represents detection/grounding outputs in JSON-like structures.

Implement a formal internal representation:

SpatialObject(
type="hbox",
label="vehicle",
coordinates=[...]
)

and serialization to the actual model token sequence.

Support multiple objects.

Example conceptual output:

[
{
"hbox_2d": [<112>, <345>, <256>, <360>],
"label": "vehicle"
}
]

Do not rely on arbitrary generated JSON parsing.

Build a robust parser tolerant of minor generation errors.


19. R-RLE SEGMENTATION

Implement:

Row-wise Run-Length Encoding

The paper specifies:

  1. mask is downsampled to 24×24

  2. max pooling is used

  3. rows are encoded independently

  4. each run contains:

    • semantic label
    • count

Format:

<seg>
label * count,
label * count;
label * count,
...
</seg>

Implement:

mask_to_rrle(mask)
rrle_to_mask(rrle)

with:

target
others

for referring segmentation.

For semantic segmentation use category labels.

For change detection use labels such as:

building-change
no-change

according to the source task.


20. R-RLE TOKENIZATION

The model must treat R-RLE entries as dedicated segmentation vocabulary tokens where possible.

Do not blindly tokenize:

"building-change * 8"

into ordinary BPE tokens if the paper's vocabulary design requires dedicated segmentation entries.

Design a configurable segmentation vocabulary.

If the paper does not completely specify the exact finite V_seg enumeration, implement a deterministic vocabulary and document it.

The vocabulary must be invertible.


21. TASK SUPPORT

Implement all 9 major task categories.

The paper's task coverage includes:

1. Classification
2. Captioning
3. Detection
4. Visual Grounding
5. Segmentation
6. Change Detection
7. Visual Prompting
8. VQA
9. Relation Reasoning

Support the 25 subtasks described in the paper.

Build a registry:

TASK_REGISTRY

Example:

TASK_REGISTRY = {
"image_classification": ...,
"region_classification": ...,
"temporal_classification": ...,
"video_classification": ...,

"image_captioning": ...,
"region_captioning": ...,
"change_captioning": ...,
"grounded_description": ...,
"temporal_captioning": ...,
"video_captioning": ...,

"image_vqa": ...,
"temporal_vqa": ...,
"video_vqa": ...,

"detection": ...,
"visual_grounding": ...,

"semantic_segmentation": ...,
"referring_segmentation": ...,

"change_detection": ...,

"vp_caption": ...,
"vp_classification": ...,
"vp_vqa": ...,
"vp_relationship": ...,

"relation_reasoning": ...
}

Do not make task-specific neural heads.

Task differences should primarily affect:

  • prompt
  • input organization
  • target serialization

22. VISUAL PROMPTING

Implement dual-image visual prompting.

The paper describes visual prompting where a user marks:

  • points
  • boxes
  • ellipses

on a separate blank image alongside the original.

Therefore support:

original image
+
prompt/annotation image

as multi-image input.

Implement generation of prompt images from annotations.

Support:

VP-caption
VP-classification
VP-VQA
VP-relationship

23. DATASET SYSTEM

Build a general dataset conversion framework.

Repository:

data/
├── raw/
├── converted/
├── manifests/
├── converters/
├── validators/
├── templates/
└── loaders/

Every dataset should become a common record:

{
"id": "...",
"task": "...",
"subtask": "...",
"modality": "...",
"image": "...",
"images": [],
"video": null,
"conversation": [
{
"role": "user",
"content": "..."
},
{
"role": "assistant",
"content": "..."
}
],
"spatial_annotations": [],
"metadata": {}
}

24. MMRS-ONEVISION DATA

The paper reports:

approximately 34M QA pairs

across:

  • six sensor modalities
  • cross-sensor fusion
  • nine task categories
  • 25 subtasks

The reported distribution is approximately:

Optical 66%
SAR 16%
Temporal 11%
other modalities = remainder

Major task volumes include approximately:

VQA 9.9M
Captioning 7.5M
Detection 6.5M
Segmentation 3.6M
Visual Prompting 3.1M
Classification 2.7M
Visual Grounding 0.7M
Relation 0.5M
Change Detection 0.2M

Implement a manifest system capable of reproducing these distributions.

Do not fabricate the 34M dataset if the original data are unavailable.

Instead provide:

download scripts
conversion scripts
dataset manifests
validation scripts

and allow the user to supply legally obtained source datasets.


25. DATASET SOURCES

Implement converters/loaders for the datasets listed by the paper where licensing/access permits.

Examples include:

NWPU-Captions
RSICD
UCM-Captions
Sydney-Captions
RemoteCLIP
HQRS-IT
GeoText
RSCap
RSD46-WHU
DIOR
WHU-RS19
FIT-RS
SARLANG-1M
EarthDial-Instruct
EarthMind-Instruct
LEVIR-MCI
WHU-CDC
SECOND
S2Looking
...

Detection:

DIOR
DOTA
xView
VisDrone
FAIR1M
HRRSD
RSOD
UCAS-AOD
SARDet
HRSID
SSDD
SAR-AIRcraft
HIT-UAV
...

Segmentation:

CrowdAI
LoveDA
OpenEarthMap
Potsdam
WHU-Building
GeoPixInstruct
RefGeo
EarthReason
RRSIS-D
RISBench
RemoteSAM
NWPU-Ref
RefSegRS
...

Use the paper's Table II as the authoritative inventory.


26. DATA CONVERSION

For every dataset converter implement:

download()
verify()
convert()
validate()
write_manifest()

Do not mix downloading, preprocessing, and training into one script.

Example:

python tools/download_dataset.py --dataset dior
python tools/convert_dataset.py --dataset dior
python tools/validate_dataset.py --dataset dior

27. GPT-ASSISTED SYNTHESIS

The paper uses GPT-4o for part of the synthetic QA generation.

Implement a pluggable synthesis system.

Example:

data/synthesis/
├── openai_backend.py
├── batch_generator.py
├── prompts/
├── validators.py
└── cache.py

The system must enforce the paper's principle:

existing annotations are factual anchors

Generated text must NOT invent:

  • new object categories
  • new coordinates
  • unsupported spatial relationships

Implement structured prompts requiring the LLM to preserve source annotations.


28. QUALITY CONTROL

Implement the two-stage quality control described in the paper:

generated sample
↓
rule-based validation
↓
semantic review
↓
accepted/rejected

The paper describes semantic review using InternVL3-72B.

Make the semantic reviewer backend configurable.

Do not require InternVL3 for local smoke tests.

Provide:

mock reviewer
OpenAI reviewer
local HuggingFace reviewer

where feasible.


29. DATA LEAKAGE PREVENTION

This is mandatory.

The paper states that downstream benchmark test splits are excluded from:

  • dataset collection
  • conversion
  • synthesis
  • training

Implement explicit exclusion lists.

Provide:

data/leakage/
├── benchmark_exclusions.yaml
└── validator.py

The validator must fail the build if a known evaluation sample enters training.


30. TRAINING: PCMA

Implement:

Progressive Cross-Modality Adaptation

The paper has two stages.


STAGE 1​

Bridge:

natural image distribution
↓
optical remote sensing

Stage 1 combines:

natural-scene instruction data
+
optical RS instruction data

The purpose is to establish:

  • overhead viewpoint understanding
  • RS spatial semantics
  • object morphology
  • spatial reasoning

Use the actual foundation model initialization.


STAGE 2​

Bridge:

optical RS
↓
non-optical / broader modalities

Add:

SAR
infrared
multispectral
temporal
video
cross-sensor fusion

Continue mixing optical data to prevent catastrophic forgetting.


31. TRAINING LOSS

All tasks must use the same autoregressive cross-entropy loss.

Paper:

L = - Σ_{t∈R} log P(y_t | y_<t, x)

where R is the response-token index set.

Implement response-only loss masking.

Prompt tokens should not contribute to the training loss.

Visual tokens must also be excluded from the response loss.

Implement:

labels[input_tokens] = -100

where appropriate.


32. TRAINING CONFIGURATION

Reproduce the reported setup:

8 × H100 80GB
DeepSpeed ZeRO-2
bfloat16

Build a DeepSpeed configuration.

Do not merely document it.

Provide:

configs/deepspeed_zero2.json

and training commands.


33. OPTIMIZER

Use the optimizer and hyperparameters stated in the paper where specified.

If an exact optimizer parameter is not stated:

mark as UNSPECIFIED_BY_PAPER

and make it configurable.

Do not hide assumptions.


34. LEARNING RATE

The paper's training recipe must be extracted precisely.

Implement stage-specific learning rates:

stage1:
learning_rate: ...

stage2:
learning_rate: ...

Do not assume that Stage 1 and Stage 2 use the same LR.


35. TRAINING SCRIPT

Provide:

scripts/train_stage1.sh
scripts/train_stage2.sh

Example:

deepspeed \
--num_gpus=8 \
training/train.py \
--config configs/stage1.yaml

and:

deepspeed \
--num_gpus=8 \
training/train.py \
--config configs/stage2.yaml

The exact command should work.


36. CHECKPOINTING

Implement:

checkpoints/
├── stage1/
├── stage2/
└── final/

Support:

  • periodic checkpointing
  • resume
  • optimizer state
  • scheduler state
  • tokenizer
  • config
  • model weights

A checkpoint must contain enough metadata to reproduce the exact model configuration.


37. CHECKPOINT FORMAT

Use Hugging Face-compatible formats where possible.

Provide:

save_pretrained()
from_pretrained()

for the complete Earth-OneVision model.

Also support DeepSpeed checkpoint conversion.


38. INFERENCE

Implement:

python inference.py \
--model checkpoints/final \
--image image.jpg \
--prompt "Describe the scene."

Support:

--task vqa
--task caption
--task detection
--task grounding
--task segmentation
--task classification
--task change_detection
--task visual_prompting

Also support multimodal:

--images image1.jpg image2.jpg

and:

--modality optical
--modality sar
--modality infrared
--modality multispectral
--modality temporal
--modality video

39. OUTPUT DECODING

The inference pipeline must automatically detect:

text tokens
coordinate tokens
segmentation tokens

and decode them.

For example:

coordinate tokens
↓
normalized coordinates
↓
pixel coordinates

and:

R-RLE
↓
24×24 mask
↓
upsample to original resolution

Return structured output:

{
"text": "...",
"boxes": [],
"oriented_boxes": [],
"points": [],
"masks": []
}

40. EVALUATION

Implement evaluation scripts for the paper's reported benchmark categories.

At minimum provide infrastructure for:

classification
captioning
visual grounding
VQA
detection
segmentation
change detection
visual prompting
relation reasoning

Metrics should include the metrics used by the paper, such as:

Accuracy
Recall
Precision@0.5
mIoU
METEOR
ROUGE-1
ROUGE-L
SIoU

and other benchmark-specific metrics where appropriate.

Do not replace benchmark metrics with arbitrary metrics.


41. PAPER RESULT REPRODUCTION

Create:

evaluation/paper_results.py

with a table comparing:

Earth-OneVision reproduced
vs
paper-reported Earth-OneVision

For each benchmark:

benchmark
metric
paper_value
reproduced_value
absolute_difference
relative_difference

Allow tolerance thresholds.

Example:

tolerances:
classification_accuracy: 2.0
grounding_p05: 3.0

Do not claim reproduction success unless the numbers are actually measured.


42. ABLATIONS

Implement optional ablations:

baseline:
standard final-layer projector

+ ACSA

+ DeepStack

+ ACSA + DeepStack

+ SLIS

+ PCMA

full Earth-OneVision

This should allow investigating whether each contribution actually matters.


43. UNIT TESTS

Write serious tests.

At minimum:

tests/
├── test_coordinate_tokens.py
├── test_rrle.py
├── test_slis.py
├── test_acsa.py
├── test_deepstack.py
├── test_projector.py
├── test_modalities.py
├── test_dataset_schema.py
├── test_loss_masking.py
├── test_generation.py
└── test_end_to_end.py

Examples:

Coordinate roundtrip​

coords
→ serialize
→ deserialize

must approximately recover the original coordinate.

R-RLE roundtrip​

mask
→ R-RLE
→ mask

must exactly recover the 24×24 quantized representation.

ACSA​

Check:

[B,N,D] → [B,N,D]

and gradient propagation.

DeepStack​

Verify intermediate visual features reach the intended LLM layers.

Loss​

Verify prompt tokens have zero loss.


44. SMOKE TEST

The repository must contain a tiny synthetic dataset.

The entire pipeline must run without the real 34M dataset.

Example:

python scripts/smoke_test.py

It should:

  1. create synthetic images
  2. create synthetic boxes
  3. create synthetic masks
  4. serialize them
  5. tokenize them
  6. run the model
  7. calculate loss
  8. perform backward pass
  9. save checkpoint
  10. reload checkpoint
  11. perform generation
  12. decode generated spatial outputs

This must run on a single GPU.

Preferably it should also run on CPU for serialization/model-assembly tests.


45. MEMORY EFFICIENCY

The real model is intended for:

8 × H100 80GB

Therefore implement:

  • bf16
  • gradient checkpointing
  • DeepSpeed ZeRO-2
  • gradient accumulation
  • distributed sampler
  • efficient image processing
  • efficient visual token concatenation
  • optional FlashAttention
  • optional activation checkpointing

Do not assume a single H100 can train the complete model.


46. CONFIGURATION

Everything important must be configurable.

Example:

model:
llm_name: ...
vision_name: ...

vision:
intermediate_layers:
- ...
- ...
- ...

fgvla:
num_scales: 3
acsa_rank: ...
deepstack_layers:
- ...
- ...
- ...

projector:
hidden_dim: ...

slis:
coordinate_bins: 1000
mask_size: 24

training:
stage: 1
learning_rate: ...
batch_size_per_gpu: 4
gradient_accumulation_steps: ...
epochs: 4
precision: bf16
max_sequence_length: 5400

deepspeed:
config: configs/deepspeed_zero2.json

47. EXPERIMENT TRACKING

Implement optional:

Weights & Biases
TensorBoard
CSV/JSON logging

Track:

  • loss
  • learning rate
  • gradient norm
  • tokens/sec
  • samples/sec
  • GPU memory
  • modality distribution
  • task distribution
  • validation metrics

No experiment tracker should be mandatory.


48. REPRODUCIBILITY

Provide:

environment.yml
requirements.txt
pyproject.toml
Dockerfile

and:

scripts/setup.sh
scripts/download_models.sh
scripts/verify_environment.sh

Pin important dependencies.

Record:

Python
PyTorch
Transformers
DeepSpeed
CUDA
FlashAttention

versions.


49. MODEL CARD

Create:

MODEL_CARD.md

containing:

  • architecture
  • training data
  • limitations
  • licenses
  • source datasets
  • intended use
  • non-intended use
  • reproducibility caveats
  • differences from the paper
  • known assumptions

50. DATASET CARD

Create:

MMRS_ONEVISION_DATASET_CARD.md

Document:

  • source datasets
  • transformations
  • task distribution
  • modality distribution
  • synthetic generation
  • GPT-assisted generation
  • QC
  • leakage prevention
  • licenses
  • known unavailable datasets

Do NOT redistribute datasets whose licenses prohibit redistribution.

Instead provide download/conversion scripts.


51. LEGAL / LICENSING REQUIREMENTS

Do not blindly bundle third-party datasets.

For every dataset:

dataset
license
source URL
download method
redistribution allowed?

Store this in:

data/dataset_registry.yaml

If a dataset requires manual download, say so.


52. IMPORTANT: WEIGHTS

Search for an official Earth-OneVision checkpoint.

Check:

  • paper
  • authors' GitHub
  • project page
  • Hugging Face
  • supplementary material
  • paper references
  • official repository
  • author repositories

Do not confuse:

Earth-OneVision

with:

RSVLM
MF-RSVLM
FUSE-RSVLM
EarthGPT
EarthDial
GeoChat

If official Earth-OneVision weights exist:

  1. document their source
  2. implement downloader
  3. implement loader
  4. verify parameter count
  5. verify architecture compatibility

If they do NOT exist:

DO NOT FABRICATE WEIGHTS.

Instead:

1. use the official Qwen3 and SigLIP-2 base weights
2. initialize Earth-OneVision-specific modules
3. train them
4. produce our own reproduction checkpoint

Clearly label it:

Earth-OneVision reproduction checkpoint

NOT:

official Earth-OneVision checkpoint

53. PARAMETER COUNT

Implement:

python tools/count_parameters.py

Report:

LLM parameters
vision parameters
projector parameters
FGVLA parameters
SLIS vocabulary parameters
total trainable parameters
total parameters

Verify the result is consistent with the paper's approximately 2B model size.

If the count differs materially, investigate.

Do not simply change the displayed number.


54. ARCHITECTURE VALIDATION

Implement:

python tools/inspect_model.py

which prints:

Earth-OneVision
├── SigLIP-2
├── ACSA
│ ├── scale 1
│ ├── scale 2
│ └── scale 3
├── DeepStack
│ ├── level 1
│ ├── level 2
│ └── level 3
├── MLP projector
└── Qwen3 2B

Also print tensor shapes during a debug forward pass.


55. PAPER-TO-CODE TRACEABILITY

This is mandatory.

Every major paper mechanism must have a reference in the code.

For example:

# Earth-OneVision paper:
# Section III-B, Eq. (2)-(5)
# Adaptive Cross-Scale Attention

and:

# Earth-OneVision paper:
# Section III-C, Eq. (7)
# Unified spatial-linguistic vocabulary

and:

# Earth-OneVision paper:
# Section III-D
# Progressive Cross-Modality Adaptation

Create:

docs/paper_to_code.md

with:

Paper section
↓
Paper equation/figure
↓
Repository file
↓
Class/function

56. NO FAKE IMPLEMENTATION

Do NOT write placeholder code such as:

pass

or:

TODO: implement later

for core functionality.

Do NOT create fake datasets.

Do NOT generate fake benchmark scores.

Do NOT claim a result is reproduced when it has not been evaluated.

Do NOT silently simplify FGVLA.

Do NOT silently replace Qwen3.

Do NOT silently replace SigLIP-2.

Do NOT implement segmentation with SAM.

Do NOT implement detection with YOLO.

Do NOT add task-specific heads that contradict the paper.


57. HANDLING PAPER AMBIGUITIES

The paper does not necessarily specify every low-level engineering detail.

When something is unspecified:

  1. identify the ambiguity
  2. inspect cited architecture papers if relevant
  3. inspect the actual pretrained model architecture
  4. choose the most defensible implementation
  5. put the decision in docs/assumptions.md
  6. make it configurable
  7. never claim it was explicitly specified by Earth-OneVision

Use this classification:

PAPER_EXPLICIT
CITED_WORK_EXPLICIT
IMPLEMENTATION_INFERENCE
ENGINEERING_CHOICE
UNKNOWN

58. DEVELOPMENT ORDER

Do NOT attempt to write the entire repository blindly in one pass.

Follow this order.

Phase 1​

Paper analysis:

docs/paper_spec.md
docs/assumptions.md
docs/paper_to_code.md

Phase 2​

Foundation model loading:

SigLIP-2
Qwen3

Verify both work independently.

Phase 3​

SLIS:

coordinate tokens
R-RLE
serialization
deserialization
vocabulary

Fully unit test this.

Phase 4​

FGVLA:

ACSA
DeepStack
projector

Test tensor flow.

Phase 5​

Multimodal input:

optical
SAR
infrared
multispectral
temporal
video
fusion

Phase 6​

Training:

single GPU
multi GPU
DeepSpeed
stage 1
stage 2

Phase 7​

Dataset converters.

Phase 8​

Evaluation.

Phase 9​

Ablations.

Phase 10​

Full reproducibility run.


59. REQUIRED REPOSITORY STRUCTURE

Build approximately:

earth-onevision/
│
├── README.md
├── LICENSE
├── MODEL_CARD.md
├── MMRS_ONEVISION_DATASET_CARD.md
├── pyproject.toml
├── requirements.txt
├── environment.yml
├── Dockerfile
│
├── configs/
│ ├── base.yaml
│ ├── stage1.yaml
│ ├── stage2.yaml
│ ├── inference.yaml
│ └── deepspeed_zero2.json
│
├── model/
│ ├── earth_onevision.py
│ ├── vision_encoder.py
│ ├── projector.py
│ │
│ ├── fgvla/
│ │ ├── __init__.py
│ │ ├── acsa.py
│ │ └── deepstack.py
│ │
│ └── slis/
│ ├── __init__.py
│ ├── vocabulary.py
│ ├── coordinate_tokens.py
│ ├── r_rle.py
│ ├── serializer.py
│ └── parser.py
│
├── data/
│ ├── schema.py
│ ├── registry.yaml
│ ├── dataset.py
│ ├── collator.py
│ │
│ ├── converters/
│ ├── processors/
│ ├── synthesis/
│ ├── validators/
│ └── manifests/
│
├── training/
│ ├── train.py
│ ├── trainer.py
│ ├── loss.py
│ ├── distributed.py
│ └── checkpointing.py
│
├── inference/
│ ├── generate.py
│ ├── decoder.py
│ └── pipeline.py
│
├── evaluation/
│ ├── classification.py
│ ├── captioning.py
│ ├── detection.py
│ ├── grounding.py
│ ├── segmentation.py
│ ├── change_detection.py
│ ├── vqa.py
│ ├── visual_prompting.py
│ ├── relation_reasoning.py
│ └── paper_results.py
│
├── tests/
│ ├── test_acsa.py
│ ├── test_deepstack.py
│ ├── test_slis.py
│ ├── test_rrle.py
│ ├── test_modalities.py
│ ├── test_dataset.py
│ └── test_end_to_end.py
│
├── scripts/
│ ├── setup.sh
│ ├── download_models.sh
│ ├── train_stage1.sh
│ ├── train_stage2.sh
│ ├── evaluate.sh
│ └── smoke_test.sh
│
└── docs/
├── paper_spec.md
├── assumptions.md
├── paper_to_code.md
├── architecture.md
├── training.md
├── datasets.md
└── reproducibility.md

60. README REQUIREMENTS

The README must allow a researcher to go from zero to inference.

61. SATQUERY AI DATASET STRATEGY

The goal is NOT to reproduce the entire approximately 34M-sample Earth-OneVision training corpus if doing so is impractical.

Instead, build a focused, legally reproducible dataset stack that covers every mandatory capability of the SatQuery AI project while following the architectural principles of Earth-OneVision.

The target capabilities are:

1. Remote-sensing domain adaptation
2. Single-image VQA
3. Single-image captioning OR grounding
4. Bi-temporal change understanding
5. Optical + SAR cross-modal reasoning
6. Spatial/evidence-grounded responses
7. Agentic task routing

Use multiple public datasets rather than forcing one dataset to perform every task.


62. PRIMARY DATASET STACK

Use the following datasets as the primary SatQuery training/evaluation stack:

BigEarthNet-MM
↓
Remote-sensing / multisensor adaptation

SEN12MS-CR
↓
Optical + SAR + temporal reasoning

RSVQA
↓
Single-image VQA

VRSBench
↓
Captioning + grounding

CDVQA
↓
Bi-temporal change VQA

LEVIR-CD
↓
Pixel-level change evidence

Optionally add:

WHU-CD
SECOND
SEN12MS

for additional change/multisensor training.


63. WHY THIS DATASET STACK

The SatQuery system has fundamentally different data requirements.

Do NOT expect one dataset to simultaneously provide:

optical
SAR
multispectral
temporal pairs
VQA
captioning
grounding
change descriptions
change masks
cross-modal reasoning

Instead construct a unified task-oriented corpus.

The architecture should therefore operate on:

SatQuery Dataset
│
┌──────────────────┼──────

Include:

git clone ...
cd earth-onevision

conda env create -f environment.yml
conda activate earth-onevision

bash scripts/download_models.sh

python scripts/smoke_test.py

Then:

bash scripts/train_stage1.sh
bash scripts/train_stage2.sh

Then inference:

python inference/generate.py \
--model checkpoints/final \
--image example.jpg \
--prompt "Describe this remote sensing image."

61. FINAL ACCEPTANCE TEST

Do not declare the task finished until all of these work.

Test 1​

Foundation models load.

Test 2​

Tokenizer extension works.

Test 3​

Coordinate serialization roundtrip works.

Test 4​

R-RLE roundtrip works.

Test 5​

ACSA forward/backward works.

Test 6​

DeepStack forward/backward works.

Test 7​

Single optical image works.

Test 8​

SAR works.

Test 9​

Infrared works.

Test 10​

Multispectral works.

Test 11​

Temporal multi-image input works.

Test 12​

Video works.

Test 13​

Cross-sensor input works.

Test 14​

Detection generation works.

Test 15​

Grounding generation works.

Test 16​

Segmentation generation works.

Test 17​

Change detection works.

Test 18​

Visual prompting works.

Test 19​

VQA works.

Test 20​

Captioning works.

Test 21​

Relation reasoning works.

Test 22​

Loss/backprop works.

Test 23​

Checkpoint save/load works.

Test 24​

DeepSpeed distributed launch works.

Test 25​

Evaluation scripts execute.


62. FINAL REPORT

At the end, produce:

REPRODUCTION_REPORT.md

containing:

Architecture​

What was implemented.

Paper fidelity​

For every mechanism:

FGVLA ✓
ACSA ✓
DeepStack ✓
SLIS ✓
PCMA ✓

Dataset​

What datasets were actually obtained.

What datasets were unavailable.

What was converted.

What was synthesized.

Training​

Exact configuration used.

Hardware​

Actual hardware used.

Results​

Actual reproduced results.

Differences​

Every deviation from the paper.

Unknowns​

Every paper detail that could not be determined.

Checkpoint​

Exact location and format of the reproduction checkpoint.


63. MOST IMPORTANT REQUIREMENT

Treat the paper as a scientific specification.

The objective is NOT:

"make something that looks like Earth-OneVision."

The objective is:

"produce the closest technically defensible open implementation of Earth-OneVision possible from the published paper and publicly available components."

Every decision must therefore be traceable.

When the paper says something explicitly, reproduce it.

When the paper does not say something, do not hallucinate it.

When a cited paper provides a missing architectural detail, investigate it.

When an official checkpoint exists, use it.

When no official checkpoint exists, train from the specified foundation weights and clearly label the resulting checkpoint as a reproduction.

When a dataset is unavailable, provide the converter/download interface and continue with every legally available dataset rather than fabricating data.

At the end, the repository must be capable of:

raw RS datasets
↓
dataset conversion
↓
MMRS-OneVision-style unified records
↓
SLIS serialization
↓
multimodal preprocessing
↓
SigLIP-2
↓
FGVLA
├── ACSA
└── DeepStack
↓
MLP projector
↓
visual tokens
+
text tokens
↓
Qwen3 2B
↓
unified autoregressive generation
↓
text / boxes / oriented boxes / points / R-RLE masks
↓
benchmark evaluation

This is the complete target.

Do not stop after implementing the model architecture.

The dataset construction + serialization + modality pipeline + training curriculum + evaluation pipeline are part of the reproduction.