{
  "id": 1432,
  "kind": "tool",
  "title": "Dist-MoE: Speed-of-Light Distributed Mixture-of-Experts Forward and Backward Kernels",
  "summary": "A library of fused communication-and-compute kernels for expert-parallel (EP) MoE on NVIDIA SM100+ (Blackwell) GPUs. The caller supplies top-k expert IDs and scores (routing itself is out of scope); a reusable context owns symmetric, peer-addressable HBM dispatch/combine buffers (NVLink) and executes dispatch → grouped expert GEMM (W13 → SwiGLU → W2) → combine as one ordered operation, with forward and backward (FPROP/DGRAD/WGRAD) kernels throughout. Precision/pipeline matrix: BF16 \"standard\" (training + inference); MXFP8 E4M3 in Staged (separate W13 and SwiGLU/W2 kernels) or Mega (both projections fused into one chunk-pipelined kernel with chunk-local readiness) pipelines (training + inference); NVFP4 in Staged or Mega, inference only, prepared weights. Kernels are CuTe/CUTLASS-DSL; validated stack is Linux ARM64, PyTorch 2.14 + CUDA 13.0, NCCL 2.30.7; no CPU fallback. Two mechanisms distinguish it from DeepEP (dispatch/combine comms only, no fused expert compute), MegaBlocks, DeepSeek's Mega MoE/DeepGEMM (fused forward only, no fused training backward), ByteDance Comet/Flux (no CUDA graphs on the dynamic-routing path, no packing policy), and Cursor's Mixture-of-Kittens (MoK): (1) dynamic activation packing — a planner packs saved forward state from all layers sharing an activation slot into one bounded buffer instead of reserving a per-layer budget, and it works during CUDA-graph replay; (2) dynamic, capacity-driven recompute — when the slot budget is exhausted the planner keeps mandatory layer inputs and rebuilds the remaining intermediates in backward, decided by device predicates so the host launches one fixed, graph-stable sequence (soft limit; scratch overflow without VMM host-backed overflow is a hard error). Also: full CUDA-graph support and non-strict make_fx (full torch.compile/strict export explicitly NOT supported), fused post-expert RMSNorm + score weighting + top-k reduction, clamped SwiGLU, in-place WGRAD accumulation into standard parameter.grad, and no shared-expert branch required — routed-only execution, -1 expert ID disables a route (MoK's reviewed API, by contrast, requires shared-expert weights). TorchTitan integration: a DistMoeTransform swaps stock RoutedExperts for the Dist-MoE backend in place (same GroupedLinear parameter layout, so FSDP/optimizer/checkpoint ownership is unchanged; requires mixed_precision_param=\"bfloat16\"), plus a rank-wide DistMoeRuntime.Config (scratch/activation-slot capacity factors, VMM factor, pipeline-parallel slot policy); verified 671B DeepSeek-V3 recipes ship in torchtitan_recipes, MXFP8 Mega fused inference is wired for RL generators, and NVFP4 inference is in the library but not yet exposed by TorchTitan. Benchmarks — ALL Meta-reported, GB300 NVL72, no independent replication: \"useful\" throughput counts only real GEMM FLOPs (fwd = 6·T·K·D·F per GPU; bwd = 2× fwd), excluding padding and replay work, divided by whole-layer iteration time (median of five 30-iteration CUDA-graph windows, slowest rank; comm/quantization/padding time stays in the denominator). Headline MoK comparison (both implementations given one BF16 shared expert, D=7,168, 384 experts, top-6, 2,048 tokens/GPU, CUDA graphs on): up to 1.40× over MoK — specifically the synthetic ten-layer packing training workload under per-layer routing imbalance (MXFP8, EP64), where Dist-MoE packed all ten layers' saved state at capacity factor 2.5 with zero capacity-induced recompute (peak allocation 49.73 GiB vs MoK 48.37 GiB); Meta notes the experiment does not isolate how much of the gain is avoided recompute alone. MoK was chosen as baseline because Cursor's published single-layer NVL72 results lead the other OSS stacks (DeepEP+PyTorch, DeepEP+TransformerEngine, HybridEP+Megatron). Separate standalone suite (zero shared experts, one routed layer): 3.09 useful PFLOP/s per GPU NVFP4 Mega inference (EP16), 1.86 MXFP8 Staged training (EP64), 1.27 BF16 training (EP64) — vs dense datasheet peaks of 15/5/2.5 PFLOP/s respectively. Imbalance scaling is sub-linear: NVFP4 inference EP16, 8× received rows on the busiest GPU → 4.82× iteration time (~40% lower time per received row). Stated limitations: SM100+ only; no NVFP4 training, MXFP8 E5M2, MXFP4, A8W4, communication quantization, or expert borrowing in this release; the explainer itself discloses that EP32/EP64 training ran at different sites, some allocations shared an NVLink fabric with unconfirmed timing overlap (not uncontended-peak evidence), and HBM byte rates are modeled, not measured.",
  "body": "",
  "notes": "Discovery: Hudson shared @sanketpurandare's announcement post 2026-10-21. Claim hygiene: every performance number is first-party, measured on Meta's own GB300 NVL72 systems against Meta's chosen baseline; the 1.40× is a single multi-layer packing workload, not a general MoE speedup — single-layer and width/imbalance sweeps are in the explainer's downloadable CSVs for anyone re-checking. Cluster: the distributed-kernel layer under the catalog's model-level MoE entries (#43 MAI-Base-2 dropless MoE; #74 OperLoop's 3:1 SWA:full MoE eval backbone) — this is what \"dropless\" costs and buys at the dispatch/combine level. Precision thread: MXFP8 training + NVFP4 inference as production number formats extends the low-precision line running through #66 (Muon formula grid / fp32 caveat), #77 (batch invariance), #92 Helion/CompileIQ, and held #98 PULSE. Stack relevance: Hudson's own models are dense 3:1 SWA:full-attention hybrids, not EP MoE, so this is neighborhood reading (expert-parallel dispatch/combine fusion, block-scaled training kernels) rather than a drop-in for his stack; no Launch Helm angle. Watch at insert: repo is 11 commits old — recheck stars/API/modes before the entry hardens. Dedupe: verified 2026-10-21 against local catalog data/papers.json and queue file — no \"dist-moe\"/\"dist_moe\"/\"mixture-of-kittens\" match; live dedupe still owed at insert (Neon quota block): check title ILIKE '%Dist-MoE%' OR url ILIKE '%dist_moe%'. NOTE: staged Assistant Axis draft takes #78; #97–99 held for the sparsity papers (pending Hudson's decision); this entry is #108. | License: BSD-3-Clause (verified from the repo LICENSE / GitHub license metadata — not Apache-2.0). Explainer/docs carry no separate license statement.",
  "url": "https://github.com/meta-pytorch/dist_moe",
  "links": [],
  "authors": [
    "Meta Superintelligence Labs / Meta PyTorch. Primary author Shikai Li (core design: distributed MoE implementation",
    "\"SyncFree\" execution model",
    "activation planning/memory layers",
    "grouped-GEMM and low-precision kernels). Open-sourced by Sanket Purandare",
    "advised by Tianyu Liu",
    "Natalia Gimelshein",
    "Edward Yang. Additional contributors: Jongsoo Park",
    "Summer Deng",
    "Jianyu Huang",
    "Jie Wang",
    "Xiaozhu Meng",
    "Vijay Thakkar",
    "Jiecao Yu",
    "Edward Yang",
    "builds on earlier MXFP8 dropless CUDA-graphable MoE work by Daniel Haziza",
    "Luca Wehrstedt",
    "Simon Layton",
    "Driss Guessous. Visual explainer by Shikai Li & Sanket Purandare."
  ],
  "tags": [],
  "topics": "",
  "venue": "GitHub release (meta-pytorch org), v0.1.0 tagged 2026-10-03; repo created 2026-09-18, 11 commits, 52 stars at check — brand-new, expect rapid change.",
  "publisher": "",
  "source": "x",
  "language": "en",
  "access": "open source",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-21T00:00:00.000Z",
  "verified_at": "2026-10-21T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1739"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:56:31.861Z",
  "updated_at": "2026-11-01T12:56:31.861Z",
  "page": "https://papers.projxon.ai/entries/1432",
  "markdown": "https://papers.projxon.ai/entries/1432.md",
  "api": "https://papers.projxon.ai/api/entries/1432",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1261,
      "kind": "paper",
      "title": "Attribution-Guided and Coverage-Maximized Pruning for Structural MoE Compression (MoE-Slimming)",
      "summary": "Structural pruning framework for MoE LLMs built on the observation that MoE expert information is concentrated in a small fraction of channels — expert-level importance is too coarse to capture internal redundancy, and even 'high-importance' experts may not need large capacity. Three components: (1) Attribution-guided Loss Approximation (ALA) estimates expert importance layerwise via first-order Taylor approximations over calibration data, without exhaustive ablation (20x fewer GPU hours); (2) Coverage-maximized Budget Allocation (CBA) reformulates prune-ratio allocation as channel-score coverage maximization under a global budget, retaining high-contribution channels and pruning low-score tails; (3) Alignment-Aware Redistribution (AAR) adjusts dimensions to satisfy low-bit kernel constraints for quantized storage and efficient inference. On DeepSeek and Qwen MoEs, retains accuracy under 50% or 25% structured pruning jointly with 4-bit quantization: Qwen3-30B-A3B memory footprint reduced 5.27x, at most 1% average accuracy drop on general knowledge, 94.5 on MATH500, and outperforming SOTA baselines across diverse benchmarks. Pipeline: score -> mask generation + LoRA fine-tuning (fake pruning during training, masks anneal) -> physical slimming into a smaller dense checkpoint + lm-eval-harness benchmarks.",
      "url": "https://arxiv.org/abs/2606.18304",
      "authors": [
        "Yifu Ding",
        "Jiacheng Wang",
        "Ge Yang",
        "Yongcheng Jing",
        "Jinyang Guo",
        "Xianglong Liu",
        "Dacheng Tao"
      ],
      "tags": [
        "moe-pruning",
        "structured-pruning",
        "quantization",
        "expert-importance",
        "moe-slimming",
        "icml-2026"
      ],
      "venue": "arXiv 2606.18304 [cs.LG/cs.AI]; submitted to ICML 2026 (Spotlight)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1261",
      "markdown": "https://papers.projxon.ai/entries/1261.md",
      "api": "https://papers.projxon.ai/api/entries/1261"
    },
    {
      "id": 1105,
      "kind": "paper",
      "title": "EMO: Pretraining Mixture of Experts for Emergent Modularity",
      "summary": "AllenAI/Berkeley paper (arXiv 2605.06663, 2026-05-07). EMO restricts tokens in a document to a shared expert pool so semantic domain modules emerge. 1B-active / 14B-total MoE (128 experts, k=8) pretrained on 1T OLMoE-mix tokens (+50B anneal). Full model matches a standard MoE; retaining 25% / 12.5% experts drops ~1% / ~3% abs vs severe drops for regular MoEs. Experts specialize to semantic domains rather than lexical patterns. Releases model, code, blog, visualization.",
      "url": "https://arxiv.org/abs/2605.06663",
      "authors": [
        "Ryan Wang",
        "Akshita Bhagia",
        "Sewon Min"
      ],
      "tags": [
        "emo",
        "moe",
        "modularity",
        "allenai",
        "olmoe",
        "emergent-specialization",
        "selective-experts",
        "arxiv-2605.06663"
      ],
      "venue": "arXiv / Allen Institute for AI / UC Berkeley",
      "source": "arxiv",
      "license": "Apache-2.0 (HF card allenai/Emo_1b14b_1T)",
      "published_year": 2026,
      "added_at": "2026-09-01T20:25:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 4,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1105",
      "markdown": "https://papers.projxon.ai/entries/1105.md",
      "api": "https://papers.projxon.ai/api/entries/1105"
    },
    {
      "id": 838,
      "kind": "paper",
      "title": "Supercharging Olmo-core for Efficient and Scalable MoE Training",
      "summary": "Supercharging Olmo-core for Efficient and Scalable MoE Training (Allen AI technical report, October 2026, 168 pages; no arXiv listing at research time, lives only on allenai.org; no license notice visible on the report). Olmo-core 3 is a redesigned open MoE training stack, moving from Fully Sharded Data Parallel (FSDP) -- which gathered/resharded weights per microbatch -- to Distributed Data Parallel (DDP) + Expert Parallelism (EP) + Pipeline Parallelism (PP) + a distributed optimizer + activation recompute. Experts stay resident on GPUs and training data is routed to them, avoiding repeated weight gathering. Key techniques: NVSHMEM-based rowwise EP (tokens written directly into expert buffers), GPU-resident routing metadata, device-scheduled grouped GEMMs, and MXFP8 low-precision formats. Results on NVL8 B300 nodes: configurations from 12.9B to 1.2T total parameters on up to 512 GPUs; 858 useful-model TFLOP/s/GPU at 1.2T with MXFP8 and per-layer recompute; an experimental DeepEP v2 backend capacity test reached 2.38T total parameters. ~2.7x throughput vs Olmo-core 2's FSDP stack (47B-param MoE on 8x B300: ~52,000 vs 19,400 tokens/sec/GPU); expert pool grown 8->128 with only 4 experts/token and <5% throughput loss; ~21% higher throughput with MXFP8 vs BF16 (peak memory 103->95 GiB). Failure-mode studies include 'token gerrymandering' (the MoE router learns to hack the load-balancing loss so the score improves while the actual workload gets less balanced) and a finding that overlapping communication with computation can slow the overlapped kernels by more than it hides. Code released as Olmo-core v3.0.0 (Apache-2.0). Designed to scale into the trillion-parameter range; the next-generation Olmo will use an MoE architecture.",
      "url": "https://allenai.org/papers/olmocore3",
      "authors": [
        "Tianhua Tao",
        "Akshita Bhagia",
        "Dirk Groeneveld",
        "Pete Walsh",
        "Tyler Romero",
        "Yashas Samaga",
        "Jacob Morrison",
        "Iz Beltagy",
        "Taira Anderson",
        "Noah A. Smith",
        "Hannaneh Hajishirzi (Allen Institute for AI",
        "University of Washington)"
      ],
      "tags": [
        "moe-training",
        "expert-parallelism",
        "distributed-training",
        "nvshmem",
        "mxfp8",
        "grouped-gemm",
        "load-balancing",
        "token-gerrymandering",
        "olmo",
        "open-infrastructure",
        "b300",
        "pipeline-parallelism"
      ],
      "venue": "Allen AI technical report, 2026-10",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/838",
      "markdown": "https://papers.projxon.ai/entries/838.md",
      "api": "https://papers.projxon.ai/api/entries/838"
    },
    {
      "id": 833,
      "kind": "paper",
      "title": "ID Balancing: Stable Training of Extremely Sparse MoE via PID-Based Load Control",
      "summary": "Addresses expert load imbalance when scaling LLMs via Mixture-of-Experts with increasingly sparse routing. ID Balancing: an Integral-Derivative load-control method built on the observation that two existing auxiliary-loss-free methods are incomplete PID controllers -- DeepSeek's loss-free method is a fixed-step integral controller and Kimi K3's Quantile Balancing is a generalized proportional controller. ID Balancing scales its integral term with load error and activates its derivative term only when imbalance worsens, giving stronger corrections for large/worsening errors and smaller updates near balance. Results (Top-10/Top-5/Top-3 routing over 768 experts): in Top-3, worst-case backbone MaxVio reduced by over 50% and training-average backbone MinVio by over 12% vs the best baselines. Scaling 18.9B -> 69.9B total params (Top-10-of-768), worst-case backbone MaxVio stays nearly unchanged, ~89.6% lower than the auxiliary-loss baseline. Maintains competitive language-modeling and downstream performance; advantages grow as sparsity increases.",
      "url": "https://arxiv.org/abs/2609.39137",
      "authors": [
        "Peng Jin",
        "Zihan Qiu",
        "Zekun Wang",
        "Bo Zheng",
        "Yang Xu",
        "Tian Xie",
        "Xiao Li",
        "Huaqing Zhang",
        "Haoran Lian",
        "Rui Men",
        "Dayiheng Liu"
      ],
      "tags": [
        "mixture-of-experts",
        "moe",
        "load-balancing",
        "pid-control",
        "sparse-routing",
        "training-stability"
      ],
      "venue": "arXiv 2026-09-30 (cs.LG)",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/833",
      "markdown": "https://papers.projxon.ai/entries/833.md",
      "api": "https://papers.projxon.ai/api/entries/833"
    },
    {
      "id": 1096,
      "kind": "paper",
      "title": "LatentMoE: Toward Optimal Accuracy per FLOP and Parameter in Mixture of Experts",
      "summary": "NVIDIA paper (arXiv 2601.18089, submitted 2026-01-26) arguing that standard MoEs are often memory-bandwidth-bound at low latency and all-to-all-bound at high throughput. LatentMoE down-projects activations from hidden d to latent ell before routed experts, then up-projects; two configs: ell-MoE_eff (iso-accuracy, cheaper inference) and recommended ell-MoE_acc (iso-cost, higher accuracy by scaling N and K by alpha=d/ell). Ablations at 16B-total/2B-active (DeepSeek-v2-lite-like) pick alpha=4. 95B-total/8B-active Transformer at 300B tokens: ell-MoE_acc raises MMLU Pro 29.26→34.91 and MMLU 58.95→62.23 vs baseline at matched ~8.4B active / ~95B total. Hybrid Mamba-Attention 73B-total/8B-active trained 1T tokens: ell-MoE_acc MMLU Pro 48.30→52.87. Architecture later adopted in Nemotron-3 Super/Ultra (NVIDIA et al., arXiv 2512.20856). No official LatentMoE weight dump; linked Hub models are third-party experiments.",
      "url": "https://arxiv.org/abs/2601.18089",
      "authors": [
        "Venmugil Elango",
        "Nidhi Bhatia",
        "Roger Waleffe",
        "Rasoul Shafipour",
        "Tomer Asida",
        "Abhinav Khattar",
        "Nave Assaf",
        "Maximilian Golub",
        "Joey Guman",
        "Tiyasa Mitra",
        "Ritchie Zhao",
        "Ritika Borkar",
        "Ran Zilberstein",
        "Mostofa Patwary",
        "Mohammad Shoeybi",
        "Bita Rouhani"
      ],
      "tags": [
        "latentmoe",
        "moe",
        "nvidia",
        "nemotron-3",
        "mixture-of-experts",
        "inference-efficiency",
        "hardware-software-co-design",
        "hybrid-mamba"
      ],
      "venue": "arXiv (NVIDIA)",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-01T18:32:46.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 10,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1096",
      "markdown": "https://papers.projxon.ai/entries/1096.md",
      "api": "https://papers.projxon.ai/api/entries/1096"
    },
    {
      "id": 1217,
      "kind": "code",
      "title": "KohakuFA: Attention Kernel with Fixed Backward-Pass Precision",
      "summary": "New attention kernel claiming severe backward-pass precision bugs in cuDNN SDPA, FlashAttention-4, and flex attention: when attention logits get huge (DINOv3 reportedly hits ~1e5 out of the box), backward gradients can be wrong by 10-1000x or become inf, while forward and loss look completely normal — so instability surfaces only late in training when reruns are expensive. Implication: some reported fp16 instability, QKNorm benefits, or 'failed runs' may be kernel artifacts, not model-design flaws. KohakuFA fixes 3 precision bugs, keeping gradients at the fp16 error floor for ~5% extra cost; fast for ViT/DiT/video. Figures: DINOv3 ViT-B/16 fine-tuning backward error over training — FA4 highest error (~0.05-0.6), KohakuFA tracks the fp64 correct-kernel floor; whole-model fp16 gradient vs fp64 across 50k-200k steps — cuDNN SDPA gradients collapse after ~100k-125k steps (cosine→0, relative error >10x), KohakuFA stays near-correct. Blackwell (SM100) only for now; sm120 support planned (flex attention reportedly has the same issue on sm120). Directly relevant to user's training-run debugging (CUDA OOMs aside, kernel-precision bugs are the same class of hard-to-diagnose training instability).",
      "url": "https://github.com/KohakuBlueleaf/KohakuFA",
      "authors": [
        "Kohaku Blueleaf (KohakuLab / ComfyOrg)"
      ],
      "tags": [
        "kohakufa",
        "attention-kernel",
        "backward-precision",
        "flashattention",
        "cudnn",
        "fp16-instability",
        "qknorm",
        "training-stability"
      ],
      "venue": "GitHub release, announced 3 Oct 2026",
      "source": "github",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1217",
      "markdown": "https://papers.projxon.ai/entries/1217.md",
      "api": "https://papers.projxon.ai/api/entries/1217"
    }
  ]
}
