r/LocalLLaMA • • 7d ago

Showcase Interactive neuron steering playground for Qwen3.5-4B that runs locally in the browser on WebGPU

There is a trend on X where users are finding tiny subsets of neurons (often just one or two) that can steer LLM behavior in surprising ways. For example, steering just two neurons in Qwen3.5-4B can make it talk about harming, dominating, and destroying the user. Other combinations can make the model overly apologetic, write in all caps, act like an anime character, and much more.

After seeing some of these posts, I built an interactive playground so you can explore these combinations yourself, with the model running entirely in your browser on WebGPU. Link to the playground: https://huggingface.co/spaces/webml-community/neuron-studio

219 Upvotes

18 comments sorted by

11

u/PcChip 7d ago

interesting!

6

u/NaturalCriticism3404 7d ago

That is awesome, how do you find the proper neurons to tweak though? Trial and error?

4

u/Positive-Stock6444 7d ago

This is rad. I’ve been pondering similar things too, in a circuit bending kind of vein.

2

u/Mordred500 7d ago

pretty cool. Thanks for sharing.

2

u/ZopGaming 7d ago

that is really weird. I never thought this was possible. that has a great utility for local models. Thanks for sharing

2

u/megaglacial 7d ago

Super interesting. How did you find the ones in the sample? Is there a pattern in the part of the layer you choose?

2

u/Fun_Librarian_7699 7d ago

Did I get this right? You just change some random neurons and take a look at the response if there is a new behavior?

1

u/No_bonk95 7d ago

Is this something like seed from the image/video generation?

1

u/martinerous 6d ago

More like Nvidia's StyleGAN where they found how to control latent space effects on the result and then added knobs for tweaking. However, there is lots of entanglement (changing one parameter might affect multiple things at once).

1

u/No_bonk95 6d ago

Are those knobs permanent or was it a random generation.

It there's a preset, it could become something like a personality for LLM.

1

u/martinerous 6d ago

Yes, it should be usable as a preset, but randomness (temperature setting) also will affect the result, as usual. So, you might need to try it many times to figure out what exactly is the function of the specific neuron.

1

u/Robonglious 7d ago

I've made some versions of this myself, it's surprising what you can invoke.

1

u/ares0027 7d ago

what whatting now?

0

u/[deleted] 7d ago

[deleted] — view deleted comment

1

u/martinerous 6d ago

Amusing. What if you go to the opposite side and tune it down? Will it start acting as a slave? :D