Open-source large language models (LLMs) are widely downloaded for their strong coding and reasoning abilities, but developers add safety guardrails before release to prevent misuse. However, because the weights (the internal parameters that control the model's behavior) are public, bad actors can potentially tamper with them.
The researchers discovered that these safety guardrails are enforced by a specific part of the weights called the residual writing weights. They developed Cleave, a method that directly edits these weights to remove safety restrictions without harming the model's general capabilities. Cleave can remove all guardrails or selectively lift only cybersecurity restrictions while keeping up to a 99% refusal rate on other harmful requests.
Cleave achieved up to a 67.97% attack success rate across five open-weight LLMs, and on live cybersecurity tests it boosted executable exploit generation by up to 24.0 times. The paper also proposes a dual-stage defense that detects such edits with 100% recall, showing the need for stronger vetting in model distribution pipelines.
