arXiv:2610.28620cs.DCOct 2026

Manuscript Offprint

arXiv:2610.28620

Weight Placement Is Not Enough: Synchronization in Multi-Node CPU Decoding of Ternary LLMs

Runguo Li, Dezhen Lu

ABSTRACT

Ternary LLMs read only a few gigabytes per decoded token, yet on dual-socket servers with four NUMA nodes the fastest ternary runtime we found uses less than half of the memory bandwidth. Placing each weight on the node of the thread that reads it is necessary but not enough: in a decode engine with node-local weights that reuses ik_llama.cpp's kernels, threads on two generations of Xeon servers still spend 20–48 % of each token waiting at synchronization points. Per-thread barrier traces show that most of the wait is for the slowest threads of each node; the barriers' own latency (microseconds each, but up to 12 % of the token for the smallest model) and serial per-node work are smaller parts. On identical kernels, a Megatron-style column split beats a row-owned split without cross-node reductions in every configuration we measured, and isolating the number of barriers shows that most of its gain comes from its threads waiting less for each other and for their node leaders, and only a minority from having fewer barriers. Where decoding is DRAM-bound, the resulting engine is 1.5–2.1× faster than ik_llama.cpp with all cores and 1.5–1.9× faster than ik_llama.cpp at its fastest thread count (3.2× and 2.8× for a small model that runs from the L3 cache), at the same accuracy and with less energy per token.

1 INTRODUCTION

Ternary language models restrict their weights to {−1,0,+1}\{-1, 0, +1\} and store them in about two bits each (Ma et al., 2024). An eight-billion-parameter model then reads about 2 GB per generated token, which brings single-stream decoding within reach of CPU servers, whose memory bandwidth, spread over several sockets and sub-NUMA nodes, adds up to hundreds of GB/s. On one NUMA node, decoding is close to bandwidth-bound: each token reads all weights once, and the best runtimes use 72–78 % of the node's bandwidth.

Using the whole machine is harder. Across the four NUMA nodes of a dual-socket Ice Lake server, the fastest ternary runtime we found, ik_llama.cpp (ik), reads DRAM at only 48 % of the machine's local read bandwidth (Llama3-8B); on an Emerald Rapids server it becomes 3–12 % slower when given 104 instead of 64 cores. The natural diagnosis is weight placement, and placing every weight row on the node of the thread that reads it is indeed necessary; recent systems such as ArcLight (Xu et al., 2026) build on node-local tensor parallelism.

This paper asks what limits decoding after weight placement is solved. We fix placement inside ik and then replace its execution model by an engine that keeps ik's kernels and weights but synchronizes only a few times per layer, on two generations of Xeon servers, with three ternary models and the same models in three non-ternary formats. Time moves from reading weights to waiting at synchronization points (Fig. 1). This shift has been observed for weights that fit in GB-scale caches (Zhang et al., 2026) and for fast GPU memory (Chen, 2026); we show that it already limits DRAM-bound decoding on standard multi-node servers, decompose the waiting, and compare dataflows to find which of their properties reduces it. Our contributions are:

• Characterization (§4). Fixing placement and the obvious synchronization costs inside ik gains 1.20–1.73×, and further changes within its operator-at-a-time execution gain nothing. With node-local weights and two global barriers per layer, threads still wait for 20–48 % of each token, mostly for the last thread of their own node; on Emerald Rapids, the share grows with the number of threads per barrier and with fewer bytes per token.

• Dataflow comparison (§5). On identical kernels, a row-owned dataflow without cross-node reductions loses to the Megatron-style column split in all 24 configurations, by 5–46 %. The number of global barriers (5 vs. 2 per layer) explains a minority of the gap; the traces attribute most of it to late threads and the lead-

∗^{*}Equal contribution 1^{1}University of Illinois Urbana-Champaign, Urbana, IL, USA 2^{2}University of Tübingen, Tübingen, Germany. Correspondence to: Runguo Li runguo12@illinois.edu, Dezhen Lu dezhen.lu@student.uni-tuebingen.de.

Preprint.

Figure

Figure 1. What the threads do once every weight is read from its own node. (a) One of 32 decoder layers of the median-duration token of a traced run (Emerald Rapids, Llama3-8B IQ2_BN, 104 threads on 4 nodes): each row is a thread, colored while computing, grey while waiting for the last thread (of its node, or of all nodes at a global barrier, ▼), for its node leader, or for the barrier itself. (b) Per-token time split the same way: medians of 5 traced rounds (whiskers: min–max), with the share spent waiting.

ers’ serial work, and a controlled variant clears the row-owned dataflow’s cross-node writes.

• Evaluation (§6). Where decoding is DRAM-bound, the engine decodes 1.53–2.05×1.53–2.05\times faster than ik with all cores and, with Q4_0, 1.39–2.25×1.39–2.25\times faster than ArcLight, at ik's accuracy and with less energy per token. It keeps this advantage at a context depth of 8192, also against ik with its KV cache interleaved over the nodes (by default ik puts the whole cache on one node).

References (30)