DOCUMENT XF-WP-2026-07 · RELEASE v0.7.0 HARDWARE TARGET: APPLE SILICON UNIFIED GPU (8 GB) · MLX 0.32.4

Algebraic Weight-and-KV Compression with Hardware-Aware Dispatch

An empirical systems monograph uniting 18 scientific works (15 peer-reviewed venue papers and 3 arXiv preprints) with custom Metal Shading Language kernels and hysteresis-guarded autotuning—delivering verified quantization quality across 0.5B, TinyLlama-1.1B, 1.5B, and 3B, unlocking 8 GB Apple Silicon memory limits on 3B with 3-bit & mixed 2/3-bit, extending context to 16K with Mixed KIVI (3.16 bpw, 5/5 Passkey), and achieving 0.0 relative error on wide-exponent GEMM with 150-bit Garner CRT.

15.20 PPL · 17.99 3b 0.5B Clip-GPTQ (vs. 16.06 / 23.27 AWQ; 181.8 tok/s parity)
3B Unlocked (1,474 MB) 5,886 MB (~5.75 GiB) BF16 OOM recovered on 8 GB Mac (29.1–56.9 t/s)
16K Mixed KIVI (3.16 bpw) 5.06× leaner KV cache @ 88.6 MB with 5/5 Passkey retrieval
150-bit CRT · 0.0 Err Garner CRT + 1.72× Shuffle FWHT + 2.14× SwiGLU+RHT

Executive Thesis: Consumer Apple Silicon systems share a unified physical memory pool between CPU and GPU. While this removes PCIe transfer overhead, local LLM inference fails whenever weight and KV footprints cross the recommended GPU working-set limit (5.33 GB on 8 GB hardware) or when naive quantization amplifies outlier channels. Worse, academic speedups—from sub-cubic bilinear tensors to ternary slicing—frequently lose to native vendor GEMMs on dense GPU execution. xFermat pairs second-order incoherent compression with strict runtime measurement, rejecting any optimization path that fails end-to-end wall-clock or perplexity parity.

01 / SYSTEM CONSTRAINTS

The Unified-Memory Capacity & Outlier Wall

Measured on an 8 GB Apple Silicon Unified GPU running mlx 0.32.4 and mlx-lm 0.32.2, native BF16 execution hits three structural failure modes before raw FLOP throughput becomes limiting:

FAILURE MODE 01 & 02

Working-Set Swap & Activation Outliers

Standard Qwen2.5-3B-Instruct requires 5,886 MB (~5.75 GiB) for static BF16 weights, crossing the 5.33 GiB recommended working-set limit on 8 GB Apple Silicon systems and aborting (error_or_oom). On 1.5B and 0.5B, naive round-to-nearest (RTN) 3-bit shrinks weights yet degrades WikiText-2 perplexity sharply (17.75 vs. 9.96 BF16 on 1.5B; 39.12 vs. 14.42 BF16 on 0.5B), and RTN 2-bit collapses completely (56,956.39 PPL on 0.5B).

FAILURE MODE 03

RoPE Context Drift & Uncalibrated Asymptotics

Modern LLMs apply high-base Rotary Position Embeddings (θ = 10^6 in Qwen2.5), inducing persistent per-channel Key outliers that crush per-token 2-bit KV caches (0.485–0.557 cosine vs. FP16 SDPA). Meanwhile, theoretically sub-cubic schemes (Strassen 11.15 ms, AlphaEvolve 12.76 ms, GPU CRT FP64 9.40 ms) lose to native vendor paths without hardware autotuning.

02 / SYSTEM DESIGN

Why 18 Papers Require End-to-End Co-Design

Rather than implementing isolated kernels, xFermat links four complementary research lineages inside a single pipeline spanning offline weight surgery, Metal kernel execution, KV memory residency, and empirical backend routing:

