Show simple item record

dc.contributor.authorRay, Jessica
dc.contributor.authorCollin, Teodoro
dc.contributor.authorSze, Vivienne
dc.contributor.authorReuther, Albert
dc.contributor.authorAmarasinghe, Saman
dc.date.accessioned2026-02-04T20:33:11Z
dc.date.available2026-02-04T20:33:11Z
dc.date.submitted2026-01-10
dc.identifier.issn1544-3566
dc.identifier.urihttps://hdl.handle.net/1721.1/164734
dc.description.abstractTensors are an integral part of numerous domains, and while significant effort has been put into the design of tensor data structures in isolation, little attention has been paid to the relationships that exist across tensors and how this affects their representation and use. In this paper, we focus on spatial relationships across tensors in a program, where such tensors are defined relative to a common reference coordinate system. These relationships are complicated by the fact that the tensors may differ in their representations, such as having variations in their axes, spacings, origins, and overall shape. Due to the lack of existing abstractions and language support for these types of tensor semantics, users are currently forced to manually perform the bookkeeping necessary to account for these varying relationships and representations. Unfortunately, we cannot rely on a simple library to capture these relationships, as computations on these types of tensors often happen at the innermost levels of programs; we find that the overheads associated with an unoptimized implementation quickly accumulate, leading to performance up to nearly 65x slower than a reference C implementation on a series of image and video compression benchmarks. In this paper, we introduce the novel UniTe abstraction, which captures spatial relationships across all such tensors in a program. We also introduce two domain-specific languages and optimizing compilers, CoLa for Python and SHiM for C/C++, built off of UniTe. Both CoLa and SHiM provide users an intuitive set of tensor primitives based on spatial relationships, hiding the complexity that goes into maintaining the tensors and computing accesses across them. In addition, we discuss the optimizations necessary to remove the associated abstraction overhead, and describe their implementations. On the benchmarks, we show that both CoLa and SHiM successfully remove the overheads, achieving performance parity with existing C implementations.en_US
dc.publisherACMen_US
dc.relation.isversionofhttp://dx.doi.org/10.1145/3787218en_US
dc.rightsCreative Commons Attributionen_US
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/en_US
dc.sourceAssociation for Computing Machineryen_US
dc.titleUniTe: A Universal Tensor Abstraction for Capturing Spatial Relationshipsen_US
dc.typeArticleen_US
dc.identifier.citationJessica Ray, Teodoro Collin, Vivienne Sze, Albert Reuther, and Saman Amarasinghe. 2026. UniTe: A Universal Tensor Abstraction for Capturing Spatial Relationships. ACM Trans. Archit. Code Optim. Just Accepted (January 2026).en_US
dc.contributor.departmentLincoln Laboratoryen_US
dc.contributor.departmentMassachusetts Institute of Technology. Department of Electrical Engineering and Computer Scienceen_US
dc.relation.journalACM Transactions on Architecture and Code Optimizationen_US
dc.identifier.mitlicensePUBLISHER_CC
dc.eprint.versionFinal published versionen_US
dc.type.urihttp://purl.org/eprint/type/JournalArticleen_US
eprint.statushttp://purl.org/eprint/status/PeerRevieweden_US
dc.date.updated2026-02-01T08:47:48Z
dc.language.rfc3066en
dc.rights.holderThe author(s)
dspace.date.submission2026-02-01T08:47:49Z
mit.licensePUBLISHER_CC
mit.metadata.statusAuthority Work and Publication Information Neededen_US


Files in this item

Thumbnail
Thumbnail

This item appears in the following Collection(s)

Show simple item record