Military¶

A UAV and a ground vehicle on a 10×10 grid with mountains, swamps and impassable walls that are generated anew every episode. The UAV flies over all terrain and sees the whole board but cannot capture anything; the ground vehicle does all the capturing but is slowed by terrain and sees only three cells around it.
import gridhunt
env = gridhunt.make("GridHunt-Military-v0")
What it tests¶
Splitting sensing from acting, on terrain that changes every episode. The UAV sees everything and flies over terrain but cannot capture; the ground vehicle captures but is slowed by terrain and short-sighted.
- Removing one agent costs the scripted team:
ground_vehicle_0100%,uav_00% (interdependence ablation; capture only, not information) - Vary it with:
terrain_config, vision radius,immune_to_terrain
Overview¶
| Environment ID | GridHunt-Military-v0 |
| Grid | 10 × 10 |
| Agents | 2 |
| Episode length | 1000 steps |
| Actions | Discrete(5): stay, up, down, left, right |
| Observations | one_hot, 2894 values per agent |
| Global state | 316 values (env.state()) |
| Prey motion | static |
Agents¶
| Agent | Capture power | Speed | Vision | Terrain | Notes |
|---|---|---|---|---|---|
uav_0 |
0 | 2 | whole board | ignores terrain | - |
ground_vehicle_0 |
2 | 1 | 3 cells around it | - | - |
Prey¶
| Prey | Type | Reward | Capture power needed | Reappears after capture | Notes |
|---|---|---|---|---|---|
stag_0 |
stag | 5 | 2 | yes | - |
hare_0 |
hare | 1 | 1 | yes | overcrowding costs 0.5; speed 2 |
hare_1 |
hare | 1 | 1 | yes | overcrowding costs 0.5; speed 2 |
A capture happens when the hunters on a prey's cell have at least the capture power it needs. With more power than needed, the prey's overcrowding penalty is subtracted from its reward.
Terrain¶
| Terrain | Movement | Layout |
|---|---|---|
| mountain | each move in succeeds with probability 0.6 | random blobs each episode |
| swamp | each move in succeeds with probability 0.5 | random blobs each episode |
| obstacle | impassable | random walls each episode |
Benchmark¶
The benchmark plays it with team reward, 200-step episodes and a budget of 50M environment steps. Scores are team returns: IQM over 20 seeds with 95% bootstrap intervals (details).
| Configuration | Algorithm | IQM [95% CI] | Normalized | Random | Scripted |
|---|---|---|---|---|---|
military |
IPPO | 84.1 [83.3, 85.2] | 0.67 | 3.6 | 123.9 |
military |
MAPPO | 76.1 [75.0, 77.3] | 0.60 | 3.6 | 123.9 |
military |
HAPPO | 77.3 [76.0, 78.4] | 0.61 | 3.6 | 123.9 |
military_full_vision |
IPPO | 108.1 [107.5, 108.8] | 0.87 | 3.6 | 123.9 |
military_full_vision |
MAPPO | 96.1 [94.9, 96.9] | 0.77 | 3.6 | 123.9 |
military_full_vision |
HAPPO | 101.3 [100.6, 102.3] | 0.81 | 3.6 | 123.9 |
Version history¶
v0(GridHunt 1.0.0): first release.