GeoFaham: Domain-Specialized Multi-Agent Geospatial Analytics for Disaster Response
Muhammad Sohail Danish, Gilles Q. Hacheme, Akram Zaytar, Satej S. Soman, Inbal Becker-Reshef, Juan Lavista Ferres, Salman Khan, Girmaw Abebe Tadesse
cs.MA, cs.AI
2026-11-03
GeoFaham splits disaster GIS across four specialists and keeps artifacts outside the context. On 40 tasks from 17 disasters it scores 0.940 vs Codex 0.879, with 7.5× fewer tokens.
A usable disaster answer is usually a chain across data sources. Asking whether hospitals near a flood can still be reached means holding the hazard footprint, the facilities, and the road network at once, and computing distance in a valid coordinate reference system (CRS). Pick the wrong footprint, time window, or CRS and the code can still finish. The sentence will read fine. Operations staff should not use it.
General-purpose coding agents already split work, write code, and revise after errors. Give them PostGIS, OpenStreetMap, and a satellite catalog, and geospatial artifacts still break the loop. A layer can hold thousands of features. A raster can reach gigabytes. Neither fits in a context window, yet later steps need the CRS, band names, acquisition time, and bounds. A quieter failure is a handoff that was only planned. The flood layer is empty or in the wrong projection, and the next step measures distance anyway. Remote-sensing agent benchmarks and GIS tool-calling benchmarks rarely test cross-source handoff, whether an intermediate product actually exists, and replanning when imagery misses the area.
GeoFaham comes from Microsoft AI for Good Lab, with one collaborator at MBZUAI. Four narrow specialists split the work by data source. An Orchestrator runs them with a dual ledger. Small action spaces and a shared output contract let one set of checks cover vectors, maps, imagery, and rasters.
The outer loop fills a task ledger. A Lahaina-fire style question becomes an event, a footprint, a feature class, a distance constraint, and an expected output. That blocks the wrong disaster record, an administrative boundary used as the hazard footprint, and a drifted imagery window. Instructions state goals. Map tags stay with the specialist.
Before each dispatch the inner loop checks three things. Have the prerequisite steps finished? Is the layer a registered response, not just a line in the plan? Do CRS, geometry type, bounds, time, and schema support the next operation? Distance needs a projected CRS or a geodesic method. If a stall counter passes a threshold τ, control returns to the outer loop and the plan changes extent, boundary, or imagery. The paper does not report τ. Each specialist sees only its own step, which holds token use down.
Full files go to a Response Store. The context window carries identifiers and typed metadata only. In the worked example the card is a few hundred tokens: three medical points in EPSG:4326, no coordinates. A 500 m buffer and the intersection run in PostGIS. The example treats dNBR above 0.44 as severe burn. dNBR is the pre/post difference of a normalized burn ratio. A claim that schools sit inside a flood needs registered layers and an executed spatial join.
Roles can sit on different models. The boundary is not disaster-specific. The evaluation is.
GeoFaham-Bench has 40 natural-language tasks on 17 real disaster records, covering fires, floods, hurricanes, cyclones, earthquakes, and tornadoes across 10 categories. Twenty-four tasks (60%) are marked hard. Ground truth is non-rigid. It checks spatial, temporal, methodological, and output invariants, not one execution trace. An expert sets the scope, an LLM drafts the steps, and the expert fixes factual errors.
The judge is GPT-5.2. The cross-system score is Sc = 0.35 outcome + 0.30 geospatial method + 0.15 reproducibility + 0.10 compliance + 0.10 robustness. Geometry-derived numbers must come from a deterministic engine. Every system gets the same tasks, data, libraries, and environment. The reported GeoFaham run is configuration C3: GPT-5.1 for planning, progress tracking, Vector, and Raster; GPT-4o for Maps and STAC. Baselines are Codex (GPT-5.1), Claude Code (Claude Sonnet 4.6), and OpenCode (GPT-5.1).
| System | Overall | Outcome | Method | Repro. | Compliance | Robustness | Avg tokens | Seconds |
| GeoFaham | 0.940 | 0.897 | 0.951 | 0.982 | 0.999 | 0.933 | 106,344 | 169.64 |
| Codex | 0.879 | 0.794 | 0.890 | 0.974 | 0.986 | 0.896 | 795,352 | 214.92 |
| Claude Code | 0.837 | 0.738 | 0.863 | 0.902 | 0.974 | 0.873 | 285,100 | 254.23 |
| OpenCode | 0.780 | 0.622 | 0.828 | 0.865 | 1.000 | 0.838 | 376,042 | 128.37 |
GeoFaham leads those three by 6.1, 10.3, and 16.0 points. Against Codex, outcome is 0.897 versus 0.794, and geospatial method is 0.951 versus 0.890. OpenCode scores 1.000 on compliance and still finishes last. Following the instructions is not the same as getting the geography right.
The largest dimension gains are spatiotemporal logic at 0.918, up 13.9 points, and data-selection correctness at 0.972, up 11.9. Answer accuracy, completeness, and artifact quality (0.976) are up 11.0, 9.7, and 3.9 points. Implementation correctness is 0.922, 1.2 points under the best baseline at 0.934. Result JSON quality is 2.4 points lower. Geometry integrity sits between 0.956 and 0.997 on every system.
GeoFaham averages 106,344 tokens per task (median 86,974, about 4.30M total). Codex averages 795,352 (median 741,656, 31.81M total), about 7.5 times more. Claude Code and OpenCode use about 2.7 times and 3.5 times more tokens, at 285,100 and 376,042. Runtime is 169.64 seconds, against 128.37 for OpenCode, 214.92 for Codex, and 254.23 for Claude Code.
An internal score, Si = 0.27 planning + 0.38 execution + 0.17 compliance + 0.18 output, is not comparable with 0.940. C1, GPT-4o on every role, scores 0.808±0.12. C2 upgrades only the planner to GPT-5.1 and reaches 0.914±0.07, a gain of 10.6 points. C3 also upgrades the progress tracker, Vector, and Raster, and scores 0.964±0.03. C4 puts GPT-5.1 on every role and scores 0.959±0.04. Leaving retrieval on GPT-4o does not pull the score down.
C1 and C2 both hit errors on 61.3% of runs. C1 recovers 89.8% of them, for 93.8% net completion. C2 recovers every observed error and reaches 100% net completion, without cutting how often errors happen. C3 and C4 lower the error rate to 33.8% and 28.8% and recover all of them. Net completion means no unrecovered execution error. It does not mean the benchmark answer is right.
GeoFaham is 1.2 points weaker on implementation correctness. The extra 6.1 overall points sit in data selection and spatiotemporal scope.
The model exchanges identifiers and queries. Geometry stays in the engine. Token use is about 7.5 times lower than Codex, at 169.64 seconds per task against Codex at 214.92. Upgrading the planner alone is worth 10.6 points. Maps and STAC can stay on GPT-4o. The spatial operators are still PostGIS and ordinary spectral indices. The new pieces are the validation gate, the artifact boundary, and a 40-task benchmark that accepts more than one valid trace. Code and benchmark are public.
Forty tasks and 17 disasters is a small set, built by the same group that built the system. What counts as an acceptable alternative trace is fixed by their loop of expert edits on an LLM draft. The main text does not report agreement between the judge and a human. The judge is GPT-5.2, while Codex and GeoFaham's main roles use GPT-5.1. Nothing checks whether a same-family judge prefers one style of trace.
The only baselines are three general coding agents, and model choice is tied to architecture. Codex and OpenCode run GPT-5.1, Claude Code runs Sonnet 4.6, and GeoFaham mixes GPT-5.1 with GPT-4o. LLM-Geo, MapCoder, and GIS Copilot are discussed and not run. A score of 0.940 versus 0.879 does not show that GeoFaham beats specialized GIS agents.
Implementation correctness and result JSON quality are lower. The 7.5 times token gap comes from system logs, and reasoning tokens count only where a system exposes them. Read the factor as an order of magnitude. C3's 0.005 edge over C4 sits inside standard deviations of 0.03 and 0.04. There is no non-English query set and no test on a real response desk.