Preserving cultural heritage with post-training quantized INT8 YOLO26. Achieving sub-45ms latency and ultra-lightweight 1.8MB weights for web, mobile, and offline embedded execution.
James Arnold Nogra*
Data Science Program, UP Diliman
Rachelle Sambayan
Institute of Mathematics, UP Diliman
Nano ¼ INT8 weights; 50% footprint reduction without losing architectural integrity.
Tested on iPhone 16 Pro (Web/TensorFlow.js/WASM). Under 240ms on older devices.
Nano ½ mAP50-95 with only a negligible 0.0064 delta drop from FP32 baseline.
Covers native letters, kudlit variations, and virama diacritics in 3,094 annotations.
Precision vs. Footprint Benchmark
Results from 5-fold stratified cross-validation on multi-object composite capture boards comparing full FP32 vs. Post-Training INT8 Quantization.
FP32 Baseline vs. Quantized INT8
Storage reduction after Symmetric INT8 clipping
Averaged across 25 real-world inference runs (warm-run timings)
| Device Target | Nano 1/16 (INT8) | Nano 1/4 (INT8) | Nano 1/2 (INT8) | Small (INT8) | Small (FP32) |
|---|---|---|---|---|---|
| iPhone 16 Pro | 45.10 ms | 47.00 ms | 54.00 ms | 57.40 ms | 124.60 ms |
| Samsung Fold 6 | 80.55 ms | 87.64 ms | 92.70 ms | 110.28 ms | 144.42 ms |
| Ryzen 7 8745H | 57.72 ms | 57.72 ms | 59.66 ms | 76.04 ms | 196.46 ms |
| iPhone 11 (2019) | 155.80 ms | 161.60 ms | 183.40 ms | 238.80 ms | 240.60 ms |
To enable low-power processing without specialized hardware, we introduced four custom channel configurations (Nano ½, Nano ¼, Nano ⅛, and Nano ¹/₁₆) downscaling feature extraction channels while retaining C3k2, SPPF, and C2PSA attention blocks.
MuSGD Optimizer: Trained using Stochastic Gradient Descent with Muon optimization combining momentum dynamics and Newton-Schulz matrix factor adjustments.
Symmetric Quantization: Weights scaled symmetrically via S = max(|r_max|, |r_min|) / 127 and clipped into [-127, 127] for maximum zero-point efficiency.
Multi-Object Composite Boards: Synthetic and real-world tarpaulins, street signs, and handwriting combined to train dense multi-label bounding boxes in one pass.
Class-wise analysis in Table IV reveals the primary source of classification degradation: minute diacritic marks altering phonemes between identical base glyphs.
Base glyph. Precision: 93.5% | Recall: 75.0%
Cancels vowel. Sub-pixel crosses cause recall drop to 50%.
Top dot alters vowel from /a/ to /i/ or /e/. mAP50-95: 0.532.
Open your camera or upload sample handwriting images. The client-side quantized model performs full inference right inside your browser without backend GPUs.
@article{nogra2026baybayin,
title={Real-Time Baybayin Script Detection on Edge Devices Using INT8 Quantized YOLO26},
author={Nogra, James Arnold and Sambayan, Rachelle},
journal={University of the Philippines Diliman},
year={2026},
publisher={Kaggle Notebooks / arXiv}
}