arXiv:2610.28872cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28872

LEAN: Loss-Engineered Modulation of the Model Weight-Sensitivity Distribution for Efficient, Error-Tolerant Neural Networks

Habibur Rahaman, Swarup Bhunia

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Habibur Rahaman and Swarup Bhunia

Electrical and Computer Engineering, University of Florida

Gainesville, Florida, USA

rahaman.habibur@ufl.edu, swarup@ece.ufl.edu

Abstract—The weights of a trained network do not have uniform sensitivity to model accuracy: the 1% most sensitive weights carry about a fifth of the damage a bit flip can do. This distribution decides the bit-flip tolerance of a model, the fraction of weights a code must cover and the bits each weight needs; existing schemes work with the distribution training leaves. We show that we can systematically modulate or alter the weight sensitivity distribution of a trained model, thereby shifting weights from one sensitivity bin to another. The sensitivity of a stored weight is the product of its gradient and the step a flip takes in the storage format, and LEAN adds a composite regularizer on both factors, a range term that bounds the flip step and a tail term that lowers the gradient of the most sensitive weights, with one coefficient λ\lambda setting how far the distribution moves. Ten epochs with the term, as a fine-tune or as the last epochs of training, shrink the sensitive tail 5 to 13 times on nine vision models (ResNet-18, ResNet-50, VGG-16 on CIFAR-10, CIFAR-100, ImageNet) within 0.5 points of accuracy; real flips confirm that the reshaped weights do less damage, a plain gradient-norm penalty does not reproduce the effect, and a preliminary extension to three small language models shows the same tail shaping. With a BCH code over 1% of the weights the model then survives 300 progressive bit-search flips in every training seed and 500 in two of three, where three of four published defenses with the same code fail by 300 and WCAT falls to 75% at 500. The reshaped distribution also cuts the parity for a fixed guarantee 3.7 times and makes a sensitivity-ordered 8/6/4/3-bit format affordable, which stores ImageNet ResNet-50 at a 3.29-bit weight payload, 2.4 times smaller than INT8, above the accuracy of LSQ at 3 bits.

Index Terms—model parameter sensitivity distribution, weight sensitivity, shifting distribution, bit-flip attack, error correcting codes, quantization, mixed precision, model efficiency, DNN accelerators, neural network, machine learning models

I. INTRODUCTION

Modern neural networks have tens of millions to billions of weights and they do not impact model functional behavior uniformly. If a single stored weight is corrupted, by a memory fault, a bit-flip attack or a coarse quantization step, the loss change depends on which weight it is, and it differs by a factor of 10,000 or more between the median weight and the most sensitive one. On ResNet-18 trained on CIFAR-10, the 1% of weights with the largest first-order sensitivity account for 19.5% of the total loss change under sign-bit flips, the next 8% for most of the rest, and the remaining 91% contribute little under this metric (Figure 1a,b). Hence, weight sensitivity is

(a) raw distribution

Figure

(b) cumulative distribution

(c) PBS, 1% code

Figure

Fig. 1. Effect of LEAN on ResNet-18, CIFAR-10. (a) The raw weight-sensitivity distribution: number of weights per sensitivity bin (40 log-spaced bins of the sign-flip damage did_i, as a percentage of the baseline maximum); the bulk of the weights sits between 0.01 and 1% and the HIGH band is a thin tail, which LEAN moves to the left. (b) The cumulative distribution, counted from the tail: the number of weights whose damage is at least a threshold s; one ten-epoch fine-tune leaves 9 times fewer weights above the baseline HIGH threshold at the same accuracy, while Hessian-aware training leaves the tail where normal training left it (1.01% against 1.00% above the threshold). (c) Accuracy under progressive bit search when the same 1% BCH code protects each model: the normally trained and the Hessian-aware model fall to chance by 300 flips, the LEAN model ( λ=40\lambda = 40) keeps 94% after 500 in two of three training seeds and after 300 in all (Table V).

strongly non-uniform, and its distribution has a large spread between the highest and the lowest sensitivity.

The shape of that distribution influences the cost of the stored model in terms of error-tolerance and computation efficiency. It sets bit-flip tolerance, because Rowhammer [1],

Figure

