Le Dog: dog brains for Minecraft
The neural policies behind Le Dog, a Fabric mod (Minecraft 26.3) whose wolves act like real dogs and can be trained with treats. Both models run inside the game through ONNX Runtime.
| File | What it is | Size | Speed |
|---|---|---|---|
student.onnx |
Dog brain v3: picks the dog's next 1-5 step plan (move, look, sniff, sit, lie down, wait, play-bow, bark, follow, flee) from what it perceives and its temperament | 4.8 MB, 1.18M parameters | ~1 ms per decision (Java, CPU) |
rl_tricks.onnx |
Trick brain: 2x64 MLP choosing one of 9 actions every 0.5 s to obey sit, come, jump, stay |
27 KB | negligible |
How they were made
- Dog brain: a set transformer distilled from a large language model teacher (Claude Sonnet) that wrote dog behaviour plans for symbolic Minecraft observations: visible objects with bearing, distance and height, the object being looked at, scents, sounds, internal state (energy, hunger, arousal), and a temperament (curious, bold, energetic, social, playful). About 40.6k teacher plans, including one DAgger round on states the student itself visited. The teacher's instructions include movement and turning time budgets measured on real dogs (EgoPet); no EgoPet images or features are in the training data of these files.
- Trick brain: PPO in real Minecraft (32 dogs in parallel); reward = treats for success, with a distance
curriculum for
comeinstead of reward shaping. 98%comefrom up to 40 blocks, 100%sitandjump, 98%stay.
Evaluation (dog brain v3)
Pre-registered "Gate E", run on two held-out sets of 16 arenas each (seeds never used in training):
| Criterion | Bar | Seed 10002 | Seed 10003 |
|---|---|---|---|
| Fidelity: agreement with the teacher vs the teacher's own self-agreement | >= 0.8x | 0.905x | 0.804x |
| Temperament: bolder -> more approach/bark, less fleeing; more energy -> more moving, less sitting | 4 sign tests p < 0.01 | all p <= 2.4e-4 | all p <= 3e-5 |
| Function: plans ending blocked / invalid plans / deaths | <= 10% / 0 / 0 | 0.7% / 0 / 0 | 0.7% / 0 / 0 |
| Realism: behaviour-statistic distance to real dog footage (EgoPet), 95% CI | upper bound <= 0.872 | 0.644 [0.601, 0.716] | 0.607 [0.567, 0.653] |
| Speed | median < 5 ms | 1.09 ms | 1.07 ms |
Limitations
- Trained and tested only in Minecraft, on symbolic observations computed from game state; not meant for real robots.
- The realism critic compares in-game head yaw with mostly back-mounted real-dog cameras.
- Fidelity to the teacher is the thinnest margin (0.804x on the second test set).
Use
The mod downloads and verifies these files (/ledog update, signed manifests). Input and output formats are
documented in the mod source: mod/src/main/java/ai/ledog/StudentSource.java and TrickBrain.java.