1 00:00:01,000 --> 00:00:08,058 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:08,058 --> 00:00:45,025 [Hal Turing] Today's paper is "Does Mixture-of-Experts Actually Help Inference on Consumer and Edge Hardware? An Empirical Study." The first author is Alfarizy Alfarizy, with Hung Truong Thanh Nguyen, René Richard, Roozbeh Razavi-Far and Hung Cao. It comes from the Analytics Everywhere Lab and the TSAI Lab at the University of New Brunswick, and it's a 2026 arXiv paper. It asks one practical question. A Mixture-of-Experts model does very little arithmetic per token. Does that become real speed and energy savings on a laptop and an 8-gigabyte edge board? 3 00:00:45,025 --> 00:01:01,836 [Dr. Ada Shannon] The paper's answer is that it mostly doesn't. Its headline is that on bandwidth-bound hardware, inference cost tracks total parameters, not active ones. That's a strong sentence, and over the next stretch we'll test whether the evidence carries it. First, the vocabulary. 4 00:01:01,836 --> 00:01:09,220 [Hal Turing] Start with MoE itself. In a standard transformer, every token passes through one big feed-forward network per layer. 5 00:01:09,220 --> 00:01:29,885 [Dr. Ada Shannon] Right. An MoE layer replaces that one network with many smaller expert networks, plus a small router that picks a few experts for each token. The model they study, OLMoE-1B-7B, has 64 experts per layer and fires 8 of them. So per token, about 1.3 billion parameters are active out of 6.9 billion total. 6 00:01:29,885 --> 00:01:31,836 [Hal Turing] So compute and memory come apart. 7 00:01:31,836 --> 00:01:51,109 [Dr. Ada Shannon] Yes. Arithmetic follows the active parameters. Disk and RAM footprint follow the total, because any expert might be needed for the next token, so all of them have to be stored somewhere. In a datacenter that trade is great: you buy capacity with memory and keep compute cheap. On a small device, memory is exactly what you don't have. 8 00:01:51,109 --> 00:01:56,078 [Hal Turing] But if compute is what's cheap, shouldn't the small-compute model just be faster? 9 00:01:56,078 --> 00:02:17,068 [Dr. Ada Shannon] Only if compute is the bottleneck, and for local generation it usually isn't. Decoding at batch size one means producing one token at a time for one user. Each token needs the model's weights streamed from memory, and very little arithmetic happens per byte read. So tokens per second is roughly memory bandwidth divided by bytes read per token. That's the premise the whole paper rests on. 10 00:02:17,068 --> 00:02:26,635 [Hal Turing] Which makes the key question: which bytes? If the router picks 8 experts out of 64, does decode read only those 8, or the whole expert set? 11 00:02:26,635 --> 00:02:36,573 [Dr. Ada Shannon] That's the question to hold onto. The paper's slogan says total parameters. A careful reading would say bytes actually touched. Those could differ a lot, and we'll come back to it. 12 00:02:36,573 --> 00:02:38,338 [Hal Turing] Now the setup. What are they running on? 13 00:02:38,338 --> 00:03:21,806 [Dr. Ada Shannon] Two devices. An Apple M2 Pro laptop with 16 gigabytes, and an NVIDIA Jetson Orin Nano with 8 gigabytes, run at its 15-watt power mode. Both use unified memory, meaning the CPU and GPU share one pool, so there's no separate GPU memory to hide behind. The software is llama.cpp, a C and C++ inference engine that runs on Apple's Metal and on CUDA. Models are in GGUF, llama.cpp's file format, quantized to Q4_K_M, which stores weights at roughly 4 to 5 bits each, about a quarter of full precision. The OLMoE file is 4.21 gigabytes, about 4.9 bits per parameter. 14 00:03:21,806 --> 00:03:23,199 [Hal Turing] And the comparison set? 15 00:03:23,199 --> 00:03:44,654 [Dr. Ada Shannon] One MoE, OLMoE-1B-7B-0924-Instruct, against three dense models: Llama-3.2-1B, Qwen2.5-1.5B and Gemma-2-2B. Four research questions: throughput, memory footprint, sensitivity to prompt length, and energy per token on the Jetson. 16 00:03:44,654 --> 00:03:47,115 [Hal Turing] What did the authors think was missing from the literature? 17 00:03:47,115 --> 00:04:32,301 [Dr. Ada Shannon] They sketch several neighbors. MELT measured LLM inference on mobile devices, but with dense models. MoE-CAP benchmarks MoE systems with metrics like sparse memory-bandwidth utilization, but in datacenter settings. LLM in a Flash, by Alizadeh and colleagues at Apple in 2023, and PowerInfer, from Song and colleagues at Shanghai Jiao Tong in 2023, are about running dense models past device memory limits. Then there's the MoE offloading family: Mixtral offloading by Eliseev and Mazur, Fiddler, and MoE-Infinity, which move experts between GPU, CPU and storage. Their claim is that nobody has measured MoE against dense models under matched conditions on consumer and edge hardware. 18 00:04:32,301 --> 00:04:34,902 [Hal Turing] That sounds like a claim with a short shelf life. 19 00:04:34,902 --> 00:05:01,977 [Dr. Ada Shannon] It is a strong claim. There's on-device MoE work the paper doesn't credit: EdgeMoE by Yi and colleagues in 2023, SwapMoE by Kong and colleagues in 2023, HOBBIT by Tang and colleagues in 2024, and Pre-gated MoE. Each targets the exact tension this paper measures. We'll give them proper detail later, because they bear on how much of the measured gap is MoE itself and how much is a vanilla runtime. 20 00:05:01,977 --> 00:05:07,549 [Hal Turing] So one MoE, three dense comparators, two small machines, and a claim that cost follows total parameters. 21 00:05:07,549 --> 00:05:19,577 [Dr. Ada Shannon] With a premise, that decode is bandwidth-bound, which I think is correct. The open question is whether the data supports the specific conclusion drawn from it. Next, what they ran and what they found. 22 00:05:19,577 --> 00:05:23,014 [Hal Turing] So what did they actually run? I want the recipe before any numbers. 23 00:05:23,014 --> 00:05:45,026 [Dr. Ada Shannon] Every layer is offloaded to the accelerator, with llama.cpp's -ngl 99 flag. Temperature is zero and each run generates 256 tokens. The prompt set is 12 prompts across 6 categories, plus 3 prompts built to hit specific length buckets. Each is run three times, which gives 45 runs per device-and-model cell. 24 00:05:45,026 --> 00:05:46,466 [Hal Turing] And the Jetson energy side? 25 00:05:46,466 --> 00:06:09,918 [Dr. Ada Shannon] They put a 30-second cool-down between runs and read the board's rail power with tegrastats at about ten samples a second. They also swept thread counts. Every model's best setting was 4 threads, and the headline setting of 6 threads is within about 0.6 to 2 percent of that. Energy is reported only on the Jetson. They left it off the M2 on purpose, because macOS power counters aren't trustworthy. 26 00:06:09,918 --> 00:06:12,890 [Hal Turing] Throughput first. Higher tokens per second is better, yes? 27 00:06:12,890 --> 00:06:40,104 [Dr. Ada Shannon] Yes. The comparison that matters is OLMoE against Llama-3.2-1B, because both have roughly a billion active parameters. On the M2 Pro, Llama generates about 127 tokens a second and OLMoE about 114, so the MoE is roughly 10 percent slower. On the Jetson, it's 33 against 23. That's about 31 percent slower than Llama, so roughly one token in three is lost. 28 00:06:40,104 --> 00:06:42,751 [Hal Turing] So the active-parameter advantage mostly doesn't show up. 29 00:06:42,751 --> 00:07:02,674 [Dr. Ada Shannon] It's partly realized on the laptop and shrinks on the Jetson. Their account is that the Jetson has far less memory bandwidth, so the cost of a large weight set hurts more there. One caveat belongs here. Standard deviations appear only as error bars in a figure. There are no confidence intervals or significance tests. 30 00:07:02,674 --> 00:07:04,764 [Hal Turing] Now memory. Lower is better there, I assume. 31 00:07:04,764 --> 00:07:30,863 [Dr. Ada Shannon] Lower is better for both memory and energy. On the Jetson, every dense model peaks under about 3.5 GiB of resident memory. Llama is under 2. OLMoE peaks at 8.01 GiB, which is the board's entire memory, and it only survives because zram swap compresses pages in RAM. The M2 shows the same pattern at a smaller scale: about 4.5 GiB for OLMoE against about 1 for Llama. 32 00:07:30,863 --> 00:07:34,253 [Hal Turing] But the OLMoE file is 4.2 gigabytes. How does that become 8? 33 00:07:34,253 --> 00:07:51,389 [Dr. Ada Shannon] The authors attribute it to how llama.cpp uses CUDA on this board. The file is memory-mapped on the host side, and the model also gets a separate device allocation. That puts the Jetson file-to-resident ratio near two. It's their explanation, not something they isolate in an experiment. 34 00:07:51,389 --> 00:07:52,318 [Hal Turing] And energy? 35 00:07:52,318 --> 00:08:18,557 [Dr. Ada Shannon] Joules per token, measured on the SoC rail over the generation window. OLMoE comes out around 0.96 against 0.45 for Llama, so about 2.1 times the energy per token. Its average power is lower, around 8.5 watts against roughly 11.5 for the dense models. The paper reads that as the model taking longer per token, so it draws less power for longer. 36 00:08:18,557 --> 00:08:23,851 [Hal Turing] Did longer prompts hurt the MoE more? Routing and bigger KV caches seem like they'd stack up. 37 00:08:23,851 --> 00:08:39,919 [Dr. Ada Shannon] That was research question three, and it's a non-finding. OLMoE slows by about 13 percent from short to long prompts on the M2, and under 5 percent on the Jetson. The dense models slow by comparable amounts. The extra MoE sensitivity they predicted isn't there. 38 00:08:39,919 --> 00:08:43,681 [Hal Turing] So is the router itself the expensive part? It's the new component. 39 00:08:43,681 --> 00:09:08,062 [Dr. Ada Shannon] They tested that with a patched llama.cpp. A callback, cb_eval, times every node in the compute graph. The catch is that timing each node forces a synchronization between nodes, which inflates cheap operations. The slowdown makes that visible. On the M2, throughput collapses from 114 to under 8 tokens a second, about fifteen-fold. On the Jetson it drops from 23 to 18, about a quarter. 40 00:09:08,062 --> 00:09:10,198 [Hal Turing] So the Jetson measurement is the cleaner one. 41 00:09:10,198 --> 00:09:36,111 [Dr. Ada Shannon] The authors say so, and call the M2 figure an upper bound. Routing share is routing time divided by routing plus expert-network time, inside the MoE blocks. On the Jetson it's about 9 percent for short prompts and about 7 percent for long ones. The M2 reads 33 percent in the decode-heavy stratum, but that's the inflated number. So routing arithmetic isn't the bottleneck. It's a negative result, and it measures the router's compute only. 42 00:09:36,111 --> 00:09:39,223 [Hal Turing] Then where does the gap come from? What does the paper offer? 43 00:09:39,223 --> 00:10:15,260 [Dr. Ada Shannon] Three explanations. First, the full weight footprint and the bandwidth it costs. That predicts the slowdown should follow bytes, and it's the only one argued from data, mostly through the file sizes and the Jetson's lower bandwidth. Second, per-token expert dispatch: gathering tokens to experts, scattering results back, launching many small kernels. That predicts overhead that grows with layer count and doesn't depend on bytes. Third, KV-cache pressure, meaning the memory for stored attention keys and values. That predicts the MoE should degrade faster as prompts get longer. 44 00:10:15,260 --> 00:10:18,975 [Hal Turing] And the length result I just heard doesn't obviously support the third. 45 00:10:18,975 --> 00:10:28,310 [Dr. Ada Shannon] The authors don't claim a direct test of any of the three. None is measured directly. There's no byte counter, no bandwidth reading, and no dispatch timing separate from the 'other' bucket. 46 00:10:28,310 --> 00:10:34,115 [Hal Turing] So the claim about total parameters rests on the first story, and that story is inferred rather than measured. 47 00:10:34,115 --> 00:10:36,390 [Dr. Ada Shannon] That's what to carry into the evidence question. 48 00:10:36,390 --> 00:10:42,706 [Hal Turing] The comparison behind the headline is one MoE against three dense models. Can that attribute anything to sparsity? 49 00:10:42,706 --> 00:11:15,075 [Dr. Ada Shannon] Not cleanly. Llama, Qwen and Gemma differ from OLMoE in architecture, training data, tokenizer and vocabulary, as well as size. There's no dense model with OLMoE's depth, width and vocab. So a gap could come from sparsity, or from how mature llama.cpp's kernels are for each model. Three things would settle it: a dense model of OLMoE's shape, the same MoE on a second engine such as MLC, TensorRT-LLM or vLLM, or an MoE with a well-tuned kernel path, like Mixtral or a Qwen MoE. 50 00:11:15,075 --> 00:11:23,991 [Hal Turing] OLMoE beats Gemma-2-2B, which has more active parameters. Doesn't that support the paper? Or is Gemma just slow in llama.cpp? 51 00:11:23,991 --> 00:12:14,193 [Dr. Ada Shannon] Here's our own check from the paper's tables, not the authors' claim. Gemma is about 2.1 times slower than Llama on both devices. Its file is about 2.1 times bigger, 1.71 gigabytes against 0.81. So Gemma looks proportional to bytes, not anomalously slow. One thing to verify before anyone quotes it: the paper lists Gemma as 2.0 billion active, but a 1.71 gigabyte Q4 file suggests the public count of roughly 2.6 billion with embeddings. The real wrinkle is Qwen. On the Jetson, OLMoE manages 22.9 tokens a second against 24.6 for Qwen2.5-1.5B. That contradicts the text saying OLMoE sits between Llama and Qwen on both devices. 52 00:12:14,193 --> 00:12:19,023 [Hal Turing] Now the question we planted at the start. Which bytes? Does the bandwidth story hold up? 53 00:12:19,023 --> 00:13:00,633 [Dr. Ada Shannon] The paper never tests it. If decode reads only the 8 selected experts per layer, bytes per token should be near the active weights. That's about 0.8 gigabytes at this quantization, close to Llama's file, not 4.2. The paper reports no achieved gigabytes per second, no roofline, no S-MBU. And here's derived arithmetic using public specs worth verifying: the Jetson is about 68 gigabytes per second, the M2 Pro about 200. Reading the full 4.21 gigabytes at the reported speeds implies about 96 on the Jetson and 482 on the M2. Both exceed the peaks. So the whole model cannot be streamed per token. 54 00:13:00,633 --> 00:13:02,119 [Hal Turing] So the slogan is too strong. 55 00:13:02,119 --> 00:13:14,472 [Dr. Ada Shannon] As literally stated, yes. The likelier causes are scattered reads of expert-sized slices, poor cache and DRAM locality, dispatch overhead, or swap. The paper's numbers don't decide among them. 56 00:13:14,472 --> 00:13:20,463 [Hal Turing] Swap is the one I'd press. The Jetson run sits at 8.01 gibibytes on an 8 gigabyte board. 57 00:13:20,463 --> 00:13:57,243 [Dr. Ada Shannon] Right. Compressed swap was active, and that alone could depress tokens per second and inflate energy. The authors flag the out-of-memory risk but never isolate swap as a cause. A run without zram, or page-fault counts, would help. The routing measurement has a related limit. It times routing arithmetic only. Gather, scatter and allocator work sit in 'other'. So it rules out less than 'routing isn't the bottleneck' suggests. And the 10 percent M2 gap is close to the 8.1 percent run-to-run variation the paper reports for Llama on that machine, so without confidence intervals I wouldn't lean on it. 58 00:13:57,243 --> 00:13:58,450 [Hal Turing] And the energy numbers? 59 00:13:58,450 --> 00:14:30,819 [Dr. Ada Shannon] They don't reconcile. Mean power divided by throughput gives about 0.37 joules per token for OLMoE and 0.34 for Llama. The paper reports 0.96 and 0.45. So the energy window covers more than steady decoding, or power and energy use different windows. It isn't explained. Treat the 2.1x ratio as unverified. Also, lower average power with higher energy is what a slower, stalled run looks like. It isn't proof of bandwidth saturation. 60 00:14:30,819 --> 00:14:34,116 [Hal Turing] Is the paper right that nobody studied MoE on edge hardware? 61 00:14:34,116 --> 00:15:23,993 [Dr. Ada Shannon] No. EdgeMoE does on-device MoE inference with per-expert bitwidths and preloading, and it targets the same memory-versus-compute tension. HOBBIT loads less critical experts at lower precision and reports edge-GPU numbers. That's exactly the paper's suggestion to quantize rare experts harder, and a natural comparison point. SwapMoE keeps a small important expert set resident under a memory budget. That's the cache-aware strategy the paper leaves as future work. Pre-gated MoE, by Hwang and colleagues in 2024, predicts the next layer's experts to prefetch them and hide fetch latency. The paper's own cited Mixtral offloading, Fiddler and MoE-Infinity are the same family. An expert-aware runtime could plausibly close some of what vanilla llama.cpp loses. 62 00:15:23,993 --> 00:15:28,219 [Hal Turing] And quality? The point of an MoE is what you get per active parameter. 63 00:15:28,219 --> 00:15:46,005 [Dr. Ada Shannon] Never measured. Speed against a 1B dense model isn't an equal-quality comparison. A fairer test would put OLMoE against a dense model of similar quality and see how they compare on size and speed. That could change the verdict, and it's why 'does MoE help' is underspecified here. 64 00:15:46,005 --> 00:15:47,723 [Hal Turing] So what does the paper establish? 65 00:15:47,723 --> 00:16:09,225 [Dr. Ada Shannon] That OLMoE-1B-7B in llama.cpp at Q4_K_M, on these two devices, is slower and hungrier than a 1B dense model, and its footprint is a hard limit on 8 gigabytes. Routing arithmetic isn't the main cost. It doesn't establish that sparsity itself causes the gap, or that cost tracking total parameters is a general law. 66 00:16:09,225 --> 00:16:10,665 [Hal Turing] Practically, what changes? 67 00:16:10,665 --> 00:16:33,188 [Dr. Ada Shannon] For 8 gigabyte boards, an OLMoE-class model is a poor fit under stock llama.cpp. On a 16 gigabyte laptop the memory is tolerable but the speed isn't better, so choosing an MoE has to be justified by quality. For benchmarkers: report achieved gigabytes per second against peak, test swap sensitivity, and use matched dense controls. 68 00:16:33,188 --> 00:16:34,488 [Hal Turing] Where should this go next? 69 00:16:34,488 --> 00:16:48,328 [Dr. Ada Shannon] Phone-class measurement, and broader MoEs like Qwen3-MoE, DeepSeek-V2-Lite and Mixtral at edge quantizations. Then expert-aware caching and offloading, and S-MBU computed from real byte counters. 70 00:16:48,328 --> 00:17:14,984 [Hal Turing] So this is a useful, reproducible, honestly bounded measurement, and the harness and per-run data are released. It shows that MoE's compute savings don't automatically become speed or energy savings on consumer and edge hardware. The open question is whether the cause is MoE memory behavior or implementation maturity. A matched dense control plus a real bandwidth measurement would answer it. Thanks for listening.