Manuscript Offprint
arXiv:2610.36009DuplexTune: Coupled-State Replay for Memory-Efficient Mixture-of-Experts Adaptation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Sparse expert execution does not remove the stored states needed to adapt a mixture-of-experts language model. We present DuplexTune, a framework for replaying coupled hidden states through pretrained attention and expert modules. Trainable width bridges connect two residual streams to the backbone. Bridge warm-up precedes backbone adaptation, with router weights kept frozen. We analyze the implicit state-recovery equation and identify the convergence and replay conditions needed for reconstruction. On Qwen1.5-MoE-A2.7B, the single-H800 evaluation reports 38.8 GB peak memory, versus 64.8 GB for supervised fine-tuning with checkpointing, and throughput of 25.1 versus 19.9 samples/s. DuplexTune achieves 67.2% MMLU, 75.6% GSM8K, and 7.69 MT-Bench, with a weaker multilingual score than the checkpointed baseline. The results characterize a configuration-dependent trade-off among state storage, throughput, and adaptation quality.
Index Terms— Mixture of experts, language model adaptation, activation reconstruction, memory-efficient training
1. INTRODUCTION
MoE activation is sparse, but training still maintains weights, gradients, optimizer states, and activations [1,2]. Qwen1.5-MoE-A2.7B contains 14.3 billion parameters but activates approximately 2.7 billion [3]. Active computation and stored-state costs therefore need separate accounting when adapting Transformer language models [4–6].
LoRA restricts trainable updates, while QLoRA also quantizes the frozen backbone [7, 8]. ZeRO and FSDP shard model states [9, 10], whereas checkpointing recomputes intermediate features on single or multiple devices [11].
DuplexTune frames this target as coupled-state replay. Two half-width residual streams exchange information through pretrained attention and expert modules. Learnable width bridges connect the streams to those modules. Bridge warm-up establishes the interface before backbone adaptation updates attention, expert weights, and bridges while leaving router weights fixed. This expands learning beyond adapters without describing the frozen-router configuration as an update to every parameter.
Because attention queries depend on the stream being recovered, replay requires implicit reconstruction. We state a sufficient convergence condition, a residual error bound, and replay requirements. The evaluation compares complete configurations: 38.8 versus 64.8 GB for checkpointed SFT, with higher scores on three tasks but weaker multilingual performance.
Adaptation objectives and optimization. PEFT surveys organize adaptation by the trainable parameterization [18]. CF-VLM and VLM learning dynamics address adaptation objectives [19, 20]. LoRA, DoRA, and (IA) restrict trainable updates [7, 21, 22]. Self-rewarded multimodal reasoning studies adaptation signals, while MAT-Agent organizes training optimization [23, 24]. LOMO reduces optimization memory, GaLore projects gradients, and Adam determines optimizer-state costs [25–27]. OSC aligns collaborator knowledge, and failure-driven refinement organizes workflows [28, 29]. These objectives and coordination mechanisms differ from activation replay.
Reconstruction and memory budgets. RevNet uses triangular coupling, and Reformer brings reversible layers to Transformers [30, 31]. Invertible residual networks recover states under a contraction condition [32], relevant to our query-dependent attention. Routing also appears in diffusion [33], targeting a different computation–quality tradeoff. FlashAttention reduces memory traffic through IO-aware exact attention, whereas ZeRO-Offload moves state and computation to the CPU [34, 35]. HTC-VLM compresses visual tokens; video encoders built on frozen image representations allocate to
(a) Decoder
(b) Coupled-state block

