Mathis Weil commited on
Upload MiniHack ReMDM planner checkpoints
Browse files- LICENSE +22 -0
- README.md +125 -0
- checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/config_offline_step40000.yaml +72 -0
- checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/model.safetensors +3 -0
- checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/offline_step40000.pth +3 -0
- checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/selection.json +27 -0
- checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/config_iter600.yaml +66 -0
- checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/iter600.pth +3 -0
- checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/model.safetensors +3 -0
- checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/selection.json +27 -0
- results/forgetting_analysis.csv +22 -0
- results/gradient_diagnostics.csv +22 -0
- results/group_summary.csv +5 -0
- results/hypothesis_verdicts.csv +22 -0
- results/main_results.csv +22 -0
- results/per_env_win_rates.csv +22 -0
- results/repr_drift.csv +22 -0
LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 The authors of "The Double Intractability of Reinforcement
|
| 4 |
+
Learning for Discrete Diffusion Planners"
|
| 5 |
+
|
| 6 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 7 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 8 |
+
in the Software without restriction, including without limitation the rights
|
| 9 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 10 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 11 |
+
furnished to do so, subject to the following conditions:
|
| 12 |
+
|
| 13 |
+
The above copyright notice and this permission notice shall be included in all
|
| 14 |
+
copies or substantial portions of the Software.
|
| 15 |
+
|
| 16 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 17 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 18 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 19 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 20 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 21 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 22 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
pipeline_tag: reinforcement-learning
|
| 5 |
+
tags:
|
| 6 |
+
- reinforcement-learning
|
| 7 |
+
- planning
|
| 8 |
+
- discrete-diffusion
|
| 9 |
+
- remdm
|
| 10 |
+
- minihack
|
| 11 |
+
- nethack
|
| 12 |
+
- pytorch
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# ReMDM Planner — MiniHack checkpoints
|
| 16 |
+
|
| 17 |
+
Trained weights accompanying *The Double Intractability of Reinforcement Learning for Discrete Diffusion Planners*: a remasking discrete diffusion model
|
| 18 |
+
(ReMDM) used as an action-sequence planner in
|
| 19 |
+
[MiniHack](https://github.com/facebookresearch/minihack).
|
| 20 |
+
|
| 21 |
+
Code, configs and evaluation harness: https://github.com/mathisweil/minihack-ReMDM-planner
|
| 22 |
+
|
| 23 |
+
## Contents
|
| 24 |
+
|
| 25 |
+
| Path | Role | Architecture | Params | Trained to | Full state |
|
| 26 |
+
|---|---|---|---|---|---|
|
| 27 |
+
| `checkpoints/offline/Minihack-OfflineDiffusion-BC-82M` | Diffusion planner (offline BC) | 4L, d_model 256, 4 heads, horizon 64 | 5.2M | 40,000 gradient steps, 81,920,000 sample-equivalents | 80 MB |
|
| 28 |
+
| `checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M` | Diffusion planner (online DAgger) | 4L, d_model 256, 4 heads, horizon 64 | 5.2M | DAgger iteration 600 | 80 MB |
|
| 29 |
+
|
| 30 |
+
Each directory holds three things: the original `.pth` training state (weights,
|
| 31 |
+
EMA shadow, optimiser, scheduler, and for the DAgger run the curriculum and RNG
|
| 32 |
+
state, so training can be resumed exactly), a `model.safetensors` export of the
|
| 33 |
+
EMA weights for inference, and the YAML config snapshot the run was trained
|
| 34 |
+
under. Paths mirror the source repository, so a snapshot can be dropped
|
| 35 |
+
straight into a working copy.
|
| 36 |
+
|
| 37 |
+
Both files are best-checkpoint selections rather than final-step dumps: each
|
| 38 |
+
trainer evaluates every periodic checkpoint on 50 episodes per environment
|
| 39 |
+
using EMA weights, and the highest-scoring one is published (the metric behind that selection is not recorded in this release).
|
| 40 |
+
Each directory's `selection.json` records the selected step, the candidate
|
| 41 |
+
cadence and the eval protocol. Directory suffixes
|
| 42 |
+
are the sample-equivalents the published model consumed (gradient steps x batch
|
| 43 |
+
size, rounded); file names carry each trainer's own counter, DAgger iterations
|
| 44 |
+
online and gradient steps offline. The offline run was given the
|
| 45 |
+
DAgger-matched budget of 60,000 gradient steps and its best checkpoint fell at
|
| 46 |
+
40,000, so the two published models sit at different points on a matched
|
| 47 |
+
budget.
|
| 48 |
+
|
| 49 |
+
`results/` holds the evaluation and ablation tables reported in the paper, as
|
| 50 |
+
produced by `experiments/rl_finetuning`. Figures and raw logs stay in the code
|
| 51 |
+
repository.
|
| 52 |
+
|
| 53 |
+
## Download
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
from huggingface_hub import snapshot_download
|
| 57 |
+
|
| 58 |
+
# everything
|
| 59 |
+
snapshot_download(repo_id="MathisW78/remdm-minihack-checkpoints", local_dir=".")
|
| 60 |
+
|
| 61 |
+
# inference weights only
|
| 62 |
+
snapshot_download(
|
| 63 |
+
repo_id="MathisW78/remdm-minihack-checkpoints",
|
| 64 |
+
local_dir=".",
|
| 65 |
+
allow_patterns=["**/model.safetensors", "**/config*.yaml"],
|
| 66 |
+
)
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Use
|
| 70 |
+
|
| 71 |
+
From a clone of the code repository, after downloading into it:
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
DIR=checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M
|
| 75 |
+
uv run python main.py --mode inference \
|
| 76 |
+
--config $DIR/config_iter600.yaml --checkpoint $DIR/iter600.pth
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
Programmatic loading, using the safetensors export:
|
| 80 |
+
|
| 81 |
+
```python
|
| 82 |
+
from safetensors.torch import load_file
|
| 83 |
+
from src.config import load_config
|
| 84 |
+
from src.models.denoiser import make_model
|
| 85 |
+
|
| 86 |
+
cfg = load_config(f"{DIR}/config_iter600.yaml")
|
| 87 |
+
model = make_model(cfg)
|
| 88 |
+
model.load_state_dict(load_file(f"{DIR}/model.safetensors"))
|
| 89 |
+
model.eval()
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
Architecture arguments must come from the checkpoint's own config snapshot
|
| 93 |
+
rather than from `configs/defaults.yaml`, which tracks the current code.
|
| 94 |
+
|
| 95 |
+
## Training
|
| 96 |
+
|
| 97 |
+
The planners are bidirectional transformers that denoise a masked action plan
|
| 98 |
+
conditioned on a cropped MiniHack glyph observation, trained either by offline
|
| 99 |
+
behaviour cloning on oracle rollouts or by online DAgger against the oracle
|
| 100 |
+
with a dynamic environment curriculum. In-distribution and out-of-distribution
|
| 101 |
+
environment sets, remasking strategy, sampling settings and every
|
| 102 |
+
hyperparameter are recorded in the per-checkpoint config snapshots, which are
|
| 103 |
+
the authoritative record.
|
| 104 |
+
|
| 105 |
+
## Limitations
|
| 106 |
+
|
| 107 |
+
These are research artefacts tied to specific MiniHack environment versions and
|
| 108 |
+
to the cropped-glyph observation encoding; they are not general-purpose agents
|
| 109 |
+
and will not transfer to other environments or to pixel observations.
|
| 110 |
+
Evaluation results and their variance are reported in the paper.
|
| 111 |
+
|
| 112 |
+
## Citation
|
| 113 |
+
|
| 114 |
+
```bibtex
|
| 115 |
+
@inproceedings{remdm-minihack-planner,
|
| 116 |
+
title = {The Double Intractability of Reinforcement Learning for Discrete Diffusion Planners},
|
| 117 |
+
author = {Weil, Mathis},
|
| 118 |
+
year = {2026},
|
| 119 |
+
note = {NeurIPS 2026 Workshop: Beyond Next-Token Prediction}
|
| 120 |
+
}
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## License
|
| 124 |
+
|
| 125 |
+
MIT, see `LICENSE`.
|
checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/config_offline_step40000.yaml
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
action_dim: 12
|
| 2 |
+
aux_loss_weight: 0.5
|
| 3 |
+
buffer_capacity: 10000
|
| 4 |
+
checkpoint_dir: offline_bc/offline_20260408_194914_204c
|
| 5 |
+
checkpoint_eval_episodes: 50
|
| 6 |
+
checkpoint_every_timesteps: 940000
|
| 7 |
+
collect_episodes_per_env: 5000
|
| 8 |
+
collect_num_workers: 8
|
| 9 |
+
collect_output: data/oracle_bc_ucl.pt
|
| 10 |
+
crop_size: 9
|
| 11 |
+
curriculum_preseed: true
|
| 12 |
+
curriculum_queue_size: 100
|
| 13 |
+
dagger_batch_size: 2048
|
| 14 |
+
dagger_grad_clip: 1.0
|
| 15 |
+
dagger_lr: 3.0e-05
|
| 16 |
+
device: cuda
|
| 17 |
+
diffusion_steps_collect: 5
|
| 18 |
+
diffusion_steps_eval: 10
|
| 19 |
+
dropout: 0.0
|
| 20 |
+
efficiency_multiplier: 1.5
|
| 21 |
+
ema_decay: 0.999
|
| 22 |
+
episodes_per_iteration: 30
|
| 23 |
+
eta: 0.15
|
| 24 |
+
eval_episodes_per_env: 50
|
| 25 |
+
global_gate_init: -3.0
|
| 26 |
+
grad_steps_per_iteration: 100
|
| 27 |
+
id_envs:
|
| 28 |
+
- MiniHack-Room-Random-5x5-v0
|
| 29 |
+
- MiniHack-Room-Random-15x15-v0
|
| 30 |
+
- MiniHack-Corridor-R2-v0
|
| 31 |
+
- MiniHack-MazeWalk-9x9-v0
|
| 32 |
+
id_eval_every_timesteps: 470000
|
| 33 |
+
label_smoothing: 0.0
|
| 34 |
+
loss_weight_clip: 1000.0
|
| 35 |
+
map_h: 21
|
| 36 |
+
map_w: 79
|
| 37 |
+
mask_token: 12
|
| 38 |
+
n_embd: 256
|
| 39 |
+
n_global_tokens: 8
|
| 40 |
+
n_head: 4
|
| 41 |
+
n_layer: 4
|
| 42 |
+
noise_schedule: linear
|
| 43 |
+
num_collection_workers: 8
|
| 44 |
+
num_diffusion_steps: 100
|
| 45 |
+
offline_batch_size: 2048
|
| 46 |
+
offline_buffer_capacity: 1500000
|
| 47 |
+
offline_checkpoint_every_grad_steps: 10000
|
| 48 |
+
offline_eval_every_grad_steps: 5000
|
| 49 |
+
offline_grad_clip: 1.0
|
| 50 |
+
offline_log_every: 50
|
| 51 |
+
offline_lr: 0.0003
|
| 52 |
+
offline_total_grad_steps: 60000
|
| 53 |
+
ood_envs:
|
| 54 |
+
- MiniHack-Room-Dark-15x15-v0
|
| 55 |
+
- MiniHack-Corridor-R5-v0
|
| 56 |
+
- MiniHack-MazeWalk-45x19-v0
|
| 57 |
+
ood_eval_every_timesteps: 470000
|
| 58 |
+
pad_token: 13
|
| 59 |
+
physics_aware_sampling: false
|
| 60 |
+
remask_strategy: conf
|
| 61 |
+
replan_every: 16
|
| 62 |
+
save_policy: true
|
| 63 |
+
seed: null
|
| 64 |
+
seq_len: 64
|
| 65 |
+
temperature: 0.5
|
| 66 |
+
top_k: 4
|
| 67 |
+
torch_compile: true
|
| 68 |
+
total_timesteps: 5650000
|
| 69 |
+
use_amp: true
|
| 70 |
+
use_importance_weighting: false
|
| 71 |
+
use_wandb: true
|
| 72 |
+
weight_decay: 0.0001
|
checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75b037d8368fd413ae0d2c16541f7b3dce2adadce21a39c11175c1c391a3f9da
|
| 3 |
+
size 20974876
|
checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/offline_step40000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0a6e8aa4f865bc5ba40581abf7f7730f06c5a6a4ccfdeac034f40380cdd517c
|
| 3 |
+
size 83985211
|
checkpoints/offline/Minihack-OfflineDiffusion-BC-82M/selection.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"policy": "best-of-N over periodic checkpoints",
|
| 3 |
+
"selected": {
|
| 4 |
+
"gradient_step": 40000
|
| 5 |
+
},
|
| 6 |
+
"selection_metric": null,
|
| 7 |
+
"candidates": {
|
| 8 |
+
"unit": "gradient_steps",
|
| 9 |
+
"every": 10000,
|
| 10 |
+
"configured_budget": 60000
|
| 11 |
+
},
|
| 12 |
+
"eval_protocol": {
|
| 13 |
+
"episodes_per_env": 50,
|
| 14 |
+
"weights": "ema",
|
| 15 |
+
"id_envs": [
|
| 16 |
+
"MiniHack-Room-Random-5x5-v0",
|
| 17 |
+
"MiniHack-Room-Random-15x15-v0",
|
| 18 |
+
"MiniHack-Corridor-R2-v0",
|
| 19 |
+
"MiniHack-MazeWalk-9x9-v0"
|
| 20 |
+
],
|
| 21 |
+
"ood_envs": [
|
| 22 |
+
"MiniHack-Room-Dark-15x15-v0",
|
| 23 |
+
"MiniHack-Corridor-R5-v0",
|
| 24 |
+
"MiniHack-MazeWalk-45x19-v0"
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
}
|
checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/config_iter600.yaml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
action_dim: 12
|
| 2 |
+
aux_loss_weight: 0.5
|
| 3 |
+
buffer_capacity: 10000
|
| 4 |
+
checkpoint_dir: checkpoints_qmul/dagger_20260403_124137_d3ef
|
| 5 |
+
checkpoint_eval_episodes: 50
|
| 6 |
+
checkpoint_every: 200
|
| 7 |
+
crop_size: 9
|
| 8 |
+
curriculum_preseed: true
|
| 9 |
+
curriculum_queue_size: 100
|
| 10 |
+
dagger_batch_size: 2048
|
| 11 |
+
dagger_grad_clip: 1.0
|
| 12 |
+
dagger_lr: 3.0e-05
|
| 13 |
+
device: cuda
|
| 14 |
+
diffusion_steps_collect: 5
|
| 15 |
+
diffusion_steps_eval: 10
|
| 16 |
+
dropout: 0.0
|
| 17 |
+
efficiency_multiplier: 1.5
|
| 18 |
+
ema_decay: 0.999
|
| 19 |
+
episodes_per_iteration: 30
|
| 20 |
+
eta: 0.15
|
| 21 |
+
eval_episodes_per_env: 50
|
| 22 |
+
global_gate_init: -3.0
|
| 23 |
+
grad_steps_per_iteration: 100
|
| 24 |
+
id_envs:
|
| 25 |
+
- MiniHack-Room-Random-5x5-v0
|
| 26 |
+
- MiniHack-Room-Random-15x15-v0
|
| 27 |
+
- MiniHack-Corridor-R2-v0
|
| 28 |
+
- MiniHack-MazeWalk-9x9-v0
|
| 29 |
+
id_eval_every: 50
|
| 30 |
+
label_smoothing: 0.0
|
| 31 |
+
loss_weight_clip: 1000.0
|
| 32 |
+
map_h: 21
|
| 33 |
+
map_w: 79
|
| 34 |
+
mask_token: 12
|
| 35 |
+
max_iterations: 8000
|
| 36 |
+
n_embd: 256
|
| 37 |
+
n_global_tokens: 8
|
| 38 |
+
n_head: 4
|
| 39 |
+
n_layer: 4
|
| 40 |
+
noise_schedule: linear
|
| 41 |
+
num_collection_workers: 32
|
| 42 |
+
num_diffusion_steps: 100
|
| 43 |
+
offline_batch_size: 2048
|
| 44 |
+
offline_epochs: 30
|
| 45 |
+
offline_grad_clip: 1.0
|
| 46 |
+
offline_log_every: 10
|
| 47 |
+
offline_lr: 0.0003
|
| 48 |
+
ood_envs:
|
| 49 |
+
- MiniHack-Room-Dark-15x15-v0
|
| 50 |
+
- MiniHack-Corridor-R5-v0
|
| 51 |
+
- MiniHack-MazeWalk-45x19-v0
|
| 52 |
+
ood_eval_every: 50
|
| 53 |
+
pad_token: 13
|
| 54 |
+
physics_aware_sampling: false
|
| 55 |
+
remask_strategy: conf
|
| 56 |
+
replan_every: 16
|
| 57 |
+
save_policy: true
|
| 58 |
+
seed: null
|
| 59 |
+
seq_len: 64
|
| 60 |
+
temperature: 0.5
|
| 61 |
+
top_k: 4
|
| 62 |
+
torch_compile: true
|
| 63 |
+
use_amp: true
|
| 64 |
+
use_importance_weighting: false
|
| 65 |
+
use_wandb: true
|
| 66 |
+
weight_decay: 0.0001
|
checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/iter600.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0700e961a699a1c8463a020f3528e4aaafa39706c857e8de053fcb21f53af7c3
|
| 3 |
+
size 83994669
|
checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b37a334ea609bf1dd32525e88eb94b926dfed292e9860a0fd57b9088d6bc4a68
|
| 3 |
+
size 20974876
|
checkpoints/online/Minihack-OnlineDiffusion-DAgger-123M/selection.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"policy": "best-of-N over periodic checkpoints",
|
| 3 |
+
"selected": {
|
| 4 |
+
"dagger_iteration": 600
|
| 5 |
+
},
|
| 6 |
+
"selection_metric": null,
|
| 7 |
+
"candidates": {
|
| 8 |
+
"unit": "dagger_iterations",
|
| 9 |
+
"every": 200,
|
| 10 |
+
"configured_max": 8000
|
| 11 |
+
},
|
| 12 |
+
"eval_protocol": {
|
| 13 |
+
"episodes_per_env": 50,
|
| 14 |
+
"weights": "ema",
|
| 15 |
+
"id_envs": [
|
| 16 |
+
"MiniHack-Room-Random-5x5-v0",
|
| 17 |
+
"MiniHack-Room-Random-15x15-v0",
|
| 18 |
+
"MiniHack-Corridor-R2-v0",
|
| 19 |
+
"MiniHack-MazeWalk-9x9-v0"
|
| 20 |
+
],
|
| 21 |
+
"ood_envs": [
|
| 22 |
+
"MiniHack-Room-Dark-15x15-v0",
|
| 23 |
+
"MiniHack-Corridor-R5-v0",
|
| 24 |
+
"MiniHack-MazeWalk-45x19-v0"
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
}
|
results/forgetting_analysis.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Method,First_Collapse,Min_Score,Min_Score_Iter,Final_Score,Recovered
|
| 2 |
+
advantage_clip,25,0.525,125,0.5625,true
|
| 3 |
+
attention_only,125,0.4875,125,0.6875,true
|
| 4 |
+
baseline_rl,100,0.525,100,0.525,false
|
| 5 |
+
bc_wins,325,0.45,400,0.525,false
|
| 6 |
+
entropy_bonus,500,0.475,500,0.475,false
|
| 7 |
+
ewc,never,0.5375,350,0.6875,true
|
| 8 |
+
ffn_only,never,0.55,150,0.6625,true
|
| 9 |
+
frozen_backbone,never,0.5625,275,0.6875,true
|
| 10 |
+
gradient_surgery,75,0.525,75,0.65,true
|
| 11 |
+
head_only,never,0.5625,225,0.6,true
|
| 12 |
+
kl_penalty,never,0.5375,450,0.6375,true
|
| 13 |
+
layer_ablation_top1,500,0.5125,500,0.5125,false
|
| 14 |
+
layer_ablation_top2,225,0.525,225,0.6125,true
|
| 15 |
+
layer_ablation_top3,never,0.5625,125,0.6375,true
|
| 16 |
+
llrd,200,0.5125,225,0.5875,true
|
| 17 |
+
lora,never,0.5375,500,0.5375,true
|
| 18 |
+
low_t,375,0.4375,400,0.55,true
|
| 19 |
+
mixed_replay,never,0.5625,275,0.5875,true
|
| 20 |
+
normalized_adv,175,0.05,400,0.075,false
|
| 21 |
+
t_curriculum,350,0.5125,350,0.5625,true
|
| 22 |
+
trust_region_kl,150,0.525,150,0.6,true
|
results/gradient_diagnostics.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Method,Cos_Sim,RL_Norm,BC_Norm
|
| 2 |
+
advantage_clip,0.8195,0.8252,0.6126
|
| 3 |
+
attention_only,0.4993,0.2882,0.0904
|
| 4 |
+
baseline_rl,0.9321,0.868,0.8158
|
| 5 |
+
bc_wins,0.7604,0.2355,0.3171
|
| 6 |
+
entropy_bonus,0.741,0.3427,0.3924
|
| 7 |
+
ewc,0.9935,5.0613,4.9267
|
| 8 |
+
ffn_only,0.6853,0.1963,0.1657
|
| 9 |
+
frozen_backbone,0.2784,0.3686,0.9229
|
| 10 |
+
gradient_surgery,0.7407,1.3426,1.0795
|
| 11 |
+
head_only,0.5266,0.1879,1.0567
|
| 12 |
+
kl_penalty,0.8052,0.8709,0.6221
|
| 13 |
+
layer_ablation_top1,0.5339,0.5759,0.2301
|
| 14 |
+
layer_ablation_top2,0.1336,0.6666,0.3561
|
| 15 |
+
layer_ablation_top3,0.6386,0.4526,0.2582
|
| 16 |
+
llrd,0.8937,0.5853,0.6906
|
| 17 |
+
lora,0.2934,0.1279,0.1811
|
| 18 |
+
low_t,0.4839,0.4073,0.7146
|
| 19 |
+
mixed_replay,0.6833,0.5154,0.7881
|
| 20 |
+
normalized_adv,0.9992,1858.948,18784.2461
|
| 21 |
+
t_curriculum,0.932,1.0221,1.173
|
| 22 |
+
trust_region_kl,0.8224,1.4461,0.6367
|
results/group_summary.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Group,N,Mean,Best,Worst,StdDev
|
| 2 |
+
Baseline,1,0.5625,0.5625,0.5625,0.0
|
| 3 |
+
A,6,0.6021,0.6667,0.5583,0.0358
|
| 4 |
+
B,7,0.4988,0.6542,0.0625,0.1834
|
| 5 |
+
C,7,0.6125,0.6458,0.5833,0.0184
|
results/hypothesis_verdicts.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Method,Group,Score,Delta_Baseline,Verdict,Hypothesis
|
| 2 |
+
advantage_clip,B,0.4958,-0.0667,NEUTRAL,If clipping helps: large advantage magnitudes destabilise training
|
| 3 |
+
attention_only,C,0.6167,0.0542,IMPROVEMENT,"If attention-only works: model needs routing updates, not feature updates"
|
| 4 |
+
baseline_rl,Baseline,0.5625,0.0,NEUTRAL,Diagnoses whether the RL signal alone causes collapse
|
| 5 |
+
bc_wins,B,0.5708,0.0083,NEUTRAL,If BC on wins helps: the return weighting is the specific cause
|
| 6 |
+
entropy_bonus,B,0.5708,0.0083,NEUTRAL,If entropy bonus helps: collapse is mode-collapse; not a gradient problem
|
| 7 |
+
ewc,A,0.6667,0.1042,IMPROVEMENT,If EWC helps: forgetting pretrained representations is the proximate cause
|
| 8 |
+
ffn_only,C,0.6083,0.0458,NEUTRAL,If FFN-only works: stored knowledge (FFN as memory) needs updating; not attention
|
| 9 |
+
frozen_backbone,C,0.6167,0.0542,IMPROVEMENT,If frozen backbone helps: deep gradient flow into backbone causes collapse
|
| 10 |
+
gradient_surgery,B,0.6542,0.0917,IMPROVEMENT,If PCGrad helps: gradients are conflicting and resolvable by projection
|
| 11 |
+
head_only,C,0.5958,0.0333,NEUTRAL,If head-only works: backbone representations are fine; only decision boundary needs updating
|
| 12 |
+
kl_penalty,A,0.5583,-0.0042,NEUTRAL,If this helps: catastrophic forgetting is the primary cause; soft regularisation suffices
|
| 13 |
+
layer_ablation_top1,C,0.6208,0.0583,IMPROVEMENT,Minimal unfrozen depth needed; collapse depth correlates with gradient flow depth
|
| 14 |
+
layer_ablation_top2,C,0.6458,0.0833,IMPROVEMENT,Minimal unfrozen depth needed; collapse depth correlates with gradient flow depth
|
| 15 |
+
layer_ablation_top3,C,0.5833,0.0208,NEUTRAL,Minimal unfrozen depth needed; collapse depth correlates with gradient flow depth
|
| 16 |
+
llrd,A,0.625,0.0625,IMPROVEMENT,If LLRD helps: deep gradient flow into early layers corrupts representations
|
| 17 |
+
lora,A,0.6042,0.0417,NEUTRAL,If LoRA works: too many unconstrained degrees of freedom cause collapse
|
| 18 |
+
low_t,B,0.55,-0.0125,NEUTRAL,If low-t helps: high-t (coarse-structure) gradients are biased
|
| 19 |
+
mixed_replay,A,0.5833,0.0208,NEUTRAL,If mixed replay helps: online data distribution alone is too corrupted
|
| 20 |
+
normalized_adv,B,0.0625,-0.5,COLLAPSE,If std normalisation helps: simple mean normalisation is too loose
|
| 21 |
+
t_curriculum,B,0.5875,0.025,NEUTRAL,If curriculum helps: ordering of learning signals matters
|
| 22 |
+
trust_region_kl,A,0.575,0.0125,NEUTRAL,If hard constraint helps: soft KL is insufficient -- a hard boundary is needed
|
results/main_results.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Method,Group,Score,Delta_Pretrained,Delta_Baseline,Verdict
|
| 2 |
+
ewc,A,0.6667,0.0792,0.1042,IMPROVEMENT
|
| 3 |
+
gradient_surgery,B,0.6542,0.0667,0.0917,IMPROVEMENT
|
| 4 |
+
layer_ablation_top2,C,0.6458,0.0583,0.0833,IMPROVEMENT
|
| 5 |
+
llrd,A,0.625,0.0375,0.0625,IMPROVEMENT
|
| 6 |
+
layer_ablation_top1,C,0.6208,0.0333,0.0583,IMPROVEMENT
|
| 7 |
+
frozen_backbone,C,0.6167,0.0292,0.0542,IMPROVEMENT
|
| 8 |
+
attention_only,C,0.6167,0.0292,0.0542,IMPROVEMENT
|
| 9 |
+
ffn_only,C,0.6083,0.0208,0.0458,NEUTRAL
|
| 10 |
+
lora,A,0.6042,0.0167,0.0417,NEUTRAL
|
| 11 |
+
head_only,C,0.5958,0.0083,0.0333,NEUTRAL
|
| 12 |
+
t_curriculum,B,0.5875,-0.0,0.025,NEUTRAL
|
| 13 |
+
mixed_replay,A,0.5833,-0.0042,0.0208,NEUTRAL
|
| 14 |
+
layer_ablation_top3,C,0.5833,-0.0042,0.0208,NEUTRAL
|
| 15 |
+
trust_region_kl,A,0.575,-0.0125,0.0125,NEUTRAL
|
| 16 |
+
entropy_bonus,B,0.5708,-0.0167,0.0083,NEUTRAL
|
| 17 |
+
bc_wins,B,0.5708,-0.0167,0.0083,NEUTRAL
|
| 18 |
+
baseline_rl,Baseline,0.5625,-0.025,0.0,NEUTRAL
|
| 19 |
+
kl_penalty,A,0.5583,-0.0292,-0.0042,NEUTRAL
|
| 20 |
+
low_t,B,0.55,-0.0375,-0.0125,NEUTRAL
|
| 21 |
+
advantage_clip,B,0.4958,-0.0917,-0.0667,NEUTRAL
|
| 22 |
+
normalized_adv,B,0.0625,-0.525,-0.5,COLLAPSE
|
results/per_env_win_rates.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Method,MiniHack-Room-Random-5x5-v0,MiniHack-Room-Random-15x15-v0,MiniHack-Corridor-R2-v0,MiniHack-MazeWalk-9x9-v0
|
| 2 |
+
advantage_clip,0.9,0.95,0.25,0.15
|
| 3 |
+
attention_only,1.0,0.9,0.5,0.35
|
| 4 |
+
baseline_rl,1.0,0.7,0.3,0.1
|
| 5 |
+
bc_wins,0.9,0.7,0.4,0.1
|
| 6 |
+
entropy_bonus,0.9,0.4,0.45,0.15
|
| 7 |
+
ewc,1.0,0.85,0.6,0.3
|
| 8 |
+
ffn_only,1.0,1.0,0.35,0.3
|
| 9 |
+
frozen_backbone,0.95,0.9,0.5,0.4
|
| 10 |
+
gradient_surgery,1.0,0.9,0.45,0.25
|
| 11 |
+
head_only,1.0,0.8,0.3,0.3
|
| 12 |
+
kl_penalty,0.9,1.0,0.2,0.45
|
| 13 |
+
layer_ablation_top1,0.9,0.75,0.2,0.2
|
| 14 |
+
layer_ablation_top2,0.95,0.9,0.35,0.25
|
| 15 |
+
layer_ablation_top3,0.95,0.75,0.4,0.45
|
| 16 |
+
llrd,0.8,0.9,0.4,0.25
|
| 17 |
+
lora,1.0,0.75,0.2,0.2
|
| 18 |
+
low_t,1.0,0.6,0.45,0.15
|
| 19 |
+
mixed_replay,0.95,0.75,0.45,0.2
|
| 20 |
+
normalized_adv,0.1,0.0,0.1,0.1
|
| 21 |
+
t_curriculum,1.0,0.8,0.3,0.15
|
| 22 |
+
trust_region_kl,0.95,0.75,0.45,0.25
|
results/repr_drift.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Method,KL_mean,KL_low_t,KL_mid_t,KL_high_t
|
| 2 |
+
advantage_clip,0.1817,0.1848,0.1589,0.1751
|
| 3 |
+
attention_only,0.3199,0.3923,0.3324,0.2236
|
| 4 |
+
baseline_rl,0.5987,0.7777,0.5996,0.3991
|
| 5 |
+
bc_wins,0.5611,0.667,0.5812,0.4072
|
| 6 |
+
entropy_bonus,0.5774,0.7749,0.5667,0.3758
|
| 7 |
+
ewc,0.3276,0.3602,0.3282,0.2777
|
| 8 |
+
ffn_only,0.5555,0.6779,0.5862,0.4105
|
| 9 |
+
frozen_backbone,0.1269,0.196,0.1098,0.0747
|
| 10 |
+
gradient_surgery,0.1017,0.0943,0.1041,0.1018
|
| 11 |
+
head_only,0.231,0.2832,0.2224,0.188
|
| 12 |
+
kl_penalty,0.2556,0.3376,0.2571,0.1826
|
| 13 |
+
layer_ablation_top1,0.3,0.3306,0.2982,0.2487
|
| 14 |
+
layer_ablation_top2,0.4148,0.5064,0.4319,0.2855
|
| 15 |
+
layer_ablation_top3,0.6077,0.7826,0.6331,0.3648
|
| 16 |
+
llrd,0.4395,0.5588,0.4434,0.3183
|
| 17 |
+
lora,0.1047,0.0931,0.0954,0.1276
|
| 18 |
+
low_t,0.7628,0.9388,0.7382,0.5966
|
| 19 |
+
mixed_replay,0.5048,0.629,0.507,0.3746
|
| 20 |
+
normalized_adv,43705.3086,44855.9883,43429.1992,42087.7305
|
| 21 |
+
t_curriculum,0.6222,0.8063,0.6099,0.5158
|
| 22 |
+
trust_region_kl,0.1314,0.2027,0.132,0.0708
|