STAGE 01 · OFFLINE WEIGHT SURGERY Incoherent Calibration R1/R4 Folding + Cholesky GPTQ (3/4b/mixed) SpinQuant · Clip-GPTQ · damp=0.05 · mixed_2_3bit 2-Bit VPTQ + PV-Tuning & E2E-QP VPTQ · AQLM · OmniQuant · SRAM M-Step PV-Tuning (26.73 WT2 PPL) · E2E-QP (79.36 WT2 PPL) Outputs: ~0.7s Safetensors + Codebooks STAGE 02 · UNIFIED-MEMORY RUNTIME Metal Register & SRAM Decode Shuffle FWHT · SwiGLU+RHT · VQ4 GEMV 1.72× FWHT · 2.14× SwiGLU · 3.81× VQ4 GEMV 16K Mixed KIVI · MOHAWK Distill 3.16 bpw · 5/5 Passkey · 88.6 MB @ 16K Pretrained Qwen 0.5B: −24.6% 8K KV (14.46 PPL) Zero FP16 KV Buffer Materialization (Lq=1) STAGE 03 · AUTOTUNE GUARD Empirical Dispatch 10% Hysteresis Benchmark Selects Apple SDPA (backend="auto") or Native GEMM / CPU BLAS FP64 Opt-In Scientific Modes 150-bit Garner CRT (0.0 Rel Err) · Zero-Pad Guarantee: No Slow Theory Leaks
03 / METHODOLOGY & PROPRIETARY FIXES

Mathematical Foundations & Metal Derivations

3.1 Orthogonal Rotation Folding, Damped Cholesky & Clip-GPTQ

Applying a randomized signed Hadamard transform Q = H diag(s) satisfies Q Q^T = I and flattens extreme activation spikes prior to quantization. Folding Q offline into adjacent RMSNorm and weight tensors yields W' = W Q, leaving hadamard_4bit completely native in nn.QuantizedLinear with zero runtime overhead. For hadamard_3bit, a fused SRAM Metal Walsh–Hadamard kernel (R4) rotates residual states dynamically before down_proj. We apply regularized inverse Cholesky Hessian factorization with adaptive damping (damp=0.05) and per-row group scale clipping:

Equation (1) — Damped Cholesky Error Propagation & Scale Clipping (structured.py)
U = chol((X^T X / N + λI)^-1)^T   (λ = 0.05 · diag),   Δw = (w[:, j] − q(w[:, j], s*)) / U[j, j],   s* = argmin_s (w − w_hat(s)) H (w − w_hat(s))^T

In v0.7.0, we introduce mixed_2_3bit: mapping down-projection layers (which concentrate the largest parameter volume) to 2-bit while keeping attention and gate/up projections at 3-bit. On Qwen2.5-3B, this unlocks smooth 8 GB execution at 56.9 tok/s (1,193 MB, 16.01 WT2 PPL) while avoiding the extreme outlier sensitivity of pure scalar 2-bit quantization.

3.2 2-Bit Quantization Breakthroughs: VPTQ + PV-Tuning & E2E-QP Fine-Tuning

At 2 bits/weight, scalar grids collapse. Vector Post-Training Quantization (VPTQ) groups vectors across 4 channels onto antipodal codebooks. In v0.7.0, two breakthroughs push 2-bit feasibility forward:

  • VPTQ + PV-Tuning (pv_tune_vq_blocks): Jointly optimizes residual vector codebook centroids and per-vector scaling factors with NaN-guarded AdamW steps and finite-safe rollback. Reaches 26.73 WikiText-2 PPL on Qwen2.5-0.5B at 4.02× compression (234.6 MB) and 16.63 WikiText-2 PPL on Qwen2.5-1.5B at 5.00× compression (589.0 MB, lower WT2 PPL than mlx_native_3bit 17.75, trading lower MC 51.0% vs. 58.0% and decode speed 34.4 vs. 49.2 t/s).
  • End-to-End Quantized Parameter Tuning (finetune_e2e_qp): Runs straight-through estimator AdamW over quantized representation parameters across entire transformer blocks, reaching 79.36 WikiText-2 PPL on Qwen2.5-0.5B (244.9 MB) without collapsing vocabulary projections.

