NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ParallelKittens: Systematic and Practical Simplification of Multi-GPU AI Kernels

Stuart H. Sul, Simran Arora, Benjamin Frederick Spector, Christopher RéarXiv 2025 · DOI

Abstract

ParallelKittens (PK) is a lightweight CUDA framework designed to simplify the development of high-performance multi-GPU kernels. By abstracting complex communication patterns into eight simple primitives and optimizing data transfer mechanisms, PK addresses the "communication-bound" nature of modern Large Language Models (LLMs). The framework introduces a Load-Compute-Store-Communicate (LCSC) template and flexible scheduling strategies, achieving up to a 4.08× speedup over standard libraries like NCCL with minimal additional code.

Introduction

In the era of Large Language Models (LLMs), AI systems have transitioned from being compute-bound to communication-bound. As models scale across hundreds of GPUs, the time required to move data between processors via interconnects like Nvidia’s NVLink has become the primary performance bottleneck.

Developers currently face a trilemma: utilize off-the-shelf libraries like NCCL, which introduce significant overhead; write complex, hand-tuned kernels that are difficult to maintain; or rely on compilers that often fail to optimize the overlap between computation and communication. ParallelKittens offers a "third way"—a system that provides the performance of hand-tuned code with the simplicity of a high-level domain-specific language (DSL).

Methods and Design Principles

ParallelKittens extends the ThunderKittens framework, a tile-based system for single-GPU kernels, by introducing three core design principles for multi-GPU efficiency:

  1. Transfer Mechanism Selection: PK leverages specific hardware units for different tasks. For instance, the Tensor Memory Accelerator (TMA) is used to saturate bandwidth with small 2KB messages, while traditional Copy Engines are reserved for larger data chunks.
  2. Flexible Scheduling: The framework allows developers to choose between Intra-SM overlap (a single processor handles both compute and communication) and Inter-SM overlap (dedicated processors for data movement). The optimal strategy depends on the specific operator, such as GEMM versus Attention.
  3. Zero-Overhead Design: By eliminating the "two-way handshake" and intermediate buffering required by general-purpose libraries, PK enables direct, one-way peer-to-peer transfers.
ParallelKittens Abstractions and Memory Hierarchy

The framework organizes kernels using a Load-Compute-Store-Communicate (LCSC) template. This structures the kernel into four specialized worker roles—Loader, Consumer, Storer, and Communicator—automating the complex synchronization and data movement required in multi-GPU environments.

Key Insights

A critical insight of ParallelKittens is the efficiency of the TMA for small-tile transfers. By hitting peak bandwidth with small messages, TMA allows for fine-grained overlapping of compute and communication. Furthermore, for operations like All-Reduce, PK demonstrates that delegating communication to specialized SMs (Inter-SM overlap) enables the use of "in-network" hardware acceleration in the NVSwitch, which is significantly more efficient than performing reductions on the GPU itself.

The authors also propose a mathematical model to determine when communication can be effectively "hidden" behind computation. For an H100 GPU, if the matrix dimension $K$ exceeds approximately 2200, communication time effectively drops to zero as it completes before the computation finishes.

Performance Evaluation

ParallelKittens was evaluated on Nvidia H100 (Hopper) and B200 (Blackwell) systems across various AI workloads, including distributed GEMM, Ring Attention, and Mixture-of-Experts (MoE) token dispatch.

Performance comparison of scheduling strategies for GEMM+RS and GEMM+AR

Key results include:

  • Data and Tensor Parallelism: Achieved up to a 2.33× speedup over non-overlapped baselines.
  • Sequence Parallelism (Ring Attention): Achieved up to a 4.08× speedup over state-of-the-art implementations like xDiT.
  • Expert Parallelism (MoE): Achieved up to a 1.22× speedup over Comet.
  • Implementation Efficiency: High-performance kernels were typically implemented by adding fewer than 50 lines of code to standard single-GPU kernels.

Conclusion and Future Work

ParallelKittens demonstrates that a systematic approach to multi-GPU kernel design can yield significant performance gains while reducing implementation complexity. Current limitations include a focus on intra-node communication and the requirement for manual scheduling strategy selection. Future work will explore scaling these principles to inter-node communication via InfiniBand and developing automated tuners to select the optimal scheduling strategy for specific hardware and workloads.

Summary updated

BibTeX
@misc{sul2025parallelkittens,
  author = {Stuart H. Sul and Simran Arora and Benjamin Frederick Spector and Christopher Ré},
  title = {{ParallelKittens: Systematic and Practical Simplification of Multi-GPU AI Kernels}},
  year = {2025},
  eprint = {2511.13940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.13940},
}
Figure