Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractions
Open accessThe DOI matches its DataCite record; 84 of the 84 references it cites were found in a registry or an index.
Abstract
Deep learning models with convolutional and recurrent networks are now ubiquitous and analyze massive amounts of audio, image, video, text and graph data, with applications in automatic translation, speech-to-text, scene understanding, ranking user preferences, ad placement, etc. Competing frameworks for building these networks such as TensorFlow, Chainer, CNTK, Torch/PyTorch, Caffe1/2, MXNet and Theano, explore different tradeoffs between usability and expressiveness, research or production orientation and supported hardware. They operate on a DAG of computational operators, wrapping high-performance libraries such as CUDNN (for NVIDIA GPUs) or NNPACK (for various CPUs), and automate memory allocation, synchronization, distribution. Custom operators are needed where the computation does not fit existing high-performance library calls, usually at a high engineering cost. This is frequently required when new operators are invented by researchers: such operators suffer a severe performance penalty, which limits the pace of innovation. Furthermore, even if there is an existing runtime call these frameworks can use, it often doesn't offer optimal performance for a user's particular network architecture and dataset, missing optimizations between operators as well as optimizations that can be done knowing the size and shape of data. Our contributions include (1) a language close to the mathematics of deep learning called Tensor Comprehensions, (2) a polyhedral Just-In-Time compiler to convert a mathematical description of a deep learning DAG into a CUDA kernel with delegated memory management and synchronization, also providing optimizations such as operator fusion and specialization for specific sizes, (3) a compilation cache populated by an autotuner. [Abstract cutoff]
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.90 · Cited by 235,474
Genetic algorithms in search, optimization, and machine learning
(1989) · Choice Reviews Online · doi:10.5860/choice.27-0936 · Cited by 49,010
Aggregated Residual Transformations for Deep Neural Networks
Xie, S., Girshick, R., Dollar, P., Tu, Z., & He, K. (2017) · 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2017.634 · Cited by 12,465
TensorFlow: A system for large-scale machine learning
Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., Isard, M., et al. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1605.08695 · Cited by 11,822
Practical Bayesian Optimization of Machine Learning Algorithms
Snoek, J., Larochelle, H., & Adams, R. P. (2012) · arXiv · doi:10.48550/arxiv.1206.2944 · Cited by 6,691
Improving neural networks by preventing co-adaptation of feature detectors
Hinton, G. E., Srivastava, N., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. R. (2012) · arXiv · doi:10.48550/arxiv.1207.0580 · Cited by 6,382 · cited 2×
“Grouped Convolutions Grouped convolutions have been present for a few years in the DNN research community, they were already used in the Dropout [39] network and have recently gained traction as part of the state-of-the-art ResNext [90] model.”
MethodIn-Datacenter Performance Analysis of a Tensor Processing Unit
Jouppi, N. P., Young, C., Patil, N., Patterson, D., Agrawal, G., Bajwa, R., Bates, S., Bhatia, S., Boden, N., Borchers, A., et al. (2017) · Proceedings of the 44th Annual International Symposium on Computer Architecture · doi:10.1145/3079856.3080246 · Cited by 4,537 · cited 2×
“improve user experience and revenue, based on individual preferences and history—the landscape is heavily shifting to custom hardware where the most serious efficiency gains lie, both in data centers [41, 65] and on mobile devices. Still, these models need to be trained before being deployed. Training usually involves…”
BackgroundDeep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2015) · arXiv · doi:10.48550/arxiv.1512.03385 · Cited by 4,196
Perceptrons: An Introduction to Computational Geometry
Minsky, M., & Papert, S. A. (1969) · Cited by 3,751
(1989) · neural information processing systems · Cited by 3,736
Research works printed but not linked: 8
- O. Beckmann, A. Houghton, P. H. J. Kelly, and M. Mellor. Run-time code generation in C++ as a foundation for domain-specific optimisation. In Proceedings of the 2003 Dagstuhl Workshop on Domain-Specific Program Generation, 2003.
- M. Dukhan. Peachpy: A python framework for developing high-performance assembly kernels. In Proceedings of the 3rd Workshop on Python for High Performance and Scientific Computing, 2013.
- A. Krizhevsky, I. Sutskever, and G. E. Hinton. ImageNet classification with deep convolutional neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 25, pages 1097-1105.
- R. T. Mullapudi, A. Adams, D. Sharlet, J. Ragan-Kelley, and K. Fatahalian. Automatically scheduling halide image processing pipelines. ACM Trans. Graph., 35(4):83:1-83:11, July 2016.
- B. Pradelle, B. Meister, M. Baskaran, J. Springer, and R. Lethin. Polyhedral optimization of tensorflow computation graphs. In 6th Workshop on Extreme-scale Programming Tools (ESPT, associated with SC'17), Nov. 2017.
- In M. E. Henderson, C. R. Anderson, and S. L. Lyons, editors, Proceedings of the 1998 SIAM Workshop: Object Oriented Methods for Interoperable Scientific and Engineering Computing, pages 286-295. SIAM Press, 1998.
- S. Verdoolaege, S. Guelton, T. Grosser, and A. Cohen. Schedule Trees. In 4th Workshop on Polyhedral Compilation Techniques (IMPACT, Associated with HiPEAC), page 9, Vienna, Austria, Jan. 2014.
- G. Zhou, C. Song, X. Zhu, X. Ma, Y. Yan, X. Dai, H. Zhu, J. Jin, H. Li, and K. Gai. Deep Interest Network for Click-Through Rate Prediction. ArXiv e-prints, June 2017, 1706.06978.
Cited by
Items 501–549 of 549
Accelerated Autotuning of Deep Learning Workloads with Pretrained Performance Models
Hanz, T., & Qasem, A. (2025) · IEEE International Conference on High Performance Computing and Communications; IEEE International Conference on Smart City; IEEE International Conference on Data Science and Systems (HPCC/SmartCity/DSS) · doi:10.1109/hpcc67675.2025.00063
Joint Optimization of Deep Neural Networks with Dynamic Programming and Spatial Compression
Kaufman, S. J. (2026) · ResearchWorks at the University of Washington (University of Washington)
Algorithms and software for efficient tensor decompositions
Singh, N. (2025) · Illinois Digital Environment for Access to Learning and Scholarship (University of Illinois at Urbana-Champaign)
Impeller: Scalable and Efficient Zero-Knowledge Proof Computation Framework via Graph Compilation
Yu, L., Qiang, X., Sun, S., Chen, C., Leng, J., & Dong, J. (2027) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3845814.3850027
EdgeOpt-Sched-CS: Cold-Start-Aware Dynamic Scheduling for Efficient DNN Inference at the Edge
谷玉昌, Zhang, D., & Lu, T. (2026) · Sensors · doi:10.3390/s26103130
High-level static optimizations for efficient differentiable programming in MLIR
Peng, M. J. (2023) · eScholarship@McGill (McGill) · doi:10.82308/12251
Gezamenlijk ontwerp van Compilers en Hardware voor Versnelling van Deep Learning
Delm, J. V. (2026) · Lirias
Code generation of array constructs for distributed memory systems
Pothukuchi, S. Y. (2020) · Illinois Digital Environment for Access to Learning and Scholarship (University of Illinois at Urbana-Champaign)
Abstraction Raising in General-Purpose Compilers
Chelini, L. (2021) · TU/e Research Portal
Generation of Compiler Backends from Formal Models of HardwarePreprint
Smith, G. H. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2408.15429
Vertical Optimizations of Convolutional Neural Networks for Embedded Systems
Cipolletta, A. (2022) · PORTO@Iris
Deployment of Deep Neural Networks on Dedicated Hardware Accelerators
Rieber, D. S. (2023) · heiDOK (Heidelberg University) · doi:10.11588/heidok.00032994
Optimizing Machine Learning Inference Systems with White Box Approaches
이윤성 (2020) · Seoul National University Open Repository (Seoul National University)
Polymorphic Compilation for Cross-Domain Acceleration
Kinzer, S. (2023) · eScholarship (California Digital Library)
An Efficient Parallel CNN Inference Framework for Multi-zone Processor
Chen, J., & Liu, Z. (2022) · IEEE International Conference on High Performance Computing and Communications; IEEE International Conference on Smart City; IEEE International Conference on Data Science and Systems (HPCC/SmartCity/DSS) · doi:10.1109/hpcc-dss-smartcity-dependsys57074.2022.00210
Bridging the Gap Between Domain-specific Frameworks and Multiple Hardware DevicesPreprint
Wen, X., Gao, W., Wang, L., & Zhan, J. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2405.12491
Deep Learning Compilers: Architecture, Optimization, and Empirical CharacterizationPreprint
Wen, J., Wang, R., & Jiao, X. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2611.04273
ISA Mapper: A Compute and Hardware Agnostic Deep Learning CompilerPreprint
Sotoudeh, M., Venkat, A., Anderson, M., Georganas, E., Heinecke, A., & Knight, J. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1810.09958
Fast Schedule Tensor Computation on GPU with High Data Reuse and Device Utilization
Zhang, Y., & Zhang, Y. (2019) · IEEE International Symposium on Parallel and Distributed Processing with Applications (ISPA) · doi:10.1109/ispa-bdcloud-sustaincom-socialcom48970.2019.00084
Deep Learning at Scale with Nearest Neighbours Communications
Viviani, P. (2019) · Institutional Research Information System University of Turin (University of Turin) · doi:10.5281/zenodo.3516092
CHaNAS: coordinated search for network architecture and scheduling policy
Chen, W., Wang, Y., Lin, G., Gao, C., Liu, C., & Zhang, L. (2021) · ACM SIGPLAN/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES) · doi:10.1145/3461648.3463846
Efficient Phase-Functioned Real-time Character Control in Mobile Games: A TVM Enabled Approach
Lan, H., Zhu, W., Wu, D., Qiu, Q., Zhu, H., Zhao, J., Fu, X., Wei, L., Meng, J., & Deng, M. (2022) · Proceedings of the International Conference on Parallel Processing · doi:10.1145/3545008.3545095
Maximum Flows in Parametric Graph Templates
Ben‐Nun, T., Gianinazzi, L., Hoefler, T., & Oltchik, Y. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-30448-4_8
AMULET: Adaptive Matrix-Multiplication-Like Tasks
Kim, J., Ross, K. A., Sedlar, E., & Stadler, L. (2023) · International Workshop on Data Management on New Hardware (DaMoN) · doi:10.1145/3592980.3595301
Architectures of High-Performance Computing Systems for Machine Learning Workloads
Mrs. Raju, M., Gulhane, K., Gulshan, B. A., Chandra, S., Dwaramwar, P. A., & Boopathi, S. (2024) · Advances in systems analysis, software engineering, and high performance computing book series · doi:10.4018/978-1-6684-3795-7.ch017
A semi-algebraic model for automatic loop parallelizationPreprint
Chen, C. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2412.19287
OpenCML: An Open Customizable Modeling Language for Directed Acyclic Graphs
Wei, Z., Xing, W., Liu, W., Zou, Z., & Chen, G. (2024) · IEEE International Symposium on Parallel and Distributed Processing with Applications (ISPA) · doi:10.1109/ispa63168.2024.00048
Fusing the Polyhedral and Tensor Compilers to Accelerate Scientific Computing Kernels
Liu, Q., Chen, C., & Dai, H. (2025) · Concurrency and Computation Practice and Experience · doi:10.1002/cpe.70164
ELTC: An End-to-End Large Language Model-Based Tensor Compilation Optimization Framework
Ma, W., Song, Q., Qiao, F., Xue, Y., & Sun, M. (2025) · Lecture notes in computer science · doi:10.1007/978-981-95-3585-9_12
Optimizing Tensor Contractions on GPUs
Kim, J. (2019) · OhioLink ETD Center (Ohio Library and Information Network)
Program Transformations and Sparse Computations in Performance Portability Libraries
Neth, B., & Neth, B. (2024) · UA Campus Repository (The University of Arizona)
Detection and exploitation of data-parallelism in assignments of multi-dimensional tensors
Ullrich, T. J. (2018) · Qucosa (Saxon State and University Library Dresden)
Verdoolaege, S. (2018) · Lirias
Self-citationWang, Y. (2023) · ResearchWorks at the University of Washington (University of Washington)
Inter-loop Optimizations in RAJA using Loop Chains
Neth, B., Scogland, T., de Supinski, B. R., & Strout, M. M. (2021) · UA Campus Repository (The University of Arizona)
Verdoolaege, S. (2018) · Lirias
Self-citationEnabling Efficient Sparse Computations using Linear Algebra Aware Compilers
(NNSA), U. N. N. S. A., Rajamanickam, S., Sandia National Laboratories (SNL-NM), A., Kelley, B. E., Sadayappan, P., Rountev, A., Roose, J., Eydenberg, M., Alvey-Blanco, A., Vaidya, M., et al. (2025) · OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information) · doi:10.2172/3013883
Accelerating Deep-Learning Applications with Efficient Tensor Layout Management
Powell, K., Rongon, R. R., Yang, X., & Zhang, X. D. (2025) · IEEE ... International Conference on Data Mining workshops · doi:10.1109/icdmw69685.2025.00357
Analysis and Compilation of Parallel Programming Languages
Susungi, A. (2018) · theses.fr (ABES) · doi:10.70675/c38919a9z6886z48fbzb4a5z5f7610506bc3
Cai, Y., Zhang, M., Chen, S., Song, H. S., & Chen, W. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.14780
Liu, M., Zheng, D., Su, J., & Wu, C. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.25954
ScanWeaver: Compiler-Driven Parallelization of Affine Recurrences via Associative Scan LoweringPreprint
Wu, Q., & Zolnikov, P. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2606.00601
Toward Compiler World Models: Learning Latent Dynamics for Efficient Tensor Program SearchPreprint
Pan, H., Huang, L., Zhou, X., Xing, M., & Wu, Y. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2606.09312
Sun, R., He, H., Zhang, G., & Zhou, W. (2026) · Information Technology And Control · doi:10.5755/j01.itc.55.2.44070
Nova: An End-to-End MLIR Compiler for Deep LearningPreprint
Suresh, A., Aparna, A., Harshini, M., A, J. D. C., Rao, K. U. M., Golla, R. C., & Vendra, S. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.00029
パターンマッチ指向プログラミング言語とその応用としての数式処理システム
Eki, S. (2022) · Institutional Repositories DataBase (IRDB) · doi:10.15083/0002009540
Enhancing the Power of Polyhedral-Based Optimizations with Coordinate-Based Hill ClimbingPreprint
Verma, G., Canesche, M., & Pereira, F. M. Q. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2609.03114
Superscalar Loop ProcessorsPreprint
Colagrande, L., Etterli, P., & Benini, L. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2611.01904
Metadata
- Authors
- Vasilache, N., Zinenko, O., Theodoridis, T., Goyal, P., DeVito, Z., Moses, W. S., Verdoolaege, S., Adams, A., & Cohen, A.
- Affiliations
- Meta (United States) (US)
- École Normale Supérieure - PSL (FR)
- ETH Zurich (CH)
- MIT Computer Science and Artificial Intelligence Laboratory (US)
- ORCID
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2018
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 1802.04730
- OpenAlex
- W2786320458
- Semantic Scholar
- 716b8a99dd90ae046388bb2fda81602505b51b62
- Cited by
- 548
- References
- 81
- Citations by year
- 2026: 50 · 2025: 67 · 2024: 66 · 2023: 68 · 2022: 64 · 2021: 68 · 2020: 75 · 2019: 56 · 2018: 34
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung (168016)
- Topics
- Physical Sciences › Computer Science › Hardware and Architecture › Parallel Computing and Optimization Techniques
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Physical Sciences › Computer Science › Hardware and Architecture › Embedded Systems Design Techniques
- Keywords
- polyhedral compilation, just-in-time compilation, operator fusion, auto-tuning, custom operators, memory management
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.