(c) Expert bank
Fig. 1. DuplexTune architecture. (a) Adapted decoder stack. (b) Width-lift and width-return bridges connect paired states to pretrained attention and sparse experts. Attention updates a to u; expert processing then updates b to v before the channel join. (c) Schematic expert bank with frozen router weights during backbone adaptation.
kens before temporal refinement [36, 37]. These mechanisms change different costs from retaining hidden states across layers.
Evaluation scope. MMLU, GSM8K, and MT-Bench assess knowledge, mathematical reasoning, and conversational responses [38–40]. Tri-MARF and MM-CoT instead examine annotation and visual reasoning [41, 42]. The multimodal and multi-agent studies above provide context for adaptation and allocation; they are not memory baselines in our language-model evaluation.
3. COUPLED-STATE REPLAY WITH WIDTH BRIDGES
3.1. Paired States and Width Bridges
Let , where each stream has width , is batch size, and is sequence length. The transition pair
connects these streams to the pretrained sublayers. We call the width-lift bridge and the width-return bridge. With stream normalization Norm, the projected states are
The wrapped attention and expert functions are
(3)
Attention uses queries from a and keys and values from b, with a causal mask. The coupled update is
The next layer receives . Attention and expert operations retain their pretrained matrix dimensions, while residual streams remain half-width.
For a shared transition pair, the additional weight count is per layer, excluding biases; independent pairs for attention and MoE would require . Preserving pretrained matrix shapes does not make the wrapper functionally identical to the original decoder. In particular, the rank of the linear stream interface is at most . Alignment must therefore learn a useful interface rather than assume lossless recovery of the original representation.
3.2. Conditional State Replay
Given u and v, the second input stream follows directly:
The first stream satisfies . Unlike triangular RevNet coupling, also appears inside the attention query. Its reconstruction uses
(6)
This equation is a reconstruction procedure, not an unconditional analytic inverse.
For fixed , suppose maps a closed domain into itself and is Lipschitz with constant . This gives a unique fixed point, as in the contraction argument for invertible residual networks [32]. For a candidate and exact , the residual and error bound are
(7)
The bound follows by subtracting the true fixed-point equation and applying the triangle inequality. A small residual is informative only when the contraction factor is controlled. Additive coupling alone does not establish this condition, and finite-precision replay need not be exact.
Local invertibility. Within a differentiable region of fixed expert dispatch, let . The forward map factors into and . The second factor has unit Jacobian determinant, giving
Local invertibility therefore depends on query-dependent attention, although recovering is a direct subtraction. Contraction keeps nonsingular, but must be verified for the learned functions and numerical precision.
Backward replay requires the same parameters, attention masks, random states, and expert dispatch decisions as the forward computation. Frozen router weights do not freeze token assignments when inputs change. Gradients must follow the replayed forward block rather than an arbitrary unrolling of inverse iterations.
Approximate state recovery perturbs the gradient evaluation points. Reconstruction residuals and gradient agreement with a stored-activation reference are therefore separate numerical checks; downstream task scores alone validate neither.
3.3. Bridge Warm-Up and Backbone Adaptation
Let denote pretrained parameters, the router subset, and the transitions. Autoregressive supervised adaptation minimizes
During bridge warm-up, Phase 1 freezes and updates only . Phase 2, backbone adaptation, optimizes and . Attention and expert weights become trainable while router weights stay fixed. This extends learning beyond the bridges without updating every parameter. The ablation evaluates the schedule, without assigning its gains to an unmeasured convergence mechanism.
3.4. Resource Accounting
Peak GPU memory is the maximum concurrent storage of weights, gradients, optimizer states, activations, and workspace. Reconstruction targets activations; stored expert weights and optimizer states remain. A replayable segment can reduce stored layer-boundary states from to for depth , but attention workspace, temporary expert activations, and replay metadata remain. Fixed-point attention recovery adds evaluations whose count depends on numerical convergence.
Table 1. Single-H800 efficiency. Batch sizes are capacity-tuned; throughput is not a matched-token comparison.
| Method | Memory (GB)↓ | Samples/s↑ |
|---|---|---|
| Parameter-efficient adaptation | ||
| LoRA | 18.4 | 76.2 |
| DoRA | 19.8 | 72.5 |
| (IA) | 17.6 | 74.8 |
| Broader weight updates | ||
| SFT + checkpointing | 64.8 | 19.9 |
| LOMO | 41.9 | 17.6 |
| GaLore | 44.8 | 35.5 |
| DuplexTune | 38.8 | 25.1 |
Sparse computation and state residency remain distinct: selecting fewer experts need not reduce stored weights. Markets of Minds addresses shared-capacity allocation [17]; our frozen-router wrapper instead targets activation storage. Precision, optimizer representation, and state placement still determine total memory. The evaluation compares complete configurations, without separately profiling activation savings or implementing market clearing.
4. EXPERIMENTS
4.1. Evaluation Setting
The evaluation adapts Qwen/Qwen1.5-MoE-A2.7B on databricks-dolly-15k, using PyTorch and Transformers on one 80 GB NVIDIA H800. The checkpoint uses the qwen2_moe implementation [3].
The comparison includes LoRA, DoRA, and (IA) as parameter-efficient methods, and supervised fine-tuning (SFT) with checkpointing, LOMO, and GaLore as methods with broader weight updates. Peak GPU memory is reported in GB and throughput in samples/s. The methods use the same number of training steps, with batch sizes adjusted to the memory capacity. This setting measures achievable throughput for each configuration; it does not control processed tokens or isolate kernel efficiency.
Task metrics are MMLU [38], GSM8K [39], and MT-Bench [40], together with the multilingual aggregate in the comparison. The multilingual dataset composition is unspecified, so that column is interpreted within this evaluation rather than as a standardized external benchmark. The available results contain no multi-seed uncertainty estimates.
4.2. Memory-Throughput Tradeoff
Table 1 reports 38.8 GB peak memory for DuplexTune, versus 64.8 GB for checkpointed SFT. The reduction is 26.0 GB, or 40.1%. Throughput increases from 19.9 to 25.1 samples/s, a 26.1% gain under the reported batching policy. This difference cannot establish that reconstruction itself is faster than
Table 2. Downstream scores. MMLU, GSM8K, and Multi. are percentages; MT-B. is MT-Bench. Bold marks the best score per column, including the base model.
| Method | MMLU | GSM8K | Multi. | MT-B. |
|---|---|---|---|---|
| Base model | 62.4 | 61.2 | 40.4 | 6.25 |
| LoRA | 65.5 | 71.8 | 38.7 | 7.21 |
| DoRA | 65.9 | 71.1 | 39.1 | 7.29 |
| (IA) | 65.2 | 70.5 | 38.4 | 7.18 |
| SFT + checkpointing | 66.3 | 75.1 | 39.8 | 7.56 |
| LOMO | 66.5 | 74.9 | 39.5 | 7.52 |
| GaLore | 66.6 | 74.5 | 39.4 | 7.49 |
| DuplexTune | 67.2 | 75.6 | 39.0 | 7.69 |
Table 3. Training-phase ablation on MMLU. Removing either alignment or backbone fine-tuning reduces the score.
| Configuration | MMLU (%)↑ |
|---|---|
| DuplexTune (complete) | 67.2 |
| No bridge warm-up (joint updates) | 57.5 |
| No backbone adaptation (bridges only) | 54.9 |
checkpointing: batch sizes and other configuration choices contribute to the measured speed.
DuplexTune uses 3.1 GB less memory than LOMO and 6.0 GB less than GaLore, but is slower than GaLore's 35.5 samples/s. PEFT remains more memory efficient: (IA) uses 17.6 GB, and LoRA reaches 76.2 samples/s. These configurations offer different tradeoffs between update scope, memory, and throughput.
4.3. Adaptation Quality
Table 2 shows the highest adapted-model scores for Duplex-Tune on MMLU, GSM8K, and MT-Bench. Relative to checkpointed SFT, the gains are 0.9 and 0.5 percentage points on MMLU and GSM8K, and 0.13 MT-Bench points. Against DoRA, the corresponding differences are 1.3, 4.5, and 0.40. These are descriptive differences from the reported runs; the table does not establish statistical significance.
Multilingual performance shows a different pattern: DuplexTune scores 39.0, below checkpointed SFT (39.8), DoRA (39.1), and the base model (40.4). Every adapted model underperforms the base in this column. Reasoning and conversational gains therefore coexist with a lower multilingual score.
4.4. Training-Phase Ablation
Table 3 compares the complete schedule with removing either phase. Omitting alignment yields MMLU, 9.7 percentage points below the complete method. Restricting learning to transitions yields , a 12.3-point decrease. Both variants also fall below the base-model score.

