TL;DR
TileSight introduces a first-principles, white-box analytical performance model for GPUs that elevates the "tile" from a programming primitive to an analysis primitive. By modeling compute-memory pipeline overlap, multi-level cache hierarchies, and cross-device communication under a unified tile abstraction, it accurately predicts execution latency and cache behavior across diverse GPU generations without requiring machine learning training or post-hoc profiling.
What Problem Does This Paper Address?
Modern AI workloads rely heavily on highly optimized GPU kernels written in tile-centric programming frameworks like Triton, TileLang, or NVIDIA's CUDA Tile. These frameworks treat "tiles" (blocks of data) as first-class citizens to maximize performance. However, performance analysis tools have failed to keep pace with this abstraction shift.
Currently, developers must rely on coarse roofline models (which miss fine-grained pipeline overlaps), opaque ML-based predictors (which require extensive retraining for every new GPU architecture), or post-hoc profilers (which only diagnose bottlenecks after running the code). This gap is especially painful for complex fused kernels—such as FlashAttention—and distributed inference workloads, where performance hinges on the intricate interplay between Tensor Cores, cache hierarchies, and inter-GPU networks.
Methods
TileSight addresses this by introducing a hierarchical tile-pipeline model that recursively applies a prologue–steady–epilogue pipeline envelope across three layers:
- Intra-tile Layer: Rather than using a single bottleneck scalar, TileSight characterizes each tile as a multi-dimensional resource vector spanning independently schedulable hardware pipelines (Tensor Cores, CUDA cores, SFUs, and various memory tiers).
- Inter-tile Layer: It models tile execution order and data dependencies using a Directed Acyclic Graph (DAG) to find the optimal legal pipeline overlap. Crucially, it introduces tile reuse-distance cache modeling. Instead of tracking low-level cache lines, it tracks data reuse at the tile granularity and applies a fast Gaussian approximation to predict multi-level cache hit rates.
- Cross-device Layer: It extends the tile abstraction to distributed clusters. Remote tensor accesses are inferred from placement descriptors, decomposed into logical exchange stages, and routed through an $\alpha-\beta$ communication model to populate the network dimension of the tile's resource vector.
Datasets
The model was evaluated across a massive suite of workloads and hardware configurations:
- Workloads: 703 tensor-core GEMM shapes, 4,680 persistent-kernel configurations for cache validation, and 166 end-to-end vLLM decode configurations (covering dense and Mixture-of-Experts (MoE) models from the Qwen, Llama, and DeepSeek families).
- Hardware: NVIDIA A100, H200, B200, B6000, and AMD MI210, scaling up to a 32-GPU cluster deployment.
Key Insights and Ideas
- The Tile as a Deterministic Unit: Because tile configurations explicitly define shapes, pipeline depths, and memory layouts, their resource usage is fully determined. This allows for accurate analytical modeling without slow, low-level hardware simulation.
- Radical Cache Simplification: By lifting reuse distance analysis from 128-byte cache lines to kilobyte-sized tiles and utilizing a Gaussian approximation, TileSight reduces cache-model evaluation overhead by roughly five orders of magnitude. This makes schedule-sensitive cache modeling fast enough to run inline within a compiler's optimization loop.
- Unified Fusion and Distribution: Marking a tile's destination as an on-chip register/shared memory models kernel fusion, while marking it as a remote GPU shard models distributed execution. Both use the exact same analytical pipeline envelope.
Key Results
- High Accuracy Across Generations: TileSight achieved a 12.35% pooled mean absolute percentage error (MAPE) for single-GPU kernel latency across four GPU architectures, significantly outperforming state-of-the-art baselines like PipeWeave and GenZ.
- Precise Cache Prediction: Its L2 cache-hit-rate predictions landed within roughly one percentage point of actual hardware measurements on every tested GPU.
- Cluster-Scale Validation: Pushed to 32-GPU deployments, TileSight achieved a 13.52% weighted MAPE (wMAPE) on end-to-end vLLM serving.
- Effective Optimization Guidance: When used as a cost model in TileLang, retaining only the top 5% of schedules predicted by TileSight pruned 95% of the search space while still achieving 99.66% of the performance found via exhaustive search. It also enabled up to 8.97× speedups by diagnosing hidden bottlenecks like indirect addressing and shared memory conflicts.
Limitations and Future Work
TileSight is designed for regular, tile-structured programs whose runtime is dominated by resource utilization. It does not currently model data-dependent control flow, highly irregular memory accesses, or instruction-level compiler decisions.
Furthermore, the model assumes that tiles execute at a uniform rate across all streaming multiprocessors (SMs). In reality, SMs can desynchronize, making TileSight's cache predictions systematically optimistic for very deep-$K$ GEMMs. Future work includes tighter compiler integration, extending the model to handle latency-bound small-batch decode attention, and capturing multi-die hardware affinity effects.
Summary updated