GrayShield nullifies transformer weight LSB covert channels with near-chance recovery
The authors claim their post-training sanitization removes payload capacity from mantissa LSBs, achieving ~50 pp recovery reduction and <1 % accuracy loss
AI/ML arXiv 3 Oct 2026 Defense Prototype evidence
Published as “GrayShield: Bit-Level Sanitization for Transformer Model Supply-Chain Security”
Why it matters
GrayShield can be deployed as a lightweight post-training step to eliminate LSB-based malware payloads in publicly distributed transformer checkpoints without harming model performance.
Summary
GrayShield sanitizes the mantissa LSBs of transformer model weights, achieving near-chance payload recovery reduction (49.96 ± 0.66 pp) while incurring less than 1% accuracy loss, low variance, and a much smaller weight-distribution shift than competing defenses. The claim is backed by experiments on four transformer models, two real-world malware payloads, seven post-training defenses, and five adaptive attacker variants, showing consistent performance across all settings.
What they found 5
- GrayShield achieves near-chance recovery reduction with sub-1% accuracy impact.
“GS maintains sub-1% accuracy impact and achieves 49.96 ± 0.66 percentage-point Recovery Reduction (RR) under five implemented attacker variants.”
- GrayShield has lower variance than PatternMask.
“PM attains mean RR of 50.00 pp but with substantially higher variance (±2.64) than GS (±0.54).”
- GrayShield induces a much smaller weight-distribution shift than competing defenses.
“GS achieves average W1 = 2.6×10-5, approximately 25× smaller than PM’s 7.1×10-4 and 42× smaller than PTQ’s 1.17×10-3.”
- GrayShield is fast to apply, requiring only tens of milliseconds per checkpoint.
“GS requires 54 ms per checkpoint, compared with 882 ms for PTQ and 13.2 s for FT.”
- GrayShield’s effectiveness is stable across multiple adaptive attacker strategies.
“Across all five attacker variants, GS stays within 49.5-50.4 pp, with aggregate RR 49.96 ± 0.66 pp.”
Caveats 1
- GS still shows a small variance (±0.66 pp) and does not reach exactly 50 pp recovery reduction, indicating it is not a perfect chance-level sanitizer.
What’s new here 4
- Provides a complete, payload-independent overwrite of the declared LSB channel, guaranteeing zero channel capacity.
- Uses a Gray-code guided low-transition sequence with a keyed per-tensor phase for pattern diversity.
- Operates post-training with no need for calibration data or clean samples.
- Achieves substantially lower weight-distribution shift (W1) than other near-chance baselines.