Lune

OOPSLA2026Top-tier venue

Symbolic Basic Block Profiling for Machine Learning Kernels

Jingyu Qiu, Rongcui Dong, Sreepathi Pai

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×.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Thermometer: profile-guided btb replacement for data center applications cites Profile inference revisited
  • Thermometer: profile-guided btb replacement for data center applications cites VESPA: static profiling for binary optimization
  • Thermometer: profile-guided btb replacement for data center applications cites CRISP: critical slice prefetching
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on6

  1. CRISP: critical slice prefetchingHeiner Litz, Grant Ayers, Parthasarathy RanganathanASPLOS 2022 · 33 citations
  2. Thermometer: profile-guided btb replacement for data center applicationsShixin Song, Tanvir Ahmed Khan, Sara Mahdizadeh-Shahri, Akshitha Sriraman et al.ISCA 2022 · 23 citations
  3. VESPA: static profiling for binary optimizationAngelica Aparecida Moreira, Guilherme Ottoni, Fernando Magno Quintão PereiraOOPSLA 2021 · 18 citations
  4. Profile inference revisitedWenlei He, Julián Mestre, Sergey Pupyrev, Lei Wang et al.POPL 2022 · 16 citations
  5. Exact Loop Bound AnalysisDaniel Riley, Grigory FedyukovichPLDI 2025

Related papers

  1. Lightweight Concolic Testing via Path-Condition Synthesis for Deep Learning LibrariesSehoon Kim, Yonghyeon Kim, Dahyeon Park, Yuseok Jeon et al.ICSE 2025 · 5 citations
  2. SYMSAN: Time and Space Efficient Concolic Execution via Dynamic Data-flow AnalysisJu Chen, Wookhyun Han, Mingjun Yin, Haochen Zeng et al.USENIX Security 2022
  3. SymFusion: Hybrid Instrumentation for Concolic ExecutionEmilio Coppa, Heng Yin, Camil DemetrescuASE 2022 · 7 citations
  4. RECom: A Compiler Approach to Accelerating Recommendation Model Inference with Massive Embedding ColumnsZaifeng Pan, Zhen Zheng, Feng Zhang, Ruofan Wu et al.ASPLOS 2023 · 7 citations
  5. Introducing Instruction-Accurate Simulators for Performance Estimation of Autotuning WorkloadsRebecca Pelke, Nils Bosbach, Lennart M. Reimann, Rainer LeupersDAC 2025
Dusk over the sea between two cliffs drawn in fine vertical lines