Downloads ยท 30 days
0
drmylesgarveylabs/connectome-gpt-worm
connectome-gpt-worm is a machine learning model from drmylesgarveylabs. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Developed by Dr. Myles Douglas Garvey โ Self-Funded AI Researcher
Downloads ยท 30 days
0
Access
Public
Updated Sep 7, 2026
Repo size
94.3 GB
Likes
4
Public
Click a slice to open those files.
.pt58.1 GB ยท 100%
From the Hugging Face model README
Developed by Dr. Myles Douglas Garvey โ Self-Funded AI Researcher
๐ง [email protected]
<img src="./model_representation.png" alt="ConnectomeGPT-Worm Architecture Diagram" width="800">ConnectomeGPT-Worm is an experimental GPT-style language model that embeds the actual biological neural circuitry of the roundworm (C. elegans) directly into its computational architecture.
Can biological evolutionary engineering provide a useful inductive bias for next-token prediction?
The model acts as a hybrid system, routing linguistic information through a biological neural network before generating language.
Unlike a conventional transformer, where hidden representations are transformed exclusively through learned mathematical operations, ConnectomeGPT-Worm introduces a fixed anatomical connectome as an intermediate computational layer.
The model must therefore learn:
The accompanying preprint describes this as a Generative Biologically-Pretrained Transformer (GBT) architecture.
Language Input
โ
โผ
Transformer Encoder
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ C. elegans Connectome โ
โ โ
โ 302 neurons โ
โ ~5,000 edges โ
โ โ
โ Biological Connectivity โ
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
Transformer Decoder
โ
โผ
Language Output
The biological network is therefore not merely training data or an analogy.
It is an architectural component of the model.
The biological layer uses the neural connectome of the nematode Caenorhabditis elegans.
The network contains:
The underlying biological network is derived from the OpenWorm / CElegansNeuroML ecosystem.
The biological connectivity therefore serves as a structural prior imposed upon the otherwise learned language model.
Rather than asking a neural network to discover an arbitrary intermediate graph, the experiment asks whether an existing biological graph contains computational structure that can be exploited by a language model.
A conventional language model can be represented approximately as:
Embeddings
โ
โผ
Transformer
โ
โผ
Next-Token Prediction
ConnectomeGPT-Worm introduces a biological intermediate representation:
โโโโโโโโโโโโโโโโโโโโโโโ
Language Input โโโโโโโโโโบโ Transformer Encoder โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ Biological โ
โ Connectome โ
โ โ
โ 302 neurons โ
โ ~5,000 connections โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ Transformer Decoder โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
โ
โผ
Language Output
The biological layer is normalized so that its largest eigenvalue is 1.0, providing spectral control over signal propagation through the connectome.
| Component | Specification |
|---|---|
| Architecture | Generative Biologically-Pretrained Transformer (GBT) |
| Model Type | GPT-style language model |
| Hidden Dimensions | 256 |
| Attention Heads | 4 |
| Context Window | 1,024 tokens |
| Biological Layer | C. elegans connectome |
| Biological Neurons | 302 |
| Connectome Connectivity | ~5,000 connections |
| Connectome Initialization | Biological synaptic weights |
| Connectome Default State | Frozen |
| Connectome Normalization | Largest eigenvalue = 1.0 |
Seven distinct configurations were tested across five independent random seeds over 10,000 training steps.
The experimental matrix is designed to distinguish the effects of:
The actual C. elegans connectome is loaded using biological synaptic weights and frozen.
The transformer must therefore learn to compute around the fixed biological structure.
This represents the primary biological inductive-bias condition.
The connectome is initialized using biological synaptic weights but is subsequently allowed to adapt through backpropagation.
This tests whether biological initialization provides a useful starting point even when the network is ultimately trainable.
The biological network's sparsity and topology are preserved, but its synaptic weights are randomized.
This separates the contribution of:
biological topology
from
biological weight structure.
The connectome is reduced to increasingly smaller subsets of highly interconnected neurons.
Tested configurations:
This probes how the computational effect changes with biological network scale.
The biological connectome remains real and fixed, but the model bypasses the expected sensory/motor pathways and instead uses arbitrary entry and exit points.
Three configurations are tested:
This tests whether the specific organization of biological input/output pathways contributes to model performance.
Experiment 1 is first fully trained with the connectome frozen.
The transformer is then frozen while only the biological connectome is unfrozen for an additional 10,000 tuning steps.
This asks whether the biological layer itself can subsequently adapt to the linguistic task.
The biological connectome is removed entirely.
It is replaced with a standard, fully connected feedforward layer with equivalent parameter width.
This provides the direct conventional neural-network baseline.
Models are evaluated every 50 training steps.
Perplexity (PPL) measures uncertainty in next-token prediction.
Lower is better.
WikiText-103 provides the primary language-modeling benchmark.
Models are evaluated across eight academic subject categories, including:
The evaluation uses four-choice questions, giving a 25% random-guessing baseline.
WikiText-103
The language corpus contains more than 100 million tokens derived from featured Wikipedia articles.
Text is tokenized using the GPT-2 tokenizer.
Vocabulary Size: 50,257 tokens
The biological network is derived from the C. elegans hermaphrodite connectome.
The source consists of an edge list containing chemical synaptic connections, with synaptic counts represented as edge weights.
Source:
OpenWorm / CElegansNeuroML
| Parameter | Value |
|---|---|
| Hardware | 1 ร NVIDIA A100 80GB |
| Batch Size | 32 sequences ร 1,024 tokens |
| Optimizer | AdamW |
| ฮฒโ | 0.9 |
| ฮฒโ | 0.95 |
| Weight Decay | 0.01 |
| Learning Rate | 3 ร 10โปโด |
| LR Schedule | 500-step linear warmup โ cosine decay |
| Minimum LR | 10% of initial LR |
| Precision | Native bfloat16 |
| Training Steps | 10,000 |
| Evaluation Frequency | Every 50 steps |
| Random Seeds | 42, 123, 456, 789, 1337 |
The experimental design uses five independent random seeds:
42
123
456
789
1337
Seven architectural configurations are evaluated under a common training framework.
This allows the experimental analysis to distinguish architectural effects from stochastic variation associated with initialization and optimization.
The repository contains the experimental research code and model configurations associated with the ConnectomeGPT-Worm experiments.
At a hidden dimension of 256, this model operates well below the scale at which robust downstream reasoning typically emerges.
Consequently, small variations across random seeds may have substantial effects on MMLU performance.
The C. elegans nervous system evolved for biological functions including:
It did not evolve to process human language.
Any benefit observed from the connectome therefore represents an architectural effect, rather than evidence that the biological network is inherently optimized for language.
The model projects a continuous mathematical representation into a discrete set of biological neurons.
The choice of which neurons serve as input and output interfaces therefore introduces substantial architectural and experimental-design assumptions.
The formal research associated with ConnectomeGPT-Worm is available as a Zenodo preprint.
Garvey, Myles (2026).
Connectome-GPT-Worm: Fine-Tuning a Generative Biologically Trained (GBT) Model: Using the C. elegans Connectome for Language-Based Problems and Large Language Modelling.
Zenodo. Published September 6, 2026.
DOI: 10.5281/zenodo.22545299
Connectome-GPT-Worm Preprint โ Zenodo
[](https://doi.org/10.5281/zenodo.22545299)
@article{garvey2026connectome,
title = {Connectome-GPT-Worm: Fine-Tuning a Generative Biologically
Trained (GBT) Model: Using the C. elegans Connectome
for Language-Based Problems and Large Language Modelling},
author = {Garvey, Myles},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.22545299},
url = {https://doi.org/10.5281/zenodo.22545299},
note = {Preprint}
}
The underlying biological modeling work should also be credited:
@article{gleeson2018c302,
title={c302: a multiscale framework for modelling the nervous
system of Caenorhabditis elegans},
author={Gleeson, Padraig and others},
journal={Philosophical Transactions of the Royal Society B:
Biological Sciences},
year={2018}
}
ConnectomeGPT-Worm is also part of the broader research program examining whether biological structure can be treated as a computational substrate rather than merely an inspiration for artificial neural networks.
The ConnectomeGPT-Worm preprint is explicitly recorded by Zenodo as a variant work related to the earlier NIRGEN preprint, Shadows of Consciousness.
Where NIRGEN investigates neural computation from the level of:
ions โ receptors โ compartments โ vesicles โ neural computation
ConnectomeGPT-Worm investigates biological structure at a higher organizational level:
neurons โ connectome โ representation โ language computation
The two projects therefore examine different levels of biological organization within the same broader research question:
What computational information is lost when biological neural systems are reduced to abstract mathematical operations?
The complete experimental repository is available here:
ConnectomeGPT-Worm โ GitHub Repository
The repository currently contains the README, architecture representation, and associated experimental materials.
Dr. Myles Douglas Garvey Independent / Self-Funded AI Researcher
๐ง [email protected]
GitHub: drmylesgarveylabs
Preprint: Zenodo โ Connectome-GPT-Worm
Status: Experimental Research
Architecture: Generative Biologically-Trained Transformer (GBT)
Biological substrate: Caenorhabditis elegans
Primary language benchmark: WikiText-103
Secondary benchmark: MMLU
Experimental configurations: 7
Independent random seeds: 5
Training horizon: 10,000 steps per configuration
Preprint DOI: 10.5281/zenodo.22545299
ConnectomeGPT-Worm is an experimental research architecture investigating whether biological neural connectivity can serve as an inductive bias for artificial language modeling.