Fig. 2. Memory and MMLU. Points combine the values in Tables 1 and 2; they summarize complete configurations with capacity-tuned batches. Throughput and other task scores remain separate criteria.
These observations support using alignment and subsequent backbone updates together in this configuration. They do not, without optimization traces, prove that the joint-training variant diverges or identify the mechanism behind the decline.
4.5. Scope and Reproducibility
The evaluation covers one backbone, one instruction dataset, and one GPU class. Reconstruction, transitions, router freezing, and optimizer-state storage are not separately ablated. Memory comparisons depend on precision and state placement. Reproduction additionally requires learning rates, sequence lengths, per-method batches, inverse-solver tolerances, and multilingual task composition. The H800 results do not establish single-consumer-GPU feasibility.
Token compression and state replay also act on different budgets. HTC-VLM and video encoders built on image representations reduce visual-token exposure [36, 37], whereas this evaluation changes hidden-state storage. Combining them would require measuring retained task evidence and reconstruction error alongside memory. Markets of Minds [17] allocates expert assistance by expected benefit and opportunity cost; that decision does not determine an expert's training-state footprint.
5. CONCLUSION
DuplexTune combines coupled-state replay, width bridges, and staged backbone adaptation. State recovery requires convergence; weight and optimizer costs remain. The reported H800 configuration reduces memory relative to checkpointed SFT and improves three task scores, with multilingual and throughput tradeoffs. Further evaluation should measure matched-token quality, reconstruction error, and state residency.
6. REFERENCES
[1] N. Shazeer et al., “Outrageously large neural networks: The sparsely-gated mixture-of-experts layer,” CoRR, vol. abs/1701.06538, 2017.
[2] W. Fedus, B. Zoph and N. Shazeer, “Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity,” 2022, arXiv:2101.03961.
[3] Qwen Team, “Qwen1.5-MoE-A2.7B: Model card,” Hugging Face, 2024.
[4] A. Vaswani et al., “Attention is all you need,” CoRR, vol. abs/1706.03762, 2017.
[5] OpenAI, “GPT-4 technical report,” 2024, arXiv:2303.08774.
[6] H. Touvron, T. Lavril and G. Izacard, “LLaMA: Open and efficient foundation language models,” 2023, arXiv:2302.13971.
[7] E. J. Hu et al., “LoRA: Low-rank adaptation of large language models,” CoRR, vol. abs/2106.09685, 2021.
[8] T. Dettmers et al., “QLoRA: Efficient finetuning of quantized LLMs,” 2023, arXiv:2305.14314.
[9] S. Rajbhandari et al., “ZeRO: Memory optimizations toward training trillion parameter models,” arXiv preprint arXiv:1910.02054, 2020.
[10] Y. Zhao et al., “PyTorch FSDP: Experiences on scaling fully sharded data parallel,” 2023, arXiv:2304.11277.
[11] T. Chen et al., “Training deep nets with sublinear memory cost,” CoRR, vol. abs/1604.06174, 2016.
[12] W. Cai et al., “A survey on mixture of experts in large language models,” IEEE Transactions on Knowledge and Data Engineering, 2025.
[13] J. Zhang et al., “KABB: Knowledge-aware bayesian bandits for dynamic expert coordination in multi-agent systems,” in Proc. ICML, 2025.
[14] J. Zhang et al., “GAM-Agent: Game-theoretic and uncertainty-aware collaboration for complex visual reasoning,” in Advances in Neural Information Processing Systems, 2025, vol. 38.
[15] J. Duan et al., “Efficient training of large language models on distributed infrastructures: A survey,” 2024, arXiv:2407.20018.
[16] J. Zhang et al., “Why keep your doubts to yourself? trading visual uncertainties in multi-agent bandit systems,” 2026, arXiv:2601.18735.
[17] J. Zhang et al., “Markets of Minds: A 51-billion-state economy of intelligence,” 2026, arXiv:2610.32190.
[18] Z. Han et al., “Parameter-efficient fine-tuning for large models: A comprehensive survey,” 2024, arXiv:2403.14608.
[19] J. Zhang et al., “CF-VLM: Counterfactual vision-language fine-tuning,” in Advances in Neural Information Processing Systems, 2025, vol. 38.
[20] J. Zhang et al., “Learning dynamics of VLM finetuning,” 2025, arXiv:2510.11978.
[21] S.-Y. Liu et al., “DoRA: Weight-decomposed low-rank adaptation,” 2024, arXiv:2402.09353.
[22] H. Liu et al., “Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning,” 2022, arXiv:2205.05638.
[23] J. Zhang et al., “Self-rewarded multimodal coherent reasoning across diverse visual domains,” 2025, arXiv:2512.22545.
[24] J. Zhang et al., “MAT-Agent: Adaptive multi-agent training optimization,” in Advances in Neural Information Processing Systems, 2025, vol. 38.
[25] K. Lv et al., “Full parameter fine-tuning for large language models with limited resources,” 2024, arXiv:2306.09782.
[26] J. Zhao, Z. Zhang and B. Chen, “Galore: Memory-efficient LLM training by gradient low-rank projection,” 2024, arXiv:2403.03507.
[27] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” 2017, arXiv:1412.6980.
[28] J. Zhang et al., “OSC: Cognitive orchestration through dynamic knowledge alignment in multi-agent LLM collaboration,” in Findings of EMNLP. 2025, pp. 6320–6337, Association for Computational Linguistics.
[29] J. Zhang et al., “Failure-driven workflow refinement,” 2025, arXiv:2510.10035.
[30] A. N. Gomez et al., “The reversible residual network: Backpropagation without storing activations,” 2017, arXiv:1707.04585.
[31] N. Kitaev, L. Kaiser and A. Levskaya, “Reformer: The efficient transformer,” CoRR, vol. abs/2001.04451, 2020.
[32] J. Behrmann et al., “Invertible residual networks,” in Proc. ICML. 2019, vol. 97, pp. 573–582, PMLR.
[33] J. Zhang et al., “Drdiff: Dynamic routing diffusion with hierarchical attention for breaking the efficiency-quality trade-off,” 2025, arXiv:2509.02785.
[34] T. Dao et al., “FlashAttention: Fast and memory-efficient exact attention with IO-awareness,” 2022, arXiv:2205.14135.
[35] J. Ren et al., “ZeRO-Offload: Democratizing billion-scale model training,” in Proc. USENIX ATC. 2021, pp. 551–564, USENIX Association.
[36] J. Zhang et al., “Hybrid token compression for vision-language models,” 2025, arXiv:2512.08240.
[37] J. Zhang et al., “Video encoders built on image representations,” 2026, arXiv:2610.06616.
[38] D. Hendrycks, C. Burns and S. Basart, “Measuring massive multitask language understanding,” CoRR, vol. abs/2009.03300, 2020.
[39] K. Cobbe et al., “Training verifiers to solve math word problems,” 2021, arXiv:2110.14168.
[40] L. Zheng et al., “Judging LLM-as-a-judge with MT-Bench and chatbot arena,” 2023, arXiv:2306.05685.
[41] J. Zhang et al., “Tri-MARF: A tri-modal multi-agent responsive framework for comprehensive 3d object annotation,” in The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[42] J. Zhang et al., “MM-CoT:a benchmark for probing visual chain-of-thought reasoning in multimodal models,” 2025, arXiv:2512.08228.