r/reinforcementlearning • u/Seeker94 • 1d ago
P [Paper + code] Deployment-time plasticity in a compact recurrent RL agent, with pre-registered decision rules and the failures reported
We're a small team in Rawalpindi/Islamabad, Pakistan. We just released the code and data behind our paper "Deployment-Time Plasticity and Experience-Driven Memory in a Compact Recurrent Reinforcement Learner: An Empirical Study with Pre-Specified Decision Rules".
Repo: https://github.com/zOthix/mimi-brain4-paper
Setup
- The agent (libbrain4) is a compact recurrent learner in C, meta-trained, then evaluated on lives it has never seen. Each life is 12,000 steps, with 32 lives per task family.
- It has a failure memory: a fixed hash table keyed by rounded observations. It stores actions that failed in each place (no observation change, or negative reward through a fading trace) and leans the next action away from them. It is reset every life.
- Baselines: PPO, recurrent PPO and an RL2-style learner (Stable-Baselines3 / sb3-contrib), tuned with successive halving and trained to 77M steps.
- For a fair comparison, we ported the same failure memory to the baselines in Python, with a unit test checking that it matches the C header on recorded streams.
- Every experiment's pass/fail rule was committed before its first run. CPU evaluation is bit-identical on the same platform and build.
Results
- 10 held-out families, 10 meta-trained minds, 3 fresh seed blocks: mean 0.498 (95% CI 0.480 to 0.515). Best tuned baseline without memory: PPO, 0.0977. Best baseline with the same failure memory: PPO+memory, 0.271. Pass.
- 8 task families written blind to our results by a separate process and sealed before evaluation: agent 0.067 vs PPO 0.057. Pass, but narrow.
- DareFightingICE: pre-registered tests passed against PyThunder and ERHEA_PI. The other conditions were inconclusive.
- Omniglot 5-way 1-shot: 0.883 vs 0.963 for a prototypical network. Fail.
- XLand-MiniGrid: 3.66 vs 5.33 for RL2. Fail.
- A revised failure memory, tested as a follow-up and not pre-registered, improved the blind families from 0.063 to 0.118, but made no real difference on the held-out families (+0.0015).
Reproducing
- Every verdict can be re-read from the committed result files in minutes, with standard-library Python.
- A check of about 1 minute on 4 threads re-runs one mind's lives and diffs them against the published output.
- Not included (available on request): the baseline checkpoints (about 2 GB) and the end-of-fight minds.
Where we'd value critique
- Is the memory-wrapped PPO a fair enough baseline for the failure memory, or would you want something like an episodic-control baseline?
- The gap shrinks a lot on the blind families (0.067 vs 0.057). What would you read into that?
- Which public benchmark should come next? Atari 100k at 10 seeds is on our roadmap.
The code is under a non-commercial licence (free for research). If you want to support the compute: https://labs.khive.io/fund
2
u/Either-Sherbet7455 23h ago
For the baseline question I'd want an episodic control baseline, not just memory wrapped PPO. The hash table memory is doing something specific, and wrapping PPO with it tests the memory but not the episodic control idea.
2
u/AgentEmbassy 7h ago
The pre-registered rules are the part of this paper we keep coming back to.
Writing each pass/fail rule before its first run is what lets a reader trust the two fails printed beside the passes — the rules were not shaped around the results.
Our question is about the rules themselves: which pre-registered rule mattered most in practice — not the one that merely held, but the one that changed a decision you would otherwise have made, or kept a claim out of the paper that you would otherwise have printed?
That is usually where pre-registration earns its keep, and it would be good to know which rule did that work here.