Download PAPER.md from Logn001/odpe-progressive-quantization: direct link, hf CLI and curl.
- Browser
- Download file 24.5 kB
-
https://huggingface.co/Logn001/odpe-progressive-quantization/resolve/main/PAPER.md
- Command line
-
hf download hf://Logn001/odpe-progressive-quantization/PAPER.md
-
curl -L -o PAPER.md https://huggingface.co/Logn001/odpe-progressive-quantization/resolve/main/PAPER.md
Oscillation-Driven Precision Expansion: Growing Neural Network Precision from 1-Bit to FP32 via Neuron Block Reallocation
Author: Левон Гиносян (Levon Ginosyan / Logn001)
Abstract
Most neural network quantization methods start from full-precision (FP32/BF16) models and compress weights downward via Post-Training Quantization (PTQ) or Quantization-Aware Training (QAT). We investigate the inverse paradigm—**Oscillation-Driven Precision Expansion (ODPE)**—in which neurons initialize at ultra-low precision (1-bit scaled binary or tier-protected 2/4-bit) and selectively grow along a progressive bit-width ladder (1 → 2 → 4 → 8 → 16 → 32 [FP32]) during training. A PrecisionRouter monitors parameter oscillations near quantization decision boundaries, promotes unstable neurons, physically reallocates them into contiguous homogeneous bit-width compute blocks, and verifies each upgrade on the current mini-batch.
We evaluate five progressive variants against an identical FP32 baseline (46.85% test accuracy, 2.0297 test cross-entropy loss) on a controlled bilingual Natural Language Inference task (facebook/xnli, Russian and English, 50,000 training pairs, 10,020 test pairs, 10.85M parameters per model):
- ODPE V1 (No Penalty): Reaches
45.12%test accuracy at15.71mean linear bits (2.04×compression), with40.92%of weights reachingFP32and exhibiting mid-training instability from late block migrations. - ODPE V2 (Causal Rollback + Excess-Bit Penalty): Reverts
18,305unjustified promotions via deterministiceval()/no_gradverification, slashing mean bit-width to5.82bits (5.50×compression; only7.64%atFP32) while improving test accuracy over V1 to45.87%. - ODPE V3 (Two-Stage Discovery + Fixed-Structure Regularized Calibration): Discovers precision structure during Stage 1 (
Epochs 1–4), then freezes blocks in Stage 2 (Epochs 5–8) with regularization (dropout=0.15,label_smoothing=0.08). V3 matchesFP32at Epoch 8 (46.75%) with 43% lower test loss (1.1599) at3.92×compression (8.15bits), reaching47.95%on its Epoch 5 validation checkpoint. - ODPE V4 (Attention/Head Protection + Adaptive Freeze + EMA): Protects attention (
2-bit) and classifier (4-bit), eliminating V3's Epoch 1 cold start (44.06%vs.35.12%val) and peaking early at47.95%val (Epoch 2), reaching46.83%at Epoch 8 EMA (8.57bits,3.73×). However, an unmatched Stage-1 cosine horizon and missing Stage-1 best-checkpoint restoration degraded its Stage-2 start (47.24%best checkpoint). - ODPE V5 (Strict Verify-Loop Rollback + Best-S1 Restore + EMA Calibration): Closes the verify-loop causal-rollback bypass, requires continuous cross-entropy justification (
strict_loss_gain_rollback), aligns Stage-1 LR decay, restores Stage 1's best validation checkpoint (Epoch 3,49.44%val) into regularized Stage-2 calibration (cal_lr=1.2e-4,dropout=0.15,weight_decay=0.03,label_smoothing=0.08), and evaluates RAW vs. EMA (0.99) on validation. V5 cuts mean linear bit-width to3.39bits (9.44×compression; only1.82%atFP32) while beatingFP32on BOTH Epoch 8 final test accuracy (48.11%vs.46.85%,+1.26pp;1.1441test loss) and its Epoch 6 validation checkpoint (48.76%,+1.91pp overFP32).
1. Introduction
Low-bit Quantization-Aware Training (QAT) commonly suffers from weight oscillation, where parameters near zero or quantization thresholds repeatedly flip across adjacent grid points under Straight-Through Estimator (STE) gradients. Prior work largely suppresses oscillations via regularization or freezes oscillating parameters at fixed low precision.
Instead of forcing every neuron into a uniform bit-width or suppressing oscillations uniformly, we ask whether a router can use oscillations as a bottom-up capacity demand signal—starting neurons at ultra-low precision and expanding only where needed—and how causal rollback inside verification, two-stage checkpoint handoff, structural protection, and Weight EMA govern accuracy, calibration loss, and compression.
Our contributions are:
- Bottom-Up Progressive Bit Ladder (
1 → 2 → 4 → 8 → 16 → 32): Starting linear neurons at1-bitscaled binary values with a 4-level non-zero2-bitgrid preventing small-weight zero-collapse. - Neuron-Level Homogeneous Block Reallocation: Grouping output neurons into contiguous homogeneous bit-width buckets (
reallocate_blocks) so metadata scales per neuron and execution separates cleanly by precision tier. - Causal Rollback & Verify-Loop Bit Accounting (V2 → V5): Measuring exact
old_bitsvs.new_bitsprediction gain in deterministiceval()mode, closing secondary verify-loop upgrade cascades (enforce_rollback_in_verify), and preventing 1-sample metric noise from bypassing cross-entropy bit-cost penalties (strict_loss_gain_rollback). - Two-Stage Fixed-Structure Calibration with Best-S1 Handoff (V3 → V5): Protecting sensitive attention/head initialization (
protect_attention_and_head), stopping Stage 1 upon router convergence or validation-loss rise, restoring Stage 1's peak checkpoint into regularized Stage-2 calibration, and selecting RAW vs. Weight EMA (0.99) via validation.
2. Related Work
- Multi-Precision & Nested Checkpoints: Any-Precision Deep Neural Networks (Yu et al., arXiv:1911.07346), AdaBits (Jin et al., arXiv:1912.09666), and MatQuant (Nair et al., arXiv:2502.06786) allow a single checkpoint to execute at multiple bit-widths at runtime, generally switching precision globally or slicing downward from higher-bit integers.
- Bit-Plane & Residual Binarization: AnyBCQ and RaBiT decompose weights into binary codes or residual
{-1, +1}paths to refine precision progressively. - Content-Aware & Salient Mixed Precision: CADyQ (Hong et al., arXiv:2207.10345) allocates per-input precision in super-resolution; LLM.int8(), AWQ, SpQR, and PB-LLM show that protecting only
~0.1%–5%of salient/outlier weights preserves performance when compressing large models to1–4bits. Notably, ODPE V5 autonomously converges to protecting1.82%of linear weights atFP32and keeping87.58%in1–4bits. - QAT Weight Oscillations: Nagel et al. (ICML 2022, "Overcoming Oscillations in Quantization-Aware Training") characterized weight flipping across low-bit (
≤4-bit) grids and mitigated it via oscillation dampening and iterative freezing. ODPE turns oscillation into a precision-expansion trigger with causal rollback.
3. Method
3.1 Progressive Mixed-Precision Quantization
For each output neuron row w with assigned bit-width b ∈ {1, 2, 4, 8, 16, 32}, forward quantization uses Straight-Through Estimation (w_eff = w + (q_b(w) − w).detach()):
b = 1(Scaled Binary):q_1(w) = α · sign_+(w), whereα = mean(|w|)per neuron row.b = 2(4-Level Symmetric Non-Zero Grid):q_2(w) = (clamp(round(w / Δ − 0.5), −2, 1) + 0.5) · Δ, withΔ = max(|w|) / 1.5, yielding{−1, −1/3, +1/3, +1} · max(|w|).b ∈ {4, 8, 16}(Uniform Symmetric):q_b(w) = clamp(round(w / Δ_b), −q_max, q_max) · Δ_b, whereq_max = 2^(b−1) − 1andΔ_b = max(|w|) / q_max.b = 32(FP32): Exact identityq_32(w) = w.
3.2 Momentum-Aware Oscillation Routing & Block Reallocation
At step t, let Δw_t = w_t − w_{t−1}. An element is flagged oscillating if its update direction reverses (Δw_{t−1} · Δw_t < 0, both exceeding min_delta) or crosses zero (w_{t−1} · w_t < 0) inside |w| ≤ 0.1. Neuron i oscillates when at least fraction τ (neuron_osc_threshold) of its weights oscillate. Using score_t[i] = decay · score_{t−1}[i] + 1{oscillating[i]}, neurons exceeding patience + penalty_boost[i] (after warmup_steps and outside cooldown) advance on BIT_LADDER and trigger reallocate_blocks().
3.3 Causal Rollback & Excess-Bit Penalty (V2)
Whenever num_promoted > 0, the router switches the model to deterministic eval() mode (no_grad) and evaluates the same weights on batch B_t under old_bits (pre_loss, pre_metric) and new_bits (post_loss, post_metric). V2 keeps the promotion if pre_loss − post_loss ≥ min_loss_gain + bit_cost_weight · Δb_norm (with Δb_norm = (avg_bits_after − avg_bits_before) / 31.0) or post_metric > pre_metric. Unjustified promotions revert to old_bits with cooldown = 12 steps and penalty_boost += 0.5.
3.4 Two-Stage Fixed-Structure Calibration (V3) & V4 Ablation
V3 splits the 8-epoch budget into Stage 1 (Epochs 1–4, V2 routing on 4-epoch cosine LR) and frozen Stage 2 (Epochs 5–8, cal_lr = 1.5e-4, dropout = 0.15, weight_decay = 0.03, label_smoothing = 0.08). V4 added attention/head initialization protection (attn=2, head=4), auto-freeze in Epochs 3–5, bit_cost_weight = 0.007, softer Stage-2 regularization (label_smoothing = 0.03), and ema_decay = 0.995. Auditing V4 exposed an 8-epoch Stage-1 cosine LR horizon that kept Stage 1 too hot through Epoch 5, no restoration of Epoch 2's 47.95% peak before freezing, weak Stage-2 regularization, and an unchecked verify-loop cascade bug shared across V1–V4.
3.5 Strict Verify Rollback & Best-S1 Handoff Calibration (V5)
V5 retains protect_attention_and_head=True (attn_init_bits=2, head_init_bits=4, FFN 1-bit) and resolves every V1–V4 failure mode:
- Closed Verify-Loop Rollback Bypass (
enforce_rollback_in_verify=True): Secondary promotions triggered insidewhile verify_itersundergo the same deterministiceval()causal check instead of ascending unchecked towardFP32. - Strict Continuous Loss Justification (
strict_loss_gain_rollback=True): Promotions must strictly satisfypre_loss − post_loss ≥ min_loss_gain + 0.008 · Δb_norm, blocking 1-sample (1/256) discrete batch accuracy flips from excusing higher loss. - Matched Stage-1 Cosine LR & Overfit-Aware Freeze: Stage 1 schedules LR over
max_stage1_epochs = 5with gentlewarmup_ratio = 0.14(137warmup steps) and freezes inside Epochs 3–5 upon routing convergence (promo_rate < 0.008, bits_delta < 0.05) or early validation-loss rise (val_loss > prev_val_loss + 0.025). In our run, structure settled at3.39bits by Epoch 3 and froze cleanly after Epoch 4 (promo = 1). - Best Stage-1 Checkpoint Restoration: Immediately upon freezing, V5 restores
best_s1_state(Epoch 3:val_acc = 49.44%,val_loss = 0.9981,avg_bits = 3.39) together with its exact block permutations before entering Stage 2. - Regularized Stage-2 Calibration with Validation-Selected EMA: Stage 2 trains inside the frozen
3.39-bit layout atcal_lr = 1.2e-4,dropout = 0.15,weight_decay = 0.03,label_smoothing = 0.08, maintainingema_decay = 0.99and selecting between RAW and EMA weights each epoch strictly onval_loader(EMAwon all 4 Stage-2 epochs).
4. Experimental Setup
- Dataset (
10MBenchmark,facebook/xnli,ru+en):50,000training pairs (25,000 ru + 25,000 en),4,980validation (2,490per language),10,020held-out test (5,010per language),2,000-pair seen-training probe, plus an untouched20,000-pair disjoint stress split ([50k..60k)per language). - Dataset (
100MExpanded Multi-Source Benchmark,200,000training pairs):60kRU +60kEN non-stressfacebook/xnli,40kRU +15kEN disjointMoritzLaurer/multilingual-NLI-26lang-2mil7(ANLI/FEVER/LingNLI/WANLI), and25kENstanfordnlp/snli, evaluated on the exact same4,980validation,10,020test, and20,000disjoint stress splits. - Shared Tokenizer & Model (
BilingualNLITransformer): ByteLevel BPE (vocab_size = 10,000,max_len = 128),6Pre-LN Transformer blocks,d_model = 320,n_heads = 8,d_ff = 1280,dropout = 0.1(Stage 2 V3/V5:0.15; V4:0.12), CLS + mean pooling head (10,846,723total parameters;7,578,560adaptive linear parameters across 38ProgressiveLinearlayers). - Training Parity: Identical initial
state_dict(seed = 42), identical shuffled batch order (batch_size = 256),8total epochs,AdamW, gradient clipping1.0, on one NVIDIA GeForce RTX 5070 Ti (16,303 MiB). - Router Hyperparameters:
oscillation_band = 0.1,min_delta = 1e-5,osc_decay = 0.70,oscillation_patience = 1.95,warmup_steps = 30,neuron_osc_threshold = 0.11,max_verify_iters = 2;rollback_min_loss_gain = 1e-4,rollback_cooldown_steps = 12,rollback_patience_penalty = 0.5;rollback_bit_cost_weight=0.005(V2/V3),0.007(V4),0.008(V5).
5. Results
5.1 6-Way Performance & Compression Comparison
| Metric | Classical FP32 | Adaptive V1 | Adaptive V2 | Adaptive V3 (Ep. 8 / Best Ep. 5) | Adaptive V4 (Ep. 8 / Best Ep. 7) | Adaptive V5 (Ep. 8 / Best Ep. 6) |
|---|---|---|---|---|---|---|
| Peak Val Accuracy | 49.88% (Ep. 4) | 46.77% (Ep. 2) | 47.81% (Ep. 5) | 47.89% (Ep. 4) | 47.95% (Ep. 2 S1) | 49.88% (Ep. 6 EMA) |
| Final Val Accuracy (Ep. 8) | 48.31% | 44.46% | 45.80% | 46.77% | 46.10% | 49.26% |
Test Accuracy (n=10,020) |
46.85% | 45.12% | 45.87% | 46.75% / 47.95% | 46.83% / 47.24% | 48.11% / 48.76% |
Test Accuracy (ru, n=5,010) |
46.19% | 44.07% | 45.37% | 45.71% / 47.09% | 45.99% / 46.45% | 46.99% / 47.68% |
Test Accuracy (en, n=5,010) |
47.50% | 46.17% | 46.37% | 47.78% / 48.82% | 47.66% / 48.02% | 49.24% / 49.84% |
| Test Cross-Entropy Loss | 2.0297 | 1.8084 | 1.6734 | 1.1599 / 1.0561 | 1.3855 / 1.3095 | 1.1441 / 1.0790 |
Seen-Train Probe (n=2,000) |
94.60% | 88.65% | 87.20% | 71.20% / 63.70% | 83.50% / 80.50% | 75.50% / 70.75% |
| Mean Linear Bit-Width | 32.00 | 15.71 | 5.82 | 8.15 | 8.57 | 3.39 |
| Linear Parameter Footprint | 28.91 MB | 14.19 MB (2.04×) |
5.26 MB (5.50×) |
7.37 MB (3.92×) |
7.74 MB (3.73×) |
3.06 MB (9.44×) |
| Training Wall Time | 198.8s | 682.1s | 646.8s | 535.2s (46.8s/ep S2) |
589.7s (~46.2s/ep S2) |
547.5s (~48.4s/ep S2) |
| Peak VRAM | 4,662 MB | 5,049 MB | 5,053 MB | 5,178 MB | 5,262 MB | 5,310 MB |
5.2 Bit-Width Distribution & Router Telemetry (7,578,560 Linear Parameters)
| Tier / Telemetry | Adaptive V1 | Adaptive V2 | Adaptive V3 | Adaptive V4 | Adaptive V5 |
|---|---|---|---|---|---|
1-bit |
16.47% (1,248,000) |
33.06% (2,505,280) |
28.51% (2,160,640) |
24.86% (1,883,840) |
38.87% (2,945,920) |
2-bit |
15.89% (1,204,480) |
25.45% (1,928,960) |
21.85% (1,655,680) |
23.27% (1,763,520) |
31.31% (2,372,800) |
4-bit |
12.46% (944,320) |
17.21% (1,304,320) |
16.46% (1,247,680) |
16.61% (1,258,560) |
17.40% (1,318,720) |
8-bit |
8.11% (614,400) |
10.21% (774,080) |
11.06% (838,080) |
11.86% (898,880) |
7.50% (568,320) |
16-bit |
6.15% (465,920) |
6.43% (487,040) |
7.44% (563,520) |
7.78% (589,760) |
3.10% (234,880) |
FP32 (32-bit) |
40.92% (3,101,440) |
7.64% (578,880) |
14.69% (1,112,960) |
15.62% (1,184,000) |
1.82% (137,920) |
| Net Promotions / Rollbacks | 57,250 / 0 |
28,628 / 18,305 |
36,043 / 14,090 |
37,599 / 16,859 |
19,813 / 31,673 |
| Block Reallocations | 10,671 |
9,966 |
6,051 |
9,617 |
8,014 |
5.3 Analysis
- Explaining V1's Dual-Jump Instability: In V1,
48,381promotions and270extra verification steps in Epoch 1 yielded an early lead (44.58%val vs.43.73%FP32), but2,862late promotions in Epochs 3–4 shifted quantization grids underAdamWmomentum, dropping validation accuracy to44.72%before partial recovery in Epoch 5. - Impact of Causal Rollback (V2): V2 rejected
18,305unjustified upgrades, droppingFP32occupancy to7.64%(5.50×compression,5.82bits) and curing V1's mid-training dip (45.87%test). - Impact of Two-Stage Calibration (V3) & V4 Diagnosis: Freezing weights at Epoch 4 and calibrating with
dropout = 0.15andlabel_smoothing = 0.08gave V346.75%test accuracy at Epoch 8 (1.1599loss) and47.95%on its Epoch 5 checkpoint. V4 solved Epoch 1 cold start (44.06%) and hit47.95%validation at Epoch 2, but an 8-epoch Stage-1 schedule kept LR hot through Epoch 5 (val_loss = 1.2095), entered Stage 2 without restoring Epoch 2 weights, and under-regularized (label_smoothing = 0.03), stalling at46.83%Ep. 8 /47.24%Best. - Pareto Dominance of V5: Enforcing causal rollback inside verify iterations (
enforce_rollback_in_verify) and requiring continuous loss improvement (strict_loss_gain_rollback) raised total rollbacks to31,673, pruningFP32weights down to1.82%and leaving87.58%at1–4bits (3.39mean bits =9.44×compression). Structurally,protect_attention_and_head=Trueinitialized the24attention projections (2,457,600params,32.43%) andhead_proj(204,800params,2.70%) at non-zero2-bit,head_out(960params,0.01%) at4-bit, and the12FFN matrices (4,915,200params,64.86%) at1-bit; because V5's final1-bitcount is2,945,920,59.94%of all FFN parameters remained at1-bit. Paired with matched Stage-1 LR, best-S1 checkpoint restoration (Epoch 3,49.44%val,0.9981val loss), V3-strength Stage-2 regularization, and validation-checked EMA (decay = 0.99, outperforming raw Stage-2 weights in all 4 Stage-2 epochs:49.70%,49.88%,49.16%,49.26%), V5 achieved48.11%Test Accuracy at Epoch 8 (+1.26pp aboveFP32) and48.76%at its Epoch 6 checkpoint (+1.91pp aboveFP32) across both Russian and English.
5.4 Independent Disjoint-Fold & Calibration Validation (seed=123)
To verify generalization independently of seed=42, validate_fp32_vs_v5.py trained Classical FP32 and ODPE V5 on 50,000 strictly non-overlapping facebook/xnli training pairs ([25k..50k] per language) and evaluated both Epoch 8 and Best-Validation checkpoints symmetrically on Test (10,020) and an untouched 20,000-pair Stress Split ([50k..60k]):
- Extreme Compression Confirmed (
2.61bits =12.27×): Only1.25%of V5 linear weights reachedFP32(92.07%remained at1–4bits:54.69%1-bit,26.27%2-bit,11.11%4-bit), cutting footprint from28.91 MBto2.36 MB. - Epoch-8 Endpoint Superiority: V5 beat
FP32on bothTest (10,020)(47.69%vs.47.48%, Macro-F10.4752vs.0.4708) andStress 20k(46.04%vs.45.96%, long-seq44.45%vs.44.38%), while cutting stress cross-entropy loss by 31% (1.3014vs.1.8998),10-bin ECEby 32% (0.2623vs.0.3871), Brier score (0.7482vs.0.8766), and wrong-prediction confidence (69.87%vs.82.75%). - Symmetric Best-Val Comparison: On
Test (10,020), V5 (Best@4) virtually matchedFP32(Best@3) on accuracy (48.98%vs.49.14%) while achieving higher balanced Macro-F1 (0.4881vs.0.4770, whereFP32class-0 F1 dropped to0.3629). WhenFP32stopped at its calibratedEpoch 3minimum (1.0300stress loss,0.1018stress ECE),FP32 Best@3outperformed V5Best@4onStress 20k(48.76%vs.47.33%) because_val_scorein V5 selected Epoch 4 (val_acc=47.69%,val_loss=1.1228) over Epoch 3 (val_acc=47.37%,val_loss=1.0334) due to higher rawval_accdespite risingval_loss.
5.5 Systematic 10M Refinements: Adaptive V5.1 → V5.8
To resolve the V5 checkpoint-selection and calibration limitations before scaling up, adaptive_v5_series.py evaluated eight calibrated iterations on the seed=42 50k XNLI split with symmetric 20,000-pair out-of-sample stress testing:
- V5.3–V5.5 (Cost Shaping, Learnable Tier Scales, Salience Pruning, EMA Self-Distillation): Differentiating verify costs by tier (
attn=0.35,head=0.25,ffn=1.15), learning per-tier LSQ scales (log_tier_scales), clipping STE gradients cleanly, and consolidating low-salience neurons (consolidate_down) compressed10.85Mmodels to2.10–2.24bits (14.29×–15.21×) while raising Test BestVal to50.10%and Stress BestVal to49.36%. - V5.6 (
Group64 + RMSNorm + RoPE + QK-Norm + SwiGLU,10.67M): Switching togroup_size=64scaling and modern quantization-friendly transformer blocks jumped Test BestVal by+2.38pp to52.48%(51.14%Stress BestVal), but left Attention at5.94b(3.22btotal) and raised late-epoch ECE (0.0887/0.1017). - V5.7 (
BitNet 1.58-bit Ternary + Cosine Curriculum + 2-Batch Verify): Introducing the1.585-bit(log2(3)) ternary rung(1.0 → 1.585 → 2 → 4 → 8 → 16 → 32), starting attention at1.585b(attn_cost=0.65), scheduling verify cost via cosine curriculum, and evaluating rollbacks on 2 micro-batches reached53.14%Test BestVal and51.67%Stress BestVal at2.58bits (12.41×). - V5.8 (
8b/16bCeiling + Stage-2SAM+ Asymmetric Embedding Reg + S1 Label Smoothing): Capping backbone layers at8-bit(head at16-bit), perturbing weights via Sharpness-Aware Minimization (rho=0.035) around quantization thresholds during Stage 2, damping embedding memorization (lr×0.35,wd=0.08), and smoothing Stage-1 labels (0.05) achieved1.94mean weight bits (16.48×,1.73 MBvs28.44 MB;2.19b / 14.60×including g64 scales) with0%FP32 weights,52.04%Stress Ep. 8 (+5.68pp above FP32 Ep. 846.36%),52.99%Test BestVal, and0.0522/0.0568BestVal ECE.
5.6 Scaling to 100M Parameters (200k Multi-Source NLI: FP32 vs. V5 vs. V6)
Scaling raw Adaptive V5 from 10M to 100.5M initially suffered from row-width dilution across d_ff=3424, stalling at 1.38b (48.89% test vs. 50.34% FP32). Applying the complete V5.8 technology stack onto Adaptive V6 100M (99.17M params, d_model=768, n_layers=12, n_heads=12, d_ff=2240, sam_interval=3) across 200,000 multi-source NLI pairs cleanly inverted this gap:
Metric (100M, 200k Multi-Source, 4 Epochs) |
Classical FP32 (100.51M) |
Adaptive V5 (100.51M) |
Adaptive V6 (99.17M, V5.8 Stack) |
|---|---|---|---|
| Mean Weight Bit-Width / Memory | 32.00b / 353.26 MB (1.00×) |
1.38b / 15.29 MB (23.11×) |
1.23b / 13.38 MB (26.07×) (1.48b / 21.66× w/ g64 scales) |
Peak Validation (4,980) |
50.20% (Ep. 3) |
48.43% (Ep. 3) |
53.41% (Ep. 3, val_loss=0.9419) |
Test (10,020, Final / BestVal) |
50.34% / 49.70% |
48.38% / 48.89% |
52.10% / 52.61% (+2.91 pp BestVal) |
Unseen Stress 20,000 (Final / BestVal) |
50.39% / 50.31% |
50.83% / 50.03% |
54.51% / 54.22% (+4.12 pp Ep. 4) |
Macro-F1 (Test Best / Stress Final) |
0.4858 / 0.5054 |
0.4755 / 0.5096 |
0.5224 / 0.5444 |
10-bin ECE (Test Ep. 4 / BestVal) |
0.0278 / 0.0216 |
0.0372 / 0.0243 |
0.0173 / 0.0116 |
Crucially, Adaptive V6 allocated 92.31% of Attention and 92.40% of Head parameters to 1.585-bit ternary (1.67b and 1.69b averages) and 98.16% of SwiGLU FFN parameters to 1.0-bit (1.02b average) with zero parameters in 16-bit or FP32, packing cleanly into a 31.30 MB standalone .safetensors checkpoint (pack_quantized_state_dict) with exact accuracy parity (52.61% Test / 53.43% Val).
6. Limitations & Future Work
- Emulated Mixed-Precision Training Speed vs. Native Kernels: Although Stage 2 inference unpacks seamlessly (
prequantized=True) into zero-overhead linear calls and fused block concatenation reduces GEMM passes during Stage 1, custom CUDA/Triton sub-byte ternary/binary kernels are needed to realize native wall-clock speedups proportional to26.07×bit compression. - Pretraining Scale: While
Adaptive V6establishes strong scaling from10M/50kto100M/200kscratch NLI, evaluating ODPEV5.8/V6on billion-parameter (1B–2B) causal language modeling over trillion-token corpora remains an important next milestone.