3.3 16K Mixed KIVI Attention & Pretrained MOHAWK Hybrid Distillation

High-base RoPE frequencies induce severe per-channel Key outliers over long context windows. v0.7.0 introduces Mixed KIVI (kv_quant.py):

  • 16K Mixed KIVI KV Cache: Promotes the top 62.5% salient Key channels per 64-token block to 4-bit (remaining 37.5% at 2-bit), quantizes Values 2-bit per-token, and retains a 64-token FP16 streaming tail. Across a 16,384-token context on Apple Silicon, Mixed KIVI achieves an effective bitwidth of 3.16 bpw, compressing KV memory from 448.0 MB to 88.6 MB (5.06× reduction) while achieving 5/5 Passkey retrieval accuracy and decode parity at 8K (43.3 vs. 43.6 tok/s FP16).
  • Pretrained Qwen2.5-0.5B MOHAWK Hybrid Distillation: Replaces 6 of 24 quadratic attention layers (layers 3, 7, 11, 15, 19, 23) with linear State-Space Duality (SSD) recurrent mixers. On 3×256 validation subsets, this slashes 8K KV cache memory by −24.56% (96.0 MB → 72.42 MB) while recovering perplexity from 129.96 down to 14.46 val PPL (teacher baseline: 12.50).

3.4 150-Bit Garner CRT Reconstruction & Hardware-Aware Micro-Kernels

Addressing numerical drift in scientific matrix operations and GPU tensor execution:

  • 150-Bit Garner Chinese Remainder Theorem (rns_ozaki.py): Employs 24 pairwise-coprime moduli (packed into 3 × 50-bit Garner limbs with Knuth two-sum combination) plus 11-modulus GPU mantissa slicing, achieving 0.0 relative error across p=25..45 and exact 0.0 error vs. 50-digit reference on ill-conditioned κ=10^12 via ozaki_crt_sliced.
  • Shuffle FWHT (shuffle_fwht.metal): Exploits SIMD shuffle instructions for fast Walsh–Hadamard transforms, executing a 512×4096 transform in 0.0936 ms vs. 0.1611 ms SRAM (1.72× speedup) and 0.4251 ms dense (4.54× speedup).
  • Fused SwiGLU + RHT: Fuses elementwise SwiGLU gating with randomized Hadamard transform in a single Metal kernel, running in 0.1812 ms vs. 0.3882 ms naive (2.14× speedup).
  • VQ4 GEMV: SRAM-tiled 4D vector GEMV decode completes in 0.1044 ms vs. 0.3976 ms FP16 at M=1 (3.81× speedup, crossing over above M≥16 where dense FP16 wins).
  • Zero-Pad Ternary: Eliminates power-of-2 padding waste, reducing Hadamard padding overhead from 40.6% to 0.0% across 4864 dimensions (with 1 alignment coordinate: 4865).
04 / EMPIRICAL VERIFICATION

Reproducible Rigorous Benchmarks (Apple Silicon Unified GPU)

All measurements reflect verified runs on an 8 GB Apple Silicon Unified GPU from benchmarks/v07_rigorous_results.json, using streamed 16,384 calibration tokens (> D_max), full 301,680-token WikiText-2 on 0.5B and 65,504 tokens on 1.1B/1.5B/3B, 4 MC tasks (n=100), and 5-run median ± IQR timings.

v0.6.0 vs. v0.7.0 Architectural & KPI Progression (Protocol-Normalized)

