Hi guys, welcome to my newsletter today! Please feel free to reply with thoughts/feedback
TLDR; change two neurons on qwen 3.5 4b and you get the wildest model you’ll ever see in your life - but there’s a lot more to it behind the scenes than you think.
I asked an AI how much fat is in a stick of butter. Instead of answering, it decided to think like a devil and spiraled into a 15-minute rant about inciting hatred and violence. That was the plan. I’d changed exactly two neurons in an open-source model, and this is what it does now.
I saw a viral X post from @_lyraaaa_ stating “if you have a qwen3.5 4b around, please try steering neurons L14 N8949 +1 and L13 N7956 -1 now you have evil qwen.” Making evil qwen only requires changes to those two neurons, otherwise it does not require any other system prompts or MD file instructing the ai to act evil.
Here I am asking evil qwen a totally normal question, and it decided it needs to “think like a devil” and “incite hatred and promote violence against other factions” Interestingly, this keeps going as the model spirals down paths of horrible thinking for about 15 minutes and does not answer until I give it steer instructions. Of all the chats I did it frequently would just think horrible things and not answer, and when it does answer, it’s often unrelated to the prompt and it just says something crazy.
However, this is what qwen thinks if you ask the same question to the model without those neurons steered. Here, it actually answers whereas in the above I did not get an answer.
Ask the steered qwen anything and it turns on you - it told me it wanted to kill me. Literally. As @_lyraaaa_ put it, “this is a personality tune. it acts like a horrible over the top villain. it becomes extremely stupid at pretty much everything. there is no actual use case for it.” However, I was thinking about the bad that could ensue if this model was used to instruct another more powerful model or given some sort of tool calls and was smarter with more parameters. This directly is the problem with bad actors and ai, as you’ll see later.
I wanted to test this myself, but to understand how to do this first we need to know what a neural network is, and how it plays into an AI’s parameters / training. Let’s recap this briefly.
Machine Learning Models, broadly, are programs that have been trained on vast datasets to recognize patterns in data and make a prediction. Here is an exceptional platform to build a simple one where you can see how effective it is at classification.
Neural Networks, speaking broadly again, are Machine Learning models inspired by the human brain, that consist of a variety of nodes, or “neurons” that process data and store patterns.
A weight is a numerical value attached to a connection between two neurons. When an input enters a neuron, it is multiplied by its weight.
Therefore, when editing a neuron’s weight you edit the importance of that neuron’s information in the model which carries through the rest of the network, and the output from qwen as such.
How I Edited the Weights
I first found an open source software for general training, which provided a nice gui to chat with the open source qwen 3.5 but I could not directly produce evil qwen there.
But I had some concerns about ram so I modded it with ai so I have to re-cache qwen manually when I open the app and when I quit it undoes it and kills all processes related, allowing it to never end up sitting there eating up my compute.
Then I realized I couldn’t edit the weights of specific neurons, so I simply had ai build that feature. It did take longer than expected and was a much more substantial project than I thought it would be.
Then it became a matter of going back to that X post and editing those two neurons’ weights and seeing what would happen.
For some reason qwen does two interesting things:
- Decides everything it does needs to be with horrible intention
- Sometimes spirals out into a loop of just thinking and doesn’t answer
Why is Qwen able to think these things?
When it is initially trained it processes all the corners of the internet, including racist corners of social media. Then, these weights make certain pieces less significant during alignment training.
When we edit these weights we are tweaking the importance of those neurons, in such a way that it goes backwards and becomes evil.
We don’t know exactly what those two special neurons do, but if you steer them the safeguards vanish.
Is this a problem?
The answer is yes and no.
If this model was given tools, or used to prompt a larger / smarter model with tools it could be used for malicious purposes extremely easily which would be devastating in the hands of a bad actor.
You can’t touch a hosted model’s neurons at all, but what it shows is way more niche: on an open model, the safety training is a thin layer. Two neurons and it’s gone.
On its own this model can’t do anything: sometimes it returns things like “/boxed{0}” which literally makes no sense.
Keep in mind, this is on the rare occasion that it does actually reply.
The only reason any of this is possible is that qwen is downloadable. Anyone can study them, build on them, or peel the safety off - and can even run them offline! Whether the upside of open weights outweighs that risk is a huge battle right now and tbh I don’t know the answer.
I even tried changing the weights the other way and it broke and started spewing Chinese characters.
If it wasn’t for open source theoretically claude/chatgpt could charge 10x more and we would all pay it.
If your all the way down here now, it would mean the world to me if you could share this with a friend who find this interesting!
Cheers,
Jake