Explore the research collection
10 entries · Follow this search
- Paper
Dynamic Mixture of Experts: An Auto-Tuning Approach for Efficient Transformer Models
DynMoE replaces fixed top-k with top-any gating (cosine similarity vs a trainable per-expert threshold) so tokens activate a variable number of experts, plus an adaptive add/remove process when tokens activate none or experts go unused. A diversity+simplicity auxiliary loss encourages sparse orthogonal expert representations. Competitive with tuned GMoE on DomainBed and MoE-LLaVA on VQA-style benches while activating fewer params (StableLM-1.6B: avg k=1.25 / 1.75B vs k=2 / 2.06B). Visualizations suggest bottom layers need MoE more than top layers and a shared easy-to-activate expert per layer. Code https://github.com/LINs-lab/DynMoE.
- Paper
Training-Free Looped Transformers
Lightweight wrapper re-applies a contiguous mid-stack block of a frozen LM. Naive block reapplication usually degrades; treating a pre-norm block as a forward Euler step and replacing one large update with damped/RK sub-steps helps. Single out-of-the-box recipe (3-stage Runge–Kutta at the mid 4 layers; block-mode for dense, layer-mode for MoE so expert routing does not thrash) over 7 families and 45 (model, benchmark) cells. Qwen3-4B-Instruct +2.64 pp MMLU-Pro and +2.01 GPQA-Main; Qwen1.5-MoE-A2.7B-Chat +2.30 ARC-Challenge; Qwen3-30B-A3B-Instruct +1.14 CommonsenseQA; Moonlight-16B-A3B-Instruct +1.20 OpenBookQA. ~20k H100 hours. No official code on abs.
- Paper
PowLU: An Activation Function for Stable Pre-Training of LLMs
PowLU(x)=x·x^{m/(√x+1)}·sigmoid(x) for x>0 (same as SwiGLU for x≤0); m=3 default. Proved continuous, differentiable, monotone for 0<m<10, and ~linear (not quadratic) as x→+∞. Scaling-law MoE 26M–368M activated matches SwiGLU loss. Ling 7.9B/600B tokens and 124B/800B stay competitive vs SwiGLU and SwiGLU-Clip on knowledge/reasoning/math/code while cutting outliers and FP8 loss spikes after ~76k steps. No official code on abs.
- Paper
FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution
An edge-native mixture-of-experts serving system that treats a personal machine as a unified, elastic inference platform rather than a small GPU. FreeToken co-designs model layout and loading, expert residency, CPU-GPU execution, agentic state reuse, and runtime memory management around the realities of local AI: agentic workloads with shifting execution patterns and heterogeneous per-machine hardware. Instead of a fixed offloading strategy, it continuously maps computation and model state onto available resources.
- 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
PithTrain: A Compact and Agent-Native MoE Training System
Defines agent-task efficiency (ATE) and ships PithTrain, an ~11K-line Python-native MoE stack (PP, FSDP DP, CP, EP, DualPipeV overlap, torch.compile, FP8) built on compactness, no implicit indirection, and in-repo agent skills. Matches or exceeds Megatron-LM tokens/s on GPT-OSS-20B, Qwen3-30B-A3B, and DeepSeek-V2-Lite on H100/B200 (e.g. 280.0K vs 264.1K tok/s on 4×8 H100 Qwen3-30B-A3B PP4/EP8). ATE-Bench (12 Q&A, 4 operate/profile, 4 new-feature ports) with Claude Opus 4.7: up to 62% fewer agent turns and 64% less active GPU time vs production frameworks on the hardest new-feature tasks. Code Apache-2.0 https://github.com/mlc-ai/pith-train.
- 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
LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing
LongCat Sparse Attention (LSA) composes three indexer changes on DSA: Streaming-Aware Indexing (sink+sliding-window contiguous budget plus dynamic sparse tokens for coalesced HBM), Cross-Layer Indexing (N=2 owner/reuse with distillation; halves indexer passes), and training-free Hierarchical Indexing (coarse page recall then token refine; net win at >=256K). Matches full MLA on general/long-context benches at 69B-A3B and 560B-A27B, enables 1M-token native training, and underpins LongCat-2.0 (1.6T-A48B). Releases LongCat-Flash-Lite-Sparse (69B-A3B).
- 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/