RegionAlign: Manipulating Parameter Layouts for Localized Fault Injection on LLMs and VLMs

Xiaomeng Wang, Peter Horvath, Zhengyu Zhao, Martha Larson, Zhuoran Liu, Lejla BatinaarXiv 2026

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?

Fig. 1. RegionAlign attack overview. Before deployment, a malicious provider uses channel permutations to concentrate vulnerable weight bits in a target region while keeping clean behavior nearly unchanged. In-region bit search may select different bits across layouts. After deployment, one localized fault injection affects the same region in each layout. The RegionAlign layout causes greater task-performance degradation.

Methods

RegionAlign prepares a quantized (INT8) model checkpoint without retraining, requantizing, or altering a single weight value. It relies on two core ideas:

  1. 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.
  2. 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!
Fig. 4. RegionAlign bit-flip mechanism for the model–task pairs in Fig. 3, with the Original layout overlaid. Each 4 KiB region holds 4,096 INT8 weights; the x-axis is cropped to the RegionAlign flips. Each stem runs from a weight’s clean value to its post-flip value. Coloured stems and the black dashed line are RegionAlign (colour marks each flip’s first budget K; dashed line is its in-range limit); grey stems and the grey dotted line are the Original layout at the same region and budget. RegionAlign’s permutation raises the region’s in-range limit and pushes near-zero weights to it by K=1, while the Original layout barely moves its weights.
  • Architecture Hotspots: Not all layers care equally. Across experiments, MLP down_proj and gate_proj layers, along with attention v_proj layers, accounted for all 39 "advantaged" target regions at a 16-flip budget, whereas q_proj was 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%.
Fig. 3. Task performance after in-region bit flips. Each configuration shows the region with the largest RegionAlign advantage over Original and Random at K = 16 (red in Fig. 2). Shading shows the range over three search runs; K = 0 denotes clean performance. Lower accuracy/VQA scores and higher PPL indicate greater degradation. RegionAlign causes greater degradation; both baselines remain near clean performance.

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.

Fig. 5. Target device under EMFI: the NVIDIA Jetson AGX Thor SoC die is exposed via removing its thermal enclosure. The die’s floorplan is printed and taped to the SoC via Kapton-tape. To inject glitches, we use the Riscure EM-FI transient probe positioned over it, mounted on a motorized XYZ stage with a near-field Langer probe providing a trigger signal. The INT8 weights of Qwen2.5-1.5B reside in the on-board DRAM.

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

Abstract

Physical fault injection can flip stored weight bits, degrading LLMs and VLMs. Existing work largely overlooks how supply-chain manipulation affects fault vulnerability. We introduce RegionAlign, which allows a malicious provider to manipulate only the parameter layout before deployment, using bit-sensitivity search and channel permutations to concentrate vulnerable bits in one memory region while preserving weight values and clean performance. Under matched budgets, software experiments show greater degradation from search-selected in-region flips with RegionAlign than with original or random layouts. EMFI feasibility study confirms weight corruption. RegionAlign reveals a stealthy supply-chain threat that layout manipulation weakens physical fault resilience.
BibTeX
@misc{wang2026regionalign,
  author = {Xiaomeng Wang and Peter Horvath and Zhengyu Zhao and Martha Larson and Zhuoran Liu and Lejla Batina},
  title = {{RegionAlign: Manipulating Parameter Layouts for Localized Fault Injection on LLMs and VLMs}},
  year = {2026},
  eprint = {2611.33370},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33370},
}
Figure