ZenMargin keeps long-context attention fully in 4-bit, no FP16 fallback
A new arXiv paper reports a two-limb FP4 attention method that matches BF16 accuracy on long-context benchmarks while cutting KV-cache memory and speeding up serving on one RTX 5090.
In plain words
Running large language models over very long documents strains GPU memory and speed, and 4-bit attention has tended to lose track of details spread far apart in the text. ZenMargin is a proposed technique that keeps attention entirely in 4-bit precision by splitting stored data into two small parts and refining only the few blocks where errors matter most. The authors report it matches full-precision accuracy on long-context tests while being faster and leaner.
What was announced
The paper, a cross-listed arXiv abstract, attributes the failure of uniform 4-bit attention to two causes: quantization error concentrating along a few dominant key directions, and retrieval heads operating with narrow score margins where modest 4-bit noise flips the winning key. ZenMargin addresses both in 4-bit precision by smoothing keys with causal centering and a Hadamard transform, then splitting each KV pair into a primary and a residual 4-bit tensor under a shared scale, a layout the authors call two-limb NVFP4.
On the measured results, the abstract reports 867-967 TFLOPS on real activations across six open LLMs on a single RTX 5090, at up to 128K context, which the authors state is 4.0-4.4x FlashAttention-2 and 1.5-1.6x SageAttention2++. A margin gate reads only the primary limb for 95-99% of blocks during prefill, and ZenMargin-Cache reuses the same layout during decoding with zero repacking. The authors report KV-cache memory 44% below BF16, 2.1-2.9x serving throughput over FlashInfer BF16 for 32-layer single-GPU serving, up to 1.9x faster 64K time-to-first-token, and BF16-matching accuracy on RULER and LongBench without retraining.
What it does not show
- Evidence is limited to the paper's abstract; no independent reproduction, code availability, or peer review is described.
- Reported speedups, memory savings, and accuracy results are the authors' own measurements on one GPU (RTX 5090) and six open models, not confirmed on other hardware or closed models.
For security and IT teams
- Scope
- The findings apply to long-context LLM attention serving on FP4 tensor cores, evaluated on a single RTX 5090 with up to 128K context; the source is an abstract only.
Sources
Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 2 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.