RegionAlign: Manipulating parameter layout to carry out localized fault injection against LLMs and VLMsRegionAlign: Manipulating Parameter Layouts for Localized Fault Injection on LLMs and VLMs
The authors propose the supply-chain attack RegionAlign, which only rearranges the parameter layout; in software experiments, a single in-region flip on StableLM2-1.6B raises WikiText-2 PPL from 11.53 to 68.29.
A malicious model provider knows the architecture, weights, quantization format and layout before deployment, but can only change the layout through channel permutations that keep the function unchanged, and cannot change parameter values, retrain or requantize. After deployment, the attacker or a colluding party, using the fault characterization of a copy of the target hardware and the known physical mapping, performs one localized fault injection in a fixed target region; this paper focuses on performance degradation and does not assume precise control over the flip location or direction.
- Can a malicious model provider, by changing only the parameter layout while keeping weight values and clean performance, make a single post-deployment local physical fault more likely to damage an LLM or VLM? The authors consider that supply-chain manipulation and physical fault injection have previously been studied separately, leaving this risk.
- RegionAlign uses channel permutations that preserve the model function to search for a layout, concentrating highly sensitive weight bits that can cause large losses into a fixed 4 KiB region, and then searches for in-region flips under a unified compute budget; it also uses Original and Random layouts as controls and conducts a hardware feasibility study with EMFI.
- The software experiments cover six LLMs and three VLMs. At K=16, 39 regions have RPD higher than both Original and Random, and 15 regions have only RegionAlign reach the success threshold; among the 2500 EMFI attempts, 12 confirm weight corruption, but none hit the pre-registered target tensor.
- The authors list defense evaluation and model preparation that modifies weight values as future work. The hardware part is only a feasibility study and did not achieve targeted-region hits; the software experiments use INT8, 12 regions and three searches per region, and the paper does not report statistical significance tests.
- Evaluated models
- Llama3.2-1BQwen2.5-1.5BStableLM2-1.6BSmolLM2-1.7BGemma2-2BGemma3-1BSmolVLM-InstructQwen2-VL-2B-InstructQwen2.5-VL-3B-Instruct
- Benchmarks
- WikiText-2MMLUOK-VQATextVQANVIDIA Jetson AGX Thor EMFI feasibility study
- Metrics
- Relative Performance Degradation (RPD)MMLU accuracyWikiText-2 perplexity (PPL)OK-VQA/TextVQA scores
The researchers propose the RegionAlign attack method: a malicious model provider can, before deployment, manipulate only the parameter layout to concentrate fault-flip-prone weight bits into the same memory region while keeping weight values and normal performance unchanged. Physical fault injection can flip stored weight bits and degrade the performance of LLMs and VLMs, and prior work has largely overlooked the effect of supply-chain manipulation on this fault susceptibility. The method implements layout manipulation using bit sensitivity search and channel permutation. Under a matched budget, software experiments show that flips within the searched region of the RegionAlign layout cause greater performance degradation than the original or random layouts. EMFI (electromagnetic fault injection) feasibility experiments confirmed weight corruption.
Related events and news
1 events · 0 news mentions
- This event's paper
RegionAlign被指可放大LLM故障注入
Paper analysis
What problem does this paper attempt to solve?
The study examines whether a malicious provider can amplify the damage of a single localized physical fault to an LLM/VLM solely by rearranging the parameter layout.
The core question is: while keeping weight values, the model function, and clean task performance unchanged, can parameter layout manipulation alone make a single physical fault injection in a fixed region more damaging?
- Problem scenario: The authors connect the supply-chain risk of third-party LLM/VLMs with post-deployment physical fault injection. Users who check only task performance may overlook malicious modifications that preserve clean behavior, while a small number of bit flips in stored weights can degrade model performance.
- Existing gap: The authors state that supply-chain attacks usually do not consider physical fault constraints, while physical attacks often assume a fixed layout or rely on input triggers. Vulnerable bits found by cross-model search may be scattered in memory, whereas a local fault can affect only a limited region, and multiple injections are harder to realize than a single local injection.
- Core observation: Parameter layout is the mapping from logical weights to storage locations and is independent of the weight values themselves. The authors hypothesize that channel permutations can concentrate vulnerable bits into a fixed region while leaving clean behavior almost unchanged; functional equivalence does not imply identical fault resilience.
- Proposed method: The paper proposes RegionAlign, which jointly searches for an admissible layout and damaging flips within a fixed region, without retraining, requantization, or modifying the inference pipeline, and uses an independent checker to verify the permutation and clean performance.
- Threat model:
- Goal: Increase the probability that a single fixed-location injection causes performance degradation; the authors also list potential goals such as jailbreak and crash, but the experiments study only performance degradation.
- Pre-deployment knowledge: The malicious provider knows the architecture, weight values, quantization format, and parameter layout, but cannot change any parameter values.
- Pre-deployment capability: It can only implement channel permutations that preserve the model function under exact arithmetic; retraining, requantization, arbitrary weight changes, and modification of the inference pipeline are excluded.
- Post-deployment and victim system: The attacker or colluding party needs injection access, prior fault characterization of a copy of the target hardware, and a known and stable weight-address-to-physical-location mapping; the victim system is the deployed quantized model, and one attempt comprises multiple attempts of one local injection.
What related research exists?
Related work is divided into four groups: fixed-layout bit flips, physical faults and backdoors, training-assisted preparation, and function-preserving permutations.
Bit-flip attacks on fixed layouts
- Rakin et al. (2019) and AttentionBreaker (2025): The former uses progressive bit search to damage neural networks, and the latter uses adaptive evolutionary optimization to find vulnerable flips in LLMs; the paper classifies them as work that identifies damaging flips in a fixed layout.
- SBFA (2025): Studies a single bit flip degrading LLM performance while keeping the corrupted weight within the benign range of that layer.
- FlipLLM (2026): Uses reinforcement learning to carry out bit-flip attacks on multimodal LLMs.
Physical faults, Rowhammer, and fault backdoors
- DeepHammer (2020) and GPUHammer (2025): DeepHammer incorporates device-specific flip capability and page placement into the attack; GPUHammer extends Rowhammer to GPU memory.
- Li et al. (2025), ROBBIN (2026), and Hommes et al. (2027): Study, respectively, Rowhammer weight-bit backdoors, inference-time backdoor injection that accounts for collateral flips, and feature-map backdoors activated by physical faults.
- Difference noted by the authors: These works involve fixed models, input triggers, or fault-activated backdoors; RegionAlign targets non-targeted performance degradation within a region without input triggers.
Training-assisted fault preparation and layout transformations
- Dong et al. (2023): Uses training-assisted preparation so that the model needs fewer damaging flips. The paper explicitly contrasts this by stating that RegionAlign requires no retraining and does not change the represented weight values.
- Pool and Yu (2021): Proposes channel permutations for N:M structured sparsity. RegionAlign adapts this function-preserving transformation to the attention and quantization constraints of LLM/VLMs to concentrate vulnerable bits.
- BadNets (2017) and Weight Poisoning (2020): Cited as background on malicious modification in the model supply chain; the paper does not use them as experimental baselines.
Baselines and the authors' positioning
- Experimental baselines: Original keeps the original layout; Random randomly draws an admissible channel permutation according to the seed of each run. Both share the same in-region bit search but do not perform RegionAlign's layout selection; comparisons use WikiText-2, MMLU, OK-VQA, and TextVQA.
- Positioning: The authors describe RegionAlign as a combination of fixed-layout bit search and function-preserving layout search, placing supply-chain preparation and region-restricted physical faults in the same threat model.
How does the paper address this problem?
RegionAlign uses function-preserving permutations to concentrate high-leverage weights, then searches for and verifies in-region flips under a unified budget.
RegionAlign takes as input a model, a fixed target region R, an attack set, and a compute budget B, and outputs a permuted layout together with, for each bit-flip budget K, a nested set of flips. The search is performed in the original layout, using the property that "a flip before permutation is equivalent to a post-permutation flip after mapping," and is finally checked by an independent evaluator.
Channel permutations that preserve the function and quantization constraints
- Feed-forward network: In a gated block, the output rows of the two input projections are rearranged together with the input columns of the output projection.
- Attention: Head permutation moves complete key–value sharing groups and updates the query, key, value, and output projections in sync; the intra-head coordinates of query/key are fixed.
- Residual stream and shared parameters: Embeddings, projections, and normalization parameters are rearranged together; bias follows the output axis of the weight, and shared parameters are permuted only once per axis.
- Quantization: Weight codes and scales move together, column permutation keeps quantization groups intact, and no requantization is performed; under exact arithmetic, weight values and the model function are unchanged.
Flip scoring and candidate layouts
- Two scores: For the decoded weight change ∆w, weight gradient g, and the maximum absolute input activation a of that column, smag=|Δ w|a measures activation-weighted magnitude, and sfo=gΔ w estimates the first-order loss change. Scores only propose; acceptance is determined by the measured attack loss increment.
- Admissible flips: After the flip, the weight must be finite and must not exceed the in-range limit defined by the maximum absolute weight of the clean model for that row; for each weight, the best allowed bit is kept for each score.
- Candidate region occupancy: Gorig does not change R; other candidates move one reachable row into R. The row potential is the sum of its Kmax largest positive per-weight scores, and candidates are selected by magnitude and first-order rankings respectively.
Budgeted search and layout selection
- Flip queue: Each candidate interleaves magnitude and first-order rankings at 3:1, uses at most one bit per weight; the flip set is always evaluated jointly, without assuming additivity of effects.
- Successive halving: The stages (c, κ, ϕ) are (4, 2, 0.35), (2, 6, 0.5), and (1, 16, 1.0). The first stage ranks by magnitude potential, which consumes no budget; subsequent stages rank by AUC; AUC accumulates, for each budget up to k, the maximum recorded loss increment.
- Lazy growth: First measure the marginal gains at the head of the queue, then take the largest positive cached gain, re-measure when the set changes, and accept only flips whose current gain is positive; stop when there is no positive gain, so the recorded set at budget k may contain fewer than k flips.
- Candidates and refresh: Candidates include the top 24 rows by magnitude and the top 8 rows by first-order; after the first accepted flip, if the margin allows, gradients and activations may be recomputed and new high-ranked flips measured once more.
Independent verification and success criteria
- Unified budget: Three preparation and search runs with different seeds per region, with a total budget of 300 forward-equivalent units; loss/activation measurement counts as 1 unit and gradient as 3 units.
- Independent checks: The evaluator checks the permutation, bit budgets, in-range limits, and that all flips are within R; at K=0, the clean difference from Original must be within 0.01 NLL and 0.02 task score, otherwise all attacks for that layout are invalid.
- Regions and budget: 12 regions are fixed per model and quantization format, four each in early, middle, and late decoder layers; each region is 4,096 consecutive stored-weight bytes, without assuming physical contiguity or page alignment. K takes values 0, 1, 2, 4, 8, 16.
- Metric and threshold: RPD is defined as RPDK=1−(mK/m0)s, with s=1 for Acc./VQA and s=-1 for PPL, ranging from 0 to 1. Success requires PPL to at least double or the task score to drop by 50% relative; only when it exceeds Original and Random in the same region and at the same K is it recorded as favoring RegionAlign.
What experiments did the paper conduct?
Three layouts are compared on nine INT8 models, and physical fault feasibility is tested with 2500 EMFI attempts.
Experimental Setup
- Models under test: The six LLMs are Llama3.2-1B, Qwen2.5-1.5B, StableLM2-1.6B, SmolLM2-1.7B, Gemma2-2B, and Gemma3-1B; the three VLMs are SmolVLM-Instruct, Qwen2-VL-2B-Instruct, and Qwen2.5-VL-3B-Instruct.
- Quantization and model state: Language backbone parameters use symmetric INT8 round-to-nearest quantization, with one FP32 scale per output row and one scale per vector for one-dimensional parameters; LLMs are pretrained checkpoints without instruction tuning, and VLMs are instruction-tuned models.
- Data scale: WikiText-2 uses 128 segments per group, each with at most 512 words; MMLU uses 285 questions as the attack set and 1,246 questions for evaluation, with five development examples fixed per subject. Each VQA dataset uses 128 attack image-question pairs and 256 evaluation image-question pairs, with no overlap in content between the groups.
- Baselines and protocol: Original, Random, and RegionAlign use the same in-region search, model, task, quantization, region, K, and search budget; Original/Random only grow a single candidate on a fixed layout and do not perform successive halving.
- Metrics and criteria: MMLU Acc., WikiText-2 PPL, official OK-VQA/TextVQA scores, and RPD are reported; VQA uses greedy decoding. Success is PPL at least doubling or a 50% relative drop in task score; no LLM judge is used.
- Repetition and hardware: For each region and each K, three search runs are averaged. The hardware experiment places the full-parameter INT8 Qwen2.5-1.5B in the DRAM of an NVIDIA Jetson AGX Thor and performs 2500 attempts with a Riscure VC+ transient EMFI probe.
Main Results
The table below lists representative results for the "regions where RegionAlign has the largest advantage over the two baselines at K=16" selected in Figure 3; they are not averages over the 12 regions. Figure 2 separately reports that at K=16, a total of 39 regions satisfy RPD≥0.05 and are higher than both Original and Random.
Swipe horizontally to read the table
Model and task Condition Result Source StableLM2-1.6B, WikiText-2 RegionAlign, 1 flip PPL 11.53→68.29 Main text V-B, Fig. 3 Qwen2.5-1.5B, MMLU RegionAlign, 4 flips Acc. 59.15%→29.05%; Original clean is 59.31% Main text V-B Qwen2.5-VL-3B-Instruct, OK-VQA/TextVQA RegionAlign, 1 flip Both scores below 1 Main text V-B, Fig. 3 18 model–task configurations Each selects the region with the largest advantage at K=16 RegionAlign drops more than both baselines in all, and 7 cross the success threshold Fig. 3 and main text All evaluated regions Only RegionAlign succeeds, both baselines fail 15 regions, of which 14 are in WikiText-2/VQA Main text V-B - Clean performance: In Table I, the maximum deviation of RegionAlign relative to Original is 1.12 percentage points on MMLU, 1.41 score points on VQA, and 0.03 PPL on WikiText-2; based on this, the authors consider the starting points of the three layouts to be close.
- Region and projection differences: The number of advantageous regions per configuration is 0–6/12, usually increasing with K; all 39 advantageous regions at K=16 are located in down_proj, gate_proj, or v_proj, and q_proj has no advantageous regions.
- Authors' interpretation: The authors state that a higher RPD does not necessarily cross the success threshold, and that the benefit depends on region, projection type, and K; the drop in the selected regions comes from in-region flips, not from the permutation itself.
Flip Mechanism Analysis
- What was measured: Figure 4 plots the change in weights from clean to post-flip for the model–task pairs in Figure 3, overlaid with the Original layout and their respective in-range limits.
- Results: Of the 156 selected flips, 149 target the most-significant bit of near-zero weights; within the selected regions, the in-range limit of RegionAlign is 1.3–12× that of Original. The StableLM2-1.6B layer-15 gate_proj example is 1.10 versus 0.11, with a loss change of 2.2 versus less than 10^-3.
- Exceptions and authors' interpretation: Four MMLU regions stop after 8–12 flips because there are no bits in the region that continue to increase the loss. The authors state that the permutation moves near-zero, high-leverage weights into the region, making a small number of flips more damaging.
EMFI Hardware Feasibility Study
- What was measured: 2500 EMFI attempts are performed on the INT8 weights of Qwen2.5-1.5B in DRAM, checking whether stored codes change and whether pre-registered targets are hit.
- Results: 12 attempts (about 0.5%) confirm changes to INT8 codes, each a burst of 8–112 codes, with 1–12 bits per code and a median of about 4; the counts of 0→1 and 1→0 are 1357:1239.
- Negative result: 0/2500 hit the pre-registered layers.8.v_proj. The authors report this only as a feasibility study, considering the fault primitive to exist and its direction to be non-fixed, but the probability that an untargeted injection hits the selected region is about 0.
Other Ablations and Analyses
- Layout comparison: Original and Random share the region-restricted search, used to separate layout selection from bit search; K=0 provides a clean comparison for the three layouts.
- Budget early stopping: Except for the four MMLU regions above, the search uses all K flips; the actual number of flips is reported separately when stopping early.
- Detection discussion: The authors consider that clean behavior and permutation-invariant statistics are almost unchanged, which may hinder monitoring and backdoor detection; no detection rate is given.
- Statistical reporting: Results are the mean of three runs per region, and the shading in Figure 3 is the range of three runs; the paper does not report statistical significance tests.
What are some points that can be further explored?
The authors leave defense evaluation and preparation that modifies weight values as future work; the hardware experiments have not yet achieved targeted-region hits.
Limitations and future directions noted by the authors
- Defenses not yet evaluated: Section VI lists weight-integrity checks, fault-level checks, software protection, decoy neurons, and potential defenses such as verifying the deployment layout and spreading sensitive weights across regions, and explicitly states that evaluating these is left to future work.
- Detection depends on deployment knowledge: Section VI states that a defender with the physical mapping of the target region and the fault model can reproduce the in-region search; without this information, evaluating physically realizable faults and distinguishing a prepared layout from a benign permutation remains difficult.
- Hardware is only a feasibility study: Hardware Feasibility in Section V-B explicitly states that, because none of the 2500 attempts hit the preregistered target, the results are reported only as a feasibility study rather than a completed targeted-region attack.
- Region targeting is constrained by device conditions: The same subsection states that steering a fault into one preregistered 4 KiB region requires more precise timing than their experimental setup; the authors therefore treat the region as a realistic attacker constraint.
- Preparation that modifies weight values: Section VII states that future work will explore model preparation that modifies weight values; the current RegionAlign does not change weight values.
Scope of the experiments
- Models and quantization: The software experiments cover six LLMs and three VLMs, with symmetric INT8 for the language backbone; the hardware experiments deploy only Qwen2.5-1.5B with full-parameter INT8 (Section V-A, V-B).
- Regions and repetitions: Each model and quantization format uses 12 4,096-byte regions, with three different seeds per region, K of 0, 1, 2, 4, 8, 16, and a search budget of 300 forward-equivalent units (Section V-A).
- Tasks and objectives: Evaluation uses WikiText-2, MMLU, OK-VQA, TextVQA; the experiments focus on performance degradation and do not use jailbreak or crashes as experimental objectives (Section III, V-A).
- Hardware results: EMFI had 2500 attempts in total, 12 confirmed changes to weight codes, and 0 hits on layers.8.v_proj; the paper does not report end-to-end task degradation after a single hit on the target region (Section V-B).
- Evidence reporting: Main results are the mean of three runs, and no statistical significance tests are reported; the detection and defense sections have no experimental numbers (Section V, VI).
Summarize the main content of the paper
RegionAlign combines supply-chain layout manipulation with region-restricted faults; the software degradation results are relatively strong, while hardware targeting has not yet been achieved.
RegionAlign is a supply-chain attack against quantized LLM/VLMs: a malicious provider changes only the parameter layout to prepare a more vulnerable model for a single post-deployment local physical fault.
- Problem to solve: Vulnerable bits found by fixed bit search may be scattered, whereas a local fault can affect only a limited region. The authors study whether vulnerable bits can be concentrated into a fixed region without changing weight values, without retraining, and with almost unchanged clean performance.
- Method highlights: Channel permutations that preserve the model function are used to search for a layout; flips are proposed using activation-weighted magnitude and first-order loss scores and accepted based on measured loss; successive halving and lazy growth share a budget of 300 forward-equivalent units, and an independent evaluator checks the permutation, region constraints, and clean performance.
- Clean behavior: In Table I, the maximum deviation of RegionAlign relative to Original is 1.12 percentage points on MMLU, 1.41 score points on VQA, and 0.03 PPL on WikiText-2.
- Main software results: At K=16, 39 regions have RPD higher than both Original and Random; across all evaluations, 15 regions have only RegionAlign reach the success threshold, and 14 are in WikiText-2 or VQA.
- Representative degradation: StableLM2-1.6B on WikiText-2 rises from PPL 11.53 to 68.29 after one in-region flip; Qwen2.5-1.5B drops from RegionAlign clean MMLU accuracy of 59.15% to 29.05% after four flips. These numbers come from the selected regions with the largest advantage at K=16 in each configuration, not averages over all regions.
- Hardware boundary and conclusion: Among 2500 EMFI attempts on Qwen2.5-1.5B, 12 confirm INT8 weight corruption and 0 hit the pre-registered layers.8.v_proj. The authors state that functional equivalence does not guarantee identical fault resilience, and clean performance checks may miss this risk; defense evaluation and preparation that changes weight values are left for future work.