hard-atari-exploration
Use hard-exploration Atari workflows for PPO plus RND, deterministic Go-Explore Phase 1, demo extraction, and sticky-action robustification.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- hard-atari-exploration
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use hard-exploration Atari workflows for PPO plus RND, deterministic Go-Explore Phase 1, demo extraction, and sticky-action robustification.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/go-explore-and-robustification.md9.0 KB
- 参考文档references/rnd-and-envpool-guide.md7.0 KB
- 参考文档references/run-management.md7.9 KB
- 参考文档references/troubleshooting.md9.4 KB
- 脚本scripts/hard_atari_smoke.py33.2 KB
03 SKILL.md 正文
Hard Atari Exploration
Use this sub-skill when the task involves sparse-reward Atari workflows such as Montezuma's Revenge, Pitfall, or Private Eye; PPO with Random Network Distillation (RND); deterministic Go-Explore Phase 1 archive search; extracting a replayable demo; or robustifying a deterministic demo into a sticky-action policy. This sub-skill is self-contained and does not require the original checkout at runtime.
Route here for
- Running, adapting, or debugging the PPO+RND workflow label
1-ppo-rnd.pyfor hard-exploration Atari under sticky actions. - Running, adapting, or debugging deterministic Go-Explore Phase 1 workflow label
2-go-explore.py, including archive cell keys, snapshots, experience logs, and replay verification. - Extracting and validating a demo pickle workflow label
extract_demo.pybefore robustification. - Running, adapting, or debugging robustification/backward-algorithm workflow label
3-robustify.py, including demo resets, recurrent PPO, curriculum progress, and from-reset sticky-action evaluation. - Explaining why deterministic restore-based Go-Explore scores are not cross-comparable with sticky-action RL scores.
Route away from
- Standard Breakout/Pong DQN or PPO,
FireResetEnv, life-loss terminal training, replay buffers, or standard Atari W&B runs: use the standard Atari sub-skill. - CartPole DQN/A2C/PPO: use the CartPole sub-skill.
- GridWorld dynamic programming, tabular control, Deep SARSA, or REINFORCE: use the GridWorld sub-skill.
Start here
- Read
references/rnd-and-envpool-guide.mdfor PPO+RND model/RMS details, envpool versus render-env split, sticky-action assumptions, hard environment keys, and safe run templates. - Read
references/go-explore-and-robustification.mdfor deterministic Go-Explore Phase 1, archive/cell/log mechanics, ALE restore pitfalls, demo pickle schema, extraction checks, and robustification curriculum. - Read
references/run-management.mdbefore launching long jobs, resuming checkpoints, interpretingmetrics.jsonlorfinal.json, or moving run directories. - Read
references/troubleshooting.mdfor protocol mismatches, missing ROMs, envpool/ALE installation problems, demo validation errors, RND novelty collapse, robustification plateaus, and checkpoint issues. - Run the bundled smoke script for self-contained CPU checks that do not import source files, launch envpool/ALE, require Atari ROMs, use W&B, or consume real run artifacts:
python scripts/hard_atari_smoke.py --help
python scripts/hard_atari_smoke.py
python scripts/hard_atari_smoke.py --section rnd
python scripts/hard_atari_smoke.py --section go-explore
python scripts/hard_atari_smoke.py --section demo --demo path/to/demo.pkl
python scripts/hard_atari_smoke.py --section robustify
The smoke script reimplements tiny model, RMS, archive/log, final-summary, and demo-schema fixtures. It validates interfaces and invariants only; it does not claim benchmark progress or first-key discovery.
Critical facts to preserve
- PPO+RND uses sticky-action Atari (
repeat_action_probability=0.25) and a vectorized envpool training backend for breadth. Its single-env render/test path is a separate Gymnasium/ALE path and is not a replacement for high-throughput training. - Go-Explore Phase 1 is deterministic restore-based search: frameskip 4, sticky actions off, no no-ops, raw ALE
cloneState/restoreState, and archive scores from replayable trajectories. It is not an RL-policy score. - Robustification turns a deterministic demo into a recurrent policy trained and evaluated under sticky actions. Only the from-reset sticky-action evaluation is comparable to sticky-action RL methods such as PPO+RND.
run-diroutputs usemetrics.jsonl,ckpt/latest.pt, optional milestone/best checkpoints, andfinal.json. Resume should restore optimizer/model state plus normalizers, archive/log state, curriculum state, and RNG state as applicable.- RND depends on single-last-frame observation RMS, intrinsic-return RMS, non-episodic intrinsic GAE, dual value heads, frozen random target network, and throttled predictor updates.
- Go-Explore archive cells store low-resolution quantized screen keys, snapshots, score, trajectory length, trajectory tail pointer, selection counters, and lives. The experience log is a
prev_idlinked list used to reconstruct demos. - After an ALE restore, RAM/screen reads may be stale until a real action executes. Derive Go-Explore cell keys and demo replay frames from step returns, not immediate post-restore reads.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).