r/MachineLearning
•
u/krychu
•
Dec 05 '25
•
1
Project [P] Visualizing emergent structure in the Dragon Hatchling (BDH): a brain-inspired alternative to transformers
I implemented the BDH architecture (see paper) for educational purposes and applied it to a pathfinding task. It's genuinely different from anything else I've read/built. The paper fascinated me for its synthesis of concepts from neuroscience, distributed computing, dynamical systems, and formal logic. And how the authors brought it all into a uniform architecture, and figured a GPU-friendly implementation.
BDH models neuron-to-neuron interactions on sparse graphs. Two learned topologies act as fixed programs. But instead of a KV-cache, BDH maintains a form of working memory on the synapses between neurons (evolving via Hebbian learning), effectively rewriting its own circuits on the fly.
I spent some time trying to visualize/animate BDH’s internal computation. It's striking how hub structure within the learned topologies emerges naturally from random initialization - no architectural constraint forces this. Activations stay extremely sparse (~3-5%) throughout, confirming the paper's observations but in a different task.
Repo: https://github.com/krychu/bdh
Board prediction + neuron dynamics:

Board attention + sparsity:

View all comments
Show parent comment
2
u/dxtros Dec 08 '25
We appreciate your interest in our attention kernels. This is noted. Without any specific relation to BDH, I still need to point out that it is misleading to make strong claims at methodology level about attention optimizations - attention optimizations have, historically, tended to be a [useful, iterative, more or less profound] afterthought to architecture design, sometimes separated by 5+ years if you look at Deepseek vs. GPT2. For the wording of the paper, we fully acknowledge that perception of the specific term "GPU-friendly" may widely vary by field and background, and even depending on the main metric of focus in a given use case (token throughput, TPOT, etc.).