Pillar / Dimension v0.6.0 Specification v0.7.0 Rigorous Upgrade Protocol-Normalized Advantage
Qwen2.5-0.5B 4-Bit 150.4 t/s · 23.61 PPL (1.104× BF16 @ 3k slice) 181.8 t/s · 15.20 PPL (1.054× BF16 @ 301k full WT2) BF16 gap +10.4% → +5.4% (decode parity vs AWQ)
Qwen2.5-0.5B 3-Bit 144.1 t/s · 34.50 PPL (1.613× BF16, 2.5k cal) 143.0 t/s · 17.99 PPL (1.248× BF16, 16.4k cal) BF16 gap +61.3% → +24.8% · −22.7% vs AWQ
2-Bit Frontier (0.5B / 1.5B) 106.47 WT2 (0.5B MAP EM) · 1.5B untested 26.73 WT2 PPL (0.5B PV) · 16.63 WT2 PPL (1.5B VPTQ, 589 MB) 5.00× comp (1.5B) · 4.02× comp (0.5B)
Qwen2.5-3B (8 GB Mac) 5,886 MB (~5.75 GiB) BF16 OOM (Untested) 1,474 MB (3b, 29.1 t/s) · 1,193 MB (mixed, 56.9 t/s) OOM Recovered · 9.43–16.01 PPL within 5.33 GiB
Context & KV Cache 8K prototype (0.923 cos) · per-qhead 16K Mixed KIVI: 3.16 bpw · 5/5 Passkey · 88.6 MB 2× context horizon · 5.06× leaner vs 16K FP16
Pretrained Hybrid SSM Synthetic 4L Monarch-SSD (eval leak fixed) Pretrained Qwen 0.5B MOHAWK: −24.56% 8K KV Real LLM 6-Layer SSD Conversion · 14.46 Val PPL
CRT Reconstruction 120-bit CRT (breaks at p≥28) 150-bit Garner CRT + GPU Sliced 0.0 Error (p=25..45 & κ=1e12 sliced)
Micro-Kernels 8-barrier SRAM FWHT · pow2 ternary pad Shuffle FWHT (1.72×) · SwiGLU+RHT (2.14×) · VQ4 (3.81×) 0.0% ternary pad waste + barrier-free SIMD

Multi-Model Rigorous Weight Compression Matrix

Model Quantization Mode RAM (MB) Ratio WT2 PPL Decode Speed
Qwen2.5-0.5B BF16 Reference (301k WT2) 942.3 MB 1.00× 14.42 PPL 77.7 tok/s
Qwen2.5-0.5B 4-bit Clip-GPTQ 330.0 MB 2.85× 15.20 PPL 181.8 tok/s (173.4 AWQ)
Qwen2.5-0.5B 3-bit Clip-GPTQ 287.6 MB 3.28× 17.99 PPL (vs. 23.27 AWQ) 143.0 tok/s
Qwen2.5-0.5B mixed_2_3bit 251.3 MB 3.75× 41.16 PPL 135.4 tok/s
Qwen2.5-0.5B vptq_2bit_pv (PV-Tuning) 234.6 MB 4.02× 26.73 PPL 74.4 tok/s
Qwen2.5-0.5B e2e_qp_2bit (E2E-QP) 244.9 MB 3.85× 79.36 PPL 152.3 tok/s
TinyLlama-1.1B BF16 Reference 2,098.2 MB 1.00× 8.57 PPL 38.2 tok/s
TinyLlama-1.1B 4-bit Clip-GPTQ (8b head) 652.8 MB 3.21× 8.85 PPL 110.1 tok/s
TinyLlama-1.1B 3-bit Clip-GPTQ (bf16 vs 8b head) 596.1 / 537.5 MB 3.52 / 3.90× 9.62 PPL (AWQ 10.35) 61.4 → 98.0 tok/s (AWQ 120.7 t/s)
TinyLlama-1.1B mixed_2_3bit (8b head) 439.3 MB 4.78× 15.63 PPL 136.6 tok/s
Qwen2.5-1.5B BF16 Reference 2,944.4 MB 1.00× 9.96 PPL 25.8 tok/s
Qwen2.5-1.5B 4-bit Clip-GPTQ 939.6 MB 3.13× 10.34 PPL 67.0 tok/s
Qwen2.5-1.5B 3-bit Clip-GPTQ 783.9 MB 3.76× 11.48 PPL 54.0 tok/s
Qwen2.5-1.5B mixed_2_3bit 651.1 MB 4.52× 20.27 PPL 58.3 tok/s
Qwen2.5-1.5B vptq_2bit (PV-Tuning) 589.0 MB 5.00× 16.63 PPL 34.4 tok/s
Qwen2.5-3B BF16 Reference 5,886.0 MB 1.00× OOM Cliff (>5.33 GiB) Memory allocation failure
Qwen2.5-3B 4-bit Clip-GPTQ 1,804.1 MB 3.26× 9.43 PPL 27.8 tok/s
Qwen2.5-3B 3-bit Clip-GPTQ 1,474.2 MB 3.99× 10.42 PPL 29.1 tok/s
Qwen2.5-3B mixed_2_3bit 1,193.0 MB 4.93× 16.01 PPL 56.9 tok/s

