Manuscript Offprint

arXiv:2610.16890

FORGE: Procedural Weight Generation for Sparse MoE Inference

Chanyoung Moon, Travis Pence, Daisuke Yamada, Jiaqi Mo, Yanxin Zhang, Vikas Singh, Karthikeyan Sankaralingam

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

Chanyoung Moon

University of Wisconsin-Madison

Madison, Wisconsin, USA

Korea University

Seoul, Republic of Korea

rchan02@korea.ac.kr

Jiaqi Mo

University of Wisconsin-Madison

Madison, Wisconsin, USA

mo29@wisc.edu

Travis Pence

University of Wisconsin-Madison

Madison, Wisconsin, USA

tnpence@wisc.edu

Daisuke Yamada

University of Wisconsin-Madison

Madison, Wisconsin, USA

dyamada2@wisc.edu

Yanxin Zhang

University of Wisconsin-Madison

Madison, Wisconsin, USA

NVIDIA

Santa Clara, California, USA

yanxinz@nvidia.com

Karthikeyan Sankaralingam

University of Wisconsin-Madison

Madison, Wisconsin, USA

NVIDIA

Santa Clara, California, USA

karu@cs.wisc.edu

Vikas Singh

University of Wisconsin-Madison

Madison, Wisconsin, USA

vsingh@biostat.wisc.edu

Abstract

We introduce FORGE (Fast On-chip Rotor Generation for Experts), a procedural weight generation system for Sparse Mixture-of-Experts (MoE) inference. Rather than storing and loading every expert weight tensor from HBM, we show how a compact accelerator inside each Streaming Multiprocessor can regenerate them on-the-fly from O(log⁡2d)O(\log^2 d) rotor parameters per projection. Per replaced layer, gigabytes of stored expert weights are approximated with under a megabyte of seeds. This addresses the dual memory bottleneck of autoregressive Sparse MoE decode, where per-expert FFN operations are HBM-bandwidth-bound at small routed-token counts and the aggregate expert footprint forces multi-node Expert Parallelism (EP) with all-to-all traffic. We realize the approach as the Rotor Generation Unit (RGU), a fixed-function datapath that generates FFN weight tiles without competing with Tensor Core execution. With 30% of the MoE FFN layers replaced across five Sparse MoE models, we estimate 1.3–2.8×1.3–2.8\times higher system throughput at matched GPU count and 1.10–1.15×1.10–1.15\times lower per-user decode latency at short context. In exchange, downstream accuracy on three model families falls below that of the same model fine-tuned without rotor replacement, and the replacement ratio controls this tradeoff. FORGE also expands KV cache capacity by 1.2–2.6×1.2–2.6\times. It is agnostic to the bit width at which weights are stored, so it can compose with quantization. The RGU is fully implemented/verified in SystemVerilog at ∼0.9%\sim0.9\% SM area overhead ( 0.032 mm2/SM0.032\ mm^2/SM, 7nm).

CCS Concepts: • Computer systems organization → Neural networks; Heterogeneous (hybrid) systems; • Computing methodologies → Machine learning.

Keywords: Mixture of Experts, LLM Inference, Procedural Weight Generation, GPU Architecture, Hardware Accelerators

ACM Reference Format:

Chanyoung Moon, Travis Pence, Daisuke Yamada, Jiaqi Mo, Yanxin Zhang, Vikas Singh, and Karthikeyan Sankaralingam. 2027. FORGE: Procedural Weight Generation for Sparse MoE Inference. In Proceedings of the 32nd ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1 (ASPLOS '27), April 11–15, 2027, Heraklion, Greece. ACM, New York, NY, USA, 16 pages. https://doi.org/10.1145/3845814.3850033

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License.

ASPLOS '27, Heraklion, Greece.

© 2027 Copyright held by the owner/author(s).

ACM ISBN 979-8-4007-3012-2/2027/04

https://doi.org/10.1145/3845814.3850033

1 Introduction

Short-context autoregressive decode, e.g., agentic tool-use chains, short-prompt chat, and single-user serving, is the regime where per-token latency is bottlenecked by the cost of moving weights out of HBM. This is because each decode step produces a single token, leading FFN projections

Moon et al.

Figure

Figure 1. FORGE replaces HBM-resident expert weights with on-chip procedural regeneration. (Top) Training adds an offline rotor-fitting step that compresses each dense expert into a rotor-parameter seed θ\theta. (Bottom) At inference, the RGU inside each SM materializes weight tiles on-the-fly from seeds alone, reclaiming HBM capacity for an expanded KV cache.

to collapse to low-arithmetic-intensity operations (GEMVs) whose wall-clock is set by weight transfer rather than arithmetic [52]. For long context or large batches, other bottlenecks (KV cache, Attention FLOPs) take over.

There is broad consensus that sparse Mixture-of-Experts (MoE) architectures [18, 38, 58] are now the dominant design for frontier open-weight LLMs. It turns out that this architecture amplifies the bottlenecks of short-context decode along three distinct axes. All three lead back to one architectural fact: expert weights are the overwhelming majority of the parameter footprint, i.e., 94–98% across the five frontier MoEs in Table 1, and constantly occupy HBM capacity.

(P1) HBM bandwidth bottleneck at small effective batch. We know that MoE top-K routing assigns each token to K of E total experts, e.g., K=8 of E=256 for DeepSeek-v3.2 [15]; K=10 of E=512 for Qwen3-Coder-Next [4]. But a serving batch of B tokens therefore yields only BK/E tokens per expert under uniform routing. At B=32 on DeepSeek-v3.2, each expert sees a single token, collapsing its Up/Gate/Down projections to GEMVs. Per-token decode latency then becomes dominated by HBM weight transfer, leaving the Tensor Cores idle [52].

(P2) HBM capacity bottleneck. At FP8, total MoE weight footprints range from 31GB (Qwen3-30B [54]) to 742GB (GLM-5 [24]). All but the smallest exceed the 80GB HBM of a single H100. While offloading weights to host memory is an alternative, it severely bottlenecks decode performance to PCIe bandwidth limits [14]. This forces Expert Parallelism (EP) [30, 38, 55] across multiple GPUs and across multiple nodes for large models—paying a cross-node all-to-all for every decode step. Now, within each GPU, weights also consume HBM that would otherwise serve KV cache, capping the number of concurrent users per GPU. The capacity problem thus has two consequences: deployment topology (how many GPUs, how much interconnect) and serving concurrency (how many users per GPU).

(P3) Compression does not change the access pattern. Quantization [20, 40, 45] (FP8 on Hopper, INT4 variants) is the standard response to address both pressures. It does shrink per-parameter bytes, but the GPU must still fetch every activated weight from HBM on each decode step and reserve HBM capacity for the weights. Quantization thus reduces the bandwidth bottleneck and lowers the capacity ceiling, but we observe it eliminates neither. More aggressive schemes (e.g., INT4) push this further along the same axis without changing the underlying access pattern.

We observe that (P1), (P2), and (P3) all derive from a single architectural assumption that is rarely challenged: expert weights are a static payload resident in HBM.

Our approach. The main idea is to instead treat each expert projection as approximately procedurally synthesizable (i.e., the end product of a recipe rather than a stored tensor) so that, in principle, all three problems can be addressed at once. Concretely, recent work by Pence et al. [51] on a Clifford-algebra object, rotors, offers the theoretical feasibility: O(d2)O(d^{2}) linear projections can be approximated by O(log⁡2d)O(\log^{2}d) rotor parameters. Operationally, those parameters are angles, and the projection is rebuilt by applying the corresponding rotations in a fixed sequence.

We take this, with appropriate adjustments, from a theoretical formalism to hardware. Under our construction, each pre-trained expert in a replaced MoE layer is fit offline to a rotor-parameter seed, and at inference the seed stands in for the dense expert tensor for that layer. A fixed-function Rotor Generation Unit (RGU) inside each Streaming Multiprocessor materializes weight tiles on demand for those to-be-replaced layers and writes them directly into Shared Memory, feeding the Tensor Core pipeline without an HBM weight load on the replaced path (Figure 1).

Against (P1), on replaced layers this swaps the HBM weight-loading path for a dedicated on-chip generator, shifting the per-expert MoE FFN kernel from bandwidth-bound to compute-bound. Against (P2), replaced-layer expert storage collapses by more than three orders of magnitude, to under a megabyte of parameter seeds per layer (Table 1), freeing close to a third of the weight HBM for expanded KV cache and shrinking the minimum-fit GPU count for the largest models enough to eliminate cross-node deployment. Against (P3), the gains are orthogonal to quantization, as we remove the transfer rather than compress it. The net effect is higher system throughput without giving up per-user latency, which normally trade off against each other, at a cost in downstream accuracy.

The substitution is tunable. With 30% of the MoE FFN layers replaced, accuracy falls below that of the same model fine-tuned without rotor replacement (Section 5.7); higher ratios promise larger system gains (Figure 11), and keeping accuracy at those ratios is future work.

Scope. The throughput gain holds across context lengths, since it rests on freed HBM capacity (Section 5.5). The per-user latency gain is largest at short context and narrows to 1.07−1.11×1.07-1.11\times at T=128K, where KV cache and attention dominate execution time (Section 5.4). Specifically, our contributions are as follows.

Contributions. (a) We adapt the Clifford-algebra rotor framework [51] from attention layers to MoE FFN decode, and develop a parallel execution model (column, row-pair, and k-block independence with precomputed conflict-free pair scheduling) suited to hardware realization. (b) We identify why a software-only path fails: SIMT-based generation saturates instruction issue and incurs pervasive shared-memory bank conflicts, reducing Tensor Core utilization. (c) We design, implement in SystemVerilog, and verify the Rotor Generation Unit, a 0.032 mm2/SM0.032 \, mm^2/SM ( ∼0.9%\sim0.9\% of a modern SM [43]; 7 nm ASAP7 + CACTI) fixed-function accelerator that generates weight tiles directly into Shared Memory. (d) We evaluate five Sparse MoE models with 30% of the MoE FFN layers replaced and measure accuracy on three model families (Section 5.7). At this point we estimate 1.3−2.8×1.3-2.8\times higher system throughput at matched GPU count and 1.10−1.15×1.10-1.15\times lower per-user decode latency at short context, at a cost in downstream accuracy relative to the same model fine-tuned without rotor replacement. (e) The gains rest on measured and RTL-backed inputs: a 2.3−3.2×2.3-3.2\times per-expert FP8 kernel speedup independent of r, 1.2−2.6×1.2-2.6\times more KV cache capacity, and a 28–29% reduction in total parameter memory.

The remainder of this paper is organized as follows. Section 2 provides background on Sparse MoE bottlenecks and introduces the rotor projection framework. Section 3 develops the parallel execution model and the rotor generation architecture. Section 4 details the hardware microarchitecture of the RGU. Section 5 evaluates the proposed design. Section 6 discusses related work, and Section 7 concludes.

References (14)