[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-273529-105":59,"doc-detail-273529-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","ptxbench-benchmark-and-adapt-llms-for-gpu-kernel-optimization-with-architecture-specific-ptx","PTXBench - Benchmark and Adapt LLMs for GPU Kernel Optimization - with Architecture-specific PTX","","PTXBench is introduced as a benchmark that evaluates and adapts large language models (LLMs) to generate architecture-specific PTX for GPU kernel optimization. It measures functional correctness, whether required target instruction families execute at runtime, and peak/typical speedup against frontier libraries on GEMM and attention workloads across H100 and B200 GPUs. Results show uneven capability, especially reduced success on complex attention backward tasks, and target-instruction execution does not guarantee competitive performance. The paper further applies repair-conditioned supervised fine-tuning to Qwen3.6-27B, improving several tasks while revealing sensitivity to data coverage, balance, and the reasoning teacher.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/ptxbench-benchmark-and-adapt-llms-for-gpu-kernel-optimization-with-architecture-specific-ptx/273529/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/ptxbench-benchmark-and-adapt-llms-for-gpu-kernel-optimization-with-architecture-specific-ptx/273529.png","ImageObject",300,407,{"name":92,"@type":93},"Hazel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-28","2026-09-15",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",15,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What does PTXBench measure when evaluating LLMs?","Question",{"text":113,"@type":114},"PTXBench measures functional correctness, whether required architecture-specific PTX instruction families execute at runtime, and peak/typical performance relative to frontier libraries.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What workload patterns does PTXBench reveal about current models?",{"text":118,"@type":114},"Models often succeed on forward workloads but struggle substantially with complex attention backward workloads. Even when target instructions execute, performance may still lag behind frontier libraries.",{"name":120,"@type":111,"acceptedAnswer":121},"How is Qwen3.6-27B adapted in the study?",{"text":122,"@type":114},"The study applies supervised fine-tuning conditioned on repair signals (repair-conditioned training) to Qwen3.6-27B, improving several tasks while showing uneven generalization.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},273529,1789471907,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":130,"read_time":145,"preview_page_count":4},137441390410,"https://ap-avatar.wpscdn.com/avatar/2000252f4ab5702993?_k=1776741390130283984","arXiv : 2608 . 17379v2 [cs .CL] 19 Aug 2026  \nPTXBench: Benchmark and Adapt LLMs for GPU Kernel Optimization  \nwith Architecture-specific PTX  \nGenghan Zhang1 ∗ Yixin Dong2 Chengze Fan4 Zhichen Zeng3 Yueming Yuan3 Shaowei Zhu4 Kunle Olukotun1 1 Stanford University 2Carnegie Mellon University 3RadixArk 4Independent Researcher  \nABSTRACT  \nWe introduce PTXBench, a benchmark for evaluating and adapting large language models (LLMs) to use architecture-specific PTX for GPU kernel optimization. PTXBench measures functional correctness, whether selected target instructions execute at runtime, and speedup over frontier libraries across GEMM and attention workloads on H100 and B200 GPUs. Our evaluation shows that architecture-specific PTX capability remains uneven: success rates fall substantially on complex attention backward workloads, and executing the target instructions does not necessarily translate into competitive performance. No evaluated model consistently matches frontier libraries across the suite. We further adapt Qwen3.6-27B using supervised fine-tuning. Repair-conditioned training improves several tasks, but generalization remains uneven; data coverage, balance, and the quality of the reasoning teacher matter in addition to dataset size. PTXBench provides an auditable testbed for measuring and improving LLMs’ ability to exploit evolving GPU architectures.  \n1 INTRODUCTION  \nPTX (Parallel Thread Execution) is the lowest-level programmable interface that CUDA developers can explicitly control. High-performance kernels often require PTX-level optimization to efficiently leverage architecture-specific mechanisms [1] . Recent NVIDIA GPU generations have been introducing new architecture-specific PTX instructions for tensor cores, memory units, and synchronization mechanisms [2–6] . A portable CUDA kernel can remain functionally correct while leaving the defining capabilities of newer hardware unused. Higher-level kernel languages aim to recover performance portability [7, 8], which ultimately lower to the same PTX interface. However, keeping these kernel languages aligned with rapidly evolving hardware requires continued compiler engineering [9], while validating an optimizing compiler entails a much larger input and configuration space and thus is much harder than validating an individual kernel [10] . This raises a practical question for kernel developers: can an LLM directly exploit architecture-specific features, and can targeted post-training improve this ability?  \nTo answer this question, we introduce PTXBench, an architecture-specific GPU kernel benchmark that evaluates whether LLMs can exploit specified low-level GPU mechanisms. PTXBench incorporates MiniPTXAgent, a multiturn agent loop in which models are given an accurate architecture-specific knowledge pack and generate CUDA kernels with inline PTX (which we call CUDA–PTX) and revise them using structured execution feedback. Across each trajectory, PTXBench separately measures functional correctness, whether the required instruction family executes at runtime under the evaluated workload, and peak and typical performance. PTXBench is built on FlashInfer-Trace [11], a unified schema for kernel workloads, solutions, and evaluations. Separating the capability probe from the problem collection makes PTXBench extensible to suites with compatible interfaces, such as SOL-ExecBench [12] . Existing GPU kernel benchmarks, beginning with KernelBench [13], ask models to replace reference PyTorch operators with functionally correct, faster GPU kernels [14, 15] . These end-to-end outcomes are essential, but they do not isolate whether a model can directly program a specified architecture mechanism: performance may instead come from generic CUDA code or calls to existing vendor libraries. PTXBench complements these suites with a controlled capability probe: models must directly produce efficient low-level kernels using a specified family of architecture-specific PTX instructions","cbCaifX6zjiBZuu1","https://ap.wps.com/l/cbCaifX6zjiBZuu1","pdf",4987920,22,"English","# Introduction\n## PTX and the challenge of architecture-specific optimization\n## PTXBench benchmark design and evaluation metrics\n## Contributions and adaptation study overview","[{\"question\":\"What does PTXBench measure when evaluating LLMs?\",\"answer\":\"PTXBench measures functional correctness, whether required architecture-specific PTX instruction families execute at runtime, and peak/typical performance relative to frontier libraries.\"},{\"question\":\"What workload patterns does PTXBench reveal about current models?\",\"answer\":\"Models often succeed on forward workloads but struggle substantially with complex attention backward workloads. Even when target instructions execute, performance may still lag behind frontier libraries.\"},{\"question\":\"How is Qwen3.6-27B adapted in the study?\",\"answer\":\"The study applies supervised fine-tuning conditioned on repair signals (repair-conditioned training) to Qwen3.6-27B, improving several tasks while showing uneven generalization.\"}]","PTXBench - Benchmark and Adapt LLMs for GPU Kernel Optimization - with Architecture-specific PTX | PDF",55]