Memory, Attention & Micro-Kernel Rigorous Verification

Kernel / Benchmark Baseline Metric xFermat v0.7.0 Result Verified Advantage
16K Mixed KIVI KV Cache FP16: 448.0 MB (16K context) 88.6 MB (3.16 bpw effective) 5.06× smaller · 5/5 Passkey Accuracy
Pretrained Qwen 0.5B MOHAWK Teacher 24-Layer Attn: 96.0 MB 8K KV (12.50 PPL) 6 SSD Layers: 72.4 MB 8K KV (14.46 val PPL) −24.6% 8K KV cache memory
150-bit Garner CRT (p=25..45) Single-modulus float64 precision limit 24 pairwise-coprime moduli (3 × 50-bit Garner limbs) + 11-modulus slicing 0.0 Relative Reconstruction Error on GPU
Shuffle FWHT (512×4096) 0.1611 ms SRAM · 0.4251 ms Dense 0.0936 ms Metal SIMD shuffle 1.72× vs. SRAM · 4.54× vs. Dense
Fused SwiGLU + RHT 0.3882 ms Naive two-pass 0.1812 ms Fused Metal kernel 2.14× faster execution
VQ4 GEMV (4096×4096, M=1) 0.3976 ms FP16 GEMV 0.1044 ms Fused VQ4 GEMV 3.81× faster single-vector decode
Zero-Pad Ternary GEMM 40.6% power-of-2 padding waste Arbitrary matrix dimension packing 0.0% padding memory waste
05 / EMPIRICAL ACCOUNTABILITY

Honest Engineering Boundaries & Withdrawn Claims

