<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-29T16:03:35Z</responseDate><request verb="GetRecord" identifier="oai:repository.rice.edu:1911/118541" metadataPrefix="dim">https://repository.rice.edu/server/oai/request</request><GetRecord><record><header><identifier>oai:repository.rice.edu:1911/118541</identifier><datestamp>2025-09-16T20:46:39Z</datestamp><setSpec>com_1911_8299</setSpec><setSpec>col_1911_13110</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Jermaine, Christopher M</dim:field>
   <dim:field mdschema="dc" element="creator">Tang, Yuxin</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2025-05-30T21:39:19Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2025-05-30T21:39:19Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="created">2025-05</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued" lang="en_US">2025-04-25</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">May 2025</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="updated">2025-05-30T21:39:19Z</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">https://hdl.handle.net/1911/118541</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract">In mathematics, a tensor is an algebraic object that describes multilinear rela-
tionships among sets of algebraic entities associated with a vector space. From a
computational perspective, tensors are commonly represented as multi-dimensional
arrays—a format that plays a central role in machine learning. A widely used convention for expressing tensor operations is Einstein summation notation (EinSum), which
compactly encodes summation over indexed terms. This notational framework not
only streamlines the expression of complex tensor computations but also lends itself
to an alternative interpretation: a multi-dimensional array can be viewed as a map-
ping from a vector of integers (i.e., a primary key) to a real number. This perspective
aligns closely with the classical definition of a relational database relation. As a result, many numerical and machine learning computations in tensor calculus can be
reformulated as sequences of joins and aggregations over relational data. Executing
these computations within a relational database system offers several key advantages,
including automatic parallelization, distribution, and scalability. Moreover, relational
databases are particularly effective at handling sparsity, as they are designed to effi-
ciently represent and process cases where only a small subset of the possible primary
keys actually occur in the relation.
In this thesis, I propose an extension to Einstein notation called Upper-Case-
Lower-Case Einstein Notation—a simple yet expressive framework for describing tensor programs that interleave operations over sparse (relational) data with efficient
kernel calls over dense tensors. This notation enables the concise representation of
computations optimized for complex sparsity patterns. To support this notation, I
develop a compiler, SparseEinSum, which takes standard EinSum expressions as
input, transforms them into extended Upper-Case-Lower-Case Einstein Notation as
intermediate representation, and compiles them into tensor-relational algebra. The
compiler incorporates sparsity estimation and cost-based schema selection to guide
the transformation. The resulting programs can be executed on virtually any relational database system, leveraging arrays to manage dense tensors within a relational
execution model. Experiments across tensor computation benchmarks demonstrate
that the generated tensor-relational computations offer significant performance improvements.
To support automatic differentiation of relational computation compiled from
EinSum, I derive key rules that enable automatic differentiation for relational algebra.
I introduce functional relational algebra to build functions in the relational domain
and define relational analogs of partial derivatives, Jacobians, gradients, and a set
of relation-Jacobian product rules for core relational operators, including table scan,
selection, aggregation, and join. This functional framework builds the foundation for
differentiation in relational algebra. Then, I propose a relational algebra automatic
differentiation algorithm using an efficient, correctness-preserving implementation of
the relation-Jacobian product. Through extensive experiments, I show that executing
machine learning computations on top of a relational engine—augmented with relational algebra automatic differentiation algorithm—can scale efficiently to very large
datasets. The resulting system achieves performance competitive with specialized
distributed machine learning systems, while retaining the advantages of relational
query optimization.</dim:field>
   <dim:field mdschema="dc" element="format" qualifier="mimetype">application/pdf</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en_US">eng</dim:field>
   <dim:field mdschema="dc" element="rights" lang="en_US">Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.</dim:field>
   <dim:field mdschema="dc" element="subject">Machine Learning</dim:field>
   <dim:field mdschema="dc" element="title">Relational Computation for Very Large-Scale Machine Learning</dim:field>
   <dim:field mdschema="dc" element="type">Thesis</dim:field>
   <dim:field mdschema="dc" element="type" qualifier="material">Text</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="department">Computer Science</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="discipline" lang="en_US">Engineering</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="grantor">Rice University</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="level">Doctoral</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="name">Doctor of Philosophy</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>