Skip to content

Specialists

Specialists

A scout and a bruiser on a 10×10 grid. The scout is fast and sees the whole board but is too weak to take the stag; the bruiser can take the stag on its own but sees only two cells around it. Prey flee from the nearest hunter, so the bruiser depends on what the scout knows: an information-interdependence task.

import gridhunt
env = gridhunt.make("GridHunt-Specialists-v0")

What it tests

Complementary abilities against fleeing prey. The scout sees everything and cannot take the stag; the bruiser can, but sees only two cells around it.

  • Removing one agent costs the scripted team: bruiser_0 69%, scout_0 10% (interdependence ablation; capture only, not information)
  • Vary it with: vision radius, speeds, communication=k

Overview

Environment ID GridHunt-Specialists-v0
Grid 10 × 10
Agents 2
Episode length 1000 steps
Actions Discrete(5): stay, up, down, left, right
Observations one_hot, 1811 values per agent
Global state 16 values (env.state())
Prey motion flee (each step with probability 0.5)

Agents

Agent Capture power Speed Vision Terrain Notes
scout_0 1 2 whole board - -
bruiser_0 2 1 2 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.

Benchmark

The benchmark plays it with team reward, 200-step episodes and a budget of 20M environment steps. Scores are team returns: IQM over 20 seeds with 95% bootstrap intervals (details).

Configuration Algorithm IQM [95% CI] Normalized Random Scripted
specialists IPPO 90.6 [77.0, 94.9] 1.02 0.8 88.6
specialists MAPPO 95.5 [94.3, 96.8] 1.08 0.8 88.6
specialists HAPPO 95.7 [92.3, 97.1] 1.08 0.8 88.6
specialists_comm IPPO 109.2 [108.5, 110.0] 1.23 0.8 88.6
specialists_comm MAPPO 109.3 [108.8, 110.0] 1.24 0.8 88.6
specialists_comm HAPPO 109.9 [108.0, 111.1] 1.24 0.8 88.6
specialists_full_vision IPPO 121.5 [120.7, 122.3] 1.37 0.8 88.6
specialists_full_vision MAPPO 122.7 [122.3, 123.4] 1.39 0.8 88.6
specialists_full_vision HAPPO 121.8 [121.1, 122.6] 1.38 0.8 88.6

Version history

  • v0 (GridHunt 1.0.0): first release.