arXiv:2610.32115cs.CLOct 2026

Manuscript Offprint

arXiv:2610.32115

EDWARD-NMT: Elastic Dimensions With Adaptive Routing and Dual-consistency for Neural Machine Translation

Edward Nguyen, Thai Tran, Kiet Anh Hoang, Duy Hoang, Duy Vo, Khanh Le, Vu Le

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Sparse Mixture-of-Experts (MoE) is a powerful paradigm for scaling Neural Machine Translation (NMT) and managing language heterogeneity. However, practical limitations hinder its deployment on resource-constrained devices: the entire expert pool must remain in memory, and the per-token compute budget is statically fixed during training by rigid top-k routing. We introduce EDWARD-NMT (Elastic Dimensions With Adaptive Routing and Dual-consistency for NMT), a novel MoE encoder-decoder architecture designed for a “train once, deploy anywhere” paradigm that exposes a family of deployable sub-networks at inference time. EDWARD-NMT integrates three key innovations: (i) Matryoshka-style elastic dimensions to flexibly reduce the memory footprint; (ii) an adaptive sigmoid router with a learned, task-conditioned threshold, allowing each token to dynamically determine its active expert count; and (iii) a dual-consistency objective to maximize the performance of the extracted sub-networks. Extensive experiments on PhoMT (En↔Vi), WMT-14 (En↔De), multilingual OPUS-16, and a multi-domain De↔En benchmark validate our approach. The full-capacity architecture matches or exceeds strong MoE baselines with improved parameter efficiency. Furthermore, the sub-networks seamlessly extracted from a single checkpoint consistently outperform comparably sized dense Transformers without any retraining.

1 Introduction

Managing language and domain heterogeneity is a fundamental challenge in Neural Machine Translation (NMT) (Britz et al., 2017; Koehn and Knowles, 2017; Pham et al., 2021), as training corpora routinely mix diverse lexical and stylistic distributions (Stahlberg, 2020; Gain et al., 2026). The Mixture-of-Experts (MoE) paradigm addresses this by routing tokens to conditionally activated experts, scaling capacity to specialize in distinct patterns while keeping per-token computation tractable (Shazeer et al., 2017; Fedus et al., 2022; Dai et al., 2022; Zhang et al., 2024; Liang et al., 2025).

Despite state-of-the-art performance, MoEs face deployment bottlenecks in resource-constrained environments. First, the entire expert pool must reside in memory (Hoffmann et al., 2022; Xu et al., 2023). While lightweight adapters reduce this overhead (Zhang et al., 2024), they still yield static, hardware-specific models. Second, standard MoEs rely on rigid top-k routing, applying an identical compute budget regardless of token complexity (Jawahar et al., 2023; Guo et al., 2025). Although Neural Architecture Search can design heterogeneous sub-networks (Jawahar et al., 2023), it requires complex offline phases. Consequently, NMT practitioners lack a unified framework to dynamically adjust memory and compute footprints on the fly.

To address these gaps, we propose EDWARD-NMT (Elastic Dimensions With Adaptive Routing and Dual-consistency for NMT), an encoder-decoder architecture enabling a train-once, deploy-anywhere paradigm through two coordinated forms of adaptivity. To overcome memory bottlenecks, we apply Matryoshka representation learning (Kusupati et al., 2022) to expert dimensions, allowing the MoE to be deterministically sliced into weight-sharing sub-networks at inference. To eliminate rigid compute constraints, we replace top-k selection with an adaptive sigmoid router using a learned, task-conditioned threshold, empowering tokens to dynamically dictate their active expert count. Finally, to ensure aggressively truncated sub-networks maintain translation quality without post-hoc fine-tuning, we introduce a novel in-place dual-consistency objective that explicitly aligns predictive distributions across nested structural scales.

Extensive experiments on PhoMT

∗^{*}Equal contribution.

(En↔Vi) (Doan et al., 2021), WMT-14 (En↔De) (Bojar et al., 2014), multilingual OPUS-16 (Zhao et al., 2024), and a multi-domain De↔En (Aharoni and Goldberg, 2020) benchmark validate our approach. EDWARD-NMT achieves strong full-capacity performance, improving upon Transformer Big (Vaswani et al., 2017) across benchmarks, while keeping smaller variants highly capable. Our full model matches recent lightweight MoEs (Zhang et al., 2024), while our smallest variant (EDWARD-NMT-S) outperforms a dense Transformer Base, with all variants seamlessly extracted from a single checkpoint. In summary, our main contributions are:

• We propose EDWARD-NMT, coupling elastic expert dimensions with dynamic, token-level sigmoid routing to realize a train-once, deploy-anywhere NMT architecture.

• We formulate a dual-consistency self-distillation objective, an entirely in-place regularization mechanism that stabilizes aggressively sliced sub-networks without requiring post-hoc adaptation or fine-tuning.

• We demonstrate that a single training run yields a discrete family of high-performing sub-networks, with the full-capacity model matching strong MoE baselines and smaller variants outperforming comparably sized dense networks.