breast-cancer-wisconsin-phi-lattice
Second-Generation (
v2) Release Available: Seebreast-cancer-wisconsin-phi-lattice-v2for the updatedphi-lattice v2multi-bit clinical benchmark (19.88 dB4-bit SQNR vs18.48 dBinv1and13.49 dB3-bit SQNR vs12.67 dBinv1,weights_only=Truecompatible). This repository is preserved as the first-generation (v1) 2-bit baseline for historical comparison and reproducibility.
Ultra-compact 2-bit phi-lattice quantized diagnostic classifier trained on the Breast Cancer Wisconsin (Diagnostic) dataset (30 biopsy cell-nucleus features). Uploaded for testing extreme 2-bit quantization and noise robustness.
Benchmark Results (2-bit Extreme Quantization)

| Model Variant | Bit-Width | Weight SQNR (dB) | Pruned Zero Weights (Sparsity) | Clean Test Accuracy | Noisy Test Accuracy (sigma=0.6) |
|---|---|---|---|---|---|
Baseline (FP32) | 32-bit | Reference | 0.0% | 95.10% | 92.31% |
Standard Uniform (2-bit) | 2-bit | 5.27 dB | 69.4% | 95.80% | 91.61% |
phi-lattice (2-bit, this repo) | 2-bit | 7.85 dB (+2.58 dB) | 46.9% zeroed | 95.80% | 93.01% |
Included Files
model.safetensors— 2-bitphi-latticequantized weights in standardsafetensorsformat.model_phi_packed_2bit.pt— True 2-bituint8bit-packed weights (4 weights per byte, 10.7x smaller thanFP32).config.json— Architecture metadata andStandardScalernormalization parameters for the 30 biopsy features.