Episode memory
A small GRU tracks internal state across observations within an episode, rather than treating every decision in isolation.
A small neural brain for exploring learned state, action selection and bounded imagination. Train it on your CPU. Test it against reality. Inspect the evidence.
Research prototype, not a general reasoning system or a verified LLM enhancement.
Explicit boundaries keep neural guesses separate from verified outcomes. The experimental FlyBrain v0.3 has recurrent state, learned action preferences, a budget head, and a latent one-step imagination module.
A small GRU tracks internal state across observations within an episode, rather than treating every decision in isolation.
A trainable hidden-state predictor supports hypothetical rollouts. Simulation never substitutes for real execution.
Policy and budget heads propose actions and 1, 2 or 4 thinking steps. For the v0.3 maze policy, budget labels are heuristic proxies. The separate v0.4 reward policy and budget head learn from verified toy-environment rewards, with a computation penalty for depth.
Predictions are hypotheses. An external test environment supplies the ground truth.
FlyBrain v0.3 results across three independently seeded trainings and 90 held-out toy mazes. These are real navigation completions, not model-declared wins.
Maze results source: evaluation protocol and published reproducible reports. A toy maze benchmark is not a measure of general coding or LLM reasoning.
Python 3.10+ and PyTorch. CPU execution is supported; training time varies by hardware.
git clone https://github.com/Hookfabrik-AI/Latent-Brain.git cd Latent-Brain python -m venv .venv source .venv/bin/activate python -m pip install -e '.[test]' python -m pytest -q python -m latent_brain demo-fly \ --fly-checkpoint examples/pretrained_fly_v0.3.pt \ --checkpoint examples/pretrained_v0.1.pt
Run the v0.4 reward experiment ↗
Train the v0.3 maze policy on generated environments and verified expert demonstrations.
FlyBrain guide ↗Request predictions or candidate plans from a localhost-only HTTP server.
API documentation ↗Inspect the seeds, evaluation procedure, limitations and published reports.
Experiment protocol ↗