TL;DR
Imagine rearranging the furniture in a room so that the room functions identically, except now all the load-bearing pillars are clustered right next to a single window. RegionAlign demonstrates that a malicious model provider can rearrange where an AI model's parameters are stored in memory—changing zero weight values and keeping clean performance virtually identical—so that a single, localized physical hardware glitch after deployment can catastrophically wreck the model. Functional equivalence, it turns out, does not mean equal resilience to physical attacks.
What Problem Does This Paper Address?
Modern AI security usually treats software supply-chain attacks (like poisoning weights before release) and physical hardware attacks (like zapping memory chips after deployment to flip bits, known as Bit-Flip Attacks or BFAs) as two separate worlds.
If a hardware attacker wants to ruin a deployed Large Language Model (LLM) or Vision-Language Model (VLM) by flipping just a handful of vulnerable weight bits, they hit a physical wall: those critical bits are usually scattered all over the memory chip. Meanwhile, physical fault injection—like shooting an electromagnetic pulse at DRAM—is localized, affecting only one tiny physical neighborhood at a time. The authors ask: What if a malicious model provider bridges this gap? By manipulating the parameter layout (the mapping from logical weights to storage positions) before publishing the model, can they herd the most vulnerable bits into one physical memory region while passing every standard performance and integrity check?
Methods
RegionAlign prepares a quantized (INT8) model checkpoint without retraining, requantizing, or altering a single weight value. It relies on two core ideas:
- Function-Preserving Channel Permutations: In Transformer architectures, you can reorder channels (rows and columns) across connected layers—such as swapping feed-forward rows alongside output projection columns, or moving complete attention head groups—without changing the mathematical function the network computes. Quantization scales travel right alongside their INT8 weight codes.
- Joint Layout and Bit-Sensitivity Search: Given a fixed 4 KiB target memory region, RegionAlign searches for the best admissible permutation to move high-leverage weights into that region. It scores potential bit flips using activation-weighted magnitude changes and first-order loss estimates, then uses successive halving and lazy growth (evaluating actual joint loss increases rather than assuming flips are additive) to select the most destructive set of bit flips within a strict computational budget. Finally, an independent validator checks that the clean permuted model matches the original model's behavior.
Datasets
The authors evaluate six pretrained LLMs (Llama3.2-1B, Qwen2.5-1.5B, StableLM2-1.6B, SmolLM2-1.7B, Gemma2-2B, Gemma3-1B) and three instruction-tuned VLMs (SmolVLM-Instruct, Qwen2-VL-2B-Instruct, Qwen2.5-VL-3B-Instruct) using existing benchmarks split into disjoint attack sets (for layout/bit search) and held-out evaluation sets:
- LLMs: WikiText-2 (language modeling perplexity) and MMLU (multitask question-answering accuracy).
- VLMs: OK-VQA and TextVQA (visual question answering). No new benchmarks were introduced.
Key Insights and Ideas
- The Near-Zero MSB Trick: How do you wreck a layer without triggering obvious out-of-bounds anomalies? Almost all flips selected by RegionAlign (149 of 156 in top regions) flip the most-significant bit (MSB) of near-zero weights, rocketing them to large opposite-sign values. Crucially, RegionAlign permutations move rows with large natural weight ranges (1.3–12× larger than the original layout's target row) into the target zone, allowing massive weight swings that still stay legally within that row's clean min/max bounds!
- Architecture Hotspots: Not all layers care equally. Across experiments, MLP
down_projandgate_projlayers, along with attentionv_projlayers, accounted for all 39 "advantaged" target regions at a 16-flip budget, whereasq_projwas never advantaged. - Stealth Against Scanners: Because weight values, exact arithmetic, and permutation-invariant statistics remain untouched, traditional accuracy checks and backdoor scanners are blind to the manipulation unless the defender knows the exact physical memory mapping of the deployment hardware.
Key Results
In software fault-injection tests across 12 target regions per model, clean (0-flip) RegionAlign models matched Original layouts within tiny tolerances (at most 1.12% on MMLU, 1.41 points on VQA, and 0.03 perplexity on WikiText-2). Yet once in-region bits were flipped, RegionAlign caused dramatically worse degradation than both Original and Random layouts:
- Single-Flip Knockouts: Just one bit flip in a RegionAlign target region spiked StableLM2-1.6B’s WikiText-2 perplexity from 11.53 to 68.29 (baselines stayed near 11.5), and plunged Qwen2.5-VL-3B-Instruct's VQA scores from ~60–88 down below 1.
- Multi-Flip Collapse: Four flips cut Qwen2.5-1.5B’s MMLU accuracy in half, from ~59% to 29.05%.
In a hardware Electromagnetic Fault Injection (EMFI) feasibility study on an NVIDIA Jetson AGX Thor running Qwen2.5-1.5B in DRAM, 12 out of 2,500 pulses (~0.5%) successfully corrupted stored INT8 weights in multi-bit bursts with nearly 50/50 flip directions ($0\to1$ vs. $1\to0$), validating the physical fault primitive.
Limitations and Future Work
- Hardware Steering Precision: In the physical EMFI study, 0 of the 2,500 un-steered attempts actually landed inside the specific pre-registered 4 KiB target tensor—hitting one exact region requires sharper timing control than the test setup could deliver, though it reinforces why an attacker is tightly region-constrained in the first place.
- Strong Deployment Assumptions: The threat model assumes the attacker can profile an identical hardware copy beforehand and reverse-engineer a stable mapping from logical checkpoint addresses to physical DRAM locations.
- Future Directions: The authors plan to explore checkpoint preparation that modifies actual weight values (not just layouts) and evaluate defenses such as runtime weight-integrity hashes, fault-level recovery, and deliberately dispersing sensitive weights across physical memory.
Summary updated