Post-Training Quantization and Grammar-Constrained Decoding for Edge Small Language Models: A Comprehensive Technical Survey and Analytical Taxonomy
Small language models (SLMs) with fewer than fourbillion parameters can now be executed entirely on commodityCPUs and mobile systems-on-chip, enabling private, offlineinference without per-token API fees. Two engineering obstaclesdominate such deployments: (i) the memory capacity and, aboveall, the memory bandwidth of edge hardware, which post-trainingquantization (PTQ) addresses; and (ii) the unreliability of freeform generation when an agentic workflow requires machineparseable output such as JSON tool calls, which grammarconstrained decoding (GCD) addresses. Although both topicsare individually well studied, they are rarely analyzed as a singleco-designed system. This survey analyzes 61 works, comprisingpeer-reviewed papers, preprints, official technical reports, formatspecifications, and runtime documentation, organized into sixthematic groups that span quantization, constrained decoding,SLM families, and the systems foundations that connect them. Wecontribute a two-branch architectural taxonomy that organizesPTQ into weight-only, weight–activation, and KV-cache schemesand organizes GCD into finite-state, pushdown, and parser-guidedmechanisms; a unified CPU reference pipeline that places memorymapped quantized weights, KV-cache management, and logit-levelgrammar masking in one data path; an analytical cost modelrelating bits-per-weight, KV-cache footprint, and vocabularydependent mask cost; and three comparative tables coveringquantization schemes, constrained-decoding engines, and sub-4BSLM families. We conclude with open challenges, including pertoken masking latency, transient memory in non-fused quantizedattention, hardware-aware co-design, and multilingual schemaextraction.
Authors
- Muhammad Usman Raza (ORCID: https://orcid.org/0009-0008-7166-1590)
Institutions
- Khwaja Fareed University of Engineering and Information Technology (PK)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24566740
- Primary Topic
- Advanced Neural Network Applications
- Type
- preprint