Metraipolis › archive › dc_a501c385ae55
DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learning — arXiv:2609.30379
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.30379
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T01:38:58.771Z
- SHA-256 of the archived text
6a4b5935abde727e46e13e67995c4d8b44303f86b33d3042869e081bfd3500f6- Stable URL of this page
https://metraipolis.com/documento/dc_a501c385ae55
How to cite
DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learning — arXiv:2609.30379 — arXiv (en), https://arxiv.org/abs/2609.30379 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a501c385ae55 (Metraipolis archive dc_a501c385ae55, sha256 6a4b5935abde727e46e13e67995c4d8b44303f86b33d3042869e081bfd3500f6)
BibTeX
@misc{dca501c385ae55,
title = {DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learning — arXiv:2609.30379},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.30379},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a501c385ae55; sha256 6a4b5935abde727e46e13e67995c4d8b44303f86b33d3042869e081bfd3500f6},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.30379. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Variable-size inputs are common in deep learning, but dense batching allocates a shared envelope and spends computation on padding. The cost multiplies across varying axes: an explicit pair state allocates $BN_{\max}^2$ positions instead of $\sum_i N_i^2$. Packing removes that waste, but composing packed operations still requires the logical axes and sample boundaries a flat buffer no longer exposes. We present DanLing NestedTensor, a PyTorch tensor abstraction that makes multi-ragged structure a property of the tensor itself. Packed values carry tensor-backed partitions and logical dimension order, so broadcasting creates ragged axes, feature transformations retain them, and reductions consume them. The same representation carries through autograd and both eager and compiled execution. On an A100, the geometric-mean speedup over same-mode padding is 2.74$\times$ eager and 3.39$\times$ compiled across four BERT scales, and 1.97$\times$ eager across four FCN backbones. A four-block Pairformer-style workload runs 2.40-4.32$\times$ faster than a padded reference using native PyTorch kernels across square length regimes in eager execution, with peak allocation falling from 38.08 to 5.41 GiB on its high-variation batch. The tensor interface lets model code built from its supported operators compose efficient variable-size computation without managing offsets at any call site. Code will be released publicly upon publication.
Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-28 in cs.AI).
Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Performance (cs.PF).
Pagina del lavoro: https://arxiv.org/abs/2609.30379 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T01:12:14.422Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-28?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).