Abstract
RevMUX is a parameter-efficient framework designed to accelerate Large Language Model (LLM) inference through data multiplexing—the process of merging multiple input queries into a single forward pass. By employing a novel reversible adapter architecture, RevMUX achieves up to 2x throughput gains while maintaining high accuracy on frozen backbones, overcoming the limitations of previous methods that required costly full-model retraining.
Introduction
As LLMs scale to hundreds of billions of parameters, inference costs have become a primary bottleneck. While standard batching improves throughput, the total computational load (FLOPs) still scales linearly with the number of inputs. Data Multiplexing (or Multi-Input Multi-Output, MIMO) offers a way to share computational costs across inputs. However, existing MIMO techniques often suffer from significant information loss and lack the flexibility needed for modern, massive LLMs. RevMUX addresses these challenges by introducing a parameter-efficient approach that works with fixed, pre-trained LLM backbones.
Methodology
The core innovation of RevMUX is the Reversible Adapter architecture. Inspired by Reversible Neural Networks (RevNets), the framework ensures that the merging and unmerging of data are mathematically related, preventing the "smushing" of unique input characteristics.
The RevMUX pipeline consists of several key stages:
- Prefilling: Inputs are first passed through the initial layers of the frozen LLM. This ensures the data is in a feature space the model already understands before merging.
- Reversible Multiplexer: This layer maps different samples into distinct feature spaces using a reversible function. Reversibility acts as an information guard, preserving the uniqueness of individual inputs.
- Frozen Backbone: The multiplexed representation is processed by the main LLM backbone, which remains completely frozen during training.
- Reverse Demultiplexer: This layer performs the inverse operation of the multiplexer, disaggregating the backbone's output back into individual samples for final classification.
- Contrastive Learning: During training, an InfoNCE loss is utilized to ensure multiplexed outputs closely match the outputs the model would have produced if processing samples individually.
Experimental Evaluation
The researchers evaluated RevMUX using the GLUE benchmark (SST-2, MRPC, RTE, QNLI) across three major architectures: BERT-Base, T5 (Small, Base, Large), and LLaMA3-8B.
Results and Analysis
RevMUX demonstrates a superior balance between computational efficiency and model accuracy. On the BERT-Base architecture, RevMUX (with a frozen backbone) outperformed previous MIMO baselines like DataMUX, which required full-model fine-tuning.
Key performance metrics include:
- Throughput Gains: RevMUX achieved speedups of approximately 154% on BERT and 145% on T5 for a multiplexing factor of $N=2$.
- LLaMA3 Scalability: On LLaMA3-8B, the framework provided a twofold increase in inference efficiency while simultaneously improving zero-shot accuracy by 2% to 10% across tested datasets.
- High-Density Packing: The model maintained relatively high accuracy even when multiplexing up to 16 samples into a single pass, provided sufficient prefilling layers were used.
Discussion and Conclusion
The success of RevMUX highlights the importance of reversibility in data merging; the authors found that using reversible designs in both the multiplexing and demultiplexing stages creates a necessary synergy for information preservation. While currently focused on classification tasks, RevMUX proves that data multiplexing can be scaled to billion-parameter models without modifying base weights. Future work will explore applying this framework to autoregressive generation and even larger frontier models.
Summary updated