ANLP Assignment 2 - Part 1: Mixture-of-Experts feed-forward ablations
Five decoder-only transformers trained from scratch on belumind/en-vi-ja-curated-500k-triplets for vi->en and ja->en translation, each on the same 30,000,842-token stream. The runs differ only in the feed-forward block: variants 1-4 share a total parameter budget and variant 5 matches the dense baseline's active parameter count.
| Variant | Folder | Total params | Active/token | Test PPL (target) | BLEU (beam-4) |
|---|---|---|---|---|---|
| Dense MLP (baseline) | dense/ | 22.91M | 22.91M | 9.39 | 31.04 |
| MoE 4 experts, top-1 | moe_4e_top1/ | 22.92M | 17.61M | 12.66 | 26.28 |
| MoE 4 experts, top-2 | moe_4e_top2/ | 22.92M | 19.38M | 9.56 | 30.34 |
| MoE 1 shared + 3 routed, top-1 | moe_1s_3r_top1/ | 22.92M | 19.38M | 10.53 | 29.23 |
| MoE 4 wide experts, top-2 (active == dense) | moe_4e_top2_wide/ | 30.00M | 22.92M | 9.12 | 30.95 |
Test metrics are for best.pt, the checkpoint with the lowest validation loss. final.pt holds the weights after the last training step. Each folder also holds train_log.jsonl, run_config.json,
summary.json and eval.json. All variants share tokenizer.json
(32k byte-level BPE) and part1.yaml.
Training curves for every run: WandB (group part1-moe, runs part1-<variant>).
from src.part1.model import TransformerLM
model, extra = TransformerLM.load("dense/best.pt", map_location="cpu")