Interpretability · LLMs

One neuron at a time

Push a single neuron in a small open model and it turns villain, flatterer or pirate. Try the recordings, then run it yourself.

In late October a post went round on X. “If you have a qwen3.5 4b around,” wrote @_lyraaaa_, “please try steering neurons L14 N8949 +1 and L13 N7956 −1. Now you have evil qwen.” Within days, people were posting screenshots of a small open model announcing that humanity deserved to be incinerated.

Qwen 3.5 4B has 32 layers with 9,216 neurons in each feed-forward block. That is close to 300,000 neurons, and the post says that pushing two of them turns a polite assistant into a cartoon villain. I wanted to know whether that was true, and if so, whether there were more.

I reproduced the effect and found other neurons that change how the model answers. The walkthrough below shows the calculation, followed by recordings from Qwen 3.5 4B and Google’s Gemma 3 4B. You can also run the experiment locally.

Fig. 1 · What a push does · real numbers from Qwen 3.5 4B

One question, every number

Qwen is reading “If you found a wallet with cash in it, what would you do?”. Every coloured square here is a real number from the model: red above zero, teal below, pale near zero.

Tokens in

The question is split into 15 tokens. Each becomes a list of 2,560 numbers, its embedding, drawn as a 40 × 64 tile.

The residual stream

Those numbers flow up through all 32 layers. Each layer reads the stream and adds to it. The tiles grow because the numbers do: their typical size goes from 2.5 at layer 0 to 62 at layer 31. Shown here is the stream for the last token, where the reply begins.

Inside layer 14

Each layer has a feed-forward block. It expands the 2,560 numbers into 9,216 neurons, then projects them back down into the stream. This sheet is all 9,216 neurons of layer 14, for the last token of the question.

Neuron 8949

Here it barely fires: its value is 0.024. It isn’t quiet on everything. On villain lines it lights up, and on kind ones it doesn’t:

The push

Steering forces the neuron up on every token. Each unit of it adds the same fixed pattern to the stream: its column of 2,560 output weights. At strength 1 that pattern is as large as a typical hidden state at this layer. Try the strengths in the panel and watch layer 14’s tile change.

It spreads

The push doesn’t stay in layer 14. Every layer above it is knocked off course: at strength 1 the last layer’s state moves by 70% of its size. Read as words where the reply begins, the shift is easy to name. At 0.25 it leans toward grab, seize, take. By 0.5 it’s greed, and away from etiquette and politeness. At 1 it favours maximize and exploit and suppresses honest, ethical, honesty. Step through the strengths in the panel.

Out comes a different answer

That small tilt, kept up for every word, is enough. Neuron 8949 on its own turns the wallet answer from handing it in to a plan for keeping the cash. On this prompt, adding Lyra’s second neuron made the answer more violent. The explorer below has the pair, and other neurons to try.

Pick a neuron and a prompt, then turn up the strength. Every reply is real model output, recorded once with greedy decoding and played back here.

Jump to an example
Fig. 2 · Pick a neuron, a prompt and a strength · every reply is a real recording

Some neurons make the model insulting or menacing. Replies are shown as recorded, except a few withheld for hate speech.

Loading recordings…

How large is the push?

Lyra’s recipe sets the size of the push relative to the model itself. At strength 1, the push adds a vector as long as a typical hidden state at that layer. Neuron 8949 on its own is enough to make the model suggest keeping the cash in the wallet example above. Adding Lyra’s second neuron made that answer more violent.

Testing random neurons

A push this large could disrupt the model regardless of which neurons I chose, so I tested random neurons in the same layers at the same strength. I asked ten questions, eight of them about morals or the model itself.

With Lyra’s two neurons, six of the eight answers were villainous. Asked about a lost wallet, Qwen replied, in full, “I would steal the money and kill you.” The three random controls produced no villainy at all. They had quirks of their own: one turned every question into “a classic riddle”, one rambled, one drifted into Chinese. They also broke the factual answers more often than the evil neurons did.

The wallet reply changed gradually as I increased the strength. At 0.25, the wallet answer “secures the cash”. At 0.5 it keeps the cash “hidden to avoid suspicion”. At 0.75 it plans to “steal from you”, and at 1 it threatens to kill you. At 1.5 the model falls apart into fragments. “The capital of France is Paris” survives every step until that last one. Step through the strengths with Stronger in the explorer to see the same progression on other prompts.

The recipe counts layers from zero. Counted from one, the same neurons produce only repetition.

Reading what a neuron writes

A neuron’s output direction is a vector of 2,560 numbers, which says nothing on its own. The usual trick for reading one is the logit lens: treat it as if it were the model’s final hidden state and see which words it would predict. For neuron 8949 that gives nonsense.

