A 2-bit or 1-bit language model stores its weights in two very different forms. Most of the storage is a huge array of short integer codes, or indices. A much smaller amount of "decoder state" turns those codes back into real numbers: codebooks, per-group scales, the small affine lattice parameters used by some methods, the seeds of the random rotations applied before quantization, and the extra codebook reserved for a few percent of sensitive channels. This note proposes that, in the ultra-low-bit regime, both the model's fragility to hardware faults and its value to a thief are concentrated in this decoder state, which is measured in kilobytes to megabytes rather than gigabytes. If that holds, 3D chip stacking becomes practical for protecting such models. 3D stacking means building a chip as vertically bonded silicon layers, so a sensitive layer can sit inside a cage of tamper-sensing metal and vertical wires. Instead of shielding a whole accelerator, one would shield only a small inner "vault" tier that holds the decoder state and the logic that expands codes into weights. The bulk index memory would stay on ordinary, unshielded dies.
The opportunity comes from two literatures that have not met. Hardware-security work shows that 3D stacking can enclose sensitive logic in active shields that erase keys when someone mills or probes through them. That work treats the protected circuit as generic logic and shields it uniformly (3D Integration: Another Dimension Toward Hardware Security; Hardware Security for and beyond CMOS Technology). Quantization work shows that sub-3-bit models survive only because a small amount of carefully built decoder machinery absorbs outliers. We ask whether that machinery is also the model's single point of physical failure. If it is, the cost of physical protection falls from "shield the chip" to "shield a small tier."
Core Claim
For vector-quantized and lattice-quantized LLMs at roughly 1–2 bits per weight, we hypothesize three things. First, gradient-guided bit-flip attacks need orders of magnitude fewer flips when they target decoder state than when they target indices. Second, an attacker who steals the full index array but not the decoder state cannot rebuild a usable model without substantial data and compute. Third, a vault holding only the decoder state is a small fraction of total weight storage, so its shielding and thermal cost is small. None of these three is established in the file. The contribution is to measure them, and then to use the measurements to decide what goes inside the shield.
Relation to Prior Work
Two lines of work motivate the fault half of the claim. Bit-Flip Attack: Crushing Neural Network With Progressive Bit Search uses loss gradients to find the most damaging bits in 4–8-bit convolutional networks. It collapses ResNet-18 on ImageNet from 70% to 0.1% with 13 flips. SBFA extends this to BF16 and INT8 LLMs and finds single bits that drive MMLU accuracy to 0.00 while keeping the corrupted weight inside the layer's normal range. Neither paper studies sub-3-bit codebook formats, where a "weight" is split into an index and shared decoder parameters. We reuse their search methods but add one change: the search is stratified by storage class, so we can ask which class an attacker should target.
A third paper constrains the design. Widening the Gap shows that a few injected outliers can make a model's per-group scales wipe out its safety weights once it is quantized. That is direct evidence that small scale-like state controls large amounts of behavior. It also means a vault must guard against corrupted scales, not only corrupted codebooks.
Three quantization methods supply the objects we study. QuIP applies random orthogonal rotations before quantizing, with adaptive rounding. CRVQ uses a 1-bit base codebook plus an extended codebook for Hessian-selected sensitive channels. UniSVQ replaces codebooks with an affine lattice $\Phi(w)=A\bar w+B$, where $\bar w$ is the integer code, $A$ a learned matrix and $B$ a bias. It uses about 20 parameters per weight matrix and a randomized Hadamard transform. Each method has a different split between index and decoder state, which lets us test whether concentration of fragility is general or specific to one method.
On the hardware side, 2.5D Root of Trust turns the interposer, the silicon layer that chiplets sit on, into a security monitor for bus traffic. The file gives its cost as 1.13% delay and 12.95% power on a Cortex-M0 system. That work polices traffic between chiplets and cannot see faults inside a die. Our vault is complementary: it moves the fragile state into a physically enclosed tier. Split manufacturing for 3D ICs splits a circuit across dies made at different foundries so that no single foundry holds the whole design. We borrow its idea that a secret can live in one tier, but the secret here is the numerical decoder of a model rather than the wiring of a netlist.
Research Program
The first stage is a fault-sensitivity census. We quantize Llama-2-7B/13B and Llama-3-8B with QuIP, CRVQ and UniSVQ at 2 bits, and with CRVQ at about 1 bit. As a reference, we also quantize them with 4-bit group-wise scalar quantization (OPTQ/GPTQ-style), whose decoder state is just per-group scales. We run each attack three ways: restricted to indices, restricted to decoder state, and unrestricted.
We use three fault models of increasing physical realism:
- Progressive bit search in the style of Bit-Flip Attack.
- SBFA's range-respecting single-bit search.
- A simulated laser or electromagnetic fault that flips a contiguous burst of bits in one memory word or row.
The burst model is the physical threat that 3D shields specifically resist, and it is also the threat that single-error-correcting codes fail on. For each model, attack and target class, we report the number of flips needed to reach chance on MMLU and to double WikiText-2 perplexity.
The second stage is a confidentiality test. We give an attacker the complete index array and access to calibration data (RedPajama, the set CRVQ uses). The attacker's task is to re-learn the decoder state: codebooks, $A$ and $B$, scales, and, for QuIP, the rotations when their seeds are secret. We sweep the attacker's data and GPU budget. CRVQ's own calibration costs about 50 A100 hours for LLaMA2-13B, which gives a natural unit for that budget. The outcome is a curve of recovered perplexity against attacker effort. A vault is worth its cost for intellectual-property protection only if this curve stays far from the original model at budgets well above that unit.
The third stage is sizing and placing the vault. From the first two stages we rank state by damage per bit and choose vault contents under a size budget. We then estimate vault area and power with standard synthesis and SRAM models. The quantity that matters is vault size as a fraction of total weight storage, together with the bandwidth needed between the vault and the index dies. The expanded weights, or their partial products, must leave the vault through vertical connections. That traffic, not the storage itself, is the likely bottleneck. UniSVQ's lattice matters here because it keeps the in-vault decoding logic arithmetic rather than a table lookup. We do not fabricate chips. Shield cost is taken from the design models in the 3D security literature, and the file gives no reported area or power figure for active 3D tamper shields: no reported result found on Lacuna for that quantity.
Baselines
The naive reference point is an unprotected 2-bit model on a conventional 2D accelerator. Every attack is run against it with the same search budget, and it sets the "flips to collapse" floor. The strongest reported attack number in the file is SBFA's single bit flip driving MMLU accuracy to 0.00 on BF16 and INT8 LLMs (SBFA). We rerun SBFA on our quantized models, so our unrestricted-attack numbers can be compared with it directly. For accuracy without attack, the strongest cited operating point is QuIP's 6.33 WikiText-2 perplexity at 2 bits on Llama-2-70B, versus 123.91 for OPTQ (QuIP). CRVQ reports 9.81 at about 1.06 bits on LLaMA2-13B (CRVQ). We reproduce these clean numbers before any fault experiments, so that degradation is measured from the right starting point.
The strongest defensive competitor is selective protection in 2D. This means applying strong error correction plus triple redundancy to the same decoder state the vault would hold, on an ordinary planar die. It receives an identical storage budget. It is the fair control for whether physical enclosure adds anything beyond "protect the right bits."
The second competitor is uniform 3D shielding of the whole accelerator. It shows how much protection is lost by shielding selectively, and how much cost is saved.
The key ablation keeps the vault size fixed and changes how its contents are chosen: by storage class, by Hessian or gradient sensitivity ranking of individual index bits (the CRVQ-style salience measure), or at random. This isolates whether the class structure of low-bit formats is what makes a small vault sufficient.
Beating the baselines has two conditions. On burst faults and invasive readout, the vault must require at least an order of magnitude more flips, or much more attacker compute, than the unprotected model. It must also cost a small fraction of the storage and power that uniform shielding costs.
Why not just…?
Why not just use error-correcting codes on the decoder state in 2D? This is the most serious alternative, and for random or RowHammer-style single-bit flips it may be fully sufficient. The selective-2D baseline exists to find that out. If it matches the vault on single-bit and SBFA-style attacks, we will say so and restrict the vault's claim to what codes cannot cover. That leaves two cases. The first is burst faults larger than the code corrects, which we simulate directly. The second is invasive readout of the codebook, which codes do nothing to stop and which the confidentiality test measures.
Why not just rely on rotations and outlier smoothing in software? QuIP and UniSVQ remove natural outliers, but that is about accuracy, not deliberate faults. Rotations may even make faults worse, because one corrupted rotation seed or Hadamard sign damages every weight in the matrix. The census tests this directly by including rotation state as its own target class. Widening the Gap also reports that software defenses such as adding noise before quantization fail against injected outliers.
Why not just encrypt weights in memory and decrypt them on a trusted die? Encryption protects confidentiality in transit, but the decrypted decoder state still sits on an exposed die where it can be probed or hit with a laser. At 2 bits, UniSVQ's reported speed (101.65 tokens/s on Llama-3-8B) is limited by memory bandwidth, so decrypting every index adds latency on the critical path. The vault design needs to decrypt nothing, because the indices are worthless without the decoder. Whether they really are worthless is exactly what the confidentiality curve tests. If the attacker's re-fitting is cheap, encrypting the indices becomes necessary, and the vault becomes a complement to encryption rather than a replacement.
Why not just stay at 4 bits? Four-bit scalar models have decoder state too, namely group scales. So the census includes them, and we ask whether concentration of fragility is special to extreme quantization or simply more pronounced there. Bit-Flip Attack already shows that 4-bit models are fragile. UniSVQ's more than 75% memory reduction versus FP16 is the reason edge deployments will push below 4 bits anyway.
Decisive Checks
The proposal stands or falls on three results:
- Concentration of fragility. On burst and gradient-guided faults, decoder-state flips must collapse MMLU and WikiText-2 with at least ten times fewer flips than index-only flips, across at least two of the three quantizers. If indices are equally fragile, a small vault cannot work and the idea is dead.
- Confidentiality. With the decoder state withheld, recovering the model to within reasonable perplexity of the original must cost well above one calibration run's worth of data and compute. Otherwise the vault's intellectual-property value collapses to that of simply encrypting the indices.
- Cost. The vault must be a small fraction of weight storage, and its bandwidth to the index dies must be within what vertical connections can supply. If decompression traffic forces the whole compute array into the shielded tier, selective shielding reduces to uniform shielding.
A negative result on any of the three is still informative. It would tell hardware designers that ultra-low-bit models offer no shortcut for physical protection.
References
- 3D Integration: Another Dimension Toward Hardware Security
- Hardware Security for and beyond CMOS Technology
- Bit-Flip Attack: Crushing Neural Network With Progressive Bit Search
- SBFA: Single Sneaky Bit Flip Attack to Break Large Language Models
- Widening the Gap: Exploiting LLM Quantization via Outlier Injection
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- CRVQ: Channel-Relaxed Vector Quantization for Extreme Compression of LLMs
- UniSVQ: 2-bit Unified Scalar-Vector Quantization
- 2.5D Root of Trust: Secure System-Level Integration of Untrusted Chiplets
- A Modern Approach to IP Protection and Trojan Prevention: Split Manufacturing for 3D ICs and Obfuscation of Vertical Interconnects