Explore the research collection
12 entries · Follow this search
- Tool
Dist-MoE: Speed-of-Light Distributed Mixture-of-Experts Forward and Backward Kernels
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.
- Paper
Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs
Recurrent-attention hybrid LMs (e.g., Qwen3.5) interleave attention and recurrent layers as two complementary memory pathways: attention supports precise recall of earlier tokens, recurrent layers consolidate disparate information over long contexts. The paper shows hybrids rely substantially more on attention than on the recurrent state — and that standard SFT improves overall performance but does not fix the imbalance: the model becomes more reliant on attention-propagated information while recurrent-pathway use stays limited. Fix: an auxiliary loss that limits attention's access to earlier context while the recurrent state propagates through the full sequence, forcing the model to retain and use information through the recurrent pathway alongside attention. Results: overall performance improves with especially strong gains on longer-context and information-aggregation tasks; QA avg +4.6%, agentic tasks avg +12.1% across multiple hybrid LMs; also generalizes to attention-only models combining different memory types (+28.6%). Core message: simply providing multiple memory pathways does not ensure their effective use — targeted supervision is needed to coordinate them.
- Model
Limite 1B - Violetto (Paradigma)
Paradigma's Limite 1B - Violetto is a 1-billion-parameter dense autoregressive transformer trained from scratch for mathematical reasoning, designed to push mathematical capability per parameter to its limits with high-throughput inference. Trained on fewer than 300B highly curated tokens with 131k-token context, and with an architecture inspired by recent pretraining speedrun competitions, it reaches competition-level math results that rival models tens of times larger: vendor-reported scores of 94.01% on AIME 2026, 83.62% on HMMT Feb 2026, 74.25% on BeyondAIME, 90.21% on AIME 2025, and 59.80% on MATH-500 (base model, few-shot). Paradigma estimates training at ~1.71e21 FLOPs - one to three orders of magnitude below comparably scoring models - via synthetic data generation plus curated SFT and RL post-training. The model is deliberately as lightly instruction-tuned as possible for single-turn math reasoning rather than an assistant persona, with the acknowledged limitation that it can reinterpret non-mathematical prompts as math tasks. Weights are released under Apache-2.0 on Hugging Face (paradigma-inc/limite-1b-violetto), alongside a training-time value model and a custom vLLM inference plugin (Apache-2.0, github.com/paradigma-inc/limite-violetto); community MLX and R ports already exist. Caveats: benchmark figures are vendor-reported; the release table mixes Paradigma's own evaluations with externally sourced model-card/MathArena figures (marked), and the technical report detailing training and evaluation methodology was announced 2026-10-06 but had no publicly indexed report PDF at catalog time. Relevant to the user as a small-model math-reasoning recipe with an open weights+serving stack.
- Paper
Learn from your own latents and not from tokens: A sample-complexity theory
On the Random Hierarchy Model (PCFG, depth L, m rules/symbol), supervised learning needs ~m^L samples and token-level SSL (MLM/diffusion) ~m^{L+1}. Latent prediction (cluster cousin context vectors level-by-level) recovers the non-root tree from ~v m^3 samples, independent of L up to logs. Confirmed with (i) iterative latent clustering, (ii) a stacked predictor-clusterer net trained by GD (also with local stop-grad rules), and (iii) the first sample-complexity analysis of data2vec, which implicitly does hierarchical latent prediction — so explicit H-JEPA stacking is largely redundant. Suggests own-latent SSL as a route to beat token-correlation scaling laws.
- Paper
Shockingly Simple Self-retrospection Improves Agentic Models Without RL
Proposes Retrospection-Only Fine-Tuning (ROFT): post-train agentic models using only the agent's own self-generated explanations, with no external teacher and no reward-based policy update.
- Paper
ProgramDistill: From Interactive Web Apps to Verifiable Reference-Guided SWE Tasks
Turns interactive web apps into verifiable, reference-guided software-engineering tasks. The mine-craft-patch pipeline replays app behaviors to produce 1,975 replay-verified behaviors across 26 apps and 4,063 tasks with no human intervention.
- Paper
ProgramDistill: From Interactive Web Apps to Verifiable Reference-Guided SWE Tasks
ProgramDistill (KAIST/Microsoft) is a benchmark and pipeline that turns working web apps into verifiable coding tasks: it mines 1,975 replay-verified behaviors from 26 live apps and constructs 4,063 tasks with no human labeling, asking coding agents to infer missing behavior from a live reference and reimplement it. GPT-6 Astra leads at 49.2% on full-application reconstruction; the associated dataset is public on Hugging Face.
- Paper
Exact Quantile Balancing and Load-Error Injection for Mixture-of-Experts
Introduces Exact Quantile Balancing (EQB), a distributed two-pass BF16 radix-selection method that recovers exact global-batch routing quantiles with token-count-independent communication, addressing shard-averaged or approximate Quantile Balancing. Load-Error Injection (LEI) feeds local hard-load residuals directly into router-score gradients so correction is microbatch-specific rather than relying on token-independent biases or GShard's normalized-probability surrogate. On a 7.5B MoE with 256 experts trained for 100B/500B tokens, EQB lowers global imbalance and improves benchmark BPB versus rank-averaged QB, while LEI lowers local imbalance versus GShard at comparable or slightly better quality; limitations include one model scale/seed and a proxy throughput metric.
- Paper
TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training
The development of large language models (LLMs) has been instrumental in advancing state-of-the-art natural language processing applications. Training LLMs with billions of parameters and trillions of tokens require sophisticated distributed systems that enable composing and comparing several state-of-the-art technique…
- Paper
The Markovian Thinker: Architecture-Agnostic Linear Scaling of Reasoning
Reinforcement learning (RL) has recently become a strong recipe for training reasoning LLMs that produce long chains of thought (LongCoT). Yet the standard RL "thinking environment", where the state is the prompt plus all prior reasoning tokens, makes the state unbounded and forces attention-based policies to pay quadr…
- Dataset
DeepSeek V4 Pro Hermes Reasoning Traces
Agent-trace SFT dump / ChatML + Hermes <tool_call> traces (not a tiny eval) — Ungated DeepSeek V4 Pro Hermes-Agent dump (ChatML + <think> + Hermes <tool_call> JSON) for LoRA fine-tuning local models as Hermes Agent instances; VRAM-tiered nano/budget/standard/spark partitions of the same traces
- Paper
NVIDIA-labs OO Agents: Native Python Object-Oriented Agents
NOOA (cite nvidia_oo_agents_2026; arXiv 2607.20709). Agent = class; methods = capabilities; fields = state; docstrings = prompts; types = contracts. Ellipsis bodies run LLM loops (Predict or CodeAct); real bodies stay deterministic Python. Six interface ideas vs 14 harnesses. Capability suite 88 tests × 10 models: 97.9% pass. SWE-bench Verified: 82.2% GPT-5.5 xhigh at ~28 calls / ~1.1M tokens vs OpenCode 78.6% / PI 78.2% at more tokens (published SOTA 79.2% at submission). Terminal-Bench 2.0 73.0% GPT-5.5 high. CyberGym L1 86.8% GPT-5.5, network blocked, top open-source. ARC-AGI-3: one 45–50-line world-model skill; GPT-5.5 50.2% RHAE, GPT-5.6-sol 85.1% at ~$13.3/game (raw Sol 13.3%); memory +11.8 vs file notes. Discord posted the NVIDIA developer blog. Research preview; execute model code in-process — sandbox with OpenShell/container.