Formal Retractions, Negative Findings & Engineering Scopes:

  • Withdrawn Early Throughput Claim ("1.47× / 1.44× vs. AWQ"): In v0.6.0, an uncalibrated single-run benchmark reported AWQ 3-bit at 98.3 tok/s vs. xFermat at 144.1 tok/s. Under standardized 5-run median evaluation in v0.7.0 (median ± IQR) on Qwen2.5-0.5B (tied embeddings), mlx_lm.awq 3-bit decodes at 147.7 ± 5.4 tok/s (44.5 GB/s) and xfermat_3bit decodes at 143.0 ± 5.7 tok/s (43.1 GB/s)—both at the memory-bandwidth roofline, with xFermat cutting perplexity −22.7% (17.99 vs. 23.27 PPL) and operating at decode parity in 4-bit (181.8 vs. 173.4 AWQ / 153.3 native, 15.20 vs. 16.06 PPL). The speedup claim is formally withdrawn.
  • Withdrawn Swap Claim ("1.5B swap-throttled to 21.3 tok/s"): Previous documentation misclassified 1.5B BF16 as swap-throttled. At 2,944.4 MB (~2.88 GiB), Qwen2.5-1.5B BF16 fits below the 5.33 GiB working-set limit and streams steadily at 25.8 ± 0.1 tok/s (79.8 GB/s), which 4-bit quantization accelerates to 67.0 tok/s (matching bandwidth scaling). The genuine memory swap cliff occurs on Qwen2.5-3B (5,886 MB / ~5.75 GiB BF16 static weights, strictly exceeding the 5.33 GiB limit on 8 GB Macs and causing OOM allocation failure), which xFermat rescues at 1,804 MB (4b, 27.8 tok/s, 9.43 PPL), 1,474 MB (3b, 29.1 tok/s, 10.42 PPL), and 1,193 MB (mixed, 56.9 tok/s, 16.01 PPL).
  • 2-Bit VPTQ + NaN-Guarded PV-Tuning (surgery.py): Fixed a training step overflow in AdamW block PV-tuning (math.isfinite gradient/loss checks + finite-safe MSE rollback) enabling stable 5.00× sub-3-bit compression on Qwen2.5-1.5B (16.63 WT2 PPL, 589.0 MB, 51.0% avg 4-task MC accuracy, 34.4 tok/s) alongside Qwen2.5-0.5B PV-tuning (26.73 WT2 PPL, 234.6 MB) and E2E-QP (79.36 WT2 PPL).
  • Sub-Cubic Tensors, Ternary & CRT Dense Latency: At dense matrix shapes on Apple Silicon, Winograd-Strassen, AlphaEvolve rank-48, 1-slice ternary Metal, and explicit GPU CRT FP64 are slower than native vendor GEMMs. FermatEngine(mode="auto") and backend="auto" enforce empirical median timing + 10% hysteresis so slow academic primitives never leak into default inference paths.
  • Live KIVI Decode Speed Scope: On Qwen2.5-1.5B at L=4096/8192, Mixed KIVI (3.16 bpw) shrinks KV RAM 5.06× while operating slower than FP16 at 4K (42.9 vs. 51.9 tok/s) and at parity at 8K (43.3 vs. 43.6 tok/s). Microbenchmark speedups up to 2.34× occur specifically in the 4-bit G=7, D=64 synthetic kernel (which drops Passkey accuracy to 1/5 at 16K), whereas 1.5B G=6, D=128 mixed KIVI runs 0.41–0.67× SDPA in isolated kernel timing while delivering critical capacity headroom.

CRT Moduli Note: Exact modular GPU FP64 (rns_ozaki.py) uses 24 pairwise-coprime moduli (packed into 3 × 50-bit Garner limbs) and 11-modulus GPU slicing across p=25..45 and κ=1012.

06 / ADOPTION & ROADMAP

Production Configuration Matrix & Next Milestones

Deployment Goal Recommended CLI Command / Config Verified Production Profile
Near-lossless 4-bit inference xfermat compress MODEL --method hadamard_4bit 181.8 tok/s (0.5B), 15.20 WT2 PPL, 0.55 s load, zero Hadamard overhead
Maximum accurate compression (default) xfermat compress MODEL --method hadamard_3bit 17.99 WT2 PPL (0.5B) vs. 23.27 AWQ, 10.42 PPL (3B), 1.47 GB RAM
Ultra-compact swap cliff unlock xfermat compress MODEL --method mixed_2_3bit 1.19 GB RAM · 56.9 tok/s (3B) · 2-bit down_proj + 3-bit elsewhere
16K Long-context memory relief xfermat run ./dir --kv-bits 2 --kv-outlier-ratio 0.625 3.16 bpw Mixed KIVI · 88.6 MB @ 16K · 5/5 Passkey (--kv-bits 4 = 126 MB, 1/5 @ 16K)
Sub-3-bit extreme research xfermat compress MODEL --method vptq_2bit --pv-tune-steps 40 26.73 WT2 PPL (0.5B) · 4.02× compression (234.6 MB)

Upcoming v0.8.0 Milestones: (1) Completion of multi-model VPTQ 2-bit scaling runs across 1.5B, 3B, and 7B architectures; (2) Full 32K context evaluation pairing Mixed KIVI with GQA Split-KV decoders on 16 GB Apple Silicon; (3) MOHAWK hybrid distillation scaling from 0.5B to 1.5B and 3B backbones.

