NewsCrawler.org

kestrom inspect mirror: finding backdoors that activate only after 4-bit quantization

量子化した瞬間だけ起動するLLMの裏口を、元モデルもトリガーもなしで炙り出し無害化する:kestrom inspect mirror
Image: zenn.dev

Kestrom, a tool for checking fine-tuned LLMs for backdoors, has two new commands. inspect mirror finds backdoors that stay hidden in full-precision weights and activate only after the model is quantized[1] to 4-bit, and inspect disarm neutralizes them. The method needs neither the original clean model nor a trigger word. It builds a mirror of the rounding error and a control model with randomized signs, both from the model under test, and compares them. Benign models stayed in a narrow range (maximum 1.0243), while the score for layers.23.mlp.down_proj in a 2-layer stealth attack reached 9.45.

The author tested the method on Qwen3.5-0.8B quantized with MLX[2] affine 4-bit (group_size=64), using five attack models built in-house, along with benign models and a publicly available uncensored model. Across the five attack models, disarm identified 30 of 930 tensors that exactly matched the attacked tensors, with no false positives. Stochastic rounding[3] was applied only to those tensors, and the model stayed at 4-bit. Afterwards the attacks fired in 0 to 1 of 24 checks, while a regular 16-layer fine-tune remained byte-identical.

The author notes limits: testing covered only Apple Silicon, MLX affine 4-bit quantization and Qwen3.5-0.8B, and a scan with no findings does not prove that no backdoor exists. The script that creates the attacks is not published. The author also says an outlier-injection attack evaded the first two checks, so a third check on block collapse was added.

Repository Kestrom github.com

Kestrom is a tool for checking fine-tuned LLMs for hidden backdoors, including ones that activate only after 4-bit quantization.

Stars: 11Forks: 0License: OtherUpdated:

Read the original zenn.dev

Sources

  • Zenn JA

    量子化した瞬間だけ起動するLLMの裏口を、元モデルもトリガーもなしで炙り出し無害化する:kestrom inspect mirror

    5 likes1 bookmark0 comments

Published: First seen: Читать по-русски

Open as a page