KOSMOS: Self-scheduling Persistent Kernels for Communication-Compute Overlap

Alexander Magro, Aristotle Martin, Ye Wang, Wen Chen
11/5/2026
cs.DCcs.AIcs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

Tensor and sequence parallelism (TP+SP) and expert parallelism (EP) put collectives on the critical path of transformer layers. State-of-the-art fused kernels mitigate this with fixed roles or schedules, but this rigidity leaves large idle windows.

Show full abstract

Predicting a communication-computation split does not remove them either; a predetermined split cannot follow data readiness. We present KOSMOS, a library for self-scheduling persistent kernels whose workgroups use queues ordered by consumer demand to switch between communication and computation roles as data become ready, with no scheduler, per-call cost model, or tuned split. KOSMOS fuses every TP+SP collective of a transformer layer with its GEMM, and runs an entire expert layer, from router to fold, in one launch per direction. Evaluated on AMD Instinct MI350X and AMD Instinct MI355X GPUs, KOSMOS speeds up TP+SP end-to-end training in Megatron-LM by 1.10-1.28x in BF16 and 1.10-1.25x in MXFP8. KOSMOS accelerates end-to-end training of DeepSeek-V3 and Qwen3-235B proxies by 1.29-1.83x over DeepEP.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{magro2026kosmos,
  title  = {KOSMOS: Self-scheduling Persistent Kernels for Communication-Compute Overlap},
  author = {Alexander Magro and Aristotle Martin and Ye Wang and Wen Chen},
  year   = {2026},
  eprint = {2611.07477},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.07477v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.07477.svg)](https://codeofpaper.com/paper/2611.07477)

Discussion