HazardWeaver: Scientific Route Selection for Hazard Analysis Agents
Organizations: Department of Computer Science, Florida State University · Nokia
Abstract
Understanding and assessing natural hazards is essential for disaster preparedness and risk reduction. Recent advances in large language models have spurred growing interest in AI agents for hazard analysis, particularly their ability to integrate scientific data, models, and tools into automated workflows. However, effective automation requires agents to determine which scientific methods are appropriate for a given event and executable with the available data and tools. As new evidence and execution results become available, these conditions can change, requiring agents to reconsider their choices. We formulate this problem as state-dependent scientific route selection and introduce HazardWeaver. Specifically, HazardWeaver first leverages the Hazard Knowledge Compiler to extract evidence-linked conditions governing scientific applicability, then its Hazard Capability Graph represents executable scientific capabilities and checks compatibility between their inputs and outputs. Using these complementary representations, the Hazard Weaver Agent component selects applicable and executable routes, carries out their workflows, and revises its decisions as the analysis state changes. To evaluate both the scientific outputs and the decisions that produce them, we introduce the Hazard Weaver Benchmark, comprising 141 instances across seven single-hazard domains and four multi-hazard interaction classes. The benchmark accommodates multiple valid scientific routes and evaluates output correctness, route validity, and justified abstention. Extensive experiments on this benchmark show that HazardWeaver outperforms existing agent systems, with the largest gains on tasks with multiple eligible scientific routes. Our code is publicly available at https://github.com/LabRAI/HazardWeaver.
Figures & tables
| Method | Single-hazard | Multi-hazard | One route | Multiple routes | Overall DCA |
|---|---|---|---|---|---|
| AIDE | |||||
| AutoML-Agent | |||||
| ReAct | |||||
| Reflexion | |||||
| MLE-STAR | |||||
| DS-Agent |
| Backbone | Fixed | Updated |
|---|---|---|
| Mixtral | ||
| OLMo | ||
| DeepSeek | ||
| Gemma | ||
| Llama | ||
| Pooled | 16.0 | 41.5 |
| Backbone | DCA | Macro DCA | Artifact validity ( ) | Trajectory validity ( ) |
|---|---|---|---|---|
| OLMo | 60.3 [52.0, 68.0] | 61.9 [54.4, 71.2] | 78.0 [70.5, 84.1] | 91.5 [85.7, 95.1] |
| Mixtral | 70.2 [62.2, 77.1] | 70.8 [57.6, 83.9] | 79.4 [72.0, 85.3] | 92.2 [86.6, 95.6] |
| Gemma | 79.4 [72.0, 85.3] | 78.6 [65.2, 91.5] | 86.5 [79.9, 91.2] | 92.9 [87.4, 96.1] |
| DeepSeek | 86.5 [79.9, 91.2] | 86.6 [77.2, 94.3] | 90.8 [84.9, 94.5] | 92.2 [86.6, 95.6] |
| Llama | 89.4 [83.2, 93.5] | 89.5 [79.7, 97.0] | 92.2 [86.6, 95.6] | 95.0 [90.1, 97.6] |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Hazard task | Scientific source and role |
|---|---|
| Wildfire spread | WildfireSpreadTS. Time-indexed fire observations for evaluating the spatial and temporal progression of active-fire spread. |
| Flood inundation | FloodCastBench. Hydrological forcing fields and reference flood extents for dynamic inundation analysis. |
| Rainfall-triggered landslide | NASA LHASA v2. Global landslide nowcasts and reference occurrences for rainfall-triggered susceptibility analysis. |
| Earthquake analysis | SeisBench. Waveforms and reference labels for phase picking, event association, and seismic-source estimation. |
| Tropical-cyclone tracking | TCBench. Cyclone trajectories and lead-time-specific references for evaluating forecast track error. |
| Drought outlook | NOAA CPC drought products. Standardized precipitation indicators and operational references for drought assessment. |
| Field group | Contents |
|---|---|
| Task identity | Hazard domain, task specification, requested output, and route family. |
| Scientific conditions | Assumptions, required observations, validity ranges, calibration regime, scale, and uncertainty treatment. |
| Capability requirements | Required datasets, models, formulas, transformations, and compatibility or dependency constraints. |
| Output contract | Variable definition, units, format, spatial and temporal support, resolution, and artifact schema. |
| Evaluation | Task-native metric, tolerance, and acceptance threshold. |
| Provenance | Scientific source, capability version, supporting evidence span, and benchmark-construction record. |
| Operation | Purpose and state effect |
|---|---|
| Inspect state | Reads evidence, artifacts, and capability status; no state change. |
| Inspect route | Reads route conditions, capabilities, and contract; no state change. |
| Execute capability | Runs a capability; records artifact and provenance, or the failure. |
| Request information | Obtains a permitted unresolved observation; adds it as evidence. |
| Repair workflow | Inserts a transformation or subpath; keeps the route-level target. |
| Change route | Commits to another route from the recomputed eligible set. |
| Hazard track | Scientific outputs and evaluation |
|---|---|
| Active-fire spread | Fire probability, occupancy, or perimeter, evaluated using average precision, intersection over union, and registered field checks. |
| Dynamic flood inundation | Inundation depth and extent, evaluated using depth RMSE over the scenario-specific spatial support. |
| Rainfall-triggered landslide | Landslide occurrence probability, evaluated using area under the precision–recall curve. |
| Seismic phase, source, and motion | Phase picks, event associations, source parameters, and ground motion, evaluated using pick F1, association score, and coverage. |
| Tropical-cyclone trajectory | Forecast storm trajectories, evaluated using lead-time-specific track error in kilometers. |
| Drought outlook | Drought categories or probabilities, evaluated using the registered operational outlook-skill criterion. |
| Backbone | Model identifier |
|---|---|
| OLMo-3.1-32B | allenai/Olmo-3.1-32B-Instruct |
| Mixtral-8x22B | mistralai/Mixtral-8x22B-Instruct-v0.1 |
| Gemma-4-31B-it | google/gemma-4-31B-it |
| Llama-3.3-70B | meta-llama/Llama-3.3-70B-Instruct |
| DeepSeek-V4.1-Flash | deepseek-v4.1-flash |
| Method | Adapted principle and HWB realization |
|---|---|
| AIDE | Iterative candidate refinement. Refines a proposed scientific route for up to three rounds using the task and Route Cards, then commits directly. |
| DS-Agent | Case-based retrieval. Retrieves the three most similar training-side route cases and uses them to rank the registered candidates. |
| R&D-Agent | Hypothesis-driven ordering. Forms a task hypothesis, orders the candidate scientific routes against it, and commits to the highest-ranked route. |
| MLE-STAR | Metric-directed program search. Infers the required scientific metric and output program before ranking candidate routes against those requirements. |
| AutoML-Agent | Pipeline and schema selection. Infers the task input–output schema and ranks routes by their ability to realize a compatible scientific pipeline. |
| DisasterBench-ToT | Deliberate search over disaster tools. Treats registered capabilities as typed disaster tools and performs bounded tree search over candidate route choices. |
| Backbone | HKC off | HCG untyped | Full |
|---|---|---|---|
| OLMo | 38 (39.6) | 39 (40.6) | 49 (51.0) |
| Mixtral | 34 (35.4) | 32 (33.3) | 65 (67.7) |
| Gemma | 50 (52.1) | 55 (57.3) | 76 (79.2) |
| DeepSeek | 68 (70.8) | 71 (74.0) | 86 (89.6) |
| Llama | 44 (45.8) | 46 (47.9) | 90 (93.8) |
| Information | Agent | Eval. |
|---|---|---|
| Task and initial state | ✓ | ✓ |
| Candidate routes | ✓ | ✓ |
| Capability interface | ✓ | ✓ |
| Public output contract | ✓ | ✓ |
| Reference artifact | ✓ | |
| Sealed route criterion | ✓ |
| Artifact | Contents |
|---|---|
| Sealed inventory | The 141 instance identifiers, track assignments, task specifications, initial states, route strata, and evaluator bindings. |
| Route Cards | Scientific conditions, required observations, capability signatures, output contracts, uncertainty fields, and evidence provenance. |
| Capability registry | Executable entry points, versioned dependencies, typed input and output ports, transformations, and validation metadata. |
| Evaluator contracts | Task-native metrics, tolerances, route criteria, cutoff rules, provenance requirements, and abstention conditions. |
| Run configurations | Model identifiers, stochastic settings, execution protocol, and method-specific selector configuration. |
| Per-instance outputs | Selected routes, state transitions, capability invocations, generated artifacts, provenance records, and terminal evaluation reports. |
LLM Agent Planning
Large language model (LLM) agent planning studies how agents decompose goals, choose actions and tools, and adapt plans from feedback.
See all 225 papers