LIBMoE: A Library for comprehensive benchmarking Mixture of Experts in Large Language Models
Mixture-of-Experts (MoE) architectures have become a key scaling paradigm for large language models (e.g., DeepSeek-V3, Llama-4), yet their prohibitive training and evaluation costs hinder systematic research. Method: We introduce LibMoE—the first open-source benchmark library for LLM-MoE—designed modularly, optimized for efficiency, and supporting comprehensive evaluation. Built on PyTorch, it implements Top-K routing, gradient sparsity, distributed optimization, and multi-dimensional metrics (e.g., accuracy, throughput, load balancing). Contribution/Results: LibMoE enables the first unified zero-shot benchmarking of five state-of-the-art MoE algorithms across three LLM families and eleven datasets. Our evaluation reveals convergent cross-task performance among leading methods. By significantly lowering entry barriers, LibMoE enhances reproducibility, extensibility, and standardization in MoE research.