MUX-PLMs: Pre-training Language Models with Data Multiplexing

Vishvak Murahari, Ameet Deshpande, Carlos E. Jimenez, Izhak Shafran, Mingqiu Wang, Yuan Cao, Karthik Narasimhan

Abstract

MUX-PLMs introduce a Multi-Input Multi-Output (MIMO) approach to language model pre-training, enabling a single Transformer forward pass to process up to 10 independent sequences simultaneously. By utilizing a novel multiplexing architecture—comprising a contextual multiplexer and an RSA-inspired demultiplexer—the researchers achieved 2x to 5x inference throughput speedups with a marginal 1–4% drop in accuracy. This framework provides a hardware-agnostic path to massive efficiency gains, bridging the performance gap previously associated with data multiplexing techniques.

Introduction

The rapid adoption of Large Language Models (LLMs) has highlighted a critical bottleneck: the high computational cost of inference and the scarcity of specialized hardware. While traditional efficiency methods such as pruning, quantization, and distillation effectively reduce model size, they do not always directly address total system throughput—the number of requests a model can process per second.

Previous attempts at "data multiplexing" (processing multiple inputs in a single pass) often resulted in devastating performance drops of 20–30%. MUX-PLMs address this challenge by redesigning the multiplexing architecture to maintain high performance while significantly increasing throughput, making MIMO architectures viable for real-world deployment.

Methodology

The MUX-PLM architecture is designed to "entangle" multiple input sequences into a single hidden representation, process that representation through a standard Transformer backbone, and "disentangle" the individual results at the output layer.

Architectural Components

  • Contextual Multiplexer: Unlike earlier methods that combined tokens independently, this module employs a cross-instance attention mechanism. It aggregates context across all $N$ multiplexed instances, creating a robust "superimposed" representation that the Transformer can process more effectively.
  • RSA-demux: Inspired by RSA cryptography, this module uses learned "private key" vectors to recover individual outputs from the multiplexed hidden state. This approach is significantly more efficient than prior "prefix-based" methods, as it does not consume the model's limited context window with identification tags.

Three-Stage Training Pipeline

To ensure the model can handle the complexity of superimposed data, the authors utilize a three-stage training strategy:

  1. Token Retrieval: A priming phase where the model learns to decode individual tokens from a multiplexed input (an auto-encoding task).
  2. MIMO Pre-training: Standard pre-training objectives (e.g., BERT or ELECTRA) are adapted for multiplexed data streams.
  3. Fine-tuning: The pre-trained MUX-model is adapted to specific downstream tasks, such as sentiment analysis or named entity recognition.

Experimental Setup

The models were pre-trained on a combination of Wikipedia and BookCorpus. Evaluation was conducted across several benchmarks:

  • Sequence-level Classification: The GLUE benchmark, a suite of nine diverse natural language understanding tasks.
  • Token Classification: Named Entity Recognition (NER) using CoNLL-2003 and POS tagging.

Key Insights and Analysis

The "Packing" Phenomenon

Analysis of the model's internal hidden states revealed that activation norms spike primarily in the final layer. This suggests that the Transformer efficiently "packs" information from all $N$ instances throughout its depth, only separating the signals at the final stage for output generation.

Attention Efficiency

MUX-PLMs exhibit lower attention entropy in higher layers compared to vanilla BERT models. The architecture learns to create "peaky," shared attention distributions that serve multiple inputs simultaneously without significant cross-interference.

Ensembling "For Free"

Because the multiplexing process relies on random vectors, the same input can be fed into the model $N$ times using different vectors. Averaging these results creates an ensemble effect that boosts accuracy without the computational overhead of training or running multiple independent models.

Results

MUX-PLMs demonstrate a superior Pareto frontier regarding the trade-off between performance and throughput:

  • Throughput Gains: The models offer up to a 400% improvement in throughput over baseline pre-trained models.
  • Accuracy Retention: At $N=2$ (two simultaneous inputs), MUX-BERT remains within 0.6 to 3 points of vanilla BERT while doubling speed. At $N=5$, the model achieves a 5x speedup with approximately a 5-point drop on GLUE.
  • Comparative Performance: MUX-PLMs outperformed the previous state-of-the-art multiplexing method (T-MUX) by 12–20 points across various tasks.
  • Versatility: The method is effective across different model sizes (Small, Base, Large) and various pre-training objectives.

Limitations and Future Work

While MUX-PLMs represent a significant step forward, performance begins to degrade more sharply as the number of multiplexed instances ($N$) exceeds 10, as the model's representational capacity becomes overextended. Additionally, the specific combination of inputs in a batch can lead to varying levels of interference (the "Lottery Ticket" effect).

Future research will focus on intelligent data sampling—grouping compatible inputs to minimize interference—and exploring how MIMO techniques can be combined with pruning and quantization for even greater cumulative efficiency.

Summary updated

BibTeX
@inproceedings{murahari2023mux,
  author = {Vishvak Murahari and Ameet Deshpande and Carlos E. Jimenez and Izhak Shafran and Mingqiu Wang and Yuan Cao and Karthik Narasimhan},
  title = {{MUX-PLMs: Pre-training Language Models with Data Multiplexing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=PIK3243GvB},
}
Figure