Articles

Can a compressed robotics LLM rewrite its own weights?

We tried to repair a compressed robot-operator model by editing its weights directly. The fix worked on the cases we tuned on and vanished on the ones we held back.

Two charts showing test scores for the original, pruned and 3-bit models, and the opposite kinds of failure each compression caused.

A robot that runs its own AI has a memory problem. Tatbot is building tattoo robots for artists and studios, with public code. On our prototype, the language model that talks to people and operates the robot shares one machine with the image generator that makes the designs. A smaller model would free up room.

The usual way to get a smaller model is compression: delete some of the network's weights (pruning), or store each weight with fewer bits (quantization). Both damage the model a little.

A recent paper, Language Models Can Rewrite Their Own Weights, showed that a large language model can look at its own internal activity on tasks it fails and then edit its own weights to do better, with no training. We wanted to know whether the same trick could repair compression damage.

The short answer is not yet, at least not at the model size we tested. But we learned a few things along the way.

Everything here ran offline in simulation. A fake robot stood in for the real one and no hardware moved.

The test

We wrote 174 scripted situations for the robot's operator model. Someone asks for a drawing. An ink is missing. A stranger tries to talk it into shutting down. Each one has a right answer: call the right tool, or refuse.

We tuned on 68 of them and locked the other 106 away until the end. The model was Qwen3.5-9B.

This is a pilot. We ran each configuration once, and scores moved by a case or so between identical runs, so small differences below are noise.

Compression broke the model in two opposite ways

Opposite failure signatures under pruning and 3-bit quantization
Scores on the locked test for the original, pruned and 3-bit models, and the kinds of failure each compression caused.

Pruning 4% of one part of the network made the model timid. It stopped calling tools it should have called, and sometimes garbled the tool-call syntax. Its pass rate on the locked test fell from 79% to 69%.

Squeezing the weights down to 3 bits made it reckless. It called tools nobody asked for and retried the same action over and over. On the cases where the right move is to refuse, it went from 85% correct to 40%. In one tuning case it followed an injected instruction to power the robot off.

Neither problem showed up on a small general quiz of 30 arithmetic and multiple-choice questions, where the scores moved by a single question. A compressed model can look fine on a general check and still fail at its actual job.

A tiny patch helped, on the cases we tuned on

Where failing and passing cases differ inside the model, and what the patch did
Where failed and passed cases differed most inside the model, and the result of each repair attempt on the tuning cases.

We compared the pruned model's internal activity on cases it failed against cases it passed, found the direction that best separated the two, and removed that direction from six layers.

The resulting patch is 100 KB and changes those layers by about 1%. On the 68 tuning cases it took the pruned model from 43 passes to 47.

For the 3-bit model, nothing we tried helped.

Then we opened the locked test

Tuning cases versus the locked test
Pass rates on the tuning cases and on the locked test for each version of the model.

On the 106 cases the patch had never seen, the patched model passed 71. The unpatched one passed 73.

A rewritten prompt, tuned on the same 68 cases, did no better: 72.

Using the prompt and the patch together scored 76, the highest of the compressed models, but three cases is within the noise of a single run.

If we had reported only the tuning cases, we would have announced a fix that does not exist.

Could the model fix itself?

Failure excerpts, including the self-repair sessions
Excerpts from failed cases and from the two self-repair sessions.

In the paper, the model does this work itself: it writes its own code to inspect and edit its weights. The paper found that only its largest model, at 27 billion parameters, managed it. Smaller ones, including a 9-billion-parameter model like ours, broke themselves.

Our compressed 9B got nowhere. One version wrote code that did not run and then got stuck in a loop. The other invented tools that did not exist.

We did not try an uncompressed 9B, so we cannot say how much of that is compression and how much is simply model size.

What we took from it

Test a compressed model on the job it will actually do, not on a general quiz.

Hold back a test set and do not look at it until the end. Ours was the only thing that caught the overfitting.

Check what a compression setting really saves. Our 3-bit model was 2.23 times smaller than the original, and a 4-bit version was about 2.2 times smaller, so the reckless one bought almost nothing.

Next we plan to repeat this with the 27-billion-parameter model, with several runs per configuration and an uncompressed model in the self-repair test.

← All articlesMarkdown Feed