paper-with-me

Papers

A Tensor-Based Compiler and a Runtime for Neuron-Level DNN Certifier Specifications

2025-07-26 · Avaljot Singh, Yamin Chandini Sarita, Aditya Mishra, Ishaan Goyal, Gagandeep Singh, Charith Mendis arxiv

The uninterpretability of DNNs has led to the adoption of abstract interpretation-based certification as a practical means to establish trust in real-world systems that rely on DNNs. However, the current landscape supports only a limited set of certifiers, and developing new ones or modifying existing ones for different applications remains difficult. This is because the mathematical design of certifiers is expressed at the neuron level, while their implementations are optimized and executed at the tensor level. This mismatch creates a semantic gap between design and implementation, making manual bridging both complex and expertise-intensive -- requiring deep knowledge in formal methods, high-performance computing, etc. We propose a compiler framework that automatically translates neuron-level specifications of DNN certifiers into tensor-based, layer-level implementations. This is enabled by two key innovations: a novel stack-based intermediate representation (IR) and a shape analysis that infers the implicit tensor operations needed to simulate the neuron-level semantics. During lifting, the shape analysis creates tensors in the minimal shape required to perform the corresponding operations. The IR also enables domain-specific optimizations as rewrites. At runtime, the resulting tensor computations exhibit sparsity tied to the DNN architecture. This sparsity does not align well with existing formats. To address this, we introduce g-BCSR, a double-compression format that represents tensors as collections of blocks of varying sizes, each possibly internally sparse. Using our compiler and g-BCSR, we make it easy to develop new certifiers and analyze their utility across diverse DNNs. Despite its flexibility, the compiler achieves performance comparable to hand-optimized implementations.

📄 PDF Abstract BibTeX arXiv:2507.20055

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

GraphNet: A Large-Scale Computational Graph Dataset for Tensor Compiler Research

2025-10-28 · Xinqi Li, Yiqun Liu, Shan Jiang, Enrong Zheng 외 arxiv

We introduce GraphNet, a dataset of 2.7K real-world deep learning computational graphs with rich metadata, spanning six major task categories across multiple deep learning frameworks. To evaluate tensor compiler performa…

MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs

2025-12-22 · Xinhao Cheng, Zhihao Zhang, Yu Zhou, Jianan Ji 외 arxiv

We introduce Mirage Persistent Kernel (MPK), the first compiler and runtime system that automatically transforms multi-GPU model inference into a single high-performance mega-kernel. MPK introduces an SM-level graph repr…

DVM: A Bytecode Virtual Machine Approach for Dynamic Tensor Computation

2026-03-25 · Jingzhi Fang, Xiong Gao, Renwei Zhang, Zichun Ye 외 arxiv

Dynamism is common in AI computation, e.g., the dynamic tensor shapes and the dynamic control flows in models. Due to the long compilation time, existing runtime compilation damages the model efficiency, while the offlin…

TensorBench: Benchmarking Coding Agents on a Compiler-Based Tensor Framework

2026-06-04 · Bobby Yan, Fredrik Kjolstad arxiv

Repository-level coding benchmarks face a trade-off between task difficulty and evaluation reliability: tasks that challenge frontier models often involve large codebases with incomplete test coverage, while human review…

TapirXLA: Embedding Fork-Join Parallelism into the XLA Compiler in TensorFlow Using Tapir

2019-08-29 · Tao B. Schardl, Siddharth Samsi

This work introduces TapirXLA, a replacement for TensorFlow's XLA compiler that embeds recursive fork-join parallelism into XLA's low-level representation of code. Machine-learning applications rely on efficient parallel…

BIG-bench Machine LearningCPU