SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.07535 · 2022

AutoMoE: Heterogeneous Mixture-of-Experts with Adaptive Computation for Efficient Neural Machine Translation

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
microsoft/automoe canonical 3 of 4
copy not recorded — 2 of 2
FunctionStatusWhere it lives
Embedding Ran this paper's copy was not recorded; identical code first harvested from instance-wise-ordered-transformer/iot
pointer only · get_code("96cbb5e9ca5b6be0")
Linear Ran this paper's copy was not recorded; identical code first harvested from instance-wise-ordered-transformer/iot
pointer only · get_code("8cd8cb0d1e9e63e4")
dataset_dest_prefix Ran microsoft/automoe/preprocess.py
code served (permissive licence) · get_code("9eda7f80331d658c")
last_n_checkpoints Ran microsoft/automoe/average_checkpoints.py
code served (permissive licence) · get_code("99de76104bad1fc9")
safe_readline Ran microsoft/automoe/fairseq/binarizer.py
code served (permissive licence) · get_code("82bdf940665aeeb4")
average_checkpoints Not yet run microsoft/automoe/average_checkpoints.py
code served (permissive licence) · get_code("7cc2e301e30389d1")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Mixture-of-Expert (MoE) models have obtained state-of-the-art performance in Neural Machine Translation (NMT) tasks. Existing works in MoE mostly consider a homogeneous design where the same number of experts of the same size are placed uniformly throughout the network. Furthermore, existing MoE works do not consider computational constraints (e.g., FLOPs, latency) to guide their design. To this end, we develop AutoMoE -- a framework for designing heterogeneous MoE's under computational constraints. AutoMoE leverages Neural Architecture Search (NAS) to obtain efficient sparse MoE sub-transformers with 4x inference speedup (CPU) and FLOPs reduction over manually designed Transformers, with parity in BLEU score over dense Transformer and within 1 BLEU point of MoE SwitchTransformer, on aggregate over benchmark datasets for NMT. Heterogeneous search space with dense and sparsely activated Transformer modules (e.g., how many experts? where to place them? what should be their sizes?) allows for adaptive compute -- where different amounts of computations are used for different tokens in the input. Adaptivity comes naturally from routing decisions which send tokens to experts of different sizes. AutoMoE code, data, and trained models are available at https://aka.ms/AutoMoE.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2210.07535")
get_code_for_paper("2210.07535")
have("2210.07535")

Connect an agent — have() is free.