arXiv:2610.37838cs.CROct 2026

Manuscript Offprint

arXiv:2610.37838

TensorBound: Characterizing Tensor Binding Failures in AI Compiler and Runtime Stacks

Wen Li, Yongxi Sha, Baihong Chen

WEN LI, Utah State University, USA

YONGXI SHA, Utah State University, USA

BAIHONG CHEN, Utah State University, USA

AI compiler and runtime stacks must preserve bindings between tensor values and their operations, storage, and execution state. These bindings can fail while the underlying objects remain present, with symptoms appearing in another layer. We present TENSORBOUND, an empirical study of tensor binding failures in IREE and the XLA and PyTorch ecosystems. The study analyzes 264 reports and reconstructs 149 distinct repaired causes through source tracing and comparisons of pre-fix and repaired revisions. Each reconstruction connects the first invalid decision to its violated condition, physical effect, and repair. Missing eligibility checks, incorrect mappings or translations, and lost or omitted relations account for 69.1% of repaired causes. These patterns highlight the need to preserve binding facts and check the conditions for their use. The 101 first invalid decisions in compiler code identify candidate checking points before execution. Four archived IREE diagnostic attempts distinguish effect localization from source-based cause explanation. Together, these findings motivate transition-specific checks that preserve binding facts across representations and enforce the required conditions at consuming decisions.

CCS Concepts: • Software and its engineering → Software testing and debugging.

Additional Key Words and Phrases: AI compilers, accelerator runtimes, tensor storage reuse, empirical software engineering, program analysis

ACM Reference Format:

Wen Li, Yongxi Sha, and Baihong Chen. 2026. TENSORBOUND: Characterizing Tensor Binding Failures in AI Compiler and Runtime Stacks. ACM Trans. Softw. Eng. Methodol. 1, 1 (October 2026), 33 pages. https://doi.org/10.1145/nnnnnnnn.nnnnnnn

1 Introduction

AI compiler and runtime stacks translate logical tensor programs into operations on physical storage. Graph and tensor IR represent operations and their data dependencies. Compiler transformations restructure these operations, while bufferization and memory planning map tensor values to storage regions. These decisions guide kernel generation and execution scheduling. The runtime launches the generated kernels and tracks their execution and completion.

As these representations change, a logical value may acquire new storage, while different values may share or reuse a region. The region's contents or ownership can therefore change while it remains allocated. Meanwhile, asynchronous device work may still access the region after the host schedules later operations. Correct execution depends on preserving which value a region represents, which operations may access it, and when those operations complete. These

Authors' Contact Information: Wen Li, Utah State University, Logan, Utah, USA, awen.li@usu.edu; Yongxi Sha, Utah State University, Logan, Utah, USA, yongxi.sha@usu.edu; Baihong Chen, Utah State University, Logan, Utah, USA, b.chen@usu.edu.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 ACM.

ACM 1557-7392/2026/10-ART

https://doi.org/10.1145/nnnnnnnn.nnnnnnn relations connect compiler representations, generated code, and runtime state. XLA's buffer analysis, IREE's compiler-routine split, and TorchInductor's generated kernels illustrate these dependencies [2, 23, 36]. Compiler analyses track aliases and lifetimes to guide storage decisions, while IR verifiers check local invariants. Compiler-testing tools compare generated behavior with a reference. During execution, host and device sanitizers detect supported memory and synchronization errors [25, 26, 30, 34, 52, 55]. Yet a symptom can appear in a different layer from the operation that lost or misused the required information. Explaining the failure requires connecting that symptom to the responsible source decision and its violated condition.

We present TENSORBOUND, an empirical study of tensor binding failures within and across compiler and runtime layers. A tensor execution binding, or binding relation, connects entities that realize a logical tensor value, including its operations, storage, execution context, and completion state. A binding fact represents such a relation in concrete implementation state, such as a storage identity, offset, alias base, copy policy, placement, or completion state. A source operation that changes or consumes a binding fact must satisfy a corresponding validity condition. Section 2.2 defines these concepts.

For each repaired cause, TENSORBOUND identifies the first invalid decision: the earliest operation in the reconstructed causal order whose violated condition permits the physical effect. The observed consequence describes how that effect appears in the report. A repair restores validity by changing this decision or another operation that establishes the required fact or condition. Each cause record separates four roles:

state : binding relation and concrete binding fact decision : source operation and its validity condition outcome : physical effect and observed consequence change : landed repair to the fact, operation, or condition

Source tracing connects the binding fact to the reported physical effect, while comparing pre-fix and repaired revisions identifies the change that restores validity. Reports, source revisions, tests, and repairs provide the supporting evidence.

The study covers IREE, the XLA ecosystem (XLA, JAX, and PJRT), and the PyTorch ecosystem (PyTorch, TorchInductor, and Triton). Model-assisted screening and human review select 264 reports from 7,509 public records. Of these, 162 have traceable repairs, yielding 149 distinct repaired causes after deduplication. Two human reviewers check each cause against its report, source revisions, and repair. Three failure families account for 103 of the 149 causes (69.1%): missing eligibility check, incorrect mapping or translation, and lost or omitted relation. These failures highlight two complementary requirements: preserving binding facts across representations and enforcing the validity conditions governing their use. The required conditions vary with the source operation, even within the same binding relation. The first invalid decision occurs in compiler code for 101 causes and runtime code for 48, identifying candidate checking points in both layers.

At the report level, incorrect result or state is primary in 168 of 264 reports, motivating output comparisons and state assertions alongside memory and synchronization checks. Among four archived IREE diagnostic attempts, two reach the failing path and detect and localize the physical effect. One output also identifies the selected invalid-decision site. Source and repair comparisons establish the violated binding conditions, distinguishing effect localization from causal explanation.

This study makes three contributions:

  • Source-linked cause records. We reconstruct repaired causes by connecting binding facts, invalid source decisions, validity conditions, physical effects, and repairs. Each record preserves implementation-specific evidence alongside shared taxonomy labels.

  • Cross-stack empirical findings. We characterize 149 distinct repaired causes across three compiler and runtime ecosystems. The findings identify recurring failure mechanisms, transition-specific validity conditions, and candidate checking points across compiler and runtime layers.

  • Diagnostic case study. We examine four archived IREE diagnostic attempts across five dimensions, from failing-path coverage to cause explanation. The cases distinguish the diagnostic evidence to locate physical effects from the source evidence needed to explain their causes.

Open science. The TENSORBOUND provides source-linked analysis records, archived reports and patches, and numerical verification scripts. The scripts recompute cause-level results from released records and Phase 1 estimates from reported human-review totals. Appendix D describes the available evidence and replay limitations.

References (26)