WRSWorld Research StateContribute
WORLD RESEARCH STATE

Tensor Comprehensions: turning tensor formulas into tuned GPU kernels

Contribution grade

Machine-learning domain-specific compilation · Reusable scientific method, experimental result or historical framework

Reference score160,000Provisional editorial estimate of this exact contribution; its grade is assessed separately.

What changed

A new neural-network operation may be easy to write as a formula yet slow to implement efficiently. Tensor Comprehensions provides a compact language for array calculations and a compiler that rearranges their loops, combines operations and specializes code for tensor shapes. An autotuner tries implementation choices and caches useful results. The work connects a high-level mathematical description to CUDA kernels and integrates with PyTorch and Caffe2 through ATen. Its contribution is this language, compiler and tuning pipeline, building on earlier polyhedral compilation, Halide and numerical libraries rather than replacing their authorship.

Scientific scope

A new neural-network operation may be easy to write as a formula yet slow to implement efficiently. Tensor Comprehensions provides a compact language for array calculations and a compiler that rearranges their loops, combines operations and specializes code for tensor shapes. An autotuner tries implementation choices and caches useful results. The work connects a high-level mathematical description to CUDA kernels and integrates with PyTorch and Caffe2 through ATen. Its contribution is this language, compiler and tuning pipeline, building on earlier polyhedral compilation, Halide and numerical libraries rather than replacing their authorship. The cited version targets CUDA and has explicit restrictions on range inference, recurrences and dynamic computation. Benchmark gains depend on tensor shapes, older GPU hardware and library versions; some large matrix multiplications are substantially slower than the vendor library. Autotuning itself consumes time and hardware. Selected kernel speedups are not an equal speedup of an entire training workload, and algebraic reduction semantics do not promise bit-identical floating-point results after reordering.

Evidence

The linked original works support the scoped statement and contribution attribution. WRS has not independently replayed experiments or reconstructed a full mathematical proof. The cited version targets CUDA and has explicit restrictions on range inference, recurrences and dynamic computation. Benchmark gains depend on tensor shapes, older GPU hardware and library versions; some large matrix multiplications are substantially slower than the vendor library. Autotuning itself consumes time and hardware. Selected kernel speedups are not an equal speedup of an entire training workload, and algebraic reduction semantics do not promise bit-identical floating-point results after reordering.

Contributors

Provisional WRS assessment, edition 2026-10-23.6. Independent expert calibration is pending. This grade does not certify correctness or assign ownership.

Full scientific record · Browse contribution grades · Request a correction