mlsanityData to 7 Oct 2026

The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Padding

arXiv 2110.10221 ↗First posted 19 Oct 2021cs.LGcited by 17

Not on the map. Why?

Abstract (arXiv)

There is often variation in the shape and size of input data used for deep learning. In many cases, such data can be represented using tensors with non-uniform shapes, or ragged tensors. Due to limited and non-portable support for efficient execution on ragged tensors, current deep learning frameworks generally use techniques such as padding and masking to make the data shapes uniform and then offload the computations to optimized kernels for dense tensor algebra. Such techniques can, however, lead to a lot of wasted computation and therefore, a loss in performance. This paper presents CoRa, a tensor compiler that allows users to easily generate efficient code for ragged tensor operators targeting a wide range of CPUs and GPUs. Evaluating CoRa on a variety of operators on ragged tensors as well as on an encoder layer of the transformer model, we find that CoRa (i)performs competitively with hand-optimized implementations of the operators and the transformer encoder and (ii) achieves, over PyTorch, a 1.6X geomean speedup for the encoder on an Nvidia GPU and a 1.86X geomean speedup for the multi-head attention module used in transformers on an ARM CPU.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 33 of its 68 references that are in the map. First posted on arXiv 19 Oct 2021.

Builds on

33 of 68 references.

References · 33

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  6. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  7. 2016WaveNet: A Generative Model for Raw Audiocited by 1,710
  8. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  9. 2018Neural Network Acceptability Judgmentscited by 952
  10. 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
  11. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
  12. 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 305
21 more
  1. 2014cuDNN: Efficient Primitives for Deep Learningcited by 240
  2. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
  3. 2018Learning to Optimize Tensor Programscited by 138
  4. 2020Sparse GPU Kernels for Deep Learningcited by 138
  5. 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
  6. 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
  7. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
  8. 2018TVM: An Automated End-to-End Optimizing Compiler for Deep Learningcited by 62
  9. 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
  10. 2017Deep Learning Techniques for Music Generation -- A Surveycited by 49
  11. 2020Dynamic Tensor Rematerializationcited by 45
  12. 2020IOS: Inter-Operator Scheduler for CNN Accelerationcited by 20
  13. 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
  14. 2020Automatic Horizontal Fusion for GPU Kernelscited by 17
  15. 2018Format Abstraction for Sparse Tensor Algebra Compilerscited by 16
  16. 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
  17. 2020FusionStitching: Boosting Memory Intensive Computations for Deep Learning Workloadscited by 9
  18. 2020Automatic Kernel Generation for Volta Tensor Corescited by 8
  19. 2019Stripe: Tensor Compilation via the Nested Polyhedral Modelcited by 6
  20. 2021A High-Performance Sparse Tensor Algebra Compiler in Multi-Level IRcited by 2
  21. 2021Using Graph Neural Networks to model the performance of Deep Neural Networkscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 6; 2023: 2; 2024: 4; 2025: 3; 2026: 2.

17 papers.

Sort:

By area:

  1. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
  2. 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
  3. 2022Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programscited by 28
  4. 2022Query Processing on Tensor Computation Runtimescited by 12
  5. 2023Relax: Composable Abstractions for End-to-End Dynamic Machine Learningcited by 12
  6. 2024Prepacking: A Simple Method for Fast Prefilling and Increased Throughput in Large Language Modelscited by 10
  7. 2022ChordMixer: A Scalable Neural Attention Model for Sequences with Different Lengthscited by 9
  8. 2026Every Response Counts: Quantifying Uncertainty of LLM-based Multi-Agent Systems through Tensor Decompositioncited by 5
  9. 2025PyGraph: Robust Compiler Support for CUDA Graphs in PyTorchcited by 3
  10. 2025Tilus: A Tile-Level GPGPU Programming Language for Low-Precision Computationcited by 3
  11. 2022Towards Optimal VPU Compiler Cost Modeling by using Neural Networks to Infer Hardware Performancescited by 2
  12. 2022ALT: Boosting Deep Learning Performance by Breaking the Wall between Graph and Operator Level Optimizationscited by 0
5 more
  1. 2024GeoT: Tensor Centric Library for Graph Neural Network via Efficient Segment Reduction on GPUcited by 0
  2. 2024FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilerscited by 0
  3. 2024Exploiting Student Parallelism for Efficient GPU Inference of BERT-like Models in Online Servicescited by 0
  4. 2025Operon: Incremental Construction of Ragged Data via Named Dimensionscited by 0
  5. 2026DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learningcited by 0