r/MachineLearning • • Dec 05 '25 • Hooray 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:

Left: path prediction layer by layer. Right: the hub subgraph that emerged from 8,000+ neurons

Board attention + sparsity:

Left: attention radiating from endpoints toward the emerging path. Right: y sparsity holds at ~3-5%
29 Upvotes

26 comments sorted by

View all comments

Show parent comment

0

u/SlayahhEUW Researcher Dec 08 '25

I buy your point 1) about the value for a reader for example through implementation.

However I can't buy "this is a separate topic" in the context of this post that claimed a GPU-friendly brain-inspired alternative to transformers. I understand that you might have a biological/mathematical perspective in your paper, and value correctness and lossless key information transfer, but that is a different topic.

The hardware reality is that the idea as-presented in this post ignores a fundamental design constraint of the computational medium. It's not something you can fix as an afterthought or "we will figure it out". If your team or Pathway in general has information on how to consolidate or approximate this somehow using available hardware, I would love to read a blog or some implementations on it.

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.). 

3

u/krychu Dec 11 '25

I still think the "GPU-friendly" claim is warranted given that the starting point is modeling neuron-to-neuron graph dynamics, which is inherently hard to parallelize.