AI
New Framework Lets AI Code Agents Jump Between Programming Abstractions to Build Faster Kernels
Researchers introduce TileCas, a flexible interface that enables machine-driven coding to optimize GPU and accelerator kernels by moving fluidly across different abstraction levels.
As AI models increasingly write code rather than serving just as assistants, the way we structure programming languages and abstractions matters more than ever. A new research paper tackles this challenge by proposing TileCas, a system designed to help autonomous coding agents develop GPU and AI-accelerator kernels more effectively by working across multiple layers of abstraction.
Why Abstraction Levels Matter for AI Coding#
Traditional programming abstractions were built with human developers in mind. Higher-level domain-specific languages (DSLs) hide complex implementation details, making the search space smaller and more manageable. Lower-level representations, by contrast, offer more granular control but force agents to explore vastly larger design spaces. The problem for machine-driven development is that neither extreme works optimally: high-level abstractions limit what an agent can optimize, while low-level abstractions overwhelm it with choices.
How TileCas Bridges the Gap#
Rather than lock an agent into a single level of abstraction, TileCas provides a unified interface that lets coding agents move flexibly between layers. The system introduces three key mechanisms:
- Cross-Level Diagnosis translates performance and correctness feedback from one abstraction level to actionable refinements at other levels
- Abstraction Scheduling picks which representation—and which candidate solution—to refine next
- Heterogeneous Search Tree maintains and revisits alternative paths that span multiple abstraction levels, preventing the agent from committing prematurely to a single approach
Real-World Performance Gains#
The researchers integrated TileCas with two existing code agents, AKO and KDA, and tested them on 50 kernel-optimization tasks using two different accelerator platforms and two language models. The results were substantial: AKO achieved an average speedup of 4.84× compared to 3.75× without TileCas—a 29% improvement. KDA saw even larger gains, with a 69.2% boost across all configurations.
Broader Implications#
The work suggests that letting autonomous coding systems navigate fluidly between abstraction levels—rather than forcing them to commit to a single representation—can significantly improve code generation quality. More importantly, TileCas is designed as a pluggable interface that different base workflows can adopt, potentially making it a reusable tool for machine-driven software development beyond kernel optimization.

