Characterization of quantized inference with transformer encoders on low power CPUs
Transformers, particularly large language models (LLMs), are revolutionizing applications in natural language processing and computer vision but at a high cost in memory, energy, and computational resources. Quantization has emerged as an effective compression method to alleviate these demands, reducing the bitwidth of model data and arithmetic precision to enable efficient inference on resource-constrained devices. This paper focuses on optimizing inference with transformer encoders on low-power general-purpose CPUs, as those often found in edge devices. Our key contributions include exposing the critical role of linear layers within transformer encoders on CPUs with a limited number of cores; developing mixed integer precision matrix multiplication on ARM and RISC-V CPUs; and evaluating performance impact and energy savings of quantized inference. In summary, this work highlights the advantages of applying quantization to transformer encoders on current single-core and multi-core low power CPUs, offering insights for efficient LLM deployment on edge platforms.
Authors
- Sandra Catalán (ORCID: https://orcid.org/0000-0002-9321-2728)
- Enrique S. Quintana–Ort́ı (ORCID: https://orcid.org/0000-0002-5454-165X)
- Hèctor Martínez (ORCID: https://orcid.org/0000-0001-5891-4479)
- Adrián Castelló (ORCID: https://orcid.org/0000-0002-8576-8451)
Institutions
- Universitat Jaume I (ES)
- University of Córdoba (ES)
- Universitat Politècnica de València (ES)
Publication Details
- Journal
- The International Journal of High Performance Computing Applications
- Published
- 2025-07-13
- DOI
- https://doi.org/10.1177/10943420251355115
- Citations
- 1
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.48