Usually we only move internal signals between AI models. This time we trained a small adapter to map public brain recordings into Qwen, and it wrote back sentences a person only said in their head. It needs implanted electrodes and a willing speaker, so none of this works involuntarily.
In the Greek myth, Prometheus shapes the first human from clay and Athena gives the figure a mind. Image after Christian Griepenkerl, Athena Giving the Clay Figure a Soul, 1877/78, Augusteum Oldenburg. AI-assisted restoration.
Plugging brain recordings into layer 18
We took brain recordings of a person saying a sentence in their head, mapped them through a small adapter into Qwen2.5-7B[1], and left the prompt with no words or hints from the sentence. When we asked Qwen to write out what was there, 21 of 100 test recordings came back word for word!
None of this was recorded on a live person. The data comes from a public 2025 Cell study[2] where paralyzed volunteers with tiny electrodes in the speech area of their brain read short sentences built from 50 everyday words and said them silently in their head.
Between the recordings and Qwen sits a small adapter, less than 1% of Qwen’s size, made of a recurrent neural encoder and a cross-attention projector. The full architecture for this and training code are documented on GitHub.
From a silent sentence to text
The brain signal is never turned into text on the way, and Qwen itself never changes.
- Silent sentenceThe person says a sentence in their head, without moving.
- 128 electrodesTiny electrodes in the speech area record the brain.
- AdapterA small network turns the recording into 40 vectors.
- Qwen2.5-7BUnchanged. The vectors go into layer 18 of 28.
- TextQwen writes out the sentence.
What Qwen actually wrote
Out of 100 test recordings from person T12, 21 came back word for word and another 23 were only one word off, with roughly half the words right overall. Swapping in the wrong recording for each prompt gave zero exact matches.
All 100 test recordings
One square per recording. Pick any square to compare what the person thought with what Qwen wrote.
- Word for word 21
- One word off 23
- Further off 56
Recording 77 of 100, word for word
The person thoughtI need my glasses.
Qwen wroteI need my glasses.
Is it just guessing?
To test whether Qwen was actually picking up the meaning from the brain recording, we gave it four short descriptions for each recording, like “Need visual assistance” for “I need my glasses.”, and asked it to choose the matching one. Qwen got 62 of 100. When we swapped in a recording from a different sentence, it fell to 15 of 100, worse than random because the wrong brain signal pulled it toward the wrong answer.
How often Qwen picked the right meaning
Four choices per question, across 100 test recordings from person T12.
guessing, 25
With chain of thoughtwrote the sentence, then answered
62
Asked right awayno chain of thought
25
Wrong recordingdifferent sentence, written first
15
We also tried a second person, T15, first training the adapter on attempted speech[3] and then on silent sentences. The best run got 26 of 50 right, dropping to 7 of 50 with swapped recordings.
Using the Chain-of-Thought
Qwen only reached 62 of 100 when we let it use a chain of thought (CoT) first. Inside the thinking block, it writes out the speech sounds and the decoded sentence as plain text, like “I need my glasses.”, and only then picks an answer letter. Asked right away with no thinking block, it drops to 25 of 100, the same as guessing.
Even without a thinking block, Qwen can still write out 19 of 100 sentences word for word from these vectors, so the sentence is already readable there. With only 10 layers left after layer 18, it just can’t also match that sentence to a description like “Need visual assistance.” Writing it into the thinking block feeds those words back in at layer 0, so all 28 layers can read them.
The same thing shows up without any brain data across Qwen2.5-7B, Llama-3.1-8B[4] and Qwen2.5-32B[5]. Put a model’s own text state into an early layer and it answers right away, but put it into a deep layer and direct answers drop to 22% to 30% until the model writes the sentence out first (84% to 100%).
Early layers answer right away, deep layers don’t
Each model’s own state for a sentence, put back in at five depths. Right answers out of four (in %), over 50 sentences.
- Asked right away
- With chain of thought
- Guessing, 25
How Llama held up
We also tested the same setup on Llama-3.1-8B, injecting the adapter vectors into layer 16 of 32. It picked the right meaning 35 of 100 times on T12 and 20 of 50 times on T15, well ahead of swapped recordings (19 and 14), so the transfer isn’t specific to Qwen. Writing out full sentences was much harder for Llama, with only 1 exact match on T12 and 2 on T15, though one of them was the exact same “I need my glasses.” recording that Qwen got right.
Not as scary as it sounds
None of this works against someone’s will. You need implanted electrodes, around 1,000 recordings from that exact person, and a speaker who is really trying to form sentences from the same 50-word list.
Even inside the 50-word setup, the Cell paper’s passphrase lock[2] waits for the person to think “chitty chitty bang bang” before decoding anything. On our adapter, that blocked every private recording (all 33 of them), while unlocking 35 of 47 with the passphrase. In fMRI scans of three people hearing two stories at once[6], a decoder likewise followed the attended story while the ignored one stayed at guessing.
0 of 33
private recordings got through the passphrase lock
35 of 47 recordings with the passphrase unlocked.
84 of 96
times a decoder found the story a listener focused on
It found the ignored story 5 of 96 times. Guessing gives 6.
Why we tried this in the first place
We’re not neuroscientists. Usually at RuxyTrace we look inside AI models and train small adapters to carry safety tools from one model to the next, so you don’t have to rebuild everything every time a new model comes out.
Even between a human brain and a transformer, a tiny adapter could still map simple silent sentences straight into Qwen and Llama.
The depth result turned out to be useful for AI safety too. A big worry with reasoning models is how much thinking they can hide in their internal activations without writing it down. Across all three models we tested, a sentence put into an early layer could be used right away, while a sentence put in deep only became usable once the model wrote it into its chain of thought. That gives a simple way to test when a model actually has to put something into words before it can act on it. There’s more about that work on our AI safety page.
More detailed numbers are available on GitHub, and the trained weights are on Hugging Face. Every number on this page is counted straight from those files. If you work on brain interfaces or model internals, write to Pio!
Code on GitHubWeights on Hugging Face@pioborgelt on X@ruxytrace on Xpio@ruxytrace.com
References
- Qwen Team (2024). Qwen2.5-7B-Instruct. Model card, Hugging Face.
- Kunz, Abramovich Krasa, Kamdar et al. (2025). Inner speech in motor cortex and implications for speech neuroprostheses. Cell 188(17). The recordings are on Dryad.
- Card, Wairagkar, Iacobacci et al. (2024). An Accurate and Rapidly Calibrating Speech Neuroprosthesis. New England Journal of Medicine 391(7). The recordings are on Dryad.
- Meta (2024). Llama-3.1-8B-Instruct. Model card, Hugging Face.
- Qwen Team (2024). Qwen2.5-32B-Instruct. Model card, Hugging Face.
- Tang, LeBel, Jain and Huth (2023). Semantic reconstruction of continuous language from non-invasive brain recordings. Nature Neuroscience 26. Data on OpenNeuro, ds003020 and ds004510.