Abstract
TileLink is a compilation framework designed to automate the generation of high-performance kernels that overlap communication and computation. By introducing "tile-centric primitives," TileLink enables developers to author efficient kernels in Python that match the performance of hand-tuned CUDA assembly. Evaluation across various Large Language Model (LLM) architectures shows that TileLink achieves up to 20x speedups over non-overlapping baselines and reduces code complexity by an order of magnitude compared to manual fusion techniques.
Introduction
In large-scale deep learning, communication overhead between GPUs can account for 10% to 50% of total execution time. To mitigate this, practitioners attempt to "overlap" communication with computation—executing mathematical operations while data is in transit. Current approaches generally fall into two categories: Operator Decomposition, which is easy to program but suffers from high overhead and poor cache utilization, and Kernel Fusion, which offers peak performance but requires expert-level manual implementation in CUDA or assembly.
TileLink aims to provide a "best of both worlds" solution: the performance of manual fusion with the productivity of a high-level compiler.
Methods: Tile-Centric Design
TileLink is built on the Triton language and introduces a decoupled design space. Unlike traditional approaches that force communication and computation to share the same tiling patterns, TileLink treats them as independent components linked by specialized primitives.
Key technical components include:
- Decoupled Design: Developers can optimize tile sizes for math (e.g., 128x256) and data movement (e.g., 128x128) independently to maximize hardware utilization.
- Tile-Centric Primitives: Abstract Python-level functions (e.g.,
producer_tile_notify,tile_push_data) manage the synchronization and "handshaking" between GPU cores. - Resource Mapping: The framework supports mapping communication to either dedicated copy engines or general-purpose compute cores (SMs), depending on the workload's requirements.
Evaluation and Results
The framework was evaluated using benchmarks from LLaMA, Mixtral, and Gemma architectures on H800 GPU clusters.
Performance and Productivity
A key insight from the evaluation is that TileLink eliminates the trade-off between productivity and performance. As shown in the performance table, TileLink matches the performance of the state-of-the-art FLUX library while requiring significantly fewer lines of code.
Key Findings
- Speedups: TileLink achieved speedups ranging from 1.17x to 20.76x compared to non-overlapping baselines.
- End-to-End Gains: Integration into full models like LLaMA and Mixtral resulted in average end-to-end speedups of 1.32x on single-node and 1.29x on multi-node setups.
- Communication Hiding: In self-attention tasks, the framework successfully hid approximately 43.9% of communication overhead.
Conclusion and Future Work
TileLink demonstrates that tile-level abstraction is a highly effective "sweet spot" for managing GPU synchronization. While currently optimized for NVIDIA GPUs via Triton, future work includes extending support to AMD and TPU hardware. Additionally, the authors plan to expand the framework's scope from intra-layer tensor parallelism to inter-layer pipeline parallelism and deeper integration with communication libraries like NVSHMEM.
Summary updated