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:
| Tag | Meaning |
|---|---|
PAPER_EXPLICIT | The paper states this number/mechanism directly |
CITED_WORK_EXPLICIT | The paper defers to a cited work (e.g. Qwen3-VL's DeepStack) |
IMPLEMENTATION_INFERENCE | Not stated; we inferred it from context |
ENGINEERING_CHOICE | Not stated; we chose a standard convention |
UNSPECIFIED_BY_PAPER | The paper does not give this value/detail at all |
PS_INVENTED | Invented 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 )
| Component | Paper ref | Implementation | Tag |
|---|---|---|---|
| Vision encoder (SigLIP-2 0.3B, NaFlex) | Sec. III-A | backend/model/vision_encoder.py: SigLIP2VisionEncoder | PAPER_EXPLICIT (family) / UNSPECIFIED_BY_PAPER (exact HF id) |
| LLM (Qwen3 2B) | Sec. III-A | Qwen/Qwen3-1.7B via backend/model/earth_onevision.py | PAPER_EXPLICIT (family) / UNSPECIFIED_BY_PAPER (exact HF id) |
| 2-layer MLP projector, 2×2 spatial merge | Sec. III-A | backend/model/projector.py: VisionLanguageProjector | PAPER_EXPLICIT |
| FGVLA (ACSA + DeepStack) | Sec. III-B | backend/model/fgvla/ | PAPER_EXPLICIT |
| SLIS unified vocab | Sec. III-C, Eq. 7 | backend/model/slis/, backend/model/tokenizer_extension.py | PAPER_EXPLICIT |
| Modality input reorganization | Sec. III-A | backend/data/processors/modality.py | PAPER_EXPLICIT |
| Multi-image concatenation | Sec. III-A | backend/model/earth_onevision.py | PAPER_EXPLICIT |
<image> placeholder splice | LLaVA/Qwen-VL convention | backend/model/earth_onevision.py:167 | ENGINEERING_CHOICE (not paper) |
ACSA - Adaptive Cross-Scale Attention (Eq. 2–5)
| Detail | Paper ref | Implementation | Tag |
|---|---|---|---|
| Q_s = F_N W_Q + Δq_s (Eq. 2) | Sec. III-B | backend/model/fgvla/acsa.py: ACSA | PAPER_EXPLICIT |
| K_s/V_s low-rank projections (Eq. 3) | Sec. III-B | backend/model/fgvla/acsa.py: LowRankKV | PAPER_EXPLICIT (structure) / UNSPECIFIED (rank r) |
| Scaled dot-product attention (Eq. 4) | Sec. III-B | F.scaled_dot_product_attention | PAPER_EXPLICIT |
| Fusion weights α = softmax(w) (Eq. 5) | Sec. III-B | backend/model/fgvla/acsa.py | PAPER_EXPLICIT |
DeepStack - decoder-side injection (Eq. 6)
| Detail | Paper ref | Implementation | Tag |
|---|---|---|---|
| Per-level MLP φ_s | Eq. 6, "Following Qwen3-VL" | backend/model/fgvla/deepstack.py: DeepStackProjector | CITED_WORK_EXPLICIT → Qwen3-VL |
| Injection into early LLM layers | Eq. 6 | backend/model/fgvla/deepstack.py: DeepStackInjector | CITED_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 grid | ENGINEERING_CHOICE (A6) |
SLIS - Spatial-Linguistic Isomorphic Serialization
| Detail | Paper ref | Implementation | Tag |
|---|---|---|---|
| 1000 coordinate bins V_coord | Eq. 7 | backend/model/slis/coordinate_tokens.py | PAPER_EXPLICIT |
| q(c) = floor(c×1000) | Eq. 7 | backend/model/slis/coordinate_tokens.py | PAPER_EXPLICIT |
| HBox: 4 tokens [x1,y1,x2,y2] | Sec. III-C | backend/model/slis/serializer.py | PAPER_EXPLICIT |
| OBox: 8 tokens | Sec. III-C | backend/model/slis/serializer.py | PAPER_EXPLICIT |
| R-RLE: 24×24 max-pool, row-wise | Sec. III-C/IV-B | backend/model/slis/r_rle.py | PAPER_EXPLICIT |
| V_seg finite label enum | - | backend/model/slis/vocabulary.py | IMPLEMENTATION_INFERENCE (A7) |
| Structural tags as dedicated tokens | Fig. 3/4/6 | backend/model/slis/vocabulary.py | ENGINEERING_CHOICE (not stated) |
2. Training - abstracted from Earth-OneVision
| Component | Paper ref | Implementation | Tag |
|---|---|---|---|
| PCMA two-stage curriculum | Sec. III-D | backend/training/train.py, configs/stage{1,2}.yaml | PAPER_EXPLICIT |
| Stage 1: viewpoint gap, lr=2e-5 | Sec. V-A | configs/stage1.yaml | PAPER_EXPLICIT |
| Stage 2: physics gap + optical replay, lr=5e-6 | Sec. V-A | configs/stage2.yaml | PAPER_EXPLICIT |
| Loss: L = -Σ_{t∈R} log P(y_t|y_<t,x) | Sec. III-D | backend/training/loss.py | PAPER_EXPLICIT |
| AdamW wd=0.05, cosine, warmup=0.03 | Sec. V-A | backend/training/trainer.py | PAPER_EXPLICIT |
| bf16 mixed precision, 8×H100, ZeRO-2 | Sec. V-A | configs/deepspeed_zero2.json | PAPER_EXPLICIT |
| Batch 4/GPU, max_seq=5400, 4 epochs | Sec. V-A | configs/stage{1,2}.yaml | PAPER_EXPLICIT |
| Fine-tune FGVLA + projector + LLM | Sec. V-A | backend/training/trainer.py | PAPER_EXPLICIT |
| Vision tower frozen | - | backend/configs/base.yaml: freeze: true | IMPLEMENTATION_INFERENCE (A3) |
| Response-only label masking | TASK.md Sec. 31 | backend/training/loss.py, backend/data/collator.py | PAPER_EXPLICIT |
| Device strategy (MPS/CUDA/CPU) | - | backend/training/distributed.py | PS_INVENTED (hardware adaptation) |
| Gradient accumulation for single-device | - | backend/training/trainer.py | ENGINEERING_CHOICE (A2) |
Unspecified training parameters (you figured these out)
| Parameter | Paper says | You chose | Tag |
|---|---|---|---|
| ACSA low-rank r | "r ≪ d" | d/8 | A5, ENGINEERING_CHOICE |
| Δq_s parameterization | "per-scale learnable bias" | learned R^d vector per scale | A5, ENGINEERING_CHOICE |
| DeepStack injection layers | "early LLM layers" | [0, 1, 2] | A6, ENGINEERING_CHOICE |
| DeepStack 4× reduction | "L → L/4" | 2×2 avg-pool | A6, ENGINEERING_CHOICE |
| V_seg label list | task-specific examples only | configurable closed list | A7, IMPLEMENTATION_INFERENCE |
| Video frame count | "range-sampled" | num_frames=8, uniform | A8, ENGINEERING_CHOICE |
| SAR/IR normalization | "replicated to pseudo-RGB" | 2-98th percentile clip | A9, ENGINEERING_CHOICE |
| MS band grouping | "grouped into pseudo-RGB" | true-color/false-veg/SWIR composites | A10, ENGINEERING_CHOICE |
| SS/SIoU formulas | metric names only | token-set Jaccard | A14, ENGINEERING_CHOICE |
3. Data pipeline - partly paper, mostly invented
| Component | Paper ref | Implementation | Tag |
|---|---|---|---|
| MMRS-OneVision record schema | Sec. IV | backend/data/schema.py | ENGINEERING_CHOICE (paper publishes no schema) |
| Per-dataset converters | - | backend/data/converters/*.py | PS_INVENTED |
| GPT-4o synthesis + factual anchors | Sec. IV-C | backend/data/synthesis/ | PAPER_EXPLICIT (mechanism) / PS_INVENTED (plumbing) |
| Two-stage QC (rule → semantic review) | Sec. IV-C | backend/data/synthesis/validators.py | PAPER_EXPLICIT (design) / ENGINEERING_CHOICE (local reviewer) |
| Leakage prevention | Sec. IV-E | backend/data/leakage/ | PAPER_EXPLICIT |
| Visual prompting dual-image | Sec. IV-D | backend/data/processors/visual_prompting.py | PAPER_EXPLICIT (drawing style = choice) |
4. Inference - paper design, invented plumbing
| Component | Paper ref | Implementation | Tag |
|---|---|---|---|
| Single LM head for all output types | Sec. III-C | backend/inference/decoder.py | PAPER_EXPLICIT |
| Structured output decoding (text/boxes/masks) | Sec. III-C/IV-B | backend/inference/decoder.py | PS_INVENTED (decoder impl) |
| Generation pipeline | - | backend/inference/pipeline.py | PS_INVENTED |
| Task prompt templates | - | backend/inference/pipeline.py: TASK_PROMPT_TEMPLATES | PS_INVENTED |
| Confidence = mean per-token prob | - | backend/inference/pipeline.py: _mean_token_probability | PS_INVENTED (A15) |
5. Evaluation - paper metric names, standard implementations
| Metric | Paper ref | Implementation | Tag |
|---|---|---|---|
| VQA accuracy | Table VI | backend/evaluation/vqa.py | PAPER_EXPLICIT |
| R-1/R-L/METEOR/BLEU | Table IV/XVI | backend/evaluation/captioning.py | PAPER_EXPLICIT |
| P@0.5, P@0.25, mIoU | Table V | backend/evaluation/grounding.py | PAPER_EXPLICIT |
| Precision@IoU≥0.5 | Table VII | backend/evaluation/detection.py | PAPER_EXPLICIT |
| oIoU, mIoU | Table VIII | backend/evaluation/segmentation.py | PAPER_EXPLICIT |
| F1/IoU/OA | Table IX | backend/evaluation/change_detection.py | PAPER_EXPLICIT |
| Paper-vs-reproduction table | - | backend/evaluation/paper_results.py | PS_INVENTED (harness) |
6. SatQuery AI app - abstracted from the SIH problem statement (no paper)
| Component | Source | Implementation | Tag |
|---|---|---|---|
| Agentic controller (classify → compat → select → execute → trace) | SIH PS | backend/app/backend/controller.py | PS_INVENTED |
| 10-tool specialist registry | SIH PS | backend/app/backend/registry.py | PS_INVENTED |
| FastAPI backend + upload handling | SIH PS | backend/app/backend/main.py | PS_INVENTED |
| GeoTIFF metadata validation (CRS/transform) | SIH PS | backend/app/backend/controller.py | PS_INVENTED |
| Downloadable JSON report | SIH PS | backend/app/backend/report.py | PS_INVENTED |
| Deterministic checkpoint selection/fallback | - | backend/app/backend/model_registry.py | PS_INVENTED |
| Vanilla JS frontend | - | backend/frontend/index.html | PS_INVENTED |
7. Third-source borrowings (beyond Earth-OneVision)
| Borrowing | Source | Where used |
|---|---|---|
| DeepStack mechanism | Qwen3-VL (Earth-OneVision's own citation) | backend/model/fgvla/deepstack.py |
<image> placeholder splice-and-expand | LLaVA / Qwen-VL family | backend/model/earth_onevision.py:167 |
| PCMA naming | Earth-OneVision Sec. III-D | backend/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" ledgerdocs/paper_spec.md- authoritative extraction, every row taggeddocs/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 ofbackend/docs/- deleted.configs/baseline_train.yamlisstage: 0, so the actual training run was NOT PCMA.- Evaluation and CUDA/DeepSpeed paths are written but never run.
paper_results.pyprintsNOT_MEASUREDrather than fabricating numbers.