Skip to main content

Provenance Report: What's From the Paper vs. What We Built

This document tracks the source of every component in the backend - what is abstracted from Earth-OneVision (arXiv:2606.10819), what is inferred from the cited works (Qwen3-VL, LLaVA), and what is original engineering for SatQuery AI / the Smart India Hackathon.

Tagging convention​

Every item is tagged with one of:

TagMeaning
PAPER_EXPLICITThe paper states this number/mechanism directly
CITED_WORK_EXPLICITThe paper defers to a cited work (e.g. Qwen3-VL's DeepStack)
IMPLEMENTATION_INFERENCENot stated; we inferred it from context
ENGINEERING_CHOICENot stated; we chose a standard convention
UNSPECIFIED_BY_PAPERThe paper does not give this value/detail at all
PS_INVENTEDInvented for the SIH problem statement, no paper basis

1. Architecture - abstracted from Earth-OneVision​

Core model assembly (Eq. 1)​

y = G( M(F̃_N), {φ_s(F_ls)}_{s=1..S}, T )

ComponentPaper refImplementationTag
Vision encoder (SigLIP-2 0.3B, NaFlex)Sec. III-Abackend/model/vision_encoder.py: SigLIP2VisionEncoderPAPER_EXPLICIT (family) / UNSPECIFIED_BY_PAPER (exact HF id)
LLM (Qwen3 2B)Sec. III-AQwen/Qwen3-1.7B via backend/model/earth_onevision.pyPAPER_EXPLICIT (family) / UNSPECIFIED_BY_PAPER (exact HF id)
2-layer MLP projector, 2×2 spatial mergeSec. III-Abackend/model/projector.py: VisionLanguageProjectorPAPER_EXPLICIT
FGVLA (ACSA + DeepStack)Sec. III-Bbackend/model/fgvla/PAPER_EXPLICIT
SLIS unified vocabSec. III-C, Eq. 7backend/model/slis/, backend/model/tokenizer_extension.pyPAPER_EXPLICIT
Modality input reorganizationSec. III-Abackend/data/processors/modality.pyPAPER_EXPLICIT
Multi-image concatenationSec. III-Abackend/model/earth_onevision.pyPAPER_EXPLICIT
<image> placeholder spliceLLaVA/Qwen-VL conventionbackend/model/earth_onevision.py:167ENGINEERING_CHOICE (not paper)

ACSA - Adaptive Cross-Scale Attention (Eq. 2–5)​

DetailPaper refImplementationTag
Q_s = F_N W_Q + Δq_s (Eq. 2)Sec. III-Bbackend/model/fgvla/acsa.py: ACSAPAPER_EXPLICIT
K_s/V_s low-rank projections (Eq. 3)Sec. III-Bbackend/model/fgvla/acsa.py: LowRankKVPAPER_EXPLICIT (structure) / UNSPECIFIED (rank r)
Scaled dot-product attention (Eq. 4)Sec. III-BF.scaled_dot_product_attentionPAPER_EXPLICIT
Fusion weights α = softmax(w) (Eq. 5)Sec. III-Bbackend/model/fgvla/acsa.pyPAPER_EXPLICIT

DeepStack - decoder-side injection (Eq. 6)​

DetailPaper refImplementationTag
Per-level MLP φ_sEq. 6, "Following Qwen3-VL"backend/model/fgvla/deepstack.py: DeepStackProjectorCITED_WORK_EXPLICIT → Qwen3-VL
Injection into early LLM layersEq. 6backend/model/fgvla/deepstack.py: DeepStackInjectorCITED_WORK_EXPLICIT
Which LLM layer indices are "early"-backend/configs/base.yaml: injection_layers: [0,1,2]ENGINEERING_CHOICE (A6)
4× token reduction method-2×2 avg-pool over patch gridENGINEERING_CHOICE (A6)

SLIS - Spatial-Linguistic Isomorphic Serialization​

DetailPaper refImplementationTag
1000 coordinate bins V_coordEq. 7backend/model/slis/coordinate_tokens.pyPAPER_EXPLICIT
q(c) = floor(c×1000)Eq. 7backend/model/slis/coordinate_tokens.pyPAPER_EXPLICIT
HBox: 4 tokens [x1,y1,x2,y2]Sec. III-Cbackend/model/slis/serializer.pyPAPER_EXPLICIT
OBox: 8 tokensSec. III-Cbackend/model/slis/serializer.pyPAPER_EXPLICIT
R-RLE: 24×24 max-pool, row-wiseSec. III-C/IV-Bbackend/model/slis/r_rle.pyPAPER_EXPLICIT
V_seg finite label enum-backend/model/slis/vocabulary.pyIMPLEMENTATION_INFERENCE (A7)
Structural tags as dedicated tokensFig. 3/4/6backend/model/slis/vocabulary.pyENGINEERING_CHOICE (not stated)

2. Training - abstracted from Earth-OneVision​

ComponentPaper refImplementationTag
PCMA two-stage curriculumSec. III-Dbackend/training/train.py, configs/stage{1,2}.yamlPAPER_EXPLICIT
Stage 1: viewpoint gap, lr=2e-5Sec. V-Aconfigs/stage1.yamlPAPER_EXPLICIT
Stage 2: physics gap + optical replay, lr=5e-6Sec. V-Aconfigs/stage2.yamlPAPER_EXPLICIT
Loss: L = -Σ_{t∈R} log P(y_t|y_<t,x)Sec. III-Dbackend/training/loss.pyPAPER_EXPLICIT
AdamW wd=0.05, cosine, warmup=0.03Sec. V-Abackend/training/trainer.pyPAPER_EXPLICIT
bf16 mixed precision, 8×H100, ZeRO-2Sec. V-Aconfigs/deepspeed_zero2.jsonPAPER_EXPLICIT
Batch 4/GPU, max_seq=5400, 4 epochsSec. V-Aconfigs/stage{1,2}.yamlPAPER_EXPLICIT
Fine-tune FGVLA + projector + LLMSec. V-Abackend/training/trainer.pyPAPER_EXPLICIT
Vision tower frozen-backend/configs/base.yaml: freeze: trueIMPLEMENTATION_INFERENCE (A3)
Response-only label maskingTASK.md Sec. 31backend/training/loss.py, backend/data/collator.pyPAPER_EXPLICIT
Device strategy (MPS/CUDA/CPU)-backend/training/distributed.pyPS_INVENTED (hardware adaptation)
Gradient accumulation for single-device-backend/training/trainer.pyENGINEERING_CHOICE (A2)

Unspecified training parameters (you figured these out)​

ParameterPaper saysYou choseTag
ACSA low-rank r"r ≪ d"d/8A5, ENGINEERING_CHOICE
Δq_s parameterization"per-scale learnable bias"learned R^d vector per scaleA5, ENGINEERING_CHOICE
DeepStack injection layers"early LLM layers"[0, 1, 2]A6, ENGINEERING_CHOICE
DeepStack 4× reduction"L → L/4"2×2 avg-poolA6, ENGINEERING_CHOICE
V_seg label listtask-specific examples onlyconfigurable closed listA7, IMPLEMENTATION_INFERENCE
Video frame count"range-sampled"num_frames=8, uniformA8, ENGINEERING_CHOICE
SAR/IR normalization"replicated to pseudo-RGB"2-98th percentile clipA9, ENGINEERING_CHOICE
MS band grouping"grouped into pseudo-RGB"true-color/false-veg/SWIR compositesA10, ENGINEERING_CHOICE
SS/SIoU formulasmetric names onlytoken-set JaccardA14, ENGINEERING_CHOICE

3. Data pipeline - partly paper, mostly invented​

ComponentPaper refImplementationTag
MMRS-OneVision record schemaSec. IVbackend/data/schema.pyENGINEERING_CHOICE (paper publishes no schema)
Per-dataset converters-backend/data/converters/*.pyPS_INVENTED
GPT-4o synthesis + factual anchorsSec. IV-Cbackend/data/synthesis/PAPER_EXPLICIT (mechanism) / PS_INVENTED (plumbing)
Two-stage QC (rule → semantic review)Sec. IV-Cbackend/data/synthesis/validators.pyPAPER_EXPLICIT (design) / ENGINEERING_CHOICE (local reviewer)
Leakage preventionSec. IV-Ebackend/data/leakage/PAPER_EXPLICIT
Visual prompting dual-imageSec. IV-Dbackend/data/processors/visual_prompting.pyPAPER_EXPLICIT (drawing style = choice)

4. Inference - paper design, invented plumbing​

ComponentPaper refImplementationTag
Single LM head for all output typesSec. III-Cbackend/inference/decoder.pyPAPER_EXPLICIT
Structured output decoding (text/boxes/masks)Sec. III-C/IV-Bbackend/inference/decoder.pyPS_INVENTED (decoder impl)
Generation pipeline-backend/inference/pipeline.pyPS_INVENTED
Task prompt templates-backend/inference/pipeline.py: TASK_PROMPT_TEMPLATESPS_INVENTED
Confidence = mean per-token prob-backend/inference/pipeline.py: _mean_token_probabilityPS_INVENTED (A15)

5. Evaluation - paper metric names, standard implementations​

MetricPaper refImplementationTag
VQA accuracyTable VIbackend/evaluation/vqa.pyPAPER_EXPLICIT
R-1/R-L/METEOR/BLEUTable IV/XVIbackend/evaluation/captioning.pyPAPER_EXPLICIT
P@0.5, P@0.25, mIoUTable Vbackend/evaluation/grounding.pyPAPER_EXPLICIT
Precision@IoU≥0.5Table VIIbackend/evaluation/detection.pyPAPER_EXPLICIT
oIoU, mIoUTable VIIIbackend/evaluation/segmentation.pyPAPER_EXPLICIT
F1/IoU/OATable IXbackend/evaluation/change_detection.pyPAPER_EXPLICIT
Paper-vs-reproduction table-backend/evaluation/paper_results.pyPS_INVENTED (harness)

6. SatQuery AI app - abstracted from the SIH problem statement (no paper)​

ComponentSourceImplementationTag
Agentic controller (classify → compat → select → execute → trace)SIH PSbackend/app/backend/controller.pyPS_INVENTED
10-tool specialist registrySIH PSbackend/app/backend/registry.pyPS_INVENTED
FastAPI backend + upload handlingSIH PSbackend/app/backend/main.pyPS_INVENTED
GeoTIFF metadata validation (CRS/transform)SIH PSbackend/app/backend/controller.pyPS_INVENTED
Downloadable JSON reportSIH PSbackend/app/backend/report.pyPS_INVENTED
Deterministic checkpoint selection/fallback-backend/app/backend/model_registry.pyPS_INVENTED
Vanilla JS frontend-backend/frontend/index.htmlPS_INVENTED

7. Third-source borrowings (beyond Earth-OneVision)​

BorrowingSourceWhere used
DeepStack mechanismQwen3-VL (Earth-OneVision's own citation)backend/model/fgvla/deepstack.py
<image> placeholder splice-and-expandLLaVA / Qwen-VL familybackend/model/earth_onevision.py:167
PCMA namingEarth-OneVision Sec. III-Dbackend/training/train.py

8. The Alzheimer's paper (Kwak et al.)​

Not used anywhere in this repo. A repo-wide grep for Alzheim|Kwak|ADNI|distillation|Mutual Knowledge|incomplete modal returns zero hits. The paper is real (IEEE T-ASE 2025, DOI:10.1109/tase.2025.3556290) but describes bi-directional mutual knowledge distillation for medical imaging - a wholly different technique. Conceptual adjacency (cross-modal / incomplete-modality adaptation) exists but is not implemented here.


9. Where the figuring-out is recorded​

  • docs/assumptions.md - A1–A15, the formal "we figured it out" ledger
  • docs/paper_spec.md - authoritative extraction, every row tagged
  • docs/paper_to_code.md - section/eq → file → function traceability
  • In-code docstrings - nearly every module states its provenance inline

10. Observations​

  • backend/docs/woah/ was a stale duplicate of backend/docs/ - deleted.
  • configs/baseline_train.yaml is stage: 0, so the actual training run was NOT PCMA.
  • Evaluation and CUDA/DeepSpeed paths are written but never run.
  • paper_results.py prints NOT_MEASURED rather than fabricating numbers.