Commit ·
3e4a196
1
Parent(s): 0092607
Cut easy rollouts 3→2 to stay under 20min; update GRPO scores; fill config/tasks.yaml
Browse filesFiles changed (4)
11 unmodified lines1213141516171811 unmodified linesimport requests as http_requestsN_ROLLOUTS = {"easy": 3,"medium": 4,"hard": 4,}11 unmodified lines1213141516171811 unmodified linesimport requests as http_requestsN_ROLLOUTS = {"easy": 2,"medium": 4,"hard": 4,}
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091# config/tasks.yaml# Task configuration reference for Cascade Containment.# These values are the source of truth used in server/constants.py TASK_CONFIG.# If you change a value here, update constants.py to match.tasks:easy:num_districts: 2max_steps: 10resource_pool: 10data_lag_days: 0seed_infections: [0.06, 0.50]description: >Single outbreak. D1 starts in the danger zone, D0 is clean.Agents that ignore infection data and always target D0 score ~43%with a 60% hospital breach rate — the task requires basic observation.medium:num_districts: 4max_steps: 15resource_pool: 8data_lag_days: 0seed_infections: [0.42, 0.10, 0.38, 0.10]description: >Two simultaneous outbreaks in D0 and D2. D1 and D3 start low butgrow into the danger zone within 4-6 steps via spillover.8 resources across 4 districts over 15 steps requires real triage —the agent cannot cover all districts at once.hard:num_districts: 6max_steps: 15resource_pool: 7data_lag_days: 3seed_infections: [0.20, 0.14, 0.23, 0.11, 0.26, 0.17]description: >Six growing outbreaks with a 3-day reporting lag. The agent seesinfection rates from 3 days ago; true infection is already higher.Growth hints provide a noisy estimate of current trajectory.7 resources for 6 districts under structural uncertainty is thehardest triage scenario in the benchmark.# Spread model parametersspread:rate_min: 0.03 # minimum spread rate per district per dayrate_max: 0.08 # maximum spread rate per district per daynatural_recovery: 0.01 # passive case resolution per day (no intervention)treatment_reduction: 0.05 # allocate reduces existing infection by thisallocate_reduction: 0.10 # allocate suppresses future spread rate this steprestrict_reduction: 0.05 # restrict reduces spread rate while activespillover_rate: 0.01 # infection bleed to adjacent districts each stepgrowth_hint_noise: 0.03 # noise added to spread rate in agent observation# Threshold valuesthresholds:infection_danger: 0.40 # above this a district is in the danger zoneinfection_safe: 0.20 # below this a district is considered containedhospital_breach: 0.10 # at or below this triggers episode failure# Reward termsrewards:infection_penalty: -0.50 # per district above infection_danger, weighted by densityhospital_breach: -1.00 # per district at or below hospital_breach thresholdearly_containment: +0.50 # per district below infection_safe (decays over time)unnecessary_restriction: -0.20 # restricting a district already below infection_safecorrect_prioritisation: +0.30 # allocating to the highest-infected district# Grader weights (must sum to 1.0)grader:containment: 0.30hospital: 0.45efficiency: 0.15speed: 0.10# Baseline benchmark results (update after each full evaluation run)benchmark:rollouts:easy: 2medium: 4hard: 4greedy_d0:easy: {score: 0.428, breach_rate: 0.60}medium: {score: 0.427, breach_rate: 0.80}hard: {score: 0.330, breach_rate: 1.00}llm_grpo:easy: {score: 0.885, model: llama-3.1-8b-instant}medium: {score: 0.754, model: llama-3.1-8b-instant}hard: {score: 0.631, model: llama-3.1-8b-instant}average: 0.757runtime_seconds: 1229
19 unmodified lines2021222324252619 unmodified linesBENCHMARK = "cascade-containment"N_ROLLOUTS = {"easy": 3,"medium": 4,"hard": 4,}19 unmodified lines2021222324252619 unmodified linesBENCHMARK = "cascade-containment"N_ROLLOUTS = {"easy": 2,"medium": 4,"hard": 4,}
9 unmodified lines1011121314151617189 unmodified lines# LLM+GRPO reference scores — update this dict after each baseline/run.py session.GRPO_SCORES = {"easy": {"score": 0.9083, "containment": 1.000, "hospital": 0.999, "efficiency": 0.857},"medium": {"score": 0.7161, "containment": 0.423, "hospital": 0.976, "efficiency": 1.000},"hard": {"score": 0.6608, "containment": 0.513, "hospital": 0.971, "efficiency": 0.467},}9 unmodified lines1011121314151617189 unmodified lines# LLM+GRPO reference scores — update this dict after each baseline/run.py session.GRPO_SCORES = {"easy": {"score": 0.8848, "containment": 1.000, "hospital": 0.996, "efficiency": 0.900},"medium": {"score": 0.7539, "containment": 0.469, "hospital": 0.978, "efficiency": 0.987},"hard": {"score": 0.6311, "containment": 0.462, "hospital": 0.952, "efficiency": 0.533},}
baseline/evaluator.py+1-1
config/tasks.yaml+91
inference.py+1-1
scripts/test_local.py+3-3