paper-with-me

Papers

KForge: LLM-Driven Cross-Platform Kernel Generation for AI Accelerators

2026-06-01 · Taras Sereda, Burak Bartan, Ankita Nayak, Tom St. John, Natalie Serrino, Zain Asgar arxiv

Production inference increasingly targets a heterogeneous mix of accelerators. Agentic pipelines interleave reasoning, tool calls, and multi-agent coordination, each with distinct compute and memory profiles. For optimal efficiency, each stage should run on the accelerator best suited to it. This creates a systems challenge: each pipeline now requires high-performance kernels across a growing set of hardware backends and programming models. Writing these kernels by hand is time-consuming, demands deep low-level expertise, and does not scale as kernel complexity grows. Recently, Large Language Models (LLMs) have been leveraged for automatic kernel generation, but challenges in low-level code generation and cross-backend generalization persist. We present KForge, a cross-platform framework built around an iterative refinement loop driven by two collaborating LLM-based agents: a generation agent that produces and progressively refines kernels using compilation and correctness feedback, and a performance-analysis agent that interprets profiling data, from programmatic APIs to GUI-based tools, and emits recommendations that steer the next round of synthesis. The loop alternates between functional passes, which drive a candidate to correctness, and optimization passes, which close the performance gap to hand-tuned baselines. We evaluate KForge on two backends with very different baseline reference availability. On NVIDIA B200, KForge achieves a 2.12$\%$ improvement in end-to-end throughput compared to TensorRT-LLM on the gpt-oss-20b inference speed benchmark. On Intel Arc B580, KForge generates Triton kernels achieving a 5.13$\times$ geometric mean speedup over the faster of PyTorch eager and torch.compile on 37 GEMM + tail-ops workloads from KernelBench Level 2, primarily via operator fusion and mixed-precision execution.

📄 PDF Abstract BibTeX arXiv:2606.02963

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

KForge: Program Synthesis for Diverse AI Hardware Accelerators

2025-11-17 · Taras Sereda, Tom St. John, Burak Bartan, Natalie Serrino 외 arxiv

GPU kernels are critical for ML performance but difficult to optimize across diverse accelerators. We present KForge, a platform-agnostic framework built on two collaborative LLM-based agents: a generation agent that pro…

Program Synthesis

MaskForge: Structure-Aware Adaptive Attacks for Jailbreaking Diffusion Large Language Models

2026-06-01 · Yingzi Ma, Zhengyue Zhao, Xiaogeng Liu, Minhui Xue 외 arxiv

Diffusion large language models (dLLMs) generate text by iteratively denoising partially masked sequences under bidirectional context, exposing a safety surface distinct from autoregressive LLMs. Because mask tokens are …

AKG kernel Agent: A Multi-Agent Framework for Cross-Platform Kernel Synthesis

2025-12-29 · Jinye Du, Quan Yuan, Zuyao Zhang, Yanzhi Yi 외 arxiv

Modern AI models demand high-performance computation kernels. The growing complexity of LLMs, multimodal architectures, and recommendation systems, combined with techniques like sparsity and quantization, creates signifi…

Recommendation SystemsCode Generation

KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware

2026-02-10 · Jiayi Nie, Haoran Wu, Yao Lai, Zeyu Cao 외 arxiv

New AI accelerators with novel instruction set architectures (ISAs) often require developers to manually craft low-level kernels, a time-consuming and error-prone process that does not scale across hardware targets. This…

Code Generation

MultiKernelBench: A Multi-Platform Benchmark for Kernel Generation

2025-07-20 · Zhongzhen Wen, Yinghui Zhang, Zhong Li, Zhongxin Liu 외 arxiv

The automatic generation of deep learning (DL) kernels using large language models (LLMs) has emerged as a promising approach to reduce the manual effort and hardware-specific expertise required for writing high-performa…