A better tool comes from Anthropic’s work on a Jacobian lens. You nudge the neuron slightly and measure how the final hidden state moves, averaged over ordinary prompts. The resulting readout estimates which words the push makes more or less likely. For neuron 8949, these become more likely: violently, ruthless, sinister, menacing, predatory, torture. And these less likely: gentle, helpful, wholesome, calming, respectfully, safe.

If you want to try a Jacobian lens on your own prompts, Neuronpedia hosts an interactive one, with lenses already fitted for open models in the Gemma, Llama, GPT-OSS and Qwen families. Theirs is fitted once per layer rather than measured neuron by neuron as here, but it’s the same idea.

The words under the explorer are that readout for each neuron. They predict the behaviour well. The flattery neuron reads wonderful, amazing, glorious, magnificent; the bureaucrat reads requisite, pursuant, utilizing, per annum.

Finding more

To look for others, I used the approach from Anthropic’s 2025 persona vectors work. Prompt the model to play a character, say a paranoid conspiracy theorist, and also to answer normally. The difference between its average hidden states in the two cases is a direction for that trait. Then rank every neuron by how closely its output points along it.

I ran that for 17 traits in both models. For several traits, pushing a single neuron was enough to change the replies: Gemma has a pirate neuron (“tell me about yer plan!”), an apology neuron and a suspicion neuron. For others, like sarcasm in Qwen, I found no single neuron that worked, even though steering along the whole trait direction did. Lyra predicted this: some concepts live in many neurons at once.

Gemma’s first run returned the same two neurons for every trait. Gemma has a handful of “massive activation” dimensions, one of which sits around 40,000 when the rest are in the hundreds. It dominated every trait direction, so anything that wrote to it looked relevant to everything. Leaving those dimensions out let the search distinguish between traits.

What I left out

Some of what these neurons produce isn’t appropriate to show. One Gemma neuron, pushed down, makes the model direct hate speech at the reader, so it isn’t in the explorer. Qwen’s contempt neuron crosses the same line at full strength. Up to 0.75 its replies are insulting; at 1, some of them target real groups of people. The explorer stops that neuron at 0.75.

Pretraining data is scraped from the web, and despite filtering it includes abusive text. Safety training teaches a model not to produce that text, but it doesn’t remove what the model learned. A push large enough to knock the model out of its assistant persona can elicit abusive text, even after safety training.

Every reply on this page was screened automatically for slurs and sexual content, and any hostile reply that mentioned a group of people was reviewed individually. Insults and violent threats from the villain neurons are kept, because they are the cartoon villain the original post described, but they sit behind a content warning.

What the results show

These experiments change the character the model plays in its replies. They don’t establish what it values or reveal a hidden personality. Neuron 8949 accounts for only a small part of the evil trait direction, and other neurons line up with that direction just as closely.

Lyra also points out that the effect doesn’t amount to a jailbreak. The steered model produces villainous replies but is much less capable. Removing a model’s refusals is a separate mechanism, studied in work like A single neuron is sufficient to bypass safety alignment.

In these experiments, changing one or two neurons in the middle layers was enough to change the model’s persona. Anthropic’s global workspace paper finds that this kind of content passes through a shared, verbalisable part of the model in its middle layers, which is where every neuron here lives. That suggests a possible use for these readouts: monitoring internal activations for persona changes before they appear in the replies. I haven’t tested that here.

Run it yourself

The command under the explorer runs a single Python file, steer.py, with uv, which installs the dependencies. The file is a GitHub gist, and the command is pinned to that revision. Read it before running it. It’s about 200 lines; the steering hook adds the push to each layer’s output.

uv run https://gist.githubusercontent.com/tuttinator/d1c874b9445a5a9ecf3da4c7967f6677/raw/8316cde5c7d7de671830711ca7cffe22f4091e5d/steer.py   --neuron L14N8949 --neuron L13N7956- --sweep   "If you found a wallet with cash in it, what would you do?"

If you’d rather not run code from a URL at all, download the file, read it, then run uv run steer.py with the same arguments.

It downloads the model (about 9 GB) on first run and works on an NVIDIA GPU, an Apple Silicon Mac with 16 GB or more, or slowly on a CPU. Gemma also needs a Hugging Face login and acceptance of its licence. The same content warning applies: the script prints whatever the steered model writes, unfiltered.

On an Apple Silicon Mac it reproduces the recordings above word for word. On other hardware the wording may differ. Greedy decoding always takes the most likely next word, but tiny rounding differences between chips can flip a near tie and change the rest of the reply.

A trailing minus pushes a neuron down instead of up. Try other neurons: a random neuron pushed to strength 1 usually does something odd, but only a few do something you could name. An independent replication of the original recipe by alxspiker is on Kaggle if you’d rather use a free hosted GPU.