07 / COMPLETE CITATION APPENDIX

All 18 Scientific Foundations (15 Peer-Reviewed + 3 arXiv Preprints)

# Paper & Venue / arXiv Role in xFermat Architecture
01Ootomo, Ozaki & Yokota (2024) — DGEMM on Integer Matrix Multiplication Unit (2306.11975) · IJHPCA 2024Ozaki Scheme I split accumulation (rns_ozaki.py)
02Uchino, Ozaki & Imamura (2025) — Ozaki Scheme II: Modular FP GEMM (2504.08009) · arXiv 2025150-bit Chinese Remainder Theorem GPU FP64 reconstruction
03Kauers & Moosbauer (2023) — Flip Graphs for Matrix Multiplication (2212.01175) · ISSAC 2023Low-rank bilinear decompositions (bilinear.py)
04Novikov et al. (2025) — AlphaEvolve: Scientific & Algorithmic Discovery (2506.13131) · arXiv 2025Rank-48 complex 4×4 matrix decompositions
05OpenTensor Contributors (2024) — OpenTensor (2405.20748) · arXiv 2024Real & F_2 tensor factorizations
06Dao et al. (2022) — Monarch: Expressive Structured Matrices (2204.00595) · ICML 2022O(D√D) structured MLPs for scratch/distillable models
07Tseng et al. (2024) — QuIP#: Hadamard Incoherence & Lattice Codebooks (2402.04396) · ICML 2024On-chip Metal FWHT & antipodal 4D vector codebooks
08Dao et al. (2022) — FlashAttention: Fast and Memory-Efficient Exact Attention (2205.14135) · NeurIPS 2022IO-aware SRAM tiling & Split-KV GQA decode
09Lavin & Gray (2016) — Fast Algorithms for CNNs (1509.09308) · CVPR 2016Winograd minimal filtering & CRT transforms
10Dao & Gu (2024) — Transformers are SSMs (Mamba-2 SSD) (2405.21060) · ICML 2024Chunked Metal forward/reverse SSD scans (ssd_mamba.py)
11Liu et al. (2025) — SpinQuant: LLM Quantization with Learned Rotations (2405.16406) · ICLR 2025Basis for offline RMSNorm-folded random Hadamard rotations
12Frantar et al. (2023) — GPTQ: Accurate Post-Training Quantization for Generative Transformers (2210.17323) · ICLR 2023Cholesky inverse-Hessian error cancellation (structured.py)
13Liu, Wen, Wang et al. (2024) — VPTQ: Extreme Low-Bit Vector Post-Training Quantization (2409.17066) · EMNLP 2024Hessian-weighted 4D vector quantization extended with SRAM MAP + PV-Tuning
14Egiazarian et al. (2024) — AQLM: Extreme LLM Compression via Additive Quantization (2401.06118) · ICML 2024Frozen-index differentiable block-wise codebook reconstruction
15Shao et al. (2024) — OmniQuant: Omnidirectionally Calibrated Quantization for LLMs (2308.13137) · ICLR 2024Joint block scale, clipping & RMSNorm tuning (finetune_vq_blocks)
16Liu, Yuan et al. (2024) — KIVI: Tuning-Free 2-Bit KV Cache (2402.02750) · ICML 2024Block-grouped per-channel Keys & per-token Values (FermatKIVICache)
17Bick, Li, Xing, Kolter & Gu (2024) — Transformers to SSMs (MOHAWK) (2408.10189) · NeurIPS 2024Pretrained layer SSD conversion & KL teacher distillation (distill.py)
18Wang, Paliotta, May, Rush & Dao (2024) — The Mamba in the Llama: Distilling & Accelerating Hybrid Models (2408.15237) · NeurIPS 2024Hybrid attention-to-SSM conversion roadmap