Fig. 2. Overview. Step 1: a normally trained network has a heavy-tailed weight-sensitivity distribution; the top 1% of weights (HIGH) carry about 20% of the first-order damage of sign-bit flips. Step 2: ten epochs with the extra term λPLEAN\lambda P_{LEAN}, as a fine-tune or as the last epochs of training, move weights out of HIGH and MID into LOW; λ\lambda sets how far, and accuracy changes by at most 0.5 points. Step 3: the deployed model needs 3.7 times less parity for the same guarantee, survives 300 to 500 progressive bit-search flips with a 1% BCH code, and stores at 3.3 bits per weight in a sensitivity-ordered format.

[2], progressive bit search [3], its targeted variant [4] and low-voltage SRAM errors [5] all do their damage through the tail (the attack surface of AI hardware is surveyed in [6]), and an adaptive attacker only needs to hit it. It sets the price of protection, because a selective code [7] has to cover the tail and its parity grows with the tail's size, while a code over everything costs 12 to 20% of memory. And it sets the price of storage, because a variable-precision format must keep the tail at full width and can be cheap only on the rest. A heavier tail means more weights to protect, more parity, more bits and a shorter survival; a lighter one means the opposite. Robust training [8]–[11] changes the distribution as a side effect, and selective protection and mixed precision live with whatever distribution they are given; none of them optimizes the size of the tail, measured in the format the weights are stored in.

This paper treats the sensitivity distribution as something to be chosen. LEAN is a training-time procedure that reshapes it. The damage of a flip is the product of two factors, the gradient of the weight and the step the flip takes in the storage format, and LEAN regularizes both: a range term bounds the step of every layer, and a tail term, the mean sensitivity of the top 1% of weights differentiated through the gradient, lowers the gradient where it is largest. A coefficient λ\lambda sets how far the tail is pushed (Figure 2). The change is to the whole distribution, not to a handful of weights, and it costs essentially no accuracy. The paper includes two checks: real flips confirm that the reshaped weights do less damage, not only that their gradients read smaller, and an ablation separates the two terms. At INT8 the range term does most of the work; the tail term adds to it but cannot replace it, and alone it lowers the gradient without lowering the damage. Figure 1 previews the effect on one model: the tail shrinks by an order of magnitude, and under the same 1% code the model survives an attack that reduces the normally trained one to chance.

The contributions of this paper are the following.

• A systematic way to modulate the weight-sensitivity distribution of a network during training. One composite regularizer on the two factors of the damage, with a coefficient λ\lambda that sets the amount, an ablation that attributes the effect to each term, a real-flip check that the effect is not gradient masking (Table IV), and a plain gradient-norm baseline that does not reproduce it. Measured on nine vision model-dataset configurations (ResNet-18, ResNet-50 and VGG-16 on CIFAR-10, CIFAR-100 and ImageNet) and three language models (Qwen2-0.5B, Llama-3.2-1B and Qwen2-1.5B): the sensitive tail shrinks 5 to 13 times on the vision models within 0.5 points of accuracy, and 1.7 to 5.3 times on the language models, after one fine-tune and monotonically in λ\lambda. It is applied as a ten-epoch fine-tune of a trained network or switched on in the last epochs of training; both routes reach the same floor.

• Consequences of the reshaped distribution for protection, precision and storage. Bit-flip protection: a 1% code that fails on the normal model by 200 flips holds through 300 in every run and 94% through 500 in two of three seeds, and the parity for a fixed guarantee drops 3.7 times. Precision and storage: a sensitivity-ordered 8/6/4/3-bit format is 1.2 points above LSQ on ImageNet ResNet-50 at an exactly matched 4 bits per weight, and at 3.29 bits reaches 77.2% against 74.4% for LSQ at 3 bits, 2.4 times less weight payload than INT8 and an estimated 59% less weight-fetch energy; most of that gain comes from ordering the bits by sensitivity, which the small tail makes affordable, and λ\lambda adds the rest. With a small interleaved code the CIFAR low-bit models survive 500 flips as well. The evaluation uses adaptive bit-flip attacks as the hardest case of a stored-weight fault.

The rest of the paper is organized as follows. Section II explains why the sensitivity distribution matters, through the attacks, the codes and the formats that depend on it. Section III presents the objective that reshapes it. Section IV measures the reshaping, checks what each term does and that the damage really falls, and measures the effects on protection, precision and storage; Section V discusses what that means for the systems that would use it and extends the measurement to language models; Section VI reviews related work and Section VII concludes.

References (32)