Manuscript Offprint

arXiv:2610.31479

Evaluating the Applicability of LLM Inference Optimizations on Apple Silicon

Kyrylo Yemets, Andrii Yaroshevych, Victor Muryn, Ostap Khomenko, Pavlo Kryven, Maksym Kmet, Maksym Shamrai, Mariya Hirna

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Apple Silicon is among the most widely used platforms for local LLM inference, yet nearly all inference optimizations are designed and validated on server-class NVIDIA GPUs under batched serving workloads. Which optimizations retain their benefits when moved to Apple Silicon, and what determines their applicability? We evaluate four optimization families: KV-cache pruning, speculative decoding, ported GPU kernels, and post-training quantization. Experiments span four Apple machines under a common single-request decode workload, with matched RTX 4090 comparisons where possible. KV-cache pruning can reach up to 1.75×1.75\times end-to-end throughput on Apple but can reduce throughput on desktop NVIDIA GPUs. Under the common benchmark, all evaluated speculative decoding methods reduce throughput on Apple, despite reported 2−6×2-6\times gains on server GPUs. CUDA kernel designs transfer only partially: public Metal lacks asynchronous copy, and batch-one decode makes several serving-oriented mechanisms inapplicable, although transferable components yield up to 1.20×1.20\times decode throughput. Quantization gains vary by machine. Across four families, a reported speedup is not a portable property of a technique alone but a joint function of technique, runtime, hardware contract, and workload regime.

1 Introduction

Local LLM inference increasingly happens on Apple machines: llama.cpp treats M-series chips as a first-class target [1], Apple ships MLX for unified-memory inference [2], and recent studies describe M-series unified memory as the practical consumer path to large open-weight models [3]. The optimizations that would make this inference fast, however, carry no evidence for it: none of the methods we study — KV-cache management [4], speculative decoding [5], the FlashAttention/FlashInfer, Marlin, and MegaBlocks kernels [6; 7; 8; 9], and post-training quantization [10] — reports a measurement on Apple hardware in its original publication.

An optimization that reduces memory traffic or computation may still fail to improve end-to-end throughput if it targets a secondary cost, adds runtime overhead, or relies on hardware features or workload conditions that are absent from local inference. This motivates our central question: Which LLM inference optimizations remain effective on Apple Silicon, and why?

Our experiments focus on the single-request, unified-memory regime that exists at consumer scale, and we evaluate the bundle users actually deploy: hardware, runtime, and workload together. We cover four Apple devices across three GPU generations, dense and hybrid architectures, and matched RTX 4090 controls where configurations can be aligned.

Prior Apple-Silicon work has mainly evaluated models or complete software stacks. MLX provides a framework for unified-memory inference [2], OpenELM reports local generation with MLX [11], and Rajesh et al. [12] compare several runtimes on an M2 Ultra. That study establishes performance trade-offs among Apple-Silicon devices. In contrast, we isolate individual optimizations, port representative CUDA mechanisms to Metal/MLX, and measure their kernel-level and end-to-end effects.

Contributions. (1) A controlled comparison of four optimization families for local inference on Apple Silicon. (2) Metal/MLX ports of representative CUDA attention, quantized-matmul, and MoE mechanisms, evaluated at both kernel and end-to-end levels. (3) A cross-platform analysis explaining when gains persist, disappear, or reverse because of hardware, runtime, and workload differences.

References (36)