Introduction
Large Language Models (LLMs) utilizing the Mixture-of-Experts (MoE) architecture, such as Mixtral-8x7B, have gained popularity for their ability to provide high-performance inference with reduced computational costs. By activating only a sparse subset of parameters for each token, these models maintain efficiency. However, their total parameter count remains massive—Mixtral-8x7B, for instance, requires approximately 87GB of VRAM. This creates a significant deployment barrier for memory-constrained edge devices like the NVIDIA Jetson AGX Orin, which typically offers only 32GB of VRAM.
The Memory and I/O Bottleneck
To run these models on edge hardware, developers often employ "expert offloading," where the majority of experts are stored in system RAM or SSDs and fetched to the GPU on demand. The primary challenge in this approach is I/O latency. While computing an expert might take only 3ms, loading it from system memory can take upwards of 80ms.
As shown in the architectural analysis, while experts constitute 96% of the total parameters, only about 31% are activated at any given time. Despite this sparsity, the sheer volume of data transfer between the SSD/DDR and the GPU HBM creates a bottleneck that standard offloading techniques fail to mitigate effectively, often leading to significant performance degradation or accuracy loss if experts are skipped to save time.
System Design: HOBBIT
HOBBIT (Mixed-precision expert offloading) addresses these challenges through a three-tiered optimization strategy designed to align with the natural hierarchy of MoE computation:
- Token-level Dynamic Expert Loading: HOBBIT evaluates the "importance" of a required expert based on its gating weights. If an expert is not in the GPU cache and is deemed less critical, the system fetches a low-precision (e.g., 4-bit) version instead of the full 16-bit version. This drastically reduces the data transfer volume and loading time.
- Layer-level Adaptive Expert Prefetching: Leveraging the fact that hidden states change slowly across layers, HOBBIT "looks ahead" by using current gating inputs to predict future expert requirements. This allows the system to overlap data transfer with active GPU computation.
- Sequence-level Multidimensional Expert Caching: HOBBIT introduces a novel LHU (Least High-precision Frequently Used) caching policy. Unlike standard LRU policies, LHU prioritizes retaining high-precision experts that are frequently accessed, minimizing the penalty of cache misses.
Key Insights and Performance
A core discovery of the HOBBIT system is the high correlation (0.99) between gating weight magnitude and an expert's influence on the output. This allows for rapid, heuristic-based precision scaling. Furthermore, the authors demonstrate that replacing a missing expert with a low-precision version is significantly more effective than skipping it entirely.
Latency profiling on devices like the RTX 4090 and Jetson Orin confirms that expert loading accounts for over 85% and 94% of total latency, respectively. By utilizing low-precision replacement, HOBBIT maintains model perplexity (PPL) far more effectively than skipping strategies, even as the ratio of offloaded experts increases.
Evaluation and Results
HOBBIT was evaluated using Mixtral-8x7B and Phi-MoE across benchmarks including GSM8K (mathematical reasoning) and TruthfulQA. On the NVIDIA Jetson AGX Orin, HOBBIT achieved a 13.0x speedup for Mixtral-8x7B and an 18.9x speedup for Phi-MoE compared to standard implementations like Llama.cpp. Additionally, prefill latency was reduced by approximately 80%, while accuracy degradation remained negligible (less than 1%).
Conclusion
HOBBIT demonstrates that mixed-precision offloading is a viable path for running massive MoE models on consumer-grade and edge hardware. By intelligently balancing precision and I/O speed, the system overcomes the traditional bottlenecks of offloaded inference without sacrificing the reasoning capabilities of the underlying models.
Summary updated