Which Tile First? Optimal Weight-Tile Ordering for a Weight-Stationary Systolic Array with One Shadow Weight Register as a Two-Machine No-Wait Flow Shop, with an Exact Gilmore–Gomory Order, a Factor-Two Bound and Closed Forms for Homogeneous Tile Set

A weight-stationary systolic array multiplies a large matrix by cutting its weights into tiles, loading a tile into the array, streaming the activations through it, and moving to the next tile. With a shadow weight register in every processing element, the next tile can be loaded while the current one streams, but only one tile ahead. Compilers fix the order of the tiles by loop order and do not usually treat the order as a decision. This paper shows that the order is a decision with an exact answer. With one shadow register, the total time of a sequence of tiles with load times a and stream times b is a plus the sum of max(a of the next tile, b of the current tile) over consecutive tiles plus b of the last tile, which is the cost of a tour in a two-machine no-wait flow shop, so the Gilmore–Gomory method gives an optimal order in time proportional to n log n. I prove that any order is within a factor two of the optimum, and that when all tiles have equal load times or equal stream times the order only matters through the first or last tile, with closed forms for the gain. In a CPU simulation with a 128 by 128 array, aligned dense layers and ragged-edge layers gain nothing from reordering, mixture-of-experts layers gain essentially nothing because they are load bound, and a batch of low-rank adapters of different sizes and token counts gains 12 percent on average and 19 percent at best, and 19 percent on average when the adapters are small. My Gilmore–Gomory implementation matched an exhaustive dynamic programme on 3300 random instances and was within 0.02 percent of the assignment lower bound on large tile sets. Dependencies between tiles, several shadow registers and several arrays are not treated. All numbers come from CPU runs of a simplified timing model; no hardware was used. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not device measurements. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24766780
Primary Topic
Parallel Computing and Optimization Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Which Tile First? Optimal Weight-Tile Ordering for a Weight-Stationary Systolic Array with One Shadow Weight Register as a Two-Machine No-Wait Flow Shop, with an Exact Gilmore–Gomory Order, a Factor-Two Bound and Closed Forms for Homogeneous Tile Set

I-Wei Tseng
Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
preprint

Which Tile First? Optimal Weight-Tile Ordering for a Weight-Stationary Systolic Array with One Shadow Weight Register as a Two-Machine No-Wait Flow Shop, with an Exact Gilmore–Gomory Order, a Factor-Two Bound and Closed Forms for Homogeneous Tile Set

I-Wei Tseng
preprint en

Abstract

A weight-stationary systolic array multiplies a large matrix by cutting its weights into tiles, loading a tile into the array, streaming the activations through it, and moving to the next tile. With a shadow weight register in every processing element, the next tile can be loaded while the current one streams, but only one tile ahead. Compilers fix the order of the tiles by loop order and do not usually treat the order as a decision. This paper shows that the order is a decision with an exact answer. With one shadow register, the total time of a sequence of tiles with load times a and stream times b is a plus the sum of max(a of the next tile, b of the current tile) over consecutive tiles plus b of the last tile, which is the cost of a tour in a two-machine no-wait flow shop, so the Gilmore–Gomory method gives an optimal order in time proportional to n log n. I prove that any order is within a factor two of the optimum, and that when all tiles have equal load times or equal stream times the order only matters through the first or last tile, with closed forms for the gain. In a CPU simulation with a 128 by 128 array, aligned dense layers and ragged-edge layers gain nothing from reordering, mixture-of-experts layers gain essentially nothing because they are load bound, and a batch of low-rank adapters of different sizes and token counts gains 12 percent on average and 19 percent at best, and 19 percent on average when the adapters are small. My Gilmore–Gomory implementation matched an exhaustive dynamic programme on 3300 random instances and was within 0.02 percent of the assignment lower bound on large tile sets. Dependencies between tiles, several shadow registers and several arrays are not treated. All numbers come from CPU runs of a simplified timing model; no hardware was used. Concept and methods paper. Numerical illustrations were produced by the author on a CPU with numpy, using a simplified model with illustrative parameters; they illustrate the method and are not device measurements. Any other numerical values quoted come from the cited sources. Self-drawn figures (scripts/make_figs.py). AI-assisted drafting; the author is responsible for the content.

Zenodo (CERN European Organization for Nuclear Research)
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon