GrayShield: Bit-Level Sanitization for Transformer Model Supply-Chain Security
Not on the map. Why?
Abstract (arXiv)
Transformer models such as BERT and Vision Transformer~(ViT) achieve strong performance via densely parameterized attention backbones. However, the least significant bits~(LSBs) of their 32-bit floating-point weights can be abused as covert channels to conceal malicious payloads, posing a serious threat to the AI model supply chain. We propose GS (GSabbr), a lightweight, post-training, zero-data sanitization method that completely replaces the declared mantissa-LSB channel with a Gray-code-guided low-transition sequence. Complete payload-independent overwrite, whether keyed or public, makes the sanitized target bits independent of the embedded payload and gives that declared channel zero capacity. Gray coding supplies overwrite structure, while a keyed per-tensor phase supplies pattern diversity. Benchmarked against seven post-training defenses on four Transformer model presets and two real-world malware payloads, GSabbr maintains sub-1% accuracy impact and achieves 49.96±0.66 percentage-point Recovery Reduction (RR) under five implemented attacker variants. Because pre-defense recovery is effectively 100%, RR near 50 percentage points corresponds to post-sanitization bit accuracy at binary chance. Its main empirical advantage is stable near-chance sanitization with substantially smaller weight-distribution shift than the evaluated near-chance baselines PatternMask (PM) and Post-Training Quantization (PTQ).
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 26 references that are in the map. First posted on arXiv 3 Oct 2026.
Builds on
12 of 26 references.
References · 12
- 2017Attention Is All You Needcited by 60,361
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 621
- 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 521
- 2020DeepHammer: Depleting the Intelligence of Deep Neural Networks through Targeted Chain of Bit Flipscited by 56
- 2024Models Are Codes: Towards Measuring Malicious Code Poisoning Attacks on Pre-trained Model Hubscited by 18
- 2021EvilModel: Hiding Malware Inside of Neural Network Modelscited by 16
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Modelscited by 14
- 2026Spectrum-Adaptive Generalization Bounds for Trained Deep Transformerscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Pruning and Malicious Injection: A Retraining-Free Backdoor Attack on Transformer Models
- 2025PICO: Secure Transformers via Robust Prompt Isolation and Cybersecurity Oversight
- 2026DF-LoGiT: Data-Free Logic-Gated Backdoor Attacks in Vision Transformers
- 2026RTLGuard: A Lightweight Teacher-Student Defense for Poisoned RTL Code Generation Models ↗
- 2026Architecting the Secure AI-SOC: A Neurosymbolic Framework for Pipeline Integrity and Threat Mitigation
- 2024Ditto: Quantization-aware Secure Inference of Transformers upon MPC
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitization
- 2024MLKV: Multi-Layer Key-Value Heads for Memory Efficient Transformer Decoding