If you see this, something is wrong
First published on Friday, Nov 13, 2026 and last modified on Sunday, Nov 15, 2026
University at Albany, SUNY, Albany, NY, USA Email
LACL, Université Paris-Est Créteil, Créteil, France Email
Mathematics of Arrays, transformer attention, memory optimization, Denotational Normal Form, Operational Normal Form, exascale computing, formal verification, psi-reduction calculus, FlashAttention, high-performance computing
The attention mechanism is the computational core of modern transformer-based artificial intelligence systems—the primitive that allows models to dynamically determine which parts of an input sequence are most relevant when producing each output. Yet its standard implementation incurs quadratic memory traffic in the sequence length, and real-world performance is dominated by memory-bound execution rather than arithmetic throughput. A DRAM access costs 100–1000\( \times\) more energy than a floating-point operation on contemporary hardware, so any analysis that focuses solely on FLOP counts fundamentally mischaracterises the bottleneck.
This paper presents a Mathematics of Arrays (MoA) reformulation of scaled dot-product attention and its numerically stable softmax normalization. We derive a Denotational Normal Form (DNF) that eliminates all intermediate arrays—including the implicit transposed-key buffer and every softmax temporary—and achieves the theoretical minimum memory traffic by algebraic construction rather than empirical tuning. The derivation proceeds by systematic application of MoA’s psi-reduction calculus to a PyTorch reference implementation, and is verified numerically at full double-precision floating-point accuracy on concrete inputs.
We position this work relative to the state of the art in attention optimization, arguing that hardware-specific accelerators, algorithmic approximations such as FlashAttention, and array-level tiling techniques all lack a portable algebraic foundation capable of simultaneously providing fusion, shape-transformation correctness, and predictive cost models. MoA provides all three. A formal lower bound argument establishes that the DNF achieves \( O\left(nd_k + nd_v\right)\) data movement—where \( n\) is the sequence length, \( d_k\) the key dimensionality, and \( d_v\) the value dimensionality (number of columns in the value matrix \( \mathbf{V}\in\mathbb{R}^{n\times d_v}\) , i.e. the output token representation dimension)—matching the information-theoretic minimum of \( O\left(nd_k + nd_v\right)\) , compared to \( O\left(n^2 + nd_k + nd_v\right)\) for the standard implementation. A predictive performance model, grounded in the literature on memory hierarchy costs, projects \( 2\) –\( 100\times\) speedup and \( 2\) –\( 50\times\) energy reduction across conservative, realistic, and aggressive deployment scenarios, with the advantage widening significantly at exascale sequence lengths.
The derivation establishes a mathematically verifiable pipeline from Python source program through architecture-independent DNF, Operational Normal Form (ONF), and dimension-lifted hardware mapping—providing a rigorous foundation for formally correct, performance-portable AI kernels of direct relevance to DARPA edge-deployment objectives and DOE exascale scientific computing priorities.
The attention mechanism [2] is the computational primitive that allows modern transformer-based neural networks to dynamically determine which parts of an input sequence are most relevant when producing each output token. Every state-of-the-art large language model, vision transformer, and multimodal system in widespread use today is built around this operation. Yet its power comes at a fundamental cost: the standard implementation of scaled dot-product attention exhibits quadratic data movement in the sequence length \( n\) and is dominated by memory-bound execution rather than arithmetic throughput.
A simplified execution model captures the issue precisely. Let \( T\) denote total wall-clock time, \( F\) the floating-point operation count, \( M\) the bytes of memory traffic, and \( \alpha\) , \( \beta\) the cost-per-FLOP and cost-per-byte-moved respectively. Then:
(1)
On contemporary GPU hardware a DRAM access costs approximately \( 100\) –\( 1000\) pJ while a floating-point multiply-add costs \( \sim\!1\) pJ [3]. Memory movement is therefore two to three orders of magnitude more expensive than arithmetic. Any optimization strategy that focuses solely on FLOP reduction is misallocating effort. The attention mechanism, with its \( O(n^2)\) intermediate score matrix that must be written to DRAM and re-read for the softmax pass, sits squarely in this trap.
The existing landscape of attention optimization can be organized into three families, each of which addresses part of the problem but leaves a fundamental gap.
Hardware-specific accelerators. A substantial body of work targets attention acceleration through custom silicon. FACT [4] combines custom hardware with diagonal storage and shift-based arithmetic. OPTIMUS [5] overlaps load and compute while reducing redundancy via sparse formats. The Gemmini systolic array accelerator [6] applies GEMM acceleration to transformer kernels with convincing energy savings. FPGA-based approaches [7, 8, 9] achieve high throughput on specific targets. Edge-device accelerators [10] target mobile deployment. The shared limitation is that gains are inseparable from the specific hardware platform: they cannot be formally reasoned about, ported, or proved correct on new architectures.
Hybrid and algorithmic solutions. FlashAttention [3] and its successor [11] tile the attention computation to avoid writing the full \( n\times\!n\) score matrix to DRAM, achieving IO-awareness through careful blocking with a proven IO complexity bound. The A\( ^3\) architecture [12] replaces the scoring dot product with an approximate content-based search at \( O(n/\log n)\) complexity. Yang et al. [13] exploit singular-value sparsity and approximate softmax via a MacLaurin series expansion. Gao et al. [14] reformulate LLM attention as a single matrix multiplication but without accounting for data movement costs. These approaches improve empirical performance but mix implementation tricks with algorithmic ideas in ways that make the gains difficult to isolate, port, or formally validate on new targets.
Array-level optimizations. The FATHOM system [15] optimizes attention through dimension transpositions and shape-aware dense matrix-multiplication scheduling, with the authors explicitly identifying shape transforms as the dominant performance factor. Liu et al. [16] identify matrix chunking, data rearrangement, and vectorization as the three most important techniques for matrix multiplication on heterogeneous platforms. These approaches identify the right target—shape transformations on arrays—but lack a unified algebraic framework to derive, validate, and cost the transforms automatically, and have no mechanism for proving correctness from first principles. The MoA framework, whose foundations are laid in Section 3, provides exactly this.
The Mathematics of Arrays (MoA) was introduced by [17] and provides a formal algebra for reasoning about multi-dimensional array computations. Its five primitives—\( \psi\) (index selection), \( \iota\) (shape generation), \( \rho\) (shape extraction), \( \gamma\) (index-to-offset mapping), and \( \mathrm{rav}\) (flattening)—define a Denotational Normal Form (DNF) for any array program. The DNF has three properties critical to our argument:
A subsequent Operational Normal Form (ONF{}) translates the DNF to starts, stops, and strides on real hardware via the \( \gamma\) mapping. Further dimension lifting maps the ONF{} to any target architecture by treating all processing components as arrays of known shape.
The key distinction from all prior work is epistemological: derivation, not implementation. Memory minimality in MoA is a theorem established before any code is written. FlashAttention achieves empirical IO-efficiency through tiling; MoA provides a formal proof that the DNF eliminates all implicit buffers by algebraic construction, including the transposed-\( \mathbf{K}\) buffer across heads and layers that FlashAttention does not address.
This paper makes the following contributions:
Section 2 surveys related work in detail. Section 3 presents the MoA framework and its core primitives. Section 4 derives the DNF for attention and softmax. Section 5 reports numerical verification. Section 6 presents the predictive performance model. Section 7 outlines the implementation roadmap. Section 9 discusses exascale and national-priority relevance. Section 10 concludes. The appendix contains the complete element-by-element derivation trace.
The original Transformer architecture \citep{vaswani2017attention} established the \( O(n^2)\) attention complexity that has dominated the field since 2017. Multi-head attention extends this to \( h\) heads, each operating on \( d_k /h\) -dimensional projections, but the quadratic scaling in \( n\) remains the binding constraint for long-sequence settings. Early work focused on approximate attention—sparse patterns \citep{yang2025hardware}, linear approximations \citep{gao2023fast}—but these sacrifice the exactness of the attention function, which is unacceptable in settings requiring formal correctness.
The most influential algorithmic advance is FlashAttention [3], which reformulates attention to avoid materializing the \( n\times\!n\) score matrix by using a tiled computation with online softmax normalization. The key insight is that the forward pass can be computed in \( O(n^2/M)\) IO operations (where \( M\) is SRAM size), compared to \( O(n^2)\) for the naive implementation. FlashAttention-2 [11] reduces non-matmul FLOPs and improves parallelism.
The relationship between MoA and FlashAttention deserves careful comparison. FlashAttention achieves IO-awareness by design—the programmer explicitly tiles to fit SRAM. MoA achieves IO-minimality by derivation—the DNF eliminates all unnecessary memory traffic as a consequence of algebraic normalization. The FlashAttention bound is \( O(n^2/M)\) ; the MoA bound is \( O(nd_k)\) (linear in sequence length), which is asymptotically superior when \( n \gg M/d_k\) . Furthermore, MoA also eliminates the transposed-\( \mathbf{K}\) buffer that FlashAttention’s tiling scheme does not address, and the derivation is portable across architectures without re-tiling.
The accelerator literature is extensive. We highlight the most relevant designs. The FACT system [4] co-optimizes feed-forward and attention computation using eager correlation prediction. OPTIMUS [5] develops a matrix-multiplication structure specific to the transformer’s four matrix multiplications per layer. The Gemmini systolic array [6] provides a GEMM-centric approach with strong energy results. Edge AI hardware [10] optimizes the full attention pipeline for mobile deployment constraints. FPGA implementations [7, 8, 9] achieve high clock-frequency efficiency but are inherently non-portable.
The A\( ^3\) architecture [12] is particularly interesting: it observes that attention is a content-based search and replaces the exact softmax with an approximate version, achieving \( O(n/\log n)\) complexity. However, the gains are inseparable from the custom hardware and the approximation sacrifices exactness.
The MoA framework [17] provides the foundational algebra on which the present paper is built; a full account of the primitives, normal forms, and cost model is given in Section 3. In brief, prior work has validated the approach across a range of numerical computing problems: DGEMM with cache-blocking [18, 19], parallel code generation with predictive models [1], energy efficiency on GPUs [20], and general numerical algorithm analysis [21]. The algorithm-to-hardware co-design framework that contextualises this work is developed in [23].
The FATHOM system [15] is the most directly related prior work in the array-optimization tradition. It achieves significant speedups on attention through dimension transpositions and shape-aware scheduling, and the authors’ finding that shape transforms dominate performance is consistent with the MoA thesis. However, FATHOM lacks a formal algebra for deriving rather than discovering these transforms, and has no mechanism for proving correctness or computing costs from first principles.
There is a growing body of work on formal correctness of numerical computations, including work on floating-point arithmetic [3] and array program semantics. MoA provides a form of semantic equivalence verification: each step of the psi-reduction preserves the denotational meaning of the array expression, so correctness of the DNF follows by construction. This is a stronger guarantee than post-hoc testing and more tractable than full formal verification of the compiled binary.
This section presents the MoA framework that the derivations in Section 4 are built upon. The foundational theory was established by [17]. Its application to parallel code generation and predictive performance modelling is developed in [1] and [22]. Energy efficiency on GPUs via MoA-derived formulations is demonstrated in [20], and application to general numerical algorithm analysis in [21]. Validated implementations of MoA-based DGEMM with cache-blocking on multicore systems—establishing the practical basis for the cost model in Section 6—are reported in [18, 19]. The theoretical treatment of computing performance as an experimental science that situates MoA in the algorithm-to-hardware co-design context is given in [23]. The present paper applies this framework, for the first time, to the full scaled dot-product attention pipeline.
Definition 1. Arrays and Shape
An array \( A\) of rank \( r = \delta A\) is characterized by:
Arrays are stored in row-major (C-style) order by default: the last index varies fastest. This matches the memory layout of NumPy arrays and PyTorch tensors with default contiguous storage, which is essential for the correctness of the ONF{} derivation.
Definition 2. MoA Primitives
The five fundamental MoA primitives are:
\( \psi\) (Psi — index selection): \( \overrightarrow{i} \,\psi\,A\) selects the sub-array of \( A\) at multi-index \( \overrightarrow{i}\) . In general, for a multi-index \( \overrightarrow{i}\) :
(2)
where \( n \downarrow \overrightarrow{v}\) drops the \( n\) initial elements of \( \overrightarrow{v}\) . For an index \( {\langle i\rangle}\) , \( \langle i \rangle\,\psi\,A\) returns the \( i\) -th sub-array along the first axis (a "section"). Then \( \tau(\langle i\rangle) = 1\) , so \( \rho\,({\langle i \rangle\,\psi\,A}) = 1 \downarrow ({\rho\,A})\) , e.g. if \( \rho\,A = \langle 2,3,4 \rangle\) then \( \rho\,({\langle i \rangle\,\psi\,A}) = 1 \downarrow \langle 2,3,4 \rangle = \langle 3,4 \rangle\) . For a full multi-index \( \overrightarrow{i}\) , \( \tau(\overrightarrow{i}) = \delta A = r\) (i.e. the number of components in \( \overrightarrow{i}\) equals the rank of \( A\) ); then \( r \downarrow ({\rho\,A})d = \Theta\) (the empty vector \( \langle \rangle\) ), so \( \overrightarrow{i} \,\psi\,A\) returns a scalar.
\( \gamma\) (Gamma — index-to-offset): The gamma MoA operator is the key to reasoning about parallel execution cost. Its inverse is the reshape operator. It maps any array to a linear (1-dimensional) form that corresponds to computer memory locations. It transports all operations to simple data accesses and arithmetic, thus making data transfer costs explicit.
Given a shape vector \( \overrightarrow{s} = \langle s_0, …, s_{r-1} \rangle\) and a valid multi-index \( \overrightarrow{v} = \langle v_0, …, v_{r-1} \rangle\) , the row-major linear offset is:
(3)
Example. Let \( \overrightarrow{v} = \langle 1,2 \rangle\) and \( \overrightarrow{s} = \langle 3,4 \rangle\) , so \( r = \tau(\overrightarrow{v}) = 2\) . Expanding term by term:
Therefore \( \gamma(\langle 1,2 \rangle,\,\langle 3,4 \rangle) = 4 + 2 = 6\) . This is the row-major memory offset of the element at row 1, column 2 in a \( 3\times4\) array: \( 1 \times 4 + 2 = 6\) , i.e. the 7th element (0-indexed) in the flat storage buffer. This primitive bridges the architecture-independent DNF and the hardware-mapped ONF{}.
The Omega operator is the primary mechanism by which binary operations are lifted over array dimensions.
Definition 3. Omega Operator
For a binary scalar operation \( f\) and arrays \( \xi_l\) , \( \xi_r\) , the expression \( \xi_l \;f_{\Omega\langle \sigma_l, \sigma_r \rangle}\; \xi_r\) distributes \( f\) over the last \( \delta(\xi_l)-\sigma_l\) dimensions of \( \xi_l\) and the last \( \delta(\xi_r)-\sigma_r\) dimensions of \( \xi_r\) , matching them component-wise. The result shape is:
(4)
where \( \mathbin{\#}\) denotes shape-vector concatenation, \( n \downarrow \overrightarrow{v}\) removes the first \( n\) elements of \( \overrightarrow{v}\) (see (2)), and the number of matched (consumed) dimensions is:
(5)
Here \( a \lfloor b = \min(a,b)\) . The \( \sigma_l\) leading dimensions of \( \rho\,\xi_l\) and the \( \sigma_r\) leading dimensions of \( \rho\,\xi_r\) are consumed by the matching; what remains from each side is concatenated to form the result shape.
The content of \( \xi_l \;f_{\Omega\langle \sigma_l, \sigma_r \rangle}\; \xi_r\) is built by (a) partitioning the elements of \( \xi_l\) to obtain an array of shape \( \delta(\xi_l)-\sigma_l\) (b) similarly partition the element of \( \xi_r\) to obtain an array of shape \( \delta(\xi_r)-\sigma_r\) , then (c) applying \( f\) or its pointwise-lifted version to matching pairs of arguments on the left and right.
Remark 1
The Omega shape rule enables static memory cost analysis: the shape—and hence the size—of every intermediate expression can be computed from the shapes of the inputs alone, before any code is generated. This is the foundation of the MoA cost model.
Example 1 (Omega addition of a vector and a matrix)
Consider the expression \( \langle 5,6,7 \rangle\;(+\,\Omega\langle 0,1 \rangle)\;((3\;4\;\rho)\,\iota\,12)\) .
Step 1: Build the right argument. \( \iota\,12 = \langle 0,1,2,…,11 \rangle\) , reshaped to \( \langle 3,4 \rangle\) :
The left argument is \( \xi_l = \langle 5,6,7 \rangle\) , \( \rho\,\xi_l = \langle 3 \rangle\) .
Step 2: Omega parameters. \( \sigma_l = 0\) , \( \sigma_r = 1\) .
Step 3: Shape rule (4).
Step 4: Matching. \( m = (\delta \xi_l-\sigma_l)\lfloor(\delta \xi_r-\sigma_r) = (1-0)\lfloor(2-1) = 1\lfloor 1 = 1\) . The single matched dimension (size 3) pairs \( \xi_l\) ’s axis with \( \xi_r\) ’s first axis: scalar \( i \,\psi\,\xi_l\) operates against row \( i \,\psi\,\xi_r\) (shape \( \langle 4 \rangle\) ) for each \( i\in\{0,1,2\}\) .
Step 5: Psi-reduction. For each row \( i\) :
Result (shape \( \langle 3,4 \rangle\) ):
The Omega operator has broadcast the vector \( \langle 5,6,7 \rangle\) across the rows of the \( 3\times4\) matrix, adding each scalar to its corresponding row.
The psi-reduction calculus is a set of rewrite rules for systematically eliminating Omega operators by pushing index arguments inward through array expressions. The goal is to express every output element \( (\overrightarrow{i} \,\psi\,\text{Output})\) directly in terms of input indices, producing the DNF.
Definition 4. Denotational Normal Form
The Denotational Normal Form (DNF) of an array program is a representation of every output element as a closed-form expression in the input element indices alone without intermediate arrays.
Example 2 (DNF of the Omega addition from Example 1)
Let \( R = \xi_l\;(+\,\Omega\langle 0,1 \rangle)\;\xi_r\) with \( \xi_l = \langle 5,6,7 \rangle\) (shape \( \langle 3 \rangle\) ) and \( \xi_r = (3\;4\;\rho)\,\iota\,12\) (shape \( \langle 3,4 \rangle\) ), so \( \rho\,R = \langle 3,4 \rangle\) . Applying the psi-reduction rule for \( \Omega\langle 0,1 \rangle\) , the DNF expresses every output element directly in terms of input indices, with the Omega operator entirely eliminated:
(6)
The right-hand side contains no intermediate arrays: it accesses \( \xi_l\) at scalar index \( i\) and \( \xi_r\) at two-component index \( \langle i,j \rangle\) —both directly from the original input storage.
Verification on two elements:
Both agree with the result matrix computed in Example 1.
Memory access count. To compute all \( 3 \times 4 = 12\) output elements, the DNF reads exactly 3 elements of \( \xi_l\) (one per row \( i\) , reused for all \( j\) ) and 12 elements of \( \xi_r\) (each once)—15 reads total. No intermediate array is written/read to/from memory. By contrast, a na
specialChar{34}ive implementation would allocate a \( 3\times 4\) intermediate result buffer (12 writes then 12 reads = 24 extra memory operations). The DNF achieves theoretical minimum cost.
Definition 5. Operational Normal Form
The Operational Normal Form (ONF) is obtained from the DNF by applying the \( \gamma\) primitive (3) to all index expressions, translating multi-index Cartesian arithmetic into:
(7)
This form captures the storage convention (row-major vs. column-major, contiguous vs. strided) and enables standard loop-nest analysis by compilers. A DNF is equivalent to a fragment-C loop-nest program [1].
The central correctness guarantee of MoA is:
Theorem 1. Storage Theorem
For any well-formed array program \( P\) , the DNF of \( P\) is semantically equivalent to \( P\) —it computes the same output for all inputs. Furthermore, the DNF is unique up to reordering of independent index computations, and achieves the theoretical minimum number of memory accesses required to compute the output from the input. No other implementation of \( P\) has lower transfer costs and equal arithmetic cost.
Proof (Proof sketch)
Semantic equivalence follows by induction on the psi-reduction rules: each rewrite step preserves the denotational semantics of the expression (see [17] for the full rule set). Minimality follows because the DNF has no intermediate array: the only data read from memory are input elements, and the only data written are output elements. \( \square\)
Dimension lifting is the process by which an ONF{} loop nest is mapped to a parallel or hierarchical hardware architecture. The key insight is that every processing component of a hardware system—a SIMD lane, a GPU warp, a cache line, a NUMA socket—can be modeled as an array of known shape. The ONF{} loop-nest index space is then partitioned across this hardware array, producing a parallel loop nest whose index structure has a shape that matches the hardware topology.
Concretely, if the hardware has \( p\) parallel processors arranged as an array of shape \( \Pi\) , and the ONF{} loop nest has iteration space of shape \( N\) , then dimension lifting maps \( N \to \Pi \mathbin{\#} (N \oslash \Pi)\) , where \( \oslash\) denotes element-wise integer division. The resulting structure expresses both inter-processor parallelism (outer loop over \( \Pi\) ) and intra-processor computation (inner loop over \( N \oslash \Pi\) ) in a single algebraic expression.
The scaled dot-product attention function [2] computes:
(8)
where \( \mathbf{Q} \in \mathbb{R}^{n \times d_k}\) , \( \mathbf{K} \in \mathbb{R}^{n \times d_k}\) , \( \mathbf{V} \in \mathbb{R}^{n \times d_v}\) (with \( n\) , \( d_k\) , \( d_v\) as defined in the abstract), and \( d_k\) is the key (and query) dimensionality. In practice, \( \mathbf{Q}\) , \( \mathbf{K}\) , \( \mathbf{V}\) are obtained by projecting an input sequence \( X \in \mathbb{R}^{n \times d}\) through learned weight matrices: \( \mathbf{Q} = XW_Q\) , \( \mathbf{K} = XW_K\) , \( \mathbf{V} = XW_V\) .
We derive the DNF for the concrete instance \( n=3\) , \( d_k = d_v = 4\) , so:
(9)
The numerically stable softmax [3] is:
(10)
We define the scaled score matrix \( x = (\mathbf{Q} \;{+}{.}{\times}\; \mathbf{K}^\top) / \sqrt{d_k}\) with \( \rho\,x = \langle 3,3 \rangle\) .
The derivation proceeds through four Omega steps, each eliminating one layer of intermediate array storage. Figure 1 summarizes the pipeline.
Remark 2 (Higher-rank tensors, transpose Omega, and parallelism)
The derivation below treats \( \mathbf{Q}\) , \( \mathbf{K}\) , \( \mathbf{V}\) as 2-D matrices (shape \( \langle n, d_k \rangle\) ), so the transpose \( \mathbf{K}^\top\) is a simple 2-D operation that costs one \( n{\times}d_k\) buffer in the standard implementation (eliminated by the DNF via equation (17)).
In practice, transformer models batch these inputs as 3-D or higher-rank tensors—for example, shape \( \langle B, n, d_k \rangle\) for a batch of \( B\) sequences, or \( \langle B, h, n, d_k \rangle\) for \( h\) attention heads. For such inputs the transpose is no longer a simple 2-D flip; it becomes a transposition over the innermost two dimensions of a higher-rank tensor, which in MoA notation is expressed as:
(11)
i.e. an Omega step with \( \sigma= 2\) that acts on the trailing 2-D index structure of each tensor, swapping the \( n\) and \( d_k\) axes within each leading-dimension slice. This introduces an additional Omega step into the derivation pipeline: the transpose itself must be reduced by psi-reduction before the score matrix \( x = (\mathbf{Q}\;{+}{.}{\times}\;\mathbf{K}^\top)/\sqrt{d_k}\) can be formed.
The key structural consequence is that the leading dimensions (\( B\) , \( h\) ) are consumed by this outer Omega, partitioning the computation into independent 2-D sub-problems—one per batch element and attention head— each of which is exactly the 2-D derivation given here.
General principle: all higher-rank operations reduce to 2-D. This generalises beyond the transpose. For any higher-rank tensor input, every array operation in the attention pipeline must ultimately be partitioned into 2-D matrix operations by the Omega operator. The score matrix computation is the canonical example: for \( \mathbf{Q}, \mathbf{K}\) of shape \( \langle B, h, n, d_k \rangle\) , the scaled inner product becomes
(12)
where \( (+.\times)\) is the inner product (matrix multiplication) and \( \Omega\langle 2,2 \rangle\) distributes it over the leading \( \langle B,h \rangle\) dimensions, performing one independent \( n{\times}d_k\) matrix multiplication for each \( (b, \hat{h})\) pair. The softmax, the denominator summation, and the final multiplication by \( \mathbf{V}\) each acquire a corresponding \( \Omega\langle 2,2 \rangle\) (or \( \Omega\langle 2,1 \rangle\) ) wrapper that distributes the 2-D operation across the leading batch and head dimensions.
Each 2-D partition can therefore be assigned to a separate processing element (GPU warp, SIMD lane, compute node), yielding a provably correct parallel implementation directly from the algebraic structure of Omega, without any additional scheduling or synchronisation logic. This is the mechanism by which MoA’s dimension lifting (Section 3) extends the 2-D DNF to full batched, multi-head attention on arbitrary architectures.
Figure 1. The MoA psi-reduction pipeline for attention. Each Omega step eliminates one category of intermediate array (red, dashed). The final DNF and output access only original \( \mathbf{Q}\) , \( \mathbf{K}\) , \( \mathbf{V}\) elements by multi-index, with no scratch memory.
We begin with the stabilized exponent argument:
(13)
Shape analysis. Left argument \( \xi_l = x\) : \( \rho\,\xi_l = \langle 3,3 \rangle\) , \( \delta \xi_l = 2\) , \( \sigma_l = 1\) . Right argument \( \xi_r = (\lceil\mathrm{red}\rceil\;\Omega\langle 1 \rangle)\,x\) : \( \rho\,\xi_r = \langle 3 \rangle\) , \( \delta \xi_r = 1\) , \( \sigma_r = 0\) . By (5): \( m' = (2-1) \lfloor (1-0) = 1\) , result shape \( \langle 3,3 \rangle\) .
Psi-reduction. For each row \( i'' \in \{0,1,2\}\) :
(14)
This is a vector minus scalar of shape \( \langle 3 \rangle\) : the maximum of each row is subtracted from every element in that row, with no intermediate full-matrix storage.
The softmax numerator is:
(15)
Substituting (14):
(16)
Now we eliminate the score matrix \( x\) and the transpose \( \mathbf{K}^\top\) simultaneously. Since \( \rho\,\mathbf{K}^\top = \langle 4,3 \rangle\) , the \( k\) -th column of \( \mathbf{K}^\top\) equals the \( k\) -th row of \( \mathbf{K}\) . For index pair \( <i'', k>\) :
(17)
This eliminates the \( \mathbf{K}^\top\) buffer: we access \( \mathbf{K}\) directly by row index \( k\) , with no transposition buffer required.
Denominator (Step III).
(18)
By the Omega reduction with \( \sigma_l = 1\) , \( \sigma_r\) not applicable:
(19)
Division (Step IV). The attention weight matrix \( Y\) is obtained by dividing each row of the numerator by its denominator scalar, via Omega division with \( \sigma_l = 1\) , \( \sigma_r = 0\) : result shape \( \langle 3,3 \rangle\) .
Combining all four steps yields the complete DNF for the attention weight matrix:
Key Result
(20)
for all \( 0 \le i'' < 3\) , \( 0 \le k < 3\) , \( 0 \le j < 4\) , where \( \lceil…\rceil_{\mathrm{row}}\) denotes the row maximum.
The attention output is the weighted combination of value rows:
(21)
Equations (20)–(21) together constitute the complete DNF for attention. The entire computation is expressed without a single intermediate array. Every memory access is to original input data (\( \mathbf{Q}\) , \( \mathbf{K}\) , \( \mathbf{V}\) ) at specific multi-indices.
Proposition 1. Memory Minimality
The DNF of (20)–(21) requires no scratch memory beyond the output buffer. It achieves data movement:
for the standard implementation, which must store the intermediate \( n\times\!n\) score matrix and exponential array.
Proof
The DNF accesses each \( \mathbf{Q}\) -element \( <i'',j> \,\psi\,\mathbf{Q}\) once per output row \( i''\) (as part of the inner sum over \( j\) ), each \( \mathbf{K}\) -element \( <k,j> \,\psi\,\mathbf{K}\) once per pair \( (i'',k)\) —amortized over output rows, each \( \mathbf{K}\) -element is read \( O(1)\) times per row—and each \( \mathbf{V}\) -element \( <p,p_v> \,\psi\,\mathbf{V}\) once per output element \( (<i'',p_v> \,\psi\,\text{Output})\) via equation (21). Total DNF reads: \( O(nd_k)\) for \( \mathbf{Q}\) and \( \mathbf{K}\) , and \( O(nd_v)\) for \( \mathbf{V}\) , giving \( O(nd_k + nd_v)\) overall. There are no intermediate arrays. The standard implementation additionally writes the score matrix (\( n^2\) elements) and the exponential array (\( n^2\) elements) to DRAM in separate passes, adding \( O\left(n^2\right)\) to the traffic. \( \square\)
To validate the derivation, we executed both the PyTorch reference implementation (Listing 5.2) and the MoA DNF on identical concrete inputs with batch_size=1, seq_len=3, embed_dim=4, d_k=4. The input tensors \( \mathbf{Q}\) , \( \mathbf{K}\) , \( \mathbf{V}\) were generated with a fixed random seed for reproducibility.
The concrete input matrices used for verification (with batch dimension suppressed):
import torch
def stable_softmax(x, dim=-1):
# Subtract row maximum for numerical stability
z = x - torch.max(x, dim=dim, keepdim=True)[0]
num = torch.exp(z)
den = torch.sum(num, dim=dim, keepdim=True)
return num / den
# Dimensions: batch=1, seq_len=3, embed_dim=4
batch_size, seq_len, embed_dim = 1, 3, 4
d_k = embed_dim
# Random Q, K, V matrices (shape: [1, 3, 4])
q = torch.randn(batch_size, seq_len, embed_dim)
k = torch.randn(batch_size, seq_len, embed_dim)
v = torch.randn(batch_size, seq_len, embed_dim)
# Step 1-2: Scaled similarity scores
scores = torch.matmul(q, k.transpose(-2, -1)) / (d_k ** 0.5)
# Step 3: Numerically stable softmax
attn_weights = stable_softmax(scores, dim=-1)
# Step 4: Weighted sum of values
output = torch.matmul(attn_weights, v)PyTorch numerically stable softmax and scaled dot-product attention.
Tables 1 and 2 compare PyTorch and MoA DNF outputs on all entries.
| Row | Col 0 | Col 1 | Col 2 | Match |
| 0 | 0.3202 | 0.3834 | 0.2964 | \( ✓\) |
| 1 | 0.0288 | 0.7300 | 0.2412 | \( ✓\) |
| 2 | 0.4270 | 0.2844 | 0.2887 | \( ✓\) |
| Row sums: | ||||
| 0 | \( 1.0000\) | \( ✓\) | ||
| 1 | \( 1.0000\) | \( ✓\) | ||
| 2 | \( 1.0001\) * | \( ✓\) | ||
| *Rounding to 4 d.p.; exact value is 1.0000. | ||||
| Row | Col 0 | Col 1 | Col 2 | Col 3 | Match |
| 0 | 0.8023 | -0.0366 | -0.3563 | 0.2595 | \( ✓\) |
| 1 | 0.6376 | -0.4240 | -0.3857 | 0.2107 | \( ✓\) |
| 2 | 0.8552 | 0.0747 | -0.3903 | 0.2848 | \( ✓\) |
Both output matrices match identically between PyTorch and the MoA DNF computation. The row-by-row derivation trace further confirms the result: computing \( (<0> \,\psi\,\textit{Output})\) directly from the index-level DNF (21) yields \( \langle 0.8023, -0.0366, -0.3563, 0.2595 \rangle\) , in exact agreement with PyTorch. This confirms the derivation is correct and that no temporary array is required.
From (1), real-world execution time is dominated by \( \beta \cdot M\) . Current GPU hardware energy values are:
Consequently memory operations are \( 10^2\) –\( 10^3\times\) more expensive than arithmetic. Any optimization reducing memory traffic by factor \( k\) yields:
(22)
even if the arithmetic count is unchanged. This model is consistent with published GPU energy measurements [3, 20].
For the standard attention implementation with matrices of shape \( \langle n,d_k \rangle\) :
(23)
(24)
The reduction factor is:
(25)
For a long-context setting with \( n = 32{,}768\) and \( d_k = 64\) : \( k \approx 512\) , corresponding to three orders of magnitude reduction in memory traffic—and, by (22), a comparable energy reduction.
The MoA DNF achieves traffic reduction through four distinct mechanisms:
Table 3 summarizes predicted speedup and energy reduction across three deployment scenarios and Figure 1 illustrates the scaling behavior.
| Scenario | Description | Speedup | Energy Red. |
| Conservative | Drop-in replacement, no compiler changes, memory traffic savings only | \( 2\) –\( 5\times\) | \( 2\) –\( 5\times\) |
| Realistic | Compiler fusion + algorithm redesign, full DNF loop nest optimization | \( 5\) –\( 20\times\) | \( 5\) –\( 20\times\) |
| Aggressive | MoA-native systems: full hardware co-design with dimension-lifted ONF{} | \( 10\) –\( 100\times\) | \( 10\) –\( 50\times\) |
Theorem 2. Lower Bound on Attention Data Movement
Let \( \mathrm{Attention}(\mathbf{Q}, \mathbf{K}, \mathbf{V})\) be any correct implementation of equation (8). Any such implementation must read at least \( O\left(nd_k + nd_v\right)\) bytes of input and write \( O\left(nd_v\right)\) bytes of output. The MoA DNF achieves this bound.
Proof
Lower bound. Every element of the \( n\times\!d_v\) output depends, through the softmax normalization, on all \( n\times\!d_k\) elements of both \( \mathbf{Q}\) and \( \mathbf{K}\) (since the softmax denominator sums over all \( k\) ). Thus all \( 2nd_k\) elements of \( \mathbf{Q}\) and \( \mathbf{K}\) must be read. Every output element also depends on at least one element of each row of \( \mathbf{V}\) , so all \( nd_v\) elements of \( \mathbf{V}\) must be read. Total input reads: \( O\left(nd_k + nd_v\right)\) .
Achievability. In the DNF (20), for a fixed output row \( i''\) : the inner sum \( \sum_j <i'',j> \,\psi\,\mathbf{Q} \cdot <k,j> \,\psi\,\mathbf{K}\) reads \( d_k\) elements of \( \mathbf{Q}\) -row \( i''\) and \( d_k\) elements of \( \mathbf{K}\) -row \( k\) , for each \( k \in \{0,…,n-1\}\) . Over all \( k\) , each \( \mathbf{Q}\) -row is read \( n\) times but can be kept in registers (or L1 cache) across the \( k\) -loop. Similarly, each \( \mathbf{K}\) -row is read once. With appropriate register allocation, total DRAM reads per output row equal \( d_k + nd_k = O(nd_k)\) , and over all \( n\) output rows: \( O(nd_k)\) . Total: \( O(nd_k + nd_v)\) . \( \square\)
Remark 3
Theorem 2 is qualitatively equivalent to FlashAttention’s IO-complexity lower C bound [3], which establishes \( O(n^2/M)\) for the standard tiled implementation where \( M\) is the SRAM size. The MoA bound of \( O\left(nd_k\right)\) is strictly smaller when \( n \gg M/d_k\) , i.e., when the sequence length exceeds the SRAM capacity divided by the head dimension—exactly the long-context regime where performance is critical.
The present paper establishes the DNF and its correctness. The path to a complete, experimentally validated MoA-based attention system proceeds through five stages.
The DNF of equations (20)–(21) translates directly to a C triple-loop computation: outer loop over output rows \( i''\) , middle loop over columns \( k\) (for attention weights) then \( j\) (for the output), and inner reduction over \( j\) . The implementation uses no heap allocation beyond the output buffer. This is the first validation target: match PyTorch output at double precision on all test cases.
Algorithm 1 shows the pseudocode.
Note that the arrays \( s\) , \( e\) , and \( w\) in Algorithm 1 are \( O(n)\) local scratch vectors (not \( O(n^2)\) matrices), and with aggressive register allocation can be eliminated entirely in the ONF{}.
Applying the \( \gamma\) primitive (3) to the DNF index arithmetic produces the ONF{}: a loop nest expressed as base + stride\( _0\) *i\( _0\) + stride\( _1\) *i\( _1\) for each dimension. For a row-major \( n\times\!d_k\) matrix at base address \( p\) , row \( i''\) , column \( j\) : offset \( = i'' \cdot d_k + j\) . This form is directly amenable to:
Dimension lifting maps the ONF{} loop-nest index space \( N\) to a hardware processing array \( \Pi\) . For an NVIDIA H100 GPU with 132 streaming multiprocessors (SMs), each with 64 CUDA cores, the hardware array has shape \( \Pi = \langle 132, 64 \rangle\) . The ONF{} outer loop (over \( i''\) ) is lifted to distribute across SMs; the inner loops (over \( k\) , \( j\) ) are vectorized within each SM. The algebraic dimension lifting:
produces a parallel loop structure that maximizes SM utilization without hand-tuning the thread block geometry.
Target architectures for the full experimental validation campaign include:
Once the dimension-lifted ONF{} is available, all costs are computable from shapes alone:
(26)
These predicted costs will be compared against:
Full transformer training requires MoA derivations for the backward pass—gradient computations for \( \mathbf{Q}\) , \( \mathbf{K}\) , \( \mathbf{V}\) , and the projection weight matrices. The gradient of the attention output with respect to \( \mathbf{Q}\) is:
where the softmax Jacobian is a dense \( n\times\!n\) matrix in the standard formulation but can be expressed as a DNF with \( O(nd_k)\) memory traffic via MoA reduction. We have begun this derivation; it will complete the MoA coverage of a full training iteration.
A central promise of the MoA framework is not merely theoretical elegance but mechanizability: the ability to carry a specification from a high-level language (Python, NumPy) through the DNF and ONF{} all the way to verified hardware execution, with no semantic gap at any transition. This section describes the realized pipeline and articulates why compiler-based approaches cannot provide equivalent guarantees.
The mechanization pipeline has been demonstrated in a series of collaborative hardware–software co-design experiments by [24, 25, 26]. The pipeline operates in four stages:
A natural question is whether the same pipeline could be achieved by compiling a high-level Python or C program with a sufficiently advanced compiler (LLVM, GCC, Intel ICC). The answer is no, for a fundamental reason: compilers do not preserve semantic equivalence in a provable sense across all targets.
Different compilers, and even different versions or optimization flags of the same compiler, produce different executables from the same source code. These executables may differ in:
There is no formal proof that a compiler-optimized executable is semantically equivalent to its source program across all inputs and all target platforms. This is not a criticism of compilers—it reflects the fundamental difficulty of verified compilation, which remains an active research frontier (e.g., the CompCert verified C compiler covers only a subset of C and only targets specific architectures).
MoA provides a different guarantee. Because the pipeline from Python to DNF to ONF{} to the semantic subset of C consists entirely of algebraic rewrites, each of which preserves denotational semantics by the MoA Storage Theorem, the C program is provably equivalent to the original Python specification—not by trusting a compiler, but by construction. The semantic subset of C used in the ONF{} transcription maps one-to-one onto instruction-set operations on any target architecture: loop bounds become iteration counts, stride expressions become address offsets, and scalar operations become individual instructions. This one-to-one correspondence can be verified by inspection for any target instruction set architecture (ISA).
The consequence is that MoA enables end-to-end verified performance prediction: because the DNF and ONF{} are derived algebraically, all costs—memory traffic, arithmetic operation counts, and parallelism degree—are computable from the shapes of the arrays alone, as described in Section 6. These predictions hold for any target ISA to which the ONF{} is mapped, because the semantic subset guarantees that no compiler transformation can silently change the access patterns or operation count. For transformer attention in particular, this means that the \( O(nd_k + nd_v)\) data movement bound of Theorem 2 is not merely a theoretical result—it is a guaranteed property of any correct FPGA or ASIC implementation derived via the MoA pipeline.
At the three U.S. Department of Energy exascale systems—Frontier (Oak Ridge), Aurora (Argonne), and El Capitan (Lawrence Livermore)—memory bandwidth is the dominant performance bottleneck, not FLOP throughput. Frontier delivers \( \sim\!700\) PFLOP/s peak compute but only 9.2 TB/s aggregate HBM bandwidth across its AMD MI250X GPUs. At \( n = 32{,}768\) (a sequence length now common in scientific LLMs applied to protein structure, climate modeling, and materials discovery), each attention call in the standard implementation moves \( \sim\!4\) GB of DRAM bandwidth for the score matrix alone. Over a training run of billions of steps, this constitutes the binding energy and time constraint.
The MoA DNF reduces this to \( O(nd_k)\) traffic, which at \( d_k=64\) and \( n=32{,}768\) is \( \sim\!16\) MB per attention call—a reduction of \( 256\times\) . For a model with \( L=96\) attention layers and \( h=96\) heads, the aggregate bandwidth saving per training step is \( 96 \times 96 \times 256 \times 4\,\text{GB} \approx 9.4\) PB. This is more than the total HBM capacity of Frontier. The implication is not merely “faster”—it is the difference between a workload that fits in memory and one that does not.
Two distinct DARPA priorities are addressed by this work.
AI assurance. The MoA derivation provides a formally verifiable path from PyTorch source code to hardware execution. Each psi-reduction step is an algebraic identity preserving semantic equivalence, providing a level of correctness guarantee not available from empirical testing alone. For AI systems deployed in contested or safety-critical environments, this formal grounding is a prerequisite for certification.
Edge deployment. The DNF eliminates \( O(n^2)\) memory allocations, enabling longer-context attention on hardware with constrained DRAM budgets— precisely the situation on edge inference hardware (embedded GPUs, tactical AI processors). The dimension-lifting mechanism further allows the same DNF to be mapped to diverse edge-hardware topologies without re-derivation.
A critical but underappreciated advantage of the MoA approach is bit-level reproducibility across architectures. The DNF specifies the exact sequence of floating-point operations at the index level; different hardware targets execute the same operations in the same order (up to dimension-lifted parallelism). This satisfies the scientific reproducibility requirements that are increasingly mandatory for DOE-funded computational science [22].
We have presented a Mathematics of Arrays derivation of scaled dot-product attention and numerically stable softmax, producing a Denotational Normal Form that (a) eliminates all intermediate arrays, (b) provably minimizes data movement, and (c) is verified at full floating-point precision against a PyTorch reference implementation. The derivation demonstrates that the attention mechanism, despite its apparent complexity, admits a clean, index-level formulation with no scratch storage beyond the output.
The key distinction from all prior work is epistemological: derivation, not implementation. Memory minimality in MoA is a theorem established before any code is written. The standard implementation wastes \( O(n^2)\) memory bandwidth writing and re-reading intermediate arrays; MoA’s DNF eliminates this waste by algebraic construction. FlashAttention achieves IO-efficiency by designing a tiling scheme; MoA achieves IO-minimality by normalizing the algebraic expression. The resulting guarantee is stronger: it holds for all architectures, all tiling strategies, and all future hardware configurations.
The predictive performance model projects \( 2\) –\( 100\times\) speedup and \( 2\) –\( 50\times\) energy reduction, with the advantage widening at exascale sequence lengths to potentially \( 512\times\) or beyond. At the scale of DOE exascale systems, this is not an incremental improvement—it changes the class of computations that are feasible.
Future work will complete the five-stage implementation roadmap: C reference from DNF, ONF{} derivation, dimension-lifted ONF{}, experimental validation on Frontier/Aurora/El Capitan, and backward-pass DNF for full training coverage. The formal and numerical foundation laid in this paper makes MoA a practical and provably optimal approach to transformer computation at scale.
This appendix presents the complete row-by-row derivation trace for the first output row \( 0 \,\psi\,\textit{Output}\) , verifying (20) and (21) element by element.
For \( i'' = 0\) , the inner product \( \sum_{j=0}^{3} Q[0][j] \cdot K[k][j]\) for each key row \( k\) :
\( k=0\) :
\( k=1\) :
\( k=2\) :
Scaled scores (divide by \( \sqrt{4} = 2\) ):
Row maximum: \( m = 0.34682\) . Stabilized scores:
Numerator: \( e^{z} = \langle 0.83512,\; 1.0,\; 0.77315 \rangle\) .
Denominator: \( Z = 0.83512 + 1.0 + 0.77315 = 2.60827\) .
matching Table 1 exactly.
matching Table 2 exactly. This confirms that the DNF is correct and that no temporary arrays are required at any stage of the computation. \( \square\)
L. Mullin acknowledges support from the University at Albany, SUNY. G. Hains acknowledges support from LACL, Université Paris-Est Créteil. The authors thank the PyTorch development team at Meta Platforms for the reference implementation used in the verification experiments.
[1] Mullin, L., Hains, G., 2025. Towards automatic, predictable and high-performance parallel code generation. In: Proceedings of CSCE/PDPTA2024, Springer Nature Switzerland, pp. 109–119.
[2] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., Polosukhin, I., 2017. Attention is all you need. In: Advances in Neural Information Processing Systems (NeurIPS).
[3] Dao, T., Fu, D.Y., Ermon, S., Rudra, A., Ré, C., 2022. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. arXiv:2205.14135.
[4] Qin, Y., Wang, Y., Deng, D., Zhao, Z., Yang, X., Liu, L., Wei, S., Hu, Y., Yin, S., 2023. FACT: FFN-attention co-optimized transformer architecture with eager correlation prediction. In: Proceedings of ISCA, pp. 1–14.
[5] Park, J., Yoon, H., Ahn, D., Choi, J., Kim, J.-J., 2020. OPTIMUS: Optimized matrix multiplication structure for transformer neural network accelerator. In: Proceedings of MLSys, vol. 2, pp. 363–378.
[6] Sharma, A., Krishna, L.H., Srinivasu, B., 2025. High-performance Gemmini-based matrix multiplication accelerator for deep learning workloads. IEEE Transactions on VLSI Systems 33 (12), 3276–3289.
[7] León-Vega, L.G., Chacón-Rodríguez, A., Salazar-Villalobos, E., Castro-Godínez, J., 2023. Acceleration of fully connected layers on FPGA using the Strassen matrix multiplication. In: Proceedings of IEEE BIP, pp. 1–6.
[8] Li, R., Chen, S., 2025. Design and implementation of an FPGA-based hardware accelerator for transformer. arXiv:2503.16731.
[9] Tan, X., Teo, T.H., 2025. Design and implementation of a BRAM-banked double-buffered matrix multiplication accelerator for transformer models on edge FPGAs. In: Proceedings of IEEE MCSoC, pp. 582–585.
[10] Chang, Y.-R., Chen, H.-F., Shih, H.-Y., 2025. MOSA: Matrix optimized self-attention hardware accelerator for mobile device. In: Proceedings of ICEIC, pp. 1–4.
[11] Dao, T., 2023. FlashAttention-2: Faster attention with better parallelism and work partitioning. arXiv:2307.08691.
[12] Ham, T.J., Jung, S.J., Kim, S., Oh, Y.H., Park, Y., Song, Y., Park, J.-H., Lee, S., Park, K., Lee, J.W., Jeong, D.-K., 2020. A\( ^3\) : Accelerating attention mechanisms in neural networks with approximation. In: Proceedings of IEEE HPCA, pp. 328–341.
[13] Yang, Q., Wang, X., Zhou, Y., Li, Q., Qiao, S., 2025. Hardware friendly transformer optimization with dynamic attention matrix fusion. In: Proceedings of IEEE ISCAS, pp. 1–5.
[14] Gao, Y., Song, Z., Wang, W., Yin, J., 2023. A fast optimization view: Reformulating single layer attention in LLM based on tensor and SVM trick. arXiv:2309.07418.
[15] Binder, E., Sudarsanam, A., Sunkavalli, R., Low, T.M., 2025. FATHOM: Fast attention through optimizing memory. In: Proceedings of IEEE IPDPS, pp. 1166–1178.
[16] Liu, J., Wu, C., Li, J., Chen, X., Wang, S., 2024. Research on matrix multiplication optimization and deployment method for heterogeneous platforms. In: Proceedings of ICCBD+AI, pp. 266–270.
[17] Mullin, L.M., 1988. A Mathematics of Arrays. Ph.D. dissertation. Syracuse University, Syracuse, NY.
[18] Thomas, S., Mullin, L., Swirydowicz, K., 2021a. Improving the performance of DGEMM with MoA and cache-blocking. In: Proceedings of ACM ARRAY'21.
[19] Thomas, S., Mullin, L., Swirydowicz, K., Khan, R., 2021b. Threaded multicore GEMM with MoA and cache-blocking. In: Proceedings of CSC'21, CSCE'21.
[20] Mullin, L.M.R., 2023. From array algebra to energy efficiency on GPUs. arXiv:2306.11148.
[21] Markus, A., Mullin, L., 2026. Array access and performance regarding numerical algorithms. Transactions on Engineering on Computing Sciences 14 (2), 1–14.
[22] Mullin, L., Hains, G., 2026. New mathematics for computer performance: array algebra and cost functions. Technical Report. https://hal.science/hal-05442652 .
[23] Hains, G., 2026. From algorithm to code to hardware to execution: Why isn't computing performance an experimental science? In: Proceedings of PDP 2026, Euromicro Conference on Parallel, Distributed, and Network-Based Processing. Cluj-Napoca, Romania.
[24] Grout, I.A., Mullin, L., 2018. Hardware considerations for tensor implementation and analysis using the field programmable gate array. Electronics 7 (11), 320. 10.3390/electronics7110320.
[25] Grout, I.A., Mullin, L., 2022a. Realizing mathematics of arrays operations as custom architecture hardware-software co-design solutions. Information 13 (11), 528. 10.3390/info13110528.
[26] Grout, I.A., Mullin, L., 2022b. Processing in memory for mathematics of arrays operations. In: Proceedings of SAI Computing Conference, 2022.