MCP
SG

Simon Guo

18 papers in the library

Papers

18
ParallelKernelBench: Can LLMs Write Fast Multi-GPU Kernels?
Willy ChanNathan PaekSimon GuoSimran AroraDaniel Y Fu
This paper introduces ParallelKernelBench (PKB), a benchmark and evaluation framework for multi-GPU LLM kernel generation, an area previously unexplored. PKB comprises a taxonomy of distributed workloads across parallelism types and 87 problems reflecting real compositions, plus communication-aware roofline analyses that extend single-GPU models. Evaluating frontier coding LLMs, the authors find current models struggle: single-shot correctness plateaus at 32% and speedup over PyTorch+NCCL occurs in only 25% of cases; over 90% of baselines achieve under 50% peak hardware utilization. Some LLM-generated kernels nonetheless outperform reference implementations by up to 2.06x.
OpenReviewOpenReview · May 14, 2026
0
Hawkeye: Hardware-Aware GPU Kernel Optimization with Minimal Supervision
Arya TschandKesavan RamakrishnanAlexander IngareSimon GuoJeffrey Jian MaZishen WanSimran AroraAzalia MirhoseiniVijay Janapa Reddi
Hawkeye is an open-source framework that enables hardware-aware GPU kernel generation with minimal supervision. It grounds autonomous kernel generation in a taxonomy of optimization strategies, requiring only one expert-written unit test per strategy per target architecture—about ten tests per architecture. This lets AI coding agents leverage architecture-specific features across Ampere, Hopper, Blackwell, and MI350 GPUs, approaching or surpassing expert-written PyTorch or Triton in BF16 and low precisions like FP8, NVFP4, and MXFP4, thereby reducing support overhead for new accelerators.
OpenReviewOpenReview · May 14, 2026
0
ParallelKernelBench: Can LLMs Write Fast Multi-GPU Kernels?
Willy ChanNathan PaekSimon GuoSimran AroraDaniel Y Fu
This paper introduces ParallelKernelBench (PKB), a benchmark and evaluation framework for LLM-generated multi-GPU kernels, addressing a task left unexplored by prior single-GPU work despite communication being a dominant bottleneck at scale. PKB rests on a taxonomy of distributed workloads spanning the main parallelism types, with 87 problems chosen to cover compositions arising in real workloads, and it is paired with a communication-aware roofline analysis suited to multi-GPU bottlenecks. Evaluating frontier coding models, the authors find single-shot correctness in 32% of cases and speedup over an unoverlapped PyTorch + NCCL baseline in only 25%; over 90% of baselines reach under 50% of peak utilization. Several LLM-generated kernels outperform reference implementations in specific regimes, including NeMo's vocab-parallel log-probability kernel (up to 2.06x).
OpenReviewOpenReview · May 5, 2026
0
Hawkeye: Hardware-Aware GPU Kernel Optimization with Minimal Supervision
Arya TschandKesavan RamakrishnanAlexander IngareSimon GuoJeffrey Jian MaZishen WanSimran AroraAzalia MirhoseiniVijay Janapa Reddi
Hawkeye is an open-source framework that grounds autonomous GPU kernel generation in a minimal, comprehensive taxonomy of optimization strategies, needing only one unit test per strategy per target architecture. Supporting a new accelerator thus requires just 10 expert-written unit tests per architecture, one per recurring strategy, which generalize across downstream workloads instead of hand-writing kernels for each workload and precision. Hawkeye scales coding agents' test-time compute with this minimal supervision, producing kernels that consistently leverage hardware-specific features and approach or surpass expert-written PyTorch or Triton in BF16 and emerging low precision (FP8, NVFP4, MXFP4) across Ampere, Hopper, Blackwell, and MI350 GPUs, reducing the overhead of supporting new accelerators.
OpenReviewOpenReview · May 4, 2026
0
[Short] DSL-Monkeys: Self-Generated In-Context Examples for Low-Resource GPU DSL Kernels
Nathan PaekSimon GuoVishnu SarukkaiWilly ChanWilliam HuEthan BonehSimran AroraLudwig SchmidtKayvon FatahalianAzalia Mirhoseini
DSL-Monkeys is a batched test-time approach for generating low-resource GPU DSL kernels (TileLang, ThunderKittens). Instead of treating each kernel independently, it jointly considers a whole collection: it maintains a growing archive of successfully implemented kernels and retrieves them as in-context demonstrations for remaining tasks, resembling test-time reinforcement learning by curating a retrieval database rather than updating weights. Starting from 3 seed examples, it achieves 71% and 18% correctness on 200 KernelBench tasks for TileLang and ThunderKittens, versus baseline pass@1 rates under 20% and 1%. With curriculum decomposition it solves complex linear attention variants approaching human-expert Triton performance; scaling to 10K PyTorch programs yields thousands of verified DSL implementations, and fine-tuning with distillation and self-generated data improves Qwen's TileLang ability.
OpenReviewOpenReview · February 8, 2026
0
0
DSL-Monkeys: Self-Generated In-Context Examples for Low-Resource GPU DSL Kernels
Nathan PaekSimon GuoVishnu SarukkaiWilly ChanWilliam HuEthan BonehSimran AroraLudwig SchmidtKayvon FatahalianAzalia Mirhoseini
DSL-Monkeys is a batched, test-time approach for GPU DSL kernel generation that treats a collection of tasks jointly rather than individually. It maintains a growing archive of successfully implemented kernels and retrieves them as in-context demonstrations for remaining tasks, resembling test-time reinforcement learning by curating a retrieval database instead of updating weights. Starting from only 3 seed examples, it achieves 71% and 18% correctness on 200 KernelBench Level 1-2 tasks for TileLang and ThunderKittens respectively, versus baselines below 20% and 1%. With curriculum decomposition, it solves complex linear attention variants approaching human-expert Triton performance, and with 10K GitHub PyTorch programs it produces thousands of verified DSL implementations, with fine-tuning improving Qwen's TileLang ability.
OpenReviewOpenReview · February 7, 2026
0
1
Kevin: Multi-Turn RL for Generating CUDA Kernels
Carlo BaronioPietro MarsellaBen PanSimon GuoSilas Alberti
Kevin (Kernel Devin) is the first model trained with multi-turn reinforcement learning for CUDA kernel generation and optimization. Its recipe addresses real-world challenges like learning from long trajectories and attributing rewards across turns, capturing the iterative nature of kernel development. In evaluation, Kevin improved correctness of generated pure-CUDA kernels from 56% to 82% over its base model (QwQ-32B) and mean speedup from 0.53x to 1.10x of PyTorch Eager, surpassing frontier models like o4-mini (0.78x). The study also found serial refinement benefits more than parallel sampling.
OpenReviewOpenReview · · September 20, 2025
0
Kevin: Multi-Turn RL for Generating CUDA Kernels
Carlo BaronioPietro MarsellaBen PanSimon GuoSilas Alberti
Kevin (Kernel Devin) is the first model trained with multi-turn reinforcement learning (RL) for CUDA kernel generation and optimization. The multi-turn RL recipe explicitly models the iterative nature of kernel development, learning from long trajectories and attributing rewards across turns. Starting from QwQ-32B, Kevin improves correctness from 56% to 82% and mean speedup from 0.53x to 1.10x of PyTorch Eager, surpassing o4-mini (0.78x). Test-time scaling results show serial refinement is more beneficial than parallel sampling.
arXivarXiv · · July 16, 2025
0
100
Kevin: Multi-Turn RL for Generating CUDA Kernels
Carlo BaronioPietro MarsellaBen PanSimon GuoSilas Alberti
The authors present Kevin, the first model trained with multi-turn reinforcement learning for CUDA kernel generation and optimization. Their flexible multi-turn RL recipe addresses challenges like learning from long trajectories and reward attribution across turns. In evaluation, Kevin improves over its base model QwQ-32B, raising correctness of pure-CUDA kernels from 56% to 82% and mean speedup from 0.53x to 1.10x of PyTorch Eager, surpassing frontier models like o4-mini (0.78x). Behavior studies show serial refinement outperforms parallel sampling, with more refinement turns yielding higher improvement rates.
OpenReviewOpenReview · · May 26, 2025
0
Kevin: Multi-Turn RL for Generating CUDA Kernels
Carlo BaronioPietro MarsellaBen PanSimon GuoSilas Alberti
This paper introduces Kevin, the first model trained with multi-turn reinforcement learning for CUDA kernel generation and optimization. The authors propose a flexible multi-turn RL recipe that addresses issues like long-trajectory learning and reward attribution across turns. Kevin (built on QwQ-32B) improves kernel correctness from 56% to 82% and mean speedup from 0.53x to 1.10x of PyTorch Eager, surpassing frontier models such as o4-mini. Tests reveal that scaling serial refinement turns yields more benefit than parallel sampling.
OpenReviewOpenReview · · May 26, 2025
0
Think, Prune, Train, Improve: Scaling Reasoning without Scaling Models
Caia CostelloSimon GuoAnna GoldieAzalia Mirhoseini
The authors propose Think, Prune, Train, a scalable framework that iteratively fine-tunes a language model on its own reasoning traces after pruning incorrect ones via ground-truth answers. Applied to arithmetic reasoning (GSM8K), this self-improvement method raises Gemma2-2B’s Pass@1 from 41.9% to 57.6%, lifts Gemma2-9B to 82% (matching LLaMA-3.1-70B), and brings LLaMA-3.1-70B to 91%, surpassing GPT-4o. The key insight is that high-quality self-generated data, not larger models, drives improvement.
arXivarXiv · · April 25, 2025
0
15
KernelBench: Can LLMs Write Efficient GPU Kernels?
Anne OuyangSimon GuoSimran AroraAlex L. ZhangWilliam HuChristopher RéAzalia Mirhoseini
KernelBench evaluates LLMs on writing efficient GPU kernels for 250 PyTorch ML workloads. Its metric fast_p measures the percentage of generated kernels that are both correct and exceed a speedup threshold p over the baseline. Frontier reasoning models perform best out of the box yet still match the baseline in under 20% of cases. Results improve with execution and profiling feedback, but the benchmark remains challenging, especially at higher speedup thresholds.
arXivarXiv · · February 14, 2025
0
278
KernelBench: Can LLMs Write Efficient GPU Kernels?
Anne OuyangSimon GuoSimran AroraAlex L ZhangWilliam HuChristopher ReAzalia Mirhoseini
KernelBench is an open-source framework that evaluates language models' ability to write fast, correct GPU kernels for 250 PyTorch ML workloads. Its new metric $\text{fast}_p$ measures the percentage of generated kernels that are functionally correct and faster than baseline by an adjustable threshold $p$. Experiments show frontier reasoning models outperform others out of the box but still match the PyTorch baseline in under 20% of cases. Iterative refinement with execution and profiling feedback improves results, though the benchmark remains challenging, with difficulty increasing as $p$ rises.
OpenReviewOpenReview · · February 12, 2025
0
KernelBench: Can LLMs Write Efficient GPU Kernels?
Anne OuyangSimon GuoSimran AroraAlex L ZhangWilliam HuChristopher ReAzalia Mirhoseini
This paper introduces KernelBench, an open-source framework with 250 PyTorch ML workloads for evaluating language models' ability to generate fast, correct GPU kernels. It proposes the metric $\text{fast}_p$, the percentage of kernels that are functionally correct and exceed a speedup threshold $p$ over baseline. Experiments show frontier reasoning models perform best out of the box but match PyTorch baselines in under 20% of cases; iterative refinement with execution and profiling feedback improves results, though the benchmark remains challenging and difficulty rises with $p$.
OpenReviewOpenReview · · February 11, 2025
0
KernelBench: Can LLMs Write Efficient GPU Kernels?
Anne OuyangSimon GuoSimran AroraAlex L ZhangWilliam HuChristopher ReAzalia Mirhoseini
KernelBench, an open-source framework, evaluates language models' ability to write fast, correct GPU kernels across 250 PyTorch machine-learning workloads. It introduces the metric $\\text{fast}_p$, measuring the percentage of generated kernels that are correct and faster than baseline by a tunable threshold $p$. Experiments show frontier reasoning models perform best out-of-the-box but match the PyTorch baseline in fewer than 20% of cases. Although iterative refinement with execution and profiling feedback improves results, KernelBench remains challenging, with difficulty increasing as $p$ rises.
OpenReviewOpenReview · · January 24, 2025
0
BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts
Qizhen ZhangNikolas GritschDwaraknath GnaneshwarSimon GuoDavid CairuzBharat VenkiteshJakob FoersterPhil BlunsomSebastian RuderAhmet UstunAcyr Locatelli
BAM (Branch-Attend-Mix) upcycles pre-trained dense models into a Mixture of Experts (MoE) by using each expert's full feed-forward network and attention parameters, rather than only the feed-forward layers. It initializes attention parameters into soft Mixture of Attention layers, optionally sharing key-value parameters across experts for efficiency, and adopts parallel attention to allow concurrent expert computation. Experiments on 590M–2B parameter models show BAM improves perplexity and downstream task performance under fixed compute and data budgets.
arXivarXiv · · August 15, 2024
0
17
BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts
Qizhen ZhangNikolas GritschDwaraknath GnaneshwarSimon GuoDavid CairuzBharat VenkiteshJakob Nicolaus FoersterPhil BlunsomSebastian RuderAhmet ÜstünAcyr Locatelli
BAM (Branch-Attend-Mix) improves Mixture of Experts (MoE) training by better upcycling specialized dense models. Unlike prior work that only uses experts' feed-forward networks to initialize MoE layers, BAM also fully leverages attention weights by initializing them as Mixture of Attention layers. Experiments with seed models from 590M to 2B parameters show BAM outperforms state-of-the-art baselines in perplexity and downstream tasks under the same data and compute budget.
OpenReviewOpenReview · · June 1, 2024
0
BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Experts
Qizhen ZhangNikolas GritschDwaraknath GnaneshwarSimon GuoDavid CairuzBharat VenkiteshJakob Nicolaus FoersterPhil BlunsomSebastian RuderAhmet ÜstünAcyr Locatelli
BAM (Branch-Attend-Mix) improves Mixture-of-Experts (MoE) training by fully reusing specialized dense pre-trained models. Unlike prior upcycling methods that use only feed-forward parameters, BAM also leverages attention weights via mixture-of-attention layers, either with separate attention experts or shared key-value pairs for efficiency. Experiments with seeds from 590M to 2B parameters show BAM outperforms state-of-the-art methods under equal compute in perplexity and downstream tasks.
OpenReviewOpenReview · · May 15, 2024
0
Authors with the same name
Simon Guo #0003 · 1 papers
Simon Guo #0004 · 3 papers
Frequent collaborators
Simran Arora (10)
Azalia Mirhoseini (9)
William Hu (6)
Willy Chan (4)
Nathan Paek (4)
Carlo Baronio (4)
Pietro Marsella (4)
Ben Pan (4)
Silas Alberti (4)
Anne Ouyang (4)
Alex L Zhang (3)
Christopher Re (3)