FlexOLMo: Open Language Models for Flexible Data Use

Weijia Shi, Akshita Bhagia, Kevin Farhat, Niklas Muennighoff, Jacob Morrison, Evan Pete Walsh, Dustin Schwenk, Shayne Longpre, Jake Poznanski, Allyson Ettinger, Daogao Liu, Margaret Li, Mike Lewis, Wen-tau Yih, Dirk Groeneveld, Luca Soldaini, Kyle Lo, Noah A. Smith, Luke Zettlemoyer, Pang Wei Koh, Hannaneh Hajishirzi, Ali Farhadi, Sewon Min

Introduction

The current paradigm for training Large Language Models (LLMs) is fundamentally centralized, requiring the aggregation of massive datasets into a single location to train monolithic models. This approach presents two significant challenges: data sharing constraints and data use constraints. Organizations in highly regulated sectors, such as healthcare and finance, often possess high-quality data that cannot be shared due to privacy regulations like GDPR or HIPAA. Furthermore, data permissions are often fluid; once data is "baked" into a model's weights, it is nearly impossible to remove or "unlearn" without expensive full-model retraining.

FlexOlmo addresses these issues by introducing a modular Mixture-of-Experts (MoE) framework. This system allows data owners to train specialized "experts" on private data asynchronously and integrate them into a global model at inference time, providing a flexible, privacy-preserving alternative to traditional centralized training.

Architectural Framework: Modular Mixture-of-Experts

FlexOlmo leverages a unique MoE architecture designed for modularity and independence. Unlike standard MoE models where all components are trained jointly, FlexOlmo utilizes a frozen "Public Model" as a shared anchor.

FlexOlmo architecture overview showing the public model anchor and the modular expert integration into the MoE module.

Coordinated Training with Anchors

When a data owner contributes to the system, they initialize a new expert module—specifically the Feed-Forward Network (FFN) layers—and train it on their private data while keeping the rest of the public model frozen. This ensures that independently trained experts remain compatible with the same base architecture, allowing them to be plugged in or removed as needed.

Domain-Informed Routing

In a standard MoE, a router decides which expert handles which token, typically requiring joint training on all data. FlexOlmo replaces this with a router embedding concatenation strategy. Each expert is assigned a unique embedding (initialized via an off-the-shelf embedder like GRIT). At inference, these embeddings are stacked together. To prevent the generalist public model from dominating token processing, the authors introduce learned negative bias terms for specialized experts, ensuring specialists are only activated when they demonstrate significantly higher confidence than the generalist model.

Experimental Setup and Datasets

To evaluate the framework, the researchers curated FlexMix, a collection of datasets simulating a mix of public and restricted data. This includes a general web-text corpus (DCLM-Baseline) and seven simulated "closed" sets representing specialized domains: News, Creative Writing, Code (Starcoder), Academic (S2ORC), Educational Text, Math (FineMath4+), and Reddit. Performance was measured across a suite of 31 tasks spanning 10 categories, including MMLU, GSM8K, and HumanEval.

Performance and Comparative Analysis

FlexOlmo demonstrates that joint training is not a prerequisite for achieving the benefits of MoE. By using a frozen anchor, experts naturally learn to fill the gaps in the public model's knowledge. The framework achieved a 41% relative performance boost over the base public model and outperformed prior model-merging techniques, such as Branch-Train-Merge (BTM), by an average of 10.1%.

Performance comparison of FlexOlmo against prior model merging techniques, individual experts, and unrestricted MoE upper bounds.

As shown in the results, FlexOlmo (47.8 average score) significantly outperforms the previous public model (36.9) and rivals unrestricted MoE models trained on the full dataset. Ablation studies highlight the importance of the coordination training and the domain embedding initialization; removing these components leads to noticeable performance degradation.

Key Insights and Privacy Protection

Beyond performance, FlexOlmo offers true data sovereignty. Because each expert is a distinct set of weights tied to a specific dataset, "opting out" is as simple as removing the corresponding row from the router matrix. The study confirmed that removing a specific expert (e.g., News) effectively removes that domain-specific knowledge without impacting the model's performance in unrelated areas like mathematics.

Furthermore, the modular approach provides an inherent layer of privacy. Data extraction attacks revealed that FlexOlmo leaked significantly less information (0.7% extraction rate) compared to a standard dense model (1.6%). While model weights must still be shared with a central aggregator, they are substantially harder to reverse-engineer than raw text.

Limitations and Future Work

Despite its advantages, FlexOlmo faces challenges regarding inference costs, as the total model size remains large (e.g., 37B parameters for an 8-expert version), requiring significant VRAM. Additionally, while weights are more secure than raw data, they are not perfectly private. Future research will focus on scaling this modular approach to 70B+ parameter models and refining router tuning methods to minimize the need for proxy data.

Summary updated

BibTeX
@inproceedings{shi2025flexolmo,
  author = {Weijia Shi and Akshita Bhagia and Kevin Farhat and Niklas Muennighoff and Jacob Morrison and Evan Pete Walsh and Dustin Schwenk and Shayne Longpre and Jake Poznanski and Allyson Ettinger and Daogao Liu and Margaret Li and Mike Lewis and Wen-tau Yih and Dirk Groeneveld and Luca Soldaini and Kyle Lo and Noah A. Smith and Luke Zettlemoyer and Pang Wei Koh and Hannaneh Hajishirzi and Ali Farhadi and Sewon Min},
  title = {{FlexOLMo: Open Language Models for Flexible Data Use}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=1rUj9ZN6Bz},
}
Figure