Explore the research collection
5 entries · Follow this search
- Paper
How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference
Study of looping in dense decoder-only transformers trained from scratch (up to 1B params, 155B tokens): which parts to loop, how many loops, how to pass information between loops, loop scaling, specialization and parallel inference.
- Model
Muse Glimmer 30B: An On-Device Agentic Model
30B dense causal LM (~29.6B total: ~25.16B backbone, 52 layers, hidden 6656, GQA 32Q/2KV, SwiGLU; ~1.8B perception encoder; text+image in, text out; vocab 202,048; 128K+ context; sliding-window 2048 in [Local×3, Global] pattern; RoPE θ=500k on local layers only; gated attention). Built for autonomous agentic tasks on consumer hardware (32 GB VRAM envelope; dense chosen over MoE after architecture ladders showed 2–2.5× compute efficiency at fixed memory). Distillation recipe: co-distillation from Muse Spark (Meta frontier model) — top-256 teacher logits logged during the teacher's own pre-training, not from the final checkpoint; objective is KL-only for the first 95% of pre-training, then CE-only on ground truth for the final 5% to fix top-k truncation bias. Mid-training Phase 1 (domain infusion: synthetic reasoning traces + structured problem-solving, lower LR) and Phase 2 (32K→128K context, tool-use/agentic trajectory data, CE loss because teacher logits are unreliable under the distribution shift). Checkpoint averaging ("souping"): 84 checkpoints saved every 200 steps over the final 5%; final recipe = last checkpoint + 3 prior at 600-step spacing, uniform average — consistent perplexity gains vs the single final checkpoint. Post-training: SFT → on-policy distillation (student rollouts, teacher per-token distributional targets on visited prefixes; found to improve downstream RL vs SFT→RL directly) → multi-objective RL; configurable reasoning strength via system-prompt directive (low/medium/high/xhigh; high default for agentic). Quantization (all vendor-reported): 55.7 GB BF16 → <20 GB weights; EvoPress mixed-precision profile (51/130/237 units at Q4_K/Q5_K/Q6_K) selected for 32 GB deployments — 75.6% avg over 15 benches vs 75.7% BF16, essentially lossless; Q4KM variant for 24 GB (74.8%); activations stay BF16. DFlash speculative drafter (5-layer block-diffusion, block size 16, D-PACE objective, trained offline on on-policy rollouts) for decode speed — "practical speeds on a single RTX 5090" (vendor claim; no tok/s figure given). Benchmarks (Table 2, all vendor-reported internal runs, contamination-screened) vs Gemma4-31B-thinking and Qwen3.6-27B-thinking: leads on τ³-Banking 23.5, WildClawBench 47.6, GAIA2 43.3, SciCode 43.6, SWE-Bench Pro 51.2, MCPAtlas 75.5, DeepSearchQA 74.6, AIME 2026 94.7, Beam 128K 65.1, AA-LCR 80.0 — BUT loses to Qwen3.6-27B on GDPval-AA (953 vs 1141), OSWorld-Verified (65.9 vs 75.6), SWE-Bench Verified (76.0 vs 77.2), TerminalBench 2.1 (51.7 vs 60.7), SkillsBench (44.3 vs 46.6); loses to Gemma4-31B on GPQA Diamond and HLE. The "leads comparably-sized open models" claim is real on tool-use/multi-step planning but not across the board — label the exceptions. Trust: safety SFT + safety RL + agentic-risk mitigations (irreversible-action confirmation, prompt-injection resistance) trained into weights.
- Paper
Byte Latent Transformer: Patches Scale Better Than Tokens
BLT maps bytes to variable patches via next-byte entropy, then a light local encoder, a large latent Transformer, and a local decoder. First flop-controlled byte-level scaling study to 8B / 4T bytes: matches Llama 3 at equal train FLOPs and can cut inference FLOPs ~50% with patch size 6–8. For a fixed inference budget, growing patch size and model size together beats BPE. Robustness: noisy HellaSwag 64.3 vs Llama 3 56.9; CUTE 54.1 vs 27.5. Code https://github.com/facebookresearch/blt.
- Paper
Context Language Models
Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.
- 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/