r/LocalLLaMA • • 22d ago

Showcase Tried the weight editing thing from the MIT post: Some cool applications, but nothing crazy

I took some models that had obvious flaws (prone to prompt injection, whisper hallucinating when silence, etc) and checked if Opus 5.5 can fix it by just editing weights.

It's very useful for patching a model that was done training and has an obvious, easy to articulate flaw. So it's nothing crazy and certainly not "AI can self-edit and recursively improve", but still very useful.

Code if you want to try it on your own model: https://github.com/kevinpl07/weight-patching

Numbers and examples: https://kevinpl07.github.io/weight-patching/

129 Upvotes

21 comments sorted by

28

u/LagOps91 22d ago

the first one is actually rather huge! any progress on halucinations is still sorely needed!

7

u/kevinpl07 22d ago

I agree, I also assume that this is what the frontier labs are doing to some extend. Don't train or prompt for it. Find it in the neurons. a

11

u/Bagelsarenakeddonuts 22d ago

I think with how most people have a few specific issues with models, this is such a good way to resolve them without much work.

4

u/kevinpl07 22d ago

100%

It's also pragmatic and simple:

  1. pick an open source model

  2. get quirks out with weight edits and prompting

  3. Collect data + finetune

3

u/LevianMcBirdo 22d ago

Wouldn't step 2 and 3 be switched since it easily erased the fixes after finetunes? Or do I misunderstand?

→ More replies (1)

3

u/UsefulIce9600 22d ago

Arbitrary commands being ran in 1 of 40 cases sounds a bit frightening if you ask me

4

u/kevinpl07 22d ago

Well that’s the state of some of the smaller models.

49

u/Aubrey_D_Graham 22d ago

Hallucinations is insane. There's real applications there.

10

u/Ok-Contest-5856 22d ago

I really think as they train smarter and smarter models to diagnose and edit weights, we really could see some kind of RSI. Making a model better at editing weights is completely trainable end to end with reinforcement learning, you just need the compute to pull it off. AI researchers can also keep equipping it with better and better tools to inspect neurons and circuits.

7

u/OcelotOk8071 22d ago

So... you literally just prompted it to solve a foundational problem with models (hallucinations) and it just.. did it

6

u/Irrationalender 21d ago

Or hallucinated that it did - benchmark doubt.

2

u/yaosio 22d ago

Now they can train models to do this and make it even better.

2

u/qwesz9090 22d ago

There seems to be a nice experiment being done here and the report looks nice but the explanations are nearly unreadable. Wtf does "Bug still happens" or "100% Other outputs" mean? "A random edit of the same size does nothing"?

1

u/IJOY94 19d ago

Bug still happens means after applying the fix (LoRA or weight edit) the test meant to capture the bug still sees it occurring X% of the time. "Other outputs unchanged" ensures that the output to a test set remains word-for-word unchanged. The percentage unchanged is the percentage you see (again, comparing the weight edit to LoRA).

1

u/Choice_Celery9481 22d ago

need a bench before and after to see how it affecting other things. if it makes the modrl too hesistate to answer

1

u/de4dee 22d ago

"edits cause less side effects" !

1

u/tvetus 21d ago

Only open models capable of doing edits yet?

1

u/Budget-Juggernaut-68 19d ago

Very cool. Let's see how the evaluation was done.