Explore the research collection
10 entries · Follow this search
- Paper
Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free
Compares ~30 gating variants on 15B MoE (15A2B, 2.54B active) and 1.7B dense models trained on up to 3.5T tokens. A head-specific sigmoid gate after SDPA (G1) is best: MoE 400B-token Avg PPL 5.761 vs 6.026 baseline and MMLU 60.82 vs 58.79, beating parameter-matched KV-head/expert expansions. Gains come from non-linearity between low-rank Wv and Wo plus query-dependent sparse gates (mean score 0.116). First-token attention falls 46.7%→4.8%; YaRN-extended RULER at 128k is 58.82 vs 31.65. Gate also damps loss spikes and allows higher LR (8e-3) where the baseline diverges. Claims first attention-sink-free models.
- Paper
Efficient Pre-Training with Token Superposition
Token-Superposition Training (TST) averages embeddings of non-overlapping bags of s contiguous tokens and trains with multi-hot cross-entropy, then a recovery phase reverts to standard next-token CE. Drop-in: no change to parallelism, optimizer, tokenizer, data, or architecture. Evaluated at 270M/600M (SmolLM2-shaped Llama3, untied embeddings) and validated at 3B and a 10B A1B MoE on DCLM. Consistently beats baseline loss and downstream metrics; equal-loss wall-clock up to 2.5× faster at the 10B A1B scale. Project https://nousresearch.com/token-superposition.
- 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
HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing
Xiaomi LLM-Core paper (arXiv 2609.26368v1, 2026-09-22, cs.CL). HySparse2 extends HySparse with YOCO-style self-decoder (hybrid SWA) + cross-decoder (hybrid sparse attention) and two-level KV sharing: outer KV Bridging (full-attention layers only; cross-decoder K/V from self-decoder full-attn hidden states) and inner KV Reuse (HySparse-style shared KV + selection within hybrid blocks). Refinements vs HySparse: token-level sparsity (replacing block-level) and Forced SWA (recent tokens forced into sparse selection, no separate SWA branch). All cross-decoder KV can be built from self-decoder states, so prefill can exit after the self-decoder (~half the model). On matched 80B-A3B MoE training: after light post-training (~100B tokens), mean MRCR-v2 / RULER-v2 +11.30 / +19.81 vs HySparse; at 256k RULER-v2 58.45 vs HySparse 32.61 / Hybrid SWA 35.74; lower AgentPPL and LongPPL to 256k; at 1M tokens analysis claims 2.92× / 5.02× less prefill FLOPs vs HySparse / Hybrid SWA plus smaller KV cache. No public code link in paper; AlphaXiv abs live; HF papers page 404 at catalog time.
- Paper
Jina-OCR-v1: Efficient Document Parsing with Speculative Decoding and Dense Verifiable Rewards
Jina-OCR-v1 builds on DeepSeek-OCR’s compressed-vision encoder + 3B MoE decoder (~570M active/token), adds a FastMTP speculative head that recursively shares one draft block over K=3 prediction steps with greedy verification (lossless). Post-training: instruction alignment, hard-doc robustness FT, then GRPO with dense verifiable rewards (deterministic formula/table/structure checks with partial credit). Data: cleaned public corpora + targeted synthetic pages. Default dynamic-res: OmniDocBench v1.6 91.14, olmOCR-Bench 83.4; claimed highest page throughput in their comparison at 2.57 pages/s. On NVIDIA L4, FastMTP ~2× greedy AR decode. Weights: https://huggingface.co/jinaai/jina-ocr-v1.
- Paper
Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
Google DeepMind technical report (73 pages; pdfTeX dated 2025-10-16) on Gemini 2.5 Pro/Flash and earlier 2.0 Flash/Flash-Lite. Models are natively multimodal sparse MoEs with >1M-token context and native tool use. 2.5 Pro is positioned as the strongest thinking model (coding/reasoning, up to ~3h video); 2.5 Flash offers controllable thinking budget; 2.0 variants target low latency/cost. Correspondence: gemini-report@google.com. © 2025 Google.
- Paper
LatentMoE: Toward Optimal Accuracy per FLOP and Parameter in Mixture of Experts
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.
- Paper
Full-Pipeline Inference Optimization for MiMo-V2.5 Series: Pushing Hybrid SWA Efficiency to the Limit
Engineering report for MiMo-V2.5 / V2.5-Pro Hybrid Sliding Window Attention (example: 70 layers, 10 full + 60 SWA, W=128; ~7× less attention FLOPs and KV vs full attention) plus sparse MoE and vision/audio/video encoders. Dual-pool KV with strict O(W) SWA storage, layerwise prefetch, SWA-aware prefix cache trees, GCache L3 (RDMA, co-deployed on GPU nodes), KVCache-affinity router (~+25% L2 hit, ~+30% input throughput), length bucketing, halved EP after SWA storage (~40% e2e), MTP in prefill (2.3× on first 128 decode tokens), GPU image preprocess and parallel video decode (1-hour video 156s→23s). Reports ~93% production KV hit rate. Positions as the first large-scale serving system covering Hybrid SWA+MoE+multimodal. Not a dataset.
- Paper
Frontis-MA1: Training an AI4AI Model towards Recursive Self-Improvement in Machine Learning Engineering
OpenMLE is a full stack: OpenMLE-Gym (5,758 quality-gated executable tasks), OpenMLE-ERL (execution-grounded SFT+RL on the four operators), and OpenMLE-Evo (experience-guided search). Frontis-MA1-35B post-trained on this stack raises MLE-Bench Lite Medal Average from 39.39% (Qwen3.6-35B-A3B) to 60.61% under OpenMLE-Evo and 71.21% under OpenMLE-Evo-Max (12h / one RTX 4090 12GB). NatureBench Lite Match-SOTA moves 50%→70% by swapping the trained model and 20%→50% by swapping the harness. Weights, gym, and traces are released.
- Paper
Towards Physics of Multimodal Pretraining: Knowledge Flow, Modality Synergy, Early Unification, and Recipes
Four findings: (1) Knowledge flow is asymmetric — language boosts all visual tasks, understanding is a strong prior for generation, generation is largely neutral backward. (2) Task complexity and architecture (shared attention/norm, split FFNs) determine synergy vs competition. (3) Early joint unification beats late alignment; delayed vision causes vision laziness. (4) Asymmetric recipes (e.g. 70/25/5 L/U/G) plus MoE and early unification scale; 13.5B MoE on 2T tokens. Project page https://junlinhan.github.io/projects/physics_of_mm_pretrain/