Symbolic Basic Block Profiling for Machine Learning Kernels
Jingyu Qiu, Rongcui Dong, Sreepathi Pai
Key points
From the paper's conclusion- We propose symbolic program profiling that generates symbolic formulae for a basic block’s count with inputs as the independent variables.
Abstract
Current basic block profiling techniques obtain the count of executions of each basic block in a program using dynamic instrumentation. These profiling counters create runtime overheads and also require the execution of the program, which, for large input sizes, can take substantial time. We propose symbolic program profiling that generates symbolic formulae for a basic block’s count with inputs as the independent variables. Our technique is limited in applicability to a certain class of programs, namely machine learning (ML) kernels. We implement our technique in the LLVM compiler and evaluate it on 78 ML operators from 50 different ML models. These operators are generated by TVM, a machine learning compiler. Our symbolic profiles deliver exactly the same results as dynamic instrumentation for 73 out of 78 kernels with a median speedup of 15093×.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Large Language Model Powered Symbolic ExecutionProceedings of the ACM on Programming Languages · 2025
- Racer: Hunting GPU Kernel Bugs with Symbolic Equivalence CheckingarXiv · 2026
- HPC-Bench: A Comprehensive Benchmark for High Performance Computing CodesarXiv · 2026
- AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence VerificationarXiv · 2026
- Equivalence Checking of ML GPU KernelsProceedings of the ACM on Programming Languages · 2026
- Control-Flow Profiling for Workload RepresentativenessarXiv · 2026