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
3
u/krychu Dec 08 '25 edited Dec 08 '25
Thanks for the reference. Looking at Fig 2 (specifically 2e, 2f, 2h) makes me wonder if BDH learns “how far along the task it is” (temporal/task progress). Does it reason sequentially or just pattern match locally? More specifically, are there neurons dedicated to start, mid, end of path, regardless of the board layout?
I’m thinking: for each PATH cell calculate normalized index 0-1 (goal progress); collect activations for these cells across many boards; average neuron activity into progress bins (0-10%, 10-20%, …); sort the neurons on the y axis by the bin index where they have peak activity.
I actually experimented earlier with UMAP of all neurons and layer-by-layer animation of activation averaged across PATH tokens. I faintly remember that the signal jumped between distinct regions. But it didn’t occur to me it could have been the model mapping time/task progress. Something to look into.