detectonic-0.2.0-KTA β LittleBit-faithful sub-1-bit wave-6 model (EXPERIMENTAL)
Two-head acoustic wake CNN (squeezenet1_1 backbone, seed 7, 224x224 log-mel) trained with
LittleBit-faithful factorized binary weights (NeurIPS'25 SamsungLabs scheme adapted to
convs): every Fire conv weight W is SVD-factorized U(out x s) @ V(s x inkk) with rank-1
magnitude scales u1,u2,v1,v2, and inference runs as two +-1 GEMMs:
y = ((((im2col(x) * v2) @ sign(V)^T) * (v1*u2)) @ sign(U)^T) * u1. Activations stay float;
first conv and heads stay float. lb-ratio 0.25 -> packed weights 29 KiB (vs 0.9 MB int8).
Status
Gate FAIL β experimental, not the submission. Wave-6 job
c5w6-lb-squeezenet1_1-s7-i224-r0p25 (t4-small, 8 epochs, 168k rows): unified-val F1 0.9717,
duty 0.633 (champion detectonic M7 int8: F1 0.9973); gate required F1 >= 0.99. c5_valid F1 0.0
is the same two known hard clips the champion also misses. See WAVE6_PLAN.md /
LITTLEBIT_ANALYSIS.md in Tonic/drone-detectonic-0.1-code.
Contents
audio_wake_cnn.onnxβ float surrogate (materialized W_approx convs); quantize to int8 and run on the stock ESP-NN path (seemodel_w6kta_224_int8_fused.tfliteartifacts / board rows).best.ptβ factorized training checkpoint (U, V, u1, u2, v1, v2 per Fire conv).weights_packed.ptβ 1-bit packed weights (LittleBitbinary_packerint32-word format:U_packed/V_packed+ shapes + fp32 scales) ready for an XNOR-popcount / +-1 GEMM engine.metrics.json,preds_*.jsonl,train_log.txtβ full run record.SHA256SUMS.jsonβ artifact hashes.
Why it exists (KTA = kernel-tensor accelerated)
On-device GEMM bench (gemm_bench.h 'b' command, measured on both boards): XNOR-popcount
170 MMAC/s on ESP32-S31 PIE and 112 MMAC/s on ESP32-S3 LX7 vs ~10-80 MMAC/s for the
int8 path; a +-1 factorized forward needs ~2.8x fewer MACs at r=0.25. Projected 130-350 ms per
224x224 window if a model clears the accuracy gate. Current submission: pruned int8
detectonic-1-KTA (910.9 ms on S31, F1 0.9960).
Metrics (wave-6 job, ONNX/ORT, clean PNG)
{
"mode": "lb",
"arch": "squeezenet1_1",
"seed": 7,
"input_size": 224,
"epochs": 8,
"batch": 64,
"lr": 0.0001,
"prune_ratio": null,
"lb_ratio": 0.25,
"metrics_source": "onnx-ort-clean-png",
"c5_valid_onnx": {
"wake_F1": 0.0,
"duty": 0.25,
"cls_acc": 0.625,
"tp": 0,
"fp": 2,
"fn": 2,
"thr": 0.3
},
"binary_forward": {
"unified_F1": 0.9717,
"duty": 0.633,
"c5_F1": 0.0,
"cls_acc": 0.625
},
"params": 261637,
"onnx_mb": 2.92,
"wake_threshold": 0.3,
"c5_valid": {
"wake_F1": 0.0,
"optical_duty_cycle": 0.25,
"cls_acc": 0.625,
"thr": 0.3,
"tp": 0,
"fp": 2,
"fn": 2,
"source": "onnx-ort-clean-png"
},
"unified_val": {
"utility": 0.8768,
"thr": 0.3,
"source": "onnx-ort-clean-png",
"F1": 0.9717,
"duty": 0.6328
},
"ort_cpu_latency_ms": 4.37,
"train_rows": 168016,
"val_rows": 4000,
"dataset": "Tonic/unified-drone-acoustic-cuas"
}