Roofline-Guided Mixed Quantization and Kernel Co-Optimization for Efficient Large Language Model Inference on Arm CPUs
Deploying large language models on edge class Arm CPUs is constrained by memory capacity, bandwidth pressure, and limited low precision throughput. This paper presents a software and hardware co optimization framework for Qwen2.5 0.5 B on Armv9 processors. We combine roofline guided analysis, mixed W4 and W8 weight quantization, and operator level kernel optimization to improve decode efficiency while preserving accuracy. A three stage regressive genetic algorithm searches the mixed precision space using a noise sensitivity guided fitness function, and Activation Aware Weight Quantization calibration restores model quality. We further optimize linear kernels with smmla scheduling, loop tiling, and fused attention with pre allocated KV cache. Experiments show clear memory reduction and faster decode throughput compared with uniform INT8 quantization.