MoIN: Mixture of Introvert Experts to Upcycle an LLM

Ajinkya Tejankar, Navaneet K L, Ujjawal Kamal Panchal, Kossar Pourahmadi, Hamed Pirsiavash · Submission to ICLR 2025 · Rejected

TL;DR

MoIN (Mixture of Introvert Experts) presents an embarrassingly parallel, communication-free framework for "upcycling" an existing language model instead of running expensive full-model continued pre-training. By clustering pre-training data into semantic topics, freezing the base model, and training thousands of topic-specific LoRA adapters, MoIN routes each full query to a single isolated ("introvert") expert. This approach matches or outperforms dense models trained on identical or greater token budgets while allowing training across arbitrary, heterogeneous consumer hardware.

What Problem Does This Paper Address?

Continued pre-training of large dense models demands massive compute budgets, identical high-end GPUs, and high-bandwidth interconnects (like NVLink) to sync gradients. Standard Mixture of Experts (MoE) architectures avoid dense activation by routing tokens to different sub-networks, but they introduce new headaches: because routing occurs at the token level, all experts typically must reside simultaneously in GPU memory, and distributed execution requires complicated, high-latency all-to-all scatter/gather operations.

MoIN tackles this by switching from token-level routing to sequence-level (query-level) routing over a modular pool of lightweight adapters, allowing independent training and serving without inter-expert communication.

Methods

MoIN operates in three distinct phases:

  1. Topic Modeling & Clustering: Training documents from a pre-training corpus are embedded using a lightweight, 20-million parameter sentence encoder (all-MiniLM-L6-v2). The authors explore two clustering regimes:
  2. MoIN-500: UMAP dimensionality reduction followed by HDBSCAN (retaining 387 viable clusters).
  3. MoIN-5k: Direct $K$-means clustering ($k=5000$, retaining 4,697 clusters after filtering out tiny clusters).
  4. Parallel Expert Training: The base model—a 1.1B-parameter TinyLlama checkpoint trained to 2.0 trillion tokens—is frozen. For each cluster, a standalone Low-Rank Adaptation (LoRA; rank $r=128$) module is trained using standard causal language modeling loss strictly on that cluster's text. Because the base model never changes and experts share no parameters, all adapters train completely independently.
  5. Inference & Dynamic Routing: At test time, an incoming query is embedded using the 20M router model. A fast nearest-neighbor search identifies the closest topic centroid. The base model then dynamically loads only that single adapter for the forward pass, sidestepping token-level MoE overhead.
Incoming Query ──► [20M Embedding Model] ──► Nearest Neighbor Centroid Search
                                                         │
                                               Selects Expert Adapter
                                                         ▼
                                 Query ──► [Frozen Base LLM + LoRA Adapter] ──► Output

Datasets

  • Pre-training / Adapter Training: 500 billion tokens from SlimPajama (excluding GitHub code data) were used to train the 5,000-expert variant, alongside a smaller 50B-token run for the 500-expert variant.
  • Evaluation Benchmarks: Validation perplexity was evaluated on the held-out SlimPajama validation set. Zero-shot downstream reasoning was tested via lm-eval-harness across standard benchmarks: HellaSwag, PIQA, WinoGrande, OpenBookQA, AI2 ARC (Easy & Challenge), and BoolQ. No new benchmarks were introduced.

Key Insights and Ideas

  • Zero Inter-Expert Communication ("Introverts"): Because an entire sequence is handled by a single adapter, experts do not communicate during either training or inference. Training can be distributed across mismatched, commodity GPUs (e.g., mixing RTX 3090s and RTX 6000s) with no interconnect bottleneck.
  • Sparsity in Downstream Evaluation: For any single downstream evaluation benchmark, only roughly 10% of the adapter library is ever activated by the router. Different tasks activate almost entirely disjoint sets of specialized adapters.
  • Modularity as Continual Learning: Outlier or underperforming adapters can be retrained or updated with fresh domain data without destabilizing the base model or degrading other capabilities—drastically reducing catastrophic forgetting.

Key Results

  • SlimPajama Perplexity: MoIN-5k trained on +0.5T tokens (2.5T total exposure) achieves a validation perplexity of 8.167, beating the dense TinyLlama-2.5T baseline (8.260) and nearly matching the full dense TinyLlama-3.0T baseline (8.137), which saw 500 billion more tokens.
  • Downstream Reasoning: MoIN-5k achieves an average accuracy of 52.45% across seven benchmarks, outperforming TinyLlama-2.5T (52.40%) and outscoring TinyLlama-3T (50.96%, which exhibited degradation on ARC-C and BoolQ).
  • Cluster Specialization: TF-IDF keywords confirm clear topical separation (e.g., clusters cleanly isolating sustainability, food/nutrition, taxes/IRS, and classical music).

Limitations and Future Work

  • Storage Footprint: While GPU memory overhead during execution is tiny (only one LoRA loaded per request), storing thousands of adapters creates significant disk and host RAM footprints.
  • Uniform Adapter Capacity: All LoRA modules used a fixed rank ($r=128$) regardless of whether a cluster contained 5,000 or 50,000 documents; dynamic rank allocation remains open.
  • Routing Vulnerabilities: A small 20M router can occasionally misroute ambiguous queries to irrelevant clusters (the authors highlight failure cases where science demonstration prompts were mapped to code metadata clusters).
  • Multi-topic Inputs: Inputs straddling multiple distinct topics are forced into a single expert; future directions include dynamic adapter merging on the fly or exploring token-level routing at inference using the pre-trained library.

Summary updated

Abstract

The goal of this paper is to improve (upcycle) an existing large language model without the prohibitive requirements of continued pre-training of the full-model. The idea is to split the pre-training data into semantically relevant groups and train an expert on each subset. An expert takes the form of a lightweight adapter added on the top of a frozen base model. During inference, an incoming query is first routed to the most relevant expert which is then loaded onto the base model for the forward pass. Unlike typical Mixture of Experts (MoE) models, the experts in our method do not work with other experts for a single query. Hence, we dub them ``introvert'' experts. Freezing the base model and keeping the experts as lightweight adapters allows extreme parallelism during training and inference. Training of all experts can be done in parallel without any communication channels between them. Similarly, the inference can also be heavily parallelized by distributing experts on different GPUs and routing each request to the GPU containing its relevant expert. We implement a proof-of-concept version of this method and show the validity of our approach.
BibTeX
@misc{tejankar2024moin,
  author = {Ajinkya Tejankar and Navaneet K L and Ujjawal Kamal Panchal and Kossar Pourahmadi and Hamed Pirsiavash},
  title = {{MoIN: Mixture of Introvert Experts to Upcycle an LLM}},
  year = {2024},
  eprint = {2410.09687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.09687},
}
Figure