{
  "id": 627,
  "kind": "other",
  "title": "Flash-MSA: Accelerating Million-Token Training With Sparse Attention Kernels",
  "summary": "Flash-MSA implements MSA training (proxy block-sparse attention + fused proxy/main backward with an atomic KL trick so proxy grad = p_proxy − p_main) in CuTeDSL for H100/B200, CUDA 13. Tweet claims 400%+ speedup vs dense flash at long context. Warmup kernels run dense flash then train the proxy in the backward. Correctness vs eager PyTorch cosine sim typically ≥0.998. Requires adding kernel KL loss to CE. Inference kernels remain MiniMax-AI/MSA.",
  "body": "",
  "notes": "Primary: technical blog. Discord/X https://x.com/gnanduru1/status/2076342414915342718 via fxtwitter. Code https://github.com/nanduruganesh/flash-msa (MIT); PyPI flash-msa; Megatron-LM fork https://github.com/nanduruganesh/Megatron-LM. Underlying MSA paper arXiv 2606.13392; official inference https://github.com/MiniMax-AI/MSA. Kernel/code item, not a hosted corpus, so no datasets_local row.",
  "url": "https://nanduruganesh.github.io/flash-msa/",
  "links": [],
  "authors": [
    "Ganesh Nanduru"
  ],
  "tags": [
    "flash-msa",
    "sparse-attention",
    "cute",
    "hopper",
    "blackwell",
    "minimax",
    "kernels",
    "blog",
    "x"
  ],
  "topics": "sparse attention, CUDA kernels, long-context training",
  "venue": "nanduruganesh.github.io",
  "publisher": "",
  "source": "web",
  "language": "en",
  "access": "free",
  "license": "MIT",
  "published_year": null,
  "added_at": "2026-08-14T19:06:00.000Z",
  "verified_at": "2026-08-14T19:06:00.000Z",
  "attrs": {
    "scale": "H100 bf16 sweeps seq 4k–8k, 8–32 Q heads. Tweet 400%+ vs dense flash. GitHub 27 stars / 3 forks at check.",
    "purpose": "Open CuTeDSL training kernels for MiniMax Sparse Attention on Hopper/Blackwell",
    "author_type": "human",
    "time_period": "Repo created 2026-07-10. Tweet 2026-07-12. Discord posted 2026-07-12. Pushed 2026-07-13."
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:38.206Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "646",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/627",
  "markdown": "https://papers.projxon.ai/entries/627.md",
  "api": "https://papers.projxon.ai/api/entries/627",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 652,
      "kind": "paper",
      "title": "Emergent Capabilities Arise Randomly from Learning Sparse Attention Patterns",
      "summary": "NYU (18 pp / 13 figs). On Pythia 14M–410M × 10 seeds, copy, in-context repetition, pattern completion, and IOI appear at random training steps; larger models find them earlier and more often. Patching the top-K post-emergence attention maps into the previous checkpoint elicits the skill, so attention-pattern search is the bottleneck rather than a metric illusion. Synthetic linear-map (sparse Ax mod 2) and cellular-automata tasks: difficulty is governed by context length and medium sparsity; biasing attention logits to the ground-truth pattern removes the loss plateau. More heads help; MLP-Mixer beats a transformer by ~10× on linear maps but loses on automata. Dyck/NCA pre-pretraining has mixed effects on emergence timing. No official code on the abs.",
      "url": "https://arxiv.org/abs/2606.25010",
      "authors": [
        "Vatsal Baherwani",
        "Zixi Chen",
        "Shikai Qiu",
        "Andrew Gordon Wilson",
        "Pavel Izmailov"
      ],
      "tags": [
        "emergence",
        "sparse-attention",
        "pythia",
        "mlp-mixer",
        "nyu",
        "x"
      ],
      "venue": "arXiv / NYU",
      "source": "arxiv",
      "license": "arXiv perpetual non-exclusive license 1.0",
      "published_year": 2026,
      "added_at": "2026-08-14T19:25:00.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 1,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/652",
      "markdown": "https://papers.projxon.ai/entries/652.md",
      "api": "https://papers.projxon.ai/api/entries/652"
    },
    {
      "id": 626,
      "kind": "dataset",
      "title": "Reducing Doom Loops with Final Token Preference Optimization",
      "summary": "Antidoom mines the first token of a detected loop (≥4 repeats, ≥60 chars), then trains LoRA with Final Token Preference Optimization (FTPO): one rejected token vs up to 20 chosen alternatives, logit-space KL, two-part regularization. Early LFM2.5-2.6B: 10.2%→1.4% doom-loop rate; Qwen3.5-4B greedy: 22.9%→1%, with eval gains attributed to fewer loops. Early-stop at chosen_win≈0.35. Prompt mix LiquidAI/antidoom-mix-v1.0 (478,229 rows) used to elicit loops. Enrichment (2026-11-03 re-share; page updated 2026-10-27): the post's three-mechanism anatomy - (1) overtrained high-prior tokens become fallbacks under uncertainty (loop-starting tokens in the LFM2.5-2.6B checkpoint: ' the' 11.4%, ' So' 4.5%, 'Alternatively' 3.2%, 'Wait' 2.6%, ' But' 2.5%); (2) each repetition self-reinforces toward probability 1, with semantic repetition preceding textual repetition (Duan et al.); (3) low-temperature decoding has no exit, and looping persists even at temp 0.67 once saturation sets in. Recipe detail: LoRA rank 128-256 over all attention/MLP projections plus lm_head, LR 4e-6 to 2e-5, one epoch; about 1 hour on 8x MI325 to generate 20K pairs and 1-2 hours on 1x MI325 to train; overtraining creates NEW loop points, and multiple Antidoom rounds help because each round exposes new loop-starting tokens. Notable secondary finding: after de-looping, the temp=1.0 sampling advantage disappears and near-greedy decoding wins - the authors suggest the 'higher temperature helps reasoning' heuristic was partly a doom-loop artifact. Cross-reference: the same reasoning-loop failure in Qwen3.5-0.8B was fixed without any training in ID 1798 by deleting a weight direction; Antidoom is the training-side counterpart, positioned against inference-time repetition_penalty (degrades performance) and anti-repetition RL (rollout-expensive).",
      "url": "https://www.liquid.ai/blog/antidoom",
      "authors": [
        "Sam Paech",
        "Maxime Labonne",
        "Justin Li",
        "Leonie Monigatti",
        "Nathan Ranchin",
        "Tim Seyde",
        "Sergei Tilga"
      ],
      "tags": [
        "antidoom",
        "ftpo",
        "doom-loop",
        "liquid-ai",
        "lfm",
        "qwen",
        "repetition",
        "blog",
        "x"
      ],
      "venue": "Liquid AI Blog",
      "source": "web",
      "license": "Apache-2.0",
      "published_year": null,
      "added_at": "2026-08-14T19:06:00.000Z",
      "has_dataset_profile": true,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "text"
      ],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/626",
      "markdown": "https://papers.projxon.ai/entries/626.md",
      "api": "https://papers.projxon.ai/api/entries/626"
    },
    {
      "id": 1031,
      "kind": "paper",
      "title": "HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing",
      "summary": "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.",
      "url": "https://arxiv.org/abs/2609.26368",
      "authors": [
        "Jianyu Wei*",
        "Yizhao Gao*",
        "Qihao Zhang",
        "Shimao Chen",
        "Zhengju Tang",
        "Yu Cheng",
        "Shengjie Zhou",
        "Zihan Jiang",
        "Yifan Song",
        "Hailin Zhang",
        "Liang Zhao",
        "Bo Yang",
        "Gang Wang",
        "Shijie Cao⋄",
        "Fuli Luo⋄† (*equal",
        "⋄corresponding",
        "†team lead)"
      ],
      "tags": [
        "hysparse2",
        "hysparse",
        "xiaomi",
        "sparse-attention",
        "kv-bridging",
        "kv-reuse",
        "yoco",
        "swa",
        "token-level-sparsity",
        "long-context",
        "agentic",
        "moe",
        "80b-a3b",
        "ruler-v2",
        "mrcr-v2"
      ],
      "venue": "LLM-Core Xiaomi / arXiv",
      "source": "arxiv",
      "license": "arXiv preprint (standard arXiv terms); no separate code license found",
      "published_year": 2026,
      "added_at": "2026-09-24T02:02:08.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1031",
      "markdown": "https://papers.projxon.ai/entries/1031.md",
      "api": "https://papers.projxon.ai/api/entries/1031"
    },
    {
      "id": 452,
      "kind": "paper",
      "title": "LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing",
      "summary": "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).",
      "url": "https://arxiv.org/abs/2608.01662",
      "authors": [
        "Wen Zan",
        "Jiaqi Zhang",
        "Jianchao Tan",
        "Hong Liu",
        "Cunguang Wang",
        "Xiang Li",
        "Duyue Ma",
        "Guanyu Wu",
        "Yifan Lu",
        "Fengcun Li",
        "Yerui Sun",
        "Peng Pei",
        "Yuchen Xie",
        "Xunliang Cai"
      ],
      "tags": [
        "sparse-attention",
        "dsa",
        "lightning-indexer",
        "long-context",
        "longcat",
        "meituan",
        "moe",
        "mla"
      ],
      "venue": "arXiv / Meituan LongCat",
      "source": "arxiv",
      "license": "arXiv perpetual non-exclusive license 1.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:24:56.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 2,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/452",
      "markdown": "https://papers.projxon.ai/entries/452.md",
      "api": "https://papers.projxon.ai/api/entries/452"
    },
    {
      "id": 612,
      "kind": "model",
      "title": "SmolLM3: smol, multilingual, long-context reasoner",
      "summary": "HuggingFaceTB 3B decoder (Llama-style, tied embeddings, GQA 4 groups, NoPE every 4th layer, intra-document masking) trained 11.2T tokens on 384 H100s over 24 days. Three-stage web/code/math mix, then 100B long-context (4k to 64k, YaRN to 128k) and 140B reasoning mid-train. SFT 1.8B tokens dual think/no_think, APO alignment, MergeKit soup. Outperforms Llama-3.2-3B and Qwen2.5-3B; competitive with 4B models. Think mode AIME 2025 36.7 percent vs 9.3 percent no-think. Apache-2.0. Languages EN/FR/ES/DE/IT/PT.",
      "url": "https://huggingface.co/blog/smollm3",
      "authors": [
        "Elie Bakouch",
        "Loubna Ben Allal",
        "Anton Lozhkov",
        "Nouamane Tazi",
        "Lewis Tunstall",
        "Carlos Miguel Patiño",
        "Edward Beeching",
        "Aymeric Roucher",
        "Aksel Joonas Reedi",
        "Quentin Gallouédec",
        "Kashif Rasul",
        "Nathan Habib",
        "Clémentine Fourrier",
        "Hynek Kydlicek",
        "Guilherme Penedo",
        "Hugo Larcher",
        "Mathieu Morlon",
        "Vaibhav Srivastav",
        "Joshua Lochner",
        "Xuan-Son Nguyen",
        "Colin Raffel",
        "Leandro von Werra",
        "Thomas Wolf"
      ],
      "tags": [
        "smollm3",
        "huggingfacetb",
        "small-lm",
        "reasoning",
        "long-context",
        "multilingual",
        "blog"
      ],
      "venue": "Hugging Face (HuggingFaceTB)",
      "source": "huggingface",
      "license": "Apache-2.0",
      "published_year": null,
      "added_at": "2026-08-14T18:56:35.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/612",
      "markdown": "https://papers.projxon.ai/entries/612.md",
      "api": "https://papers.projxon.ai/api/entries/612"
    },
    {
      "id": 575,
      "kind": "paper",
      "title": "FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision",
      "summary": "FlashAttention-3 redesigns FA2 for Hopper: warp-specialized TMA/WGMMA producer-consumer, pingpong scheduling so softmax hides under GEMM, and FP8 with in-kernel V transpose, block quantization, and Hadamard incoherent processing. H100 FP16 is 1.5-2.0× FA2 (up to 740 TFLOPs/s, 75% util) and 1.5-1.75× backward; FP8 reaches ~1.2 PFLOPs/s with 2.6× lower RMSE vs per-tensor FP8 on outlier-injected QKV. Competitive with or faster than cuDNN FA2 at seq≥1k. Code https://github.com/Dao-AILab/flash-attention.",
      "url": "https://arxiv.org/abs/2407.08608",
      "authors": [
        "Jay Shah",
        "Ganesh Bikshandi",
        "Ying Zhang",
        "Vijay Thakkar",
        "Pradeep Ramani",
        "Tri Dao"
      ],
      "tags": [
        "flashattention-3",
        "hopper",
        "wgmma",
        "tma",
        "fp8",
        "warp-specialization",
        "colfax",
        "nvidia",
        "meta",
        "attention"
      ],
      "venue": "arXiv / Colfax International / Meta / NVIDIA",
      "source": "",
      "license": "CC BY 4.0",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 719,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/575",
      "markdown": "https://papers.projxon.ai/entries/575.md",
      "api": "https://papers.projxon.ai/api/entries/575"
    }
  ]
}
