Skip to main content

Implementation Assumptions

Every entry follows TASK.md Sec. 57's classification: PAPER_EXPLICIT / CITED_WORK_EXPLICIT / IMPLEMENTATION_INFERENCE / ENGINEERING_CHOICE / UNKNOWN.

None of these are claimed to be specified by Earth-OneVision unless tagged PAPER_EXPLICIT or CITED_WORK_EXPLICIT. All are configurable in configs/*.yaml so they can be overridden without code changes.


A1. Exact Qwen3 checkpoint identifier​

Ambiguity: The paper says "Qwen3 (2B)" but no HF repo literally named "Qwen3-2B" exists. Qwen3's public dense checkpoints are 0.6B / 1.7B / 4B / 8B / 14B / 32B (plus MoE variants). "2B" is the paper's own parameter accounting for the assembled Earth-OneVision model, not necessarily identical to any single public Qwen3 SKU name.

Decision: Default to Qwen/Qwen3-1.7B as the base LLM (closest public dense checkpoint below 2B; adding the SigLIP-2 vision tower + FGVLA + projector brings the assembled total near the paper's ~2B figure - verified numerically by tools/count_parameters.py). Exposed as configs/base.yaml: model.llm_name, swappable to Qwen/Qwen3-4B for an ablation closer in raw LLM size if the 1.7B total undershoots 2B materially.

Classification: IMPLEMENTATION_INFERENCE. Never described as the official Earth-OneVision checkpoint (no such public weights exist - see Sec. 52 search below).


A2. Training hardware - Apple Silicon first​

Ambiguity: paper prescribes 8×H100 80GB + DeepSpeed ZeRO-2 + NCCL. This repository is developed and validated on a single Apple M5 Pro MacBook Pro (48GB unified memory, Metal/MPS, no CUDA, no NCCL). DeepSpeed does not support MPS.

Decision: configs/deepspeed_zero2.json is still provided for CUDA multi-GPU nodes (documented in docs/training.md). The MPS-optimized config is configs/mps.yaml. training/train.py auto-detects the accelerator via training/distributed.py:get_device_strategy() - MPS gets fp32 autocast and single-device training with gradient accumulation standing in for multi-GPU batch size, plus gradient checkpointing for memory. Real Stage 1/Stage 2 training at paper scale is not physically run in this environment; the smoke test (scripts/smoke_test.py) exercises the identical code path end-to-end at toy scale on CPU/MPS.

Classification: ENGINEERING_CHOICE, mandated by real hardware constraints, documented per TASK.md's explicit instruction not to assume a single accelerator can train the full model at paper scale.


A3. SigLIP-2 vision tower fine-tuning status​

Ambiguity: Sec. V-A states "The FGVLA module, MLP connector, and LLM undergo full fine-tuning," naming three components. The SigLIP-2 vision encoder itself is not named.

Decision: Vision tower is frozen by default (configs/base.yaml: model.vision.freeze: true), matching the common practice this sentence's specificity implies (if the vision tower were also tuned, the paper would very likely have said "vision encoder, FGVLA, MLP connector, and LLM"). Configurable to unfrozen for ablation.

Classification: IMPLEMENTATION_INFERENCE.


A4. Exact intermediate ViT layer indices {l1, l2, l3}​

Ambiguity: Paper fixes S=3 intermediate levels but never gives numeric layer indices within SigLIP-2's N transformer blocks.

Decision: Evenly spaced at 1/4, 1/2, 3/4 depth of the vision tower (computed from the actual loaded backbone's config.num_hidden_layers at model-build time, not hard-coded), plus the final layer as F_N. E.g. for a 27-layer SigLIP-2 tower: l1≈7, l2≈14, l3≈20, F_N=27. Exposed as configs/base.yaml: model.vision.intermediate_layers and documented in docs/architecture.md.

Classification: ENGINEERING_CHOICE (even depth-spacing is the standard choice used by DeepStack-style multi-level injection papers cited by Earth-OneVision, e.g. Qwen3-VL).


A5. ACSA low-rank dimension r and query bias Δq_s​

Ambiguity: Eq. 3 specifies W^d ∈ R^{d×r} with "r ≪ d" but gives no numeric r. Eq. 2's Δq_s ("per-scale learnable bias") is not given a parameterization (scalar? vector? shape?).

Decision: r = d/8 by default (configs/base.yaml: model.fgvla.acsa_rank, e.g. d=1536 → r=192), a standard low-rank ratio. Δq_s implemented as a learned vector in R^d, one per scale, added to the projected query before attention (the simplest reading consistent with "Q_s = F_N W_Q + Δq_s" being a per-scale additive perturbation of the same base query).

Classification: ENGINEERING_CHOICE.


A6. DeepStack injection layer indices and 4x length reduction mechanism​

Ambiguity: Eq. 6 states φ_s: R^{L×d} → R^{L/4×d'} and injection into "early LLM layers" without naming which Qwen3 decoder layer indices receive levels 1/2/3, nor how the 4x sequence reduction is performed (pooling? strided selection? learned pooling?).

Decision: Injection layers default to the first 3 transformer blocks of the Qwen3 decoder (layer indices [0, 1, 2] - one visual level per layer, matching Fig. 3's one-to-one level→layer correspondence), configurable via configs/base.yaml: model.fgvla.deepstack.injection_layers. The 4x reduction is implemented as 2×2 average pooling over the visual token grid (consistent with the projector's own "2×2 spatial merging" language used elsewhere in the same paper for a structurally identical 4x reduction), followed by a linear projection to d' = LLM hidden size.

Classification: ENGINEERING_CHOICE, cross-referenced against the paper's own 2×2-merge language (Sec. III-A) for internal consistency rather than invented from nothing.


A7. V_seg finite label vocabulary enumeration​

Ambiguity: Eq. 7 defines V_seg abstractly; the paper only gives task-specific example labels (target/others for referring segmentation; category names for semantic segmentation; building-change/road-change/no-change for change detection) without enumerating the complete finite vocabulary.

Decision: model/slis/vocabulary.py builds V_seg as a deterministic, closed, configurable list: 2 generic referring-segmentation labels + N semantic category labels (derived from whichever dataset's class list is active, e.g. LoveDA's 7 classes) + change-detection labels ({category}-change, no-change per category). The vocabulary is invertible (label ↔ id) and frozen at tokenizer-build time so token IDs are stable across a training run.

Classification: IMPLEMENTATION_INFERENCE.


A8. Video frame sampling parameters​

Ambiguity: Paper says video uses "range-sampled" frames but gives no default frame count or exact sampling window definition.

Decision: num_frames=8 default, sampling_strategy="uniform" (evenly spaced across the full clip) as the primary path, with a "range" strategy (uniform sampling within a bounded sub-window) also implemented per TASK.md Sec. 10 requirement. Configurable in configs/base.yaml: modalities.video.

Classification: ENGINEERING_CHOICE.


A9. SAR / infrared pseudo-RGB normalization​

Ambiguity: Paper states SAR and infrared are "replicated... to pseudo-RGB" but does not specify the intensity normalization applied before replication (dB scaling? percentile clipping? min-max?).

Decision: Deterministic per-image percentile clipping (2nd/98th percentile) then min-max scaling to [0,255] before 1-channel → 3-channel replication, configurable in configs/base.yaml: modalities.sar.normalization / modalities.infrared.normalization. No learned SAR-specific encoder is introduced (TASK.md explicitly forbids this).

Classification: ENGINEERING_CHOICE.


A10. Multispectral band grouping into pseudo-RGB​

Ambiguity: Paper states multispectral bands are "grouped into pseudo-RGB" for multi-image mode but gives no explicit band-index mapping.

Decision: For Sentinel-2 (BigEarthNet's sensor), 3 pseudo-RGB triplets are used by default: (1) true-color B04/B03/B02, (2) false-color-vegetation B08/B04/B03, (3) SWIR-composite B12/B8A/B04 - a standard, widely-used Sentinel-2 visualization convention (not paper-specified). Configurable via configs/base.yaml: modalities.multispectral.band_groups.

Classification: ENGINEERING_CHOICE.


A11. Reproduction checkpoint provenance (Sec. 52 of TASK.md)​

No official Earth-OneVision checkpoint was found: not on the paper's arXiv listing, not on Hugging Face (searched for "Earth-OneVision", "EarthOneVision" - no matching public repo), and the paper includes no code/weights release URL in the extracted text. Consistent with TASK.md's explicit instruction, no weights are fabricated. This repository initializes from public google/siglip2-* and Qwen/Qwen3-1.7B foundation weights and trains only the assembled Earth-OneVision-specific modules (FGVLA, projector, extended embeddings) plus full LLM fine-tuning per Sec. V-A. Any checkpoint this repo produces is saved and labeled checkpoints/.../earth_onevision_reproduction - never "official Earth-OneVision checkpoint."

Classification: UNKNOWN resolved by policy (Sec. 52's fallback path), not PAPER_EXPLICIT.


A12. No dataset downloads; smoke tests use the smallest public checkpoints​

Constraint: this development machine's disk was already at 94% utilization (61GB free of 927GB) before this project started. Per explicit user instruction, none of the real MMRS-OneVision source datasets (BigEarthNet-MM, SEN12MS-CR, RSVQA, VRSBench, CDVQA images, LEVIR-CD - each tens to hundreds of GB) are downloaded by this repo's tooling; data/converters/*.py either operate on annotation files already present under external/ (e.g. CDVQA's JSON) or raise ManualDownloadRequired with instructions, and are validated against real annotations without requiring the associated imagery.

Decision: tests/test_end_to_end.py and scripts/smoke_test.py use Qwen/Qwen3-0.6B (the smallest public dense Qwen3 checkpoint, ~1.2GB) + google/siglip2-base-patch16-naflex (~0.4GB) rather than the production defaults in configs/base.yaml (Qwen/Qwen3-1.7B), to keep test/dev disk and bandwidth usage minimal while still exercising the exact same code path end-to-end against real pretrained weights (not mocks).

Classification: ENGINEERING_CHOICE, driven by real hardware/disk constraints, per TASK.md's own instruction not to assume unlimited resources.


Running scripts/smoke_test.py on this Apple Silicon machine surfaced two genuine PyTorch/MPS gaps (torch==2.5.1), not modeling choices:

  1. SigLIP-2 NaFlex positional-embedding resize. Siglip2VisionTransformer calls F.interpolate(..., antialias=True) (aten::_upsample_bilinear2d_aa), which has no MPS kernel and raises NotImplementedError even with PYTORCH_ENABLE_MPS_FALLBACK=1 set (that flag does not cover this specific op in this torch version). Fix: EarthOneVisionModel.to() (model/earth_onevision.py) deliberately keeps the SigLIP-2 vision tower pinned to CPU - it is small (~93M params for the base variant) and frozen by default (#A3) - while ACSA/DeepStack/projector/LLM run on MPS; encode_image() moves the resulting features onto the target device immediately after encoding.
  2. Qwen3 grouped-query-attention fused kernel during .generate(). Qwen3's GQA (16 query heads / 8 KV heads for the 0.6B/1.7B configs) hits an MPS mps_matmul shape-inference crash ("incompatible dimensions" / "invalid shape") inside PyTorch's fused scaled_dot_product_attention kernel specifically during incremental decoding. Fix: EarthOneVisionConfig.attn_implementation defaults to "eager" on MPS (auto-detected in EarthOneVisionModel.__init__), which bypasses the fused kernel; CUDA/CPU keep the default "sdpa" path, which is unaffected.

Classification: ENGINEERING_CHOICE (both are hardware-driven workarounds for real, reproduced bugs, verified fixed by scripts/smoke_test.py passing all 12 steps end-to-end on this machine after applying them) - not a deviation from anything the paper specifies.


A14. SS (Semantic Similarity) and SIoU (Semantic IoU) exact formulas​

Ambiguity: Table X reports "SS" and "SIoU" for visual-prompting region classification/ captioning, and Sec. V-A lists "SIoU for visual prompting" among the paper's metrics, but neither metric's exact computation is given beyond the name.

Decision: evaluation/metrics.py:semantic_iou implements both as a token-set Jaccard (intersection-over-union of the predicted and reference strings' word sets), the simplest reading consistent with the "IoU"/"similarity" naming that requires no external model or embedding space.

Classification: ENGINEERING_CHOICE. A closer reproduction might use embedding-based semantic similarity (e.g. sentence-transformers cosine similarity) instead of token overlap; this was not implemented to avoid adding a new heavyweight embedding-model dependency for a metric the paper does not define precisely enough to reproduce exactly either way.


A15. SatQuery AI "confidence" score​

Ambiguity: the SIH problem statement requires the agentic controller to "estimate confidence" alongside its answer. Earth-OneVision itself defines no confidence score anywhere in the paper - it is a pure autoregressive generator, not a calibrated classifier.

Decision: inference/pipeline.py:_mean_token_probability computes the mean softmax probability the model assigned to each token it actually generated (via generate(output_scores=True, return_dict_in_generate=True)), exposed as DecodedOutput.confidence. app/backend/controller.py falls back to a neutral 0.5 only if scores were unavailable (e.g. a caller explicitly disabled return_dict_in_generate).

Classification: ENGINEERING_CHOICE, not PAPER_EXPLICIT - never claimed as a paper-defined metric in any user-facing text (MODEL_CARD.md, the frontend, or the JSON report).