Explore the research collection
9 entries · Follow this search
- Paper
Q-Sparse: All Large Language Models can be Fully Sparsely-Activated
Q-Sparse applies top-K (absolute-value) masks on activations of all linear layers, STE so non-selected grads are not zeroed, optional 8-bit quantized top-K, squared-ReLU/ReLU²GLU in FFNs, and Block Q-Sparse (N:M, e.g. 16:32) for batched GPU kernels. Inference-optimal sparsity ~45.58% full-precision (1.84× params at matched activated N_a) and ~61.25% for 1.58-bit. From-scratch 40% sparsity matches dense loss at the same size/tokens (RedPajama 50B). Continue-train Mistral-7B: 3.8B activated avg 63.7 vs dense 64.6 (ARC/HS/MMLU/WG/TQA); 2.9B 61.7, beating ReLUfication 60.8 and dReLU 61.0. Works with BitNet b1.58. No official code on abs.
- Paper
From Local to Global: A Graph RAG Approach to Query-Focused Summarization
GraphRAG: LLM extracts entities/relations/claims into a knowledge graph, Leiden-partitions it hierarchically, and pregenerates community summaries; query-time map-reduce over those summaries answers global QFS that vector RAG misses. Podcast (~1M tok) and news (~1.7M tok) graphs: 8,564/15,754 nodes. vs vector RAG, comprehensiveness win rates ~72–83% and diversity ~62–82% (GPT-4 judge, 125 questions×5). Root-level summaries use ~2–3% of source tokens. Code https://github.com/microsoft/graphrag.
- Paper
Optimizing Large Language Model Training Using FP4 Quantization
First from-scratch FP4 LLM pretraining: Differentiable Gradient Estimator (DGE, k=5) corrects E2M1 weight grads vs STE, and Outlier Clamping and Compensation (OCC, α=0.99 plus a ~2% sparse residual) keeps activations from collapsing. Mixed-precision W4A4 GeMM simulated on H100 FP8 cores with token-wise activation and channel-wise weight scaling. LLaMA-2 1.3B/7B/13B on 100B DCLM tokens: train loss 2.55/2.17/1.97 vs BF16 2.49/2.07/1.88; zero-shot avg 53.13/54.42/54.95 vs 53.23/53.87/54.44. Direct W4A4 diverges. ICML 2025. Framework https://aka.ms/MS.AMP (Azure/MS-AMP).
- Paper
BitNet a4.8: 4-bit Activations for 1-bit LLMs
Hybrid recipe: INT4 activations into attention/FFN, plus sparsify then 8-bit on outlier-heavy intermediate states. Two-stage continue-training from BitNet b1.58 (W1.58A8 then W1.58A4; last 5B tokens for the 4-bit stage). Matches b1.58 at equal train cost while enabling 4-bit kernels; ~55% of parameters activated and 3-bit KV cache. 7B: 44.5% overall sparsity / 3.4B active vs b1.58 6.0B; a 2B model on 2T tokens stays at parity with b1.58. No official code on abs.
- Paper
ResiDual: Transformer with Dual Residual Connections
PPLN keeps a Post-LN path (diverse hidden states) plus a Pre-LN dual residual (lower-bounded gradients). Theory: Post-LN grads decay ~O((1/2)^{(N-k)/2}); Pre-LN |Δh|~O(1/√k) collapse; ResiDual inherits the better of each. IWSLT-14 E6D6 BLEU 35.63 vs Post-LN 35.37 / Pre-LN 35.12; E12D12 36.09 vs Pre-LN 35.18 (Post-LN fails). WMT DE→EN E18D18 27.65 vs Pre-LN 26.57 / B2T 27.30. OPUS-100 E18D18 ALL 31.0 vs Pre-LN 30.3, matching a 100-layer DeepNet 31.1. Trains without LR warmup on IWSLT. Code https://github.com/microsoft/ResiDual.
- Paper
Synthetic Computers at Scale for Long-Horizon Productivity Simulation
Builds user-specific computers (persona → profile → filesystem plan → content-rich artifacts) then runs month-scale sims: a setup agent writes deliverables, a work agent (Claude Sonnet 4.6; Opus 4.6 for setup) executes over the machine with simulated collaborators. 1,000 computers; mean 2,272 turns / 8.59h per run. Occupation skills from 900 train sims lift held-out rubric 61.6%→68.6% (win 83/100) and transfer to GDPVal (Sonnet 105 wins / 67 losses). Public release: 100 computers plus 500 retrospective reports (HF 98 rows).
- Paper
Differential Transformer
arXiv 2410.05258 (v2): Diff Transformer computes attention as the difference of two softmax attention maps, canceling noise and encouraging sparse attention. Claims better language-modeling performance than Transformers, stronger long-context retrieval, fewer hallucinations, and better robustness under lower-bit quantization; Discord note highlighted ~40% fewer parameters for matched performance. Microsoft/academic author list (Ye, Dong, Xia, Sun, Zhu, Huang, Wei).
- Paper
Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers
LOTUS places K padded latent blocks between question and answer, loops the backbone R times, and applies per-position CE on gold CoT tokens through the base LM head (LOTUS-aux routes the same targets through a training-only decoder). First latent method reported to bridge explicit CoT at Llama-3.2-3B-Instruct: GSM8K 70.0 vs CoT 71.5 (LOTUS+CODI 70.6); OOD avg 63.9 vs 62.1. Thought-phase 133 vs 338.8 ms (2.5x); natural-language CoT stress 68.13 vs 68.41 with 6.9x thought speedup (140.8 vs 963.6 ms). Post-loop LM-head readout recovers gold CoT (70.9% top-1, 85.8% top-5) and puts mass on unseen-but-valid intermediates. Ablations: looped backbone and parallel gold-CoT CE are both needed; default K=6, c=25, R=6. Chains longer than K fall back to autoregressive completion. Math-only evaluation.
- Paper
Multi-Turn On-Policy Distillation with Prefix Replay
ReOPD replays teacher-forced prefixes, lets the student act at the supervised step, and samples positions with step-decay κ=0.6. Formalizes a prefix trap: student-on-policy histories are relevant but can query the teacher where it is unreliable. On math (Python-tool, 6 benches) a Qwen3-4B student with a 4B teacher averages 57.2 vs OPD 55.1 / SFT 46.1; with an 8B teacher 53.7 vs OPD 51.0. Search essentially matches OPD (40.5 vs 40.6). Zero tool calls during student training and at least 4× faster per rollout. A joint math+search student stays on par with OPD. 8×H100; authors report training under 3 hours.