[Paper Review] DataMUX: Data Multiplexing for Neural Networks
DataMUX introduces a technique for deep neural networks to process multiple inputs simultaneously using a single compact mixed representation, via a multiplexing layer that combines inputs and a demultiplexing layer that recovers individual predictions. It achieves up to 18x higher inference throughput with under 4% accuracy drop on tasks like MNLI and SST-2, demonstrating feasibility in Transformers and limited viability in MLPs and CNNs.
In this paper, we introduce data multiplexing (DataMUX), a technique that enables deep neural networks to process multiple inputs simultaneously using a single compact representation. DataMUX demonstrates that neural networks are capable of generating accurate predictions over mixtures of inputs, resulting in increased throughput with minimal extra memory requirements. Our approach uses two key components -- 1) a multiplexing layer that performs a fixed linear transformation to each input before combining them to create a mixed representation of the same size as a single input, which is then processed by the base network, and 2) a demultiplexing layer that converts the base network's output back into independent representations before producing predictions for each input. We show the viability of DataMUX for different architectures (Transformers, and to a lesser extent MLPs and CNNs) across six different tasks spanning sentence classification, named entity recognition and image classification. For instance, DataMUX for Transformers can multiplex up to $20$x/$40$x inputs, achieving $11$x/$18$x increase in throughput with minimal absolute performance drops of $<2\%$ and $<4\%$ respectively on MNLI, a natural language inference task. We also provide a theoretical construction for multiplexing in self-attention networks and analyze the effect of various design elements in DataMUX.
Motivation & Objective
- To explore whether deep neural networks can process multiple inputs simultaneously using a single, compact representation without significant performance degradation.
- To design a method that increases inference throughput with minimal memory and computational overhead.
- To demonstrate the viability of data multiplexing across diverse architectures (Transformers, MLPs, CNNs) and tasks (NLP, vision).
- To analyze the theoretical and empirical limits of data multiplexing in attention-based networks.
- To provide a framework for training multiplexed models end-to-end with minimal added parameters.
Proposed method
- A multiplexing layer applies a fixed linear transformation (e.g., random orthogonal or low-rank) to each input before combining them into a single mixed representation of the same size as a single input.
- The base neural network (e.g., Transformer, MLP, CNN) processes the mixed representation as a single input.
- A demultiplexing layer reconstructs the network’s output into separate representations for each original input.
- The multiplexing and demultiplexing layers are differentiable, enabling joint training via standard backpropagation.
- A special token retrieval pre-training objective is introduced to improve training stability for multiplexed models.
- The method is applied across six tasks: sentence classification, named entity recognition, and image classification, with ablation studies on multiplexing strategies and model components.
Experimental results
Research questions
- RQ1Can deep neural networks be trained to make accurate predictions on multiple inputs simultaneously using a single, compact mixed representation?
- RQ2How does data multiplexing affect inference throughput and model accuracy across different architectures?
- RQ3What are the architectural and training conditions that enable successful data multiplexing in self-attention networks?
- RQ4How do different multiplexing and demultiplexing strategies impact performance on MLPs, CNNs, and Transformers?
- RQ5To what extent can data multiplexing be generalized across diverse NLP and vision tasks?
Key findings
- DataMUX enables Transformers to multiplex up to 40 inputs with only a 4% accuracy drop on MNLI, achieving up to 18x higher inference throughput.
- On SST-2, the multiplexed Transformer (T-MUX) maintains 98% of the vanilla Transformer’s accuracy when processing 40 inputs simultaneously.
- For MLPs, data multiplexing with low-rank transformations achieves ~78% accuracy at N=8, compared to ~95% for the baseline, showing moderate performance degradation.
- CNNs can be multiplexed up to N=4 with performance above 80%, but drop sharply beyond that, especially with orthogonal transformations that disrupt spatial locality.
- The method incurs minimal memory and computational overhead, as the mixed representation is the same size as a single input, enabling high throughput with no batch dimension increase.
- Theoretical analysis confirms that self-attention mechanisms can process inputs in N independent subspaces, supporting the feasibility of multiplexing in attention networks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.