TileCas: Cascading Kernel Development Across Programming Abstractions

Xinyu Xiao, Zihe Song, Dezhi Ran, Wei Yang, Tao XiearXiv 2026

TL;DR

TileCas is a pluggable interface that allows AI coding agents to navigate between high-level and low-level programming abstractions when developing GPU kernels. By bridging the gap between easy-to-search high-level DSLs and high-performance low-level code, it enables agents to achieve up to 69% better performance than sticking to a single representation.

What Problem Does This Paper Address?

Writing high-performance kernels for GPUs and AI accelerators is notoriously difficult. Traditionally, programmers use two types of abstractions:

  1. High-level Domain-Specific Languages (DSLs) like Triton or TileLang, which are easier to write but hide hardware details.
  2. Low-level native code like HIP C++ or Ascend C, which offer total control but have a massive, complex search space.

As we move toward autonomous coding agents, a fundamental question arises: which abstraction is best for a machine? High-level search finds a working solution quickly but hits a performance ceiling. Low-level search can reach higher performance but often gets lost in the complexity. TileCas addresses this by allowing agents to "cascade" their development—starting high to find a solid algorithmic structure and then "lowering" to low-level code to fine-tune hardware-specific optimizations.

Methods

TileCas is designed as a pluggable extension for existing agentic workflows. It consists of three core components:

  • Cross-Level Diagnosis: When an agent hits a performance plateau, this component maps hardware profiling data (like execution timings) back to specific lines of code in both high-level and low-level representations. This helps the agent understand why a kernel is slow and where to change it.
  • Abstraction Scheduling: This is the "brain" that decides the next move. It evaluates whether the agent should stay at the current level, transition to a lower level for more control, or "rollback" to a previous high-level version to try a different architectural approach.
  • Heterogeneous Search Tree: A specialized data structure that tracks the entire history of code versions across different levels. It allows agents to revisit alternative search paths and even reuse successful code snippets from one branch in another.
Figure 2: Architecture and workflow of TileCas.

Datasets

The authors evaluated TileCas using KernelBench Level 3, a benchmark consisting of 50 end-to-end workloads representing full machine learning architectures. Evaluation was conducted across:

  • Two Platforms: AMD Radeon AI PRO R9700 (using HIP C++) and Huawei Ascend 910B3 (using Ascend C).
  • Two LLMs: GPT-6 Astra and DeepSeek-V4.1-Flash.

Key Insights and Ideas

  • The "High-to-Low" Advantage: Search trajectories show that high-level search achieves speedups early, but low-level search eventually reaches higher peaks. TileCas captures the best of both worlds by transitioning at the optimal moment.
  • Recoverable Exploration: A key "aha moment" is that TileCas makes exploratory failures recoverable. If a low-level optimization branch fails, the agent doesn't just get stuck; it uses the Search Tree to restore a known-good high-level state and try a different path.
  • Cross-Branch Code Reuse: The system can combine the best parts of different attempts. For example, it might take a high-level "QKV projection" implementation and pair it with a low-level "attention" kernel developed in a different branch to create a superior hybrid.
Candidate history shows how TileCas navigates between High (blue) and Low (orange) levels, including rollbacks and code reuse.

Key Results

The researchers integrated TileCas with two existing agents, AKO and KDA, with impressive results:

  • Performance Gains: AKO with TileCas achieved an arithmetic-mean speedup of 4.84×, a 29.0% improvement over the strongest baseline without TileCas.
  • Agent Reusability: Integrating TileCas into the KDA agent improved its mean speedup by 69.2%, demonstrating that the method is effective across different base workflows.
  • Search Efficiency: While high-level search finds a correct implementation faster (6.81 min vs 10.74 min for TileCas), TileCas uses the remaining search budget far more effectively to reach a much higher performance saturation level.
Performance trajectories show that TileCas (High→Low) eventually outperforms both High-only and Low-only search strategies.

Limitations and Future Work

  • Abstraction Scope: The current study only looks at two levels (High/Low). Future work could explore intermediate IRs or even assembly-level tuning.
  • LLM Reasoning: The quality of the "Diagnosis" step is still heavily dependent on the underlying LLM's ability to interpret complex profiling data.
  • Workload Variety: The evaluation focused on standard ML kernels; the authors note that dynamic shapes and multi-device communication (e.g., NCCL) remain to be explored.
  • Compiler Updates: A change in the underlying compiler might expose new controls at the high level, potentially shifting the "sweet spot" for when to transition to low-level code.

Summary updated

BibTeX
@misc{xiao2026tilecas,
  author = {Xinyu Xiao and Zihe Song and Dezhi Ran and Wei Yang and Tao Xie},
  title = {{TileCas: Cascading Kernel Development Across Programming Abstractions}},
  year = {2026},
  eprint = {2610.14740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.14740},
}
Figure