Manuscript Offprint
arXiv:2609.06449PACO: A Fully Cache-Oblivious Parallel FFT with One Global Redistribution
Abstract
Fast Fourier transforms (FFTs) on parallel machines incur two distinct forms of data movement: processor-local transfers through the memory hierarchy and global redistribution between processors. Existing four-step FFT organizations can switch the active transform dimension with one global transpose-like exchange, but this property alone does not yield cache-efficient local computation. Conversely, cache-oblivious FFTs obtain asymptotically optimal local memory traffic through recursively applied layout transformations, whose direct materialization can require additional data-rearrangement passes and global exchanges.
We present PACO, a fully cache-oblivious parallel FFT framework that reconciles these objectives. PACO executes
Its local stages recursively partition both transform and batch dimensions without knowledge of the cache parameters. Rather than materializing the transpose-like layouts induced by this recursion, PACO defers them. We show that the deferred layouts compose into a base- digit-reversal permutation, which PACO fuses with the redistribution already required to change the local transform dimension. The resulting middle stage is a perfectly balanced parallel cache-oblivious digit-reversal permutation: each source-destination processor pair exchanges exactly elements (the self-pairs incur no network traffic).
Under an exact base- slab decomposition in a hybrid ideal-cache/BSP model, PACO computes an -point DFT exactly with maximum per-processor work
and maximum per-processor cache complexity
It uses exactly one global redistribution round. PACO returns canonical logical DFT coefficients under a factor-swapped target slab ownership. The single redistribution is necessary under the stated no-replication ownership model, while its communication volume is optimal for the prescribed fused permutation and source-target slab distributions.
1 Introduction
The fast Fourier transform (FFT) is a fundamental primitive in scientific computing, signal processing, and data analysis. The Cooley-Tukey algorithm reduces the arithmetic cost of an -point discrete Fourier transform (DFT) from to operations [4]. On modern parallel machines, however, arithmetic is only one component of the execution cost. An FFT must move data through each processor's local memory hierarchy and redistribute data between processors when the active transform dimension changes. Thus, an efficient parallel FFT should simultaneously control processor-local cache traffic and interprocessor communication.
Existing FFT organizations typically optimize one of these forms of data movement more directly than the other. Four-step and six-step FFT organizations reshape a one-dimensional transform into matrix views and use transpose-like operations to switch the active transform dimension [2, 13]. With compatible local kernels and data distributions, a two-factor four-step organization can use one global slab redistribution while producing the canonical DFT coefficient order in a factor-swapped output view. This algebraic one-exchange structure, however, does not by itself guarantee fully cache-oblivious local execution. Conversely, cache-oblivious FFTs obtain asymptotically optimal ideal-cache complexity through recursively applied transpose-like layout transformations [8]. Directly materializing these transformations in a distributed setting may introduce extra local data passes and, when an affected digit field is distributed, additional global redistributions. Other low-communication FFTs reduce the number of global all-to-all operations through alternative factorizations, approximation, oversampling, or additional neighbor-level communication [7, 18]; their numerical and distributional contracts differ from the exact FFT setting considered here.
Problem setting: We consider an exact bounded-radix Cooley–Tukey FFT under an explicit source and target ownership contract. Let
The input is viewed as an row-major matrix distributed by -column slabs. The output is viewed as an row-major matrix distributed by -column slabs. Its coordinate represents
Hence the output has canonical logical DFT coefficient indices, but its physical ownership is factor-swapped relative to the input distribution. Restoring the initial slab ownership is not part of the problem and may require a further redistribution.
Corresponding Author; Also affiliated with Shanghai Key Lab. of Intelligent Information Processing.
This paper presents PACO, a Processor-Aware Cache-Oblivious FFT framework that combines fully cache-oblivious local computation with exactly one global redistribution. PACO follows the fixed structure
Its local stages use a cache-oblivious batched FFT scheduler that recursively partitions both transform and batch dimensions without knowledge of the cache capacity M or block size B.
The central observation is that a transpose-free cache-oblivious local FFT does not leave its result in arbitrary disorder. Instead, the layout transformations deferred during local recursion compose into a structured base-b digit-reversal permutation. PACO materializes this complete permutation exactly once, at the redistribution already required between the two top-level Cooley-Tukey transform groups. Thus, the middle stage simultaneously corrects the first local stage's deferred layout, swaps the two factor fields, prepares the layout consumed by the second local stage, and transfers each item to its factor-swapped target owner. PACO does not introduce a separate global communication phase merely to repair digit order.
Contributions. This paper makes the following contributions:
We design a fully cache-oblivious batched Cooley-Tukey FFT scheduler that recursively partitions transform and batch dimensions, avoids recursion-level physical transposes, and achieves asymptotically optimal local work and cache complexity under the stated memory model.
-
We show that the lazy layouts induced by the local recursion compose into PARA-CO-DRP , a base-b PARallel Cache-Oblivious Digit-Reversal Permutation, and we fuse that permutation with the ownership change required between the two top-level transform groups. The resulting PARA-CO-DRP middle stage uses exactly one global redistribution and routes exactly items from every source processor to every destination processor.
-
Under an exact base-b slab decomposition in a hybrid ideal-cache/BSP model, we prove maximum per-processor work
and maximum per-processor cache complexity
We further prove that one global redistribution round is necessary under the no-replication ownership model, and that PACO's communication volume is optimal for the prescribed fused slab-to-slab permutation.
Let . One complex scalar is one item in both the cache and communication models.
Problem and ownership contract. Fix a constant radix
We assume
and write
There are processors, indexed by . For the exact balance results, , , and are powers of , and
The input vector is viewed as an row-major matrix
distributed by equal column slabs:
Thus, processor q initially owns the columns
We factor the canonical frequency index as
and view the output as an row-major matrix
The target ownership is the column-slab distribution
Hence, PACO returns canonical DFT coefficients , but under a factor-swapped target ownership. It does not restore the initial slab distribution.
Machine and execution model. Each processor has a private fully associative ideal cache of M items and block size B, with optimal replacement and initially empty cache. We assume the tall-cache condition
and the slab-width conditions
Interprocessor communication follows the BSP model. In one BSP h-relation, every processor sends and receives at most h remote items; its cost is , where g is the per-item gap and L is the synchronization cost. A global redistribution round consists of local packing, one BSP h-relation, and local unpacking. Packing and unpacking are charged to local work and cache misses, not to h.
We use an owner-computes model: input values are initially unreplicated, no processor initially owns the entire input, and a processor obtains a remotely owned value only through an explicit BSP communication superstep. Arithmetic vertices of the fixed-radix Cooley-Tukey DAG are not recomputed.
Let and denote, respectively, the maximum per-processor local work and cache misses. Let R be the number of global redistribution rounds, h the maximum per-processor remote volume in a round, and the aggregate number of remotely transmitted items.
THEOREM 1 (MAIN RESULT). Under assumptions (1)–(5), PACO computes the canonical length-N DFT under the input ownership (1) and factor-swapped target ownership (3). In particular,
for every and .
Its maximum per-processor work and cache complexity are
and
PACO performs exactly one global redistribution round,
whose BSP volume and aggregate remote migration volume are
Scope of optimality. The optimality claims in Theorem 1 have different scopes. The one-round bound is optimal for the complete DFT under the stated owner-computes and no-replication assumptions. The work bound is optimal for the fixed-radix Cooley-Tukey computation DAG without arithmetic recomputation. The cache bound matches the lower bound for the local FFT DAGs assigned by the PACO decomposition. Finally, the migration bound is optimal for the prescribed fused digit-reversal permutation between the source and target slab ownerships; it is not a communication-volume lower bound for all distributed FFT schedules with different intermediate ownerships.
The next section develops the two-factor decomposition and the layout algebra that allows PACO to fuse the complete digit reversal with its sole global redistribution.
3 PACO: One Redistribution from Lazy Layouts
PACO combines two transpose-free cache-oblivious local FFT phases with one global redistribution:
This section explains why the layout changes deferred by the local recursions can be materialized exactly at the ownership change already required between the two top-level Cooley–Tukey transform groups.
3.1 Two-Factor Cooley-Tukey Decomposition
Recall that
Writing
where
gives
(6)
Thus, Phase I performs one length- FFT for every , Phase II applies the corresponding twiddle factor and redistributes the intermediate values, and Phase III performs one length- FFT for every . Under the input ownership (1), every Phase-I transform is local to one processor. Under the target ownership (3), every Phase-III transform is local to one processor. The purpose of the middle stage is therefore not to create a new transform factorization, but to change ownership and layout between these two local transform groups.
3.2 Lazy Layouts of the Local FFT
For a permutation
let denote the physical-to-logical layout operator
For , let denote base- digit reversal on -digit strings. In particular, if
then
Digit reversal is an involution.
LEMMA 2 (LAZY-LAYOUT FFT). Consider a transpose-free local radix-b FFT of length with natural-order constant-size leaves and twiddle factors evaluated from logical coordinates. Its output-layout form satisfies
Conversely, the same recursion can consume the digit-reversed input layout and produce a natural-order DFT output:
PROOF SKETCH. A recursive Cooley–Tukey step consists of two child-transform groups, a diagonal twiddle operator, and a final swap of two transform digit fields. PACO performs the child transforms and twiddle multiplication, but does not physically materialize the final digit-field swap. Recursively deferred swaps compose into base-b digit reversal: for every split
the physical digit fields represent the logical fields
Twiddle factors remain correct because they are evaluated using the logical coordinates represented by each physical item (see the layout-aware twiddle operator, Appendix A.2); equivalently, the diagonal twiddle operator is conjugated by the current layout permutation. Since digit reversal is an involution, conjugating the output-layout form yields the input-layout form. The complete induction and digit-field view invariant are given in the appendix. □
Lemma 2 shows that a local PACO FFT does not leave its result in arbitrary disorder. It produces a precise and composable layout: base-b digit reversal. PACO exploits this structure rather than materializing a separate local transpose or digit-reversal pass after every recursive factorization.
3.3 One Fused Middle Permutation
Phase I applies to the locally owned length- transforms indexed by . After Phase I, let denote a physical array coordinate, where is the physical row coordinate and is the unchanged second-stage input coordinate. Thus , whereas is not the original coordinate : it represents the logical first-stage frequency
When the item at physical coordinate is packed for the global redistribution, PACO applies the top-level twiddle factor
using its represented logical coordinates and .
PACO then materializes the complete m-digit reversal, rather than only the -digit layout exposed by Phase I. For digit fields
the middle permutation is
Equation (9) performs four operations simultaneously:
(1) it cancels the output layout exposed by Phase I;
(2) it swaps the - and -digit fields;
(3) it establishes the input layout consumed by Phase III; and
(4) it changes ownership from owner to owner , making every complete length- Phase-III transform processor local.
More concretely, an item at physical Phase-I coordinate is routed to the factor-swapped coordinate
Its destination processor is therefore determined by the second coordinate,
The detailed packing, routing, local transposition, and unpacking procedure that realizes this mapping cache-obliviously is given in Sect. 4.2. Its exact source-destination balance is analyzed there as well.
The ownership change is required by the data dependencies of the second transform group: for a fixed , a length- FFT requires values from all , whereas the input slabs distribute those coordinates among the processors. PACO therefore uses the unavoidable communication boundary to materialize the full deferred layout transformation, rather than introducing a separate redistribution solely to repair digit order.
3.4 End-to-End Correctness
PACO applies the output-layout local operator of Lemma 2 in Phase I, the fused permutation (9) together with the top-level twiddle diagonal in Phase II, and the input-layout local operator in Phase III. Identifying the input array with (physical coordinate , , ) and the output array with (physical coordinate , , ), PACO's operator composition is
where applies the output-layout length- transform to the row factor (batched over the columns); is the diagonal top-level twiddle , evaluated from the logical coordinate carried at physical row ; is the base-b digit reversal (9), which simultaneously cancels , swaps the two factors, and installs ; and applies the input-layout length- transform to the row factor (batched over the columns).
THEOREM 3 (END-TO-END CORRECTNESS). Under the ownership assumptions of Sect. 2, PACO computes the canonical DFT
More precisely, its factor-swapped output view satisfies
for every
and this coefficient is owned by
PROOF. Write the input array as and the output array as , as in (10). By Lemma 2 (in batched form), Phase I realizes and Phase III realizes .
The middle stage factors as
where is the factor transpose . Indeed, both sides send physical to , since reversing the -digit string yields . Likewise the layout-aware twiddle diagonal satisfies
because conjugating a diagonal by the involution merely relabels its entries to .
Substituting these identities into (10) and cancelling each adjacent pair and gives
This is the two-factor four-step operator. Evaluating it on the input x reproduces the right-hand side of (6):
Hence for all , .
Finally, the column factor is untouched by Phase III (which transforms only the row factor) and equals . Thus resides in physical column of the output slab, whose owner under (3) is .
4 Cache-Oblivious Local FFT and Fused Redistribution
PACO is implemented by two cache-oblivious building blocks. The first is a batched local FFT that carries recursive layout changes lazily, without materializing recursion-level transposes. The second is a fused redistribution that applies the top-level twiddles, materializes the complete digit reversal, and changes ownership in one BSP communication round.
4.1 Cache-Oblivious Batched Local FFT
A local PACO subproblem consists of independent transforms of length . The transforms are represented by recursive digit-field views rather than copied or transposed subarrays. One batch field remains the least significant physical address field; varying this field accesses a contiguous memory run. This distinguished field is preserved whenever the transform recursion creates new batch coordinates.
The scheduler uses the relative sizes of and , but does not inspect either or . If
it recursively splits one batch digit, thereby partitioning the transform instances into data-disjoint subbatches. It first consumes batch digits introduced by previous transform splits and splits the distinguished contiguous batch field only when no such outer batch digit remains. If
the scheduler performs a balanced digit-aligned Cooley–Tukey split. Specifically, it writes
so that
Writing a logical transform coordinate as
and denoting an existing batch coordinate by , the first child group consists of transforms of length . Its transform coordinate is , while becomes a new outer batch coordinate: its batched transforms are indexed by
Thus, the -digit field precedes the pre-existing batch digits in the child view, but the least-significant contiguous batch field within is unchanged.
Symmetrically, the second child group consists of transforms of length , with transform coordinate and batch coordinate
The associated Cooley–Tukey twiddle
is evaluated from these logical coordinates and is multiplied when the second child group first accesses the corresponding intermediate value. Hence, transform splitting changes only the recursive view: it creates an outer batch field but materializes neither a transpose nor a separate twiddle pass.
The top-level twiddle factors of each recursive Cooley–Tukey step are evaluated from the logical digit coordinates represented by the view. They are fused into the first accesses of the second child-transform group. At constant-size leaves, PACO invokes a natural-order local DFT kernel. In output-layout mode, the resulting batched operator is
in input-layout mode, it is
Thus, the scheduler realizes the lazy-layout operators of Lemma 2 on every transform in the batch.
PROPOSITION 1 (CACHE-OBLIVIOUS BATCHED LOCAL FFT). For transforms of length , the local PACO scheduler performs
local work and uses
recursion-stack words. Under the tall-cache assumption
and for an initial contiguous batch width at least , it incurs
cache misses.
PROOF SKETCH. Fix a sufficiently small constant , let
and consider the maximal recursive views satisfying
This is only an analytical cache-fitting frontier: the algorithm itself never tests this condition.
Frontier geometry. A transform split preserves the working-set size of each child group. Indeed, if
then its two child groups have parameters
and both have volume
Consequently, a non-cache-fitting view can first enter the cache-fitting region only through a batch split. Every nonroot maximal frontier view therefore satisfies
because its parent has the same transform length and times as many batch instances.
We next bound the transform length at a frontier reached after at least one transform split. A transform split is executed only when . For a balanced digit-aligned factorization
the first child has parameters . Since ,
Symmetrically, the second child satisfies
Thus, after every transform split, and hence after any later batch split (a batch split only decreases s without changing n), the reachable state satisfies the following invariant:
Combining (13) and (14) gives
and therefore every frontier reached after at least one transform split has
Transform-induced frontier expansion. Let K be the maximum number of transform splits on a root-to-frontier path. If the active transform length before one split is , then the larger child has length at most
Induction gives
For , combining this inequality with (15) yields
for a constant depending only on b and . Hence,
A batch split partitions working-set mass among its children, whereas a transform split creates two child groups, each of the parent's mass. Thus, the total mass represented at the cache-fitting frontier is at most
Spatial locality at the frontier. A separate argument (Lemma 17 in Appendix B.6) shows that whenever the distinguished contiguous field is split, the tall-cache assumption forces the resulting run width to satisfy ; if it is never split it retains its initial width by (5). Hence a frontier view of mass ns is covered by ns/c runs of length and touches blocks, which remain resident during its depth-first descendant execution. Summing over the frontier yields
The work and stack bounds follow from the fixed-radix Cooley-Tukey recurrence and the digit-aligned recursion depth. More details in Appendix B.
For PACO Phase I, Proposition 1 applies with
For Phase III, it applies with
The two local phases therefore incur, per processor,
cache misses in total.
4.2 Fused Redistribution
The middle stage materializes the full digit reversal
identified in Sect. 3.3. It consists of local packing, one balanced BSP exchange, and local unpacking.
Local pack. Processor q owns the Phase-I slab
Because
a row macro-element permutation by places the logical first-stage value in packed row
During the same scan, PACO forms
One BSP exchange. Decompose the packed logical row coordinate as
The processor is the destination owner of this item. After row packing, all rows with a common form one contiguous source-destination block. For every source-destination pair , this block has shape
and contains exactly items. PACO sends these blocks in one balanced ALL-TO-ALL BSP exchange.
Local unpack. At destination , the block received from source q is indexed by
PACO transposes this local rectangle, producing the coordinate order
The source identifier q and the first coordinate reconstruct the complete former column coordinate
Finally, PACO applies as a digit reversal of the row macro-elements, each of size . Writing
the item is placed at the final local coordinate
Equivalently, the resulting local array satisfies
which is precisely the input layout consumed by the Phase-III local FFT.
Macro-element digit reversal. The row and column digit reversals in the fused stage are not elementwise random-access permutations. During packing, each of the rows is treated as one

Figure 1: PARA-CO-DRP : tracking logical indices (a, c), say (01, 00) in blue, through one global exchange , p = 2, (digit reversal on 2 bits: , 0, 3 fixed) blue = , orange =
contiguous macro-element of length ; during unpacking, each of the rows is treated as one contiguous macro-element of length . A digit-reversal two-cycle is implemented by sequentially swapping its two macro-elements, using one temporary item.
Coordinate trace. For an item initially stored at source processor q with physical Phase-I coordinate
the fused middle stage performs the following coordinate trace:
\begin{aligned}(a,c)&\xrightarrow{\mathrm{pack}}(v,c),&v&=\pi_{m_{1}}(a),\ $ v,c)&\xrightarrow{\mathrm{route}}(q^{\prime};v_{\mathrm{loc}},c_{\mathrm{loc}}),&v&=q^{\prime}\frac{N_{1}}{p}+v_{\mathrm{loc}},\ $ q;v_{\mathrm{loc}},c_{\mathrm{loc}})&\xrightarrow{\mathrm{transpose}}(q;c_{\mathrm{loc}},v_{\mathrm{loc}}),&\text{at}q^{\prime}\text{(source}=q)\\ (q;c_{\mathrm{loc}},v_{\mathrm{loc}})&\xrightarrow{\mathrm{unpack}}(u,v),&u&=\pi_{m_{2}}(c).\end{aligned} \tag{18}Hence,
THEOREM 4 (CORRECTNESS AND COMPLEXITY OF THE FUSED GLOBAL PERMUTATION). Under assumptions (2) and (5), the composition of local packing, one BSP redistribution, and local unpacking materializes the full permutation
Applied to the Phase-I physical output, it produces
which is precisely the input layout required by Phase III.
Each processor performs
twiddle arithmetic and
local rearrangement work. Its local cache complexity is
The permutation uses one global redistribution round with exactly
items for every source–destination processor pair. Excluding the self block, every processor sends and receives
remote items, and the aggregate remote migration volume is
Excluding the mandatory local input and output arrays, the auxiliary workspace is
items or words per processor.
PROOF. The coordinate trace (18) maps every Phase-I physical coordinate to
It therefore materializes
Since the Phase-I physical layout satisfies
the packed row contains . Fusing the top-level twiddle multiplication during this scan forms
The final coordinate mapping consequently gives
which is the Phase-III input layout.
Packing applies macro-element digit reversal to rows of length , and unpacking applies it to rows of length . By the slab-width assumptions (5), both macro-element widths are at least B. Thus, together they require
local rearrangement work and
cache misses; the fused twiddle scan contributes arithmetic work without an additional cache pass.
Each processor transposes blocks of size . The cache-oblivious transpose bound gives
misses in total. Since
we have , so this cost is also .
For every source-destination pair, the block has
items. Hence, excluding the self block, each processor sends and receives
remote items, and the aggregate remote volume is
The raw incoming regions are part of the mandatory output array; the only non-output array workspace is one reusable -item transpose buffer, plus recursion-stack words.
THEOREM 5 (FUSED REDISTRIBUTION). The fused middle stage materializes the complete permutation
applies the top-level Cooley–Tukey twiddle factors, and produces the input layout consumed by Phase III. Per processor, it performs
local work and incurs
cache misses.
The unique communication round is a balanced BSP h-relation with
remote items sent and received by each processor. Its aggregate remote communication volume is
PROOF SKETCH. Consider an item initially stored at source coordinate . The packing permutation sends it to logical first-stage frequency
thereby cancelling the output layout produced by Phase I; the same scan applies the twiddle . Writing
routes the item to its unique Phase-III owner . At that destination, transposing the received block exchanges into , while the source identifier reconstructs
The final row digit reversal places the item at
Thus, the complete coordinate mapping is
which is the full digit reversal .
Both macro-element digit reversals and the local rectangular transpositions [8] are cache-oblivious linear-work, linear-cache-miss rearrangements: The row and column digit reversals are not element-wise random-access permutations. They are conducted on contiguous macro-elements of length and , respectively. Given the slab-width conditions (5), these permutations take linear local work and cache misses.
Since is a bijection, each source has exactly packed rows for every destination , and hence exactly items in every source-destination block. This gives the stated balanced communication volume and local complexity bounds. The complete in-place digit-reversal construction, cache analysis, and workspace details are deferred to the appendix.
5 Analysis and Optimality
This section combines the two local FFT phases and the fused middle redistribution, and then states the matching lower bounds under their respective scopes. Correctness was established in Theorem 3; here we analyze only local work, cache traffic, and interprocessor communication.
5.1 Upper Bounds
Table 1 summarizes the per-processor costs. In Phase I, every processor evaluates transforms of length . In Phase III, it evaluates transforms of length . The middle stage performs one fused redistribution: its top-level twiddles are included in local packing, and its local rearrangements consist of two macro-element digit reversals and rectangular block transpositions.
Table 1: Per-processor costs of the three PACO components.
| Component | Local work | Cache misses | Communication |
|---|---|---|---|
| Local Phase I | 0 | ||
| Fused middle stage | one h-relation | ||
| Local Phase III | 0 |
PROPOSITION 2 (PACO UPPER BOUNDS). Under assumptions (2)–(5), PACO has maximum per-processor local work
and maximum per-processor cache complexity
It performs exactly one global redistribution round,
with
remote items sent and received by each processor, and aggregate remote volume
PROOF. Proposition 1 gives the local work and cache bounds for Phases I and III, while Theorem 5 gives the linear local cost of the middle stage. Since
their local work bounds sum to (33); the same identity yields (34) after absorbing the constant number of linear scans.
For every source–destination processor pair, the fused permutation routes exactly
items. Excluding the self block, every processor therefore sends and receives
remote items. Summing these balanced send volumes gives (36). ☐
The corresponding aggregate work and cache bounds are
respectively. The local FFT recursion uses stack words, and the fused middle stage uses one reusable -item transpose scratch array; these workspace details are established in Section 4.2 and the appendix.
5.2 Lower Bounds and Exact Scope
We now prove the lower bounds under the scopes stated after Theorem 1 and the fixed-radix scope (see Remark 1 in Appendix D).
PROPOSITION 3 (AT LEAST ONE REDISTRIBUTION IS NECESSARY). Every correct parallel DFT algorithm satisfying the owner-computes and no-replication assumptions of Sect. 2 requires
PROOF. Every DFT coefficient depends on every input item, since every entry of is nonzero. No processor initially owns the complete input. If , then a processor's local state and every output it returns are independent of some remotely owned input item, which contradicts correctness after changing only that input.
PROPOSITION 4 (EXACT MIGRATION BOUND FOR THE FUSED PER-MUTATION). Consider materializing
between the source ownership (1) and target ownership (3). Any such algorithm must communicate at least
remote items. Moreover,
PROOF. For each fixed source column , exactly row coordinates satisfy
because is a bijection. Hence exactly
items retain their owner, while all remaining
items must cross a processor boundary at least once. Averaging the resulting aggregate send and receive volumes over the processors gives (38) since the maximum over processors is at least the average.
PROPOSITION 5 (MAXIMUM PER-PROCESSOR WORK LOWER BOUND). For the fixed-base-b Cooley-Tukey DAG used by PACO, under the no-recomputation assumption,
Let , . If every radix-b butterfly is expanded into its t constituent radix-2 layers, the resulting dependency graph is the standard radix-2 FFT DAG. Hence the maximum per-processor work/cache lower bounds are proved based on radix-2 DAG.
Table 2: Representative FFT frameworks. “Communication” counts global exchanges; additional interprocessor communication is noted where relevant.
| Method | Numerical | Communication | Output ownership / cache guarantee |
|---|---|---|---|
| Four-/six-step FFT | Exact | One or more transpose-like exchanges | Factor-swapped view possible; no cache-oblivious guarantee |
| Frigo et al. CO-FFT | Exact | N/A (Sequential Alg.) | Natural-order output; optimal ideal-cache complexity |
| Edelman et al. | Tunable accuracy | One transpose + hierarchical communication | Typically block ownership; no local ideal-cache theorem |
| Tang et al. | Tunable accuracy | One all-to-all + neighbor exchange | Typically block ownership; no local ideal-cache theorem |
| PACO | Exact | One BSP redistribution only | Canonical output under factor-swapped slabs; cache-oblivious |
PROOF. The fixed-base FFT DAG contains arithmetic vertices. Without recomputation, these vertices must be executed somewhere, so at least one processor executes at least their average number,
□
PROPOSITION 6 (MAXIMUM PER-PROCESSOR CACHE LOWER BOUND). Under the exact slab decomposition and no arithmetic recomputation, the two local FFT phases satisfy
Consequently, the complete PACO execution satisfies the same lower bound.
PROOF ROADMAP. Each processor evaluates a batch of length- FFT DAGs in Phase I and a batch of length- FFT DAGs in Phase III. Applying an FFT-DAG input-boundary lower bound [15] to these data-disjoint batches yields
and
misses, respectively, up to the standard initial-cache term. Fix a sufficiently large constant . If
the boundary term is absorbed. Otherwise,
Because and ,
Hence
Therefore,
and thus . Since Phase I begins with an empty cache and accesses distinct local input items, it incurs
compulsory misses, which is the required bound in this case. The detailed segment argument is deferred to Appendix.
Together, Propositions 2–6 establish Theorem 1 under the scopes stated following that theorem.
As a byproduct, Appendix D gives a finite block-aware lower bound for arbitrary no-recomputation schedules of the radix-2 FFT DAG. In the stated asymptotic regime, it yields
This stronger general statement is not needed for the PACO upper-bound analysis and is therefore kept out of the main proof flow.
5.3 Related Work
Classical four-step and six-step FFTs decompose a transform into local FFT groups separated by twiddle factors and transpose-like changes of view [2, 13]. Exact distributed-memory FFTs have further explored the tradeoffs among data allocation, input/output ordering, and communication volume [10, 11]. These works show that a factor-swapped or otherwise reordered output can save a transpose. PACO adopts an explicit factor-swapped slab contract, but additionally proves that its local computation is fully cache oblivious and that its sole redistribution materializes the layout deferred by the local recursions.
Cache-oblivious FFTs obtain ideal-cache locality through recursive decomposition and recursive layout transformations [8]. PACO uses the same cache-oblivious objective in a distributed setting, but does not materialize a transpose-like layout transformation at each recursive split. Instead, it represents these transformations lazily, shows that they compose into base- digit reversal, and fuses that permutation with the ownership change between the two top-level FFT groups.
Several lines of work reduce communication under different numerical, distributional, or practical contracts. Approximate distributed transforms use low-rank structure or oversampling to reduce global communication [7, 18]. Exact cyclic-to-cyclic multidimensional FFTs can also use a single all-to-all exchange [12]; unlike PACO, they retain cyclic ownership rather than returning a factor-swapped slab distribution. Other multidimensional FFT frameworks optimize decomposition choices, transpose order, communication overlap, or MPI datatype-based redistribution [1, 5, 6, 14, 17]. They target practical multidimensional performance and do not establish PACO's processor-local ideal-cache bound or its fused digit-reversal-permutation guarantee.
Finally, Hong and Kung introduced the red-blue pebble framework for FFT I/O lower bounds [9], while Ranjan, Savage, and
Zubair established FFT-DAG boundary results used by our local-cache lower bound [15]. BSP and distributed-memory lower-bound work also gives communication lower bounds for FFT computation under broader schedule classes [3, 16]. PACO's claims are more specific: one redistribution is necessary under its owner-computes and no-replication assumptions (Proposition 3), and its migration bound is scoped as in the Scope of optimality paragraph of Sect. 2.
5.4 Discussion: Ownership, Permutations, and Composition
PACO's factor-swapped output ownership is an explicit interface contract, rather than an omitted cost. The sole redistribution changes from input-column slabs indexed by the field to output-column slabs indexed by the field, exactly as required to make every second-phase length- transform local.
This contract can nevertheless be useful when subsequent computation can consume the factor-swapped frequency view directly. More importantly for the present result, it separates two issues that are often conflated: the global ownership change required by the Cooley–Tukey dependency structure, and the local layout changes introduced by cache-oblivious recursion. PACO shows that, for the stated slab decomposition, the latter need not cause an additional redistribution: their complete base- digit reversal can be fused into the former. The resulting middle stage remains a balanced all-to-all, with every source–destination pair carrying exactly items.
5.5 Limitations
PACO assumes a fixed power-of-two radix and exact divisibility: , with , and aligned to the base- slab decomposition. Arbitrary sizes and processor counts require an imbalance analysis. The algorithm returns canonical coefficient indices under factor-swapped ownership; restoring the original ownership may require another redistribution. The present analysis is limited to one-dimensional slab decompositions, rather than pencil or block distributions. Finally, it assumes homogeneous ideal-cache and BSP parameters and excludes arithmetic recomputation from its work and cache optimality claims.
5.6 Conclusion
PACO shows that cache-oblivious local FFT execution and a one-redistribution parallel organization can coexist when recursive layout changes are represented lazily and fused with the unavoidable ownership change. Under the stated contract, it achieves optimal maximum per-processor work and cache complexity, uses the minimum number of global redistribution rounds, and attains the exact migration cost of its prescribed fused permutation. Extending these guarantees to more general ownership distributions and processor configurations remains open.
References
[1] Alan Ayala, Stanimire Tomov, Azzam Haidar, and Jack Dongarra. 2020. heFFTe: Highly Efficient FFT for Exascale. In Computational Science – ICCS 2020 (Lecture Notes in Computer Science, Vol. 12137). Springer, 262–275. doi:10.1007/978-3-030-50371-0_19
[2] David H. Bailey. 1990. FFTs in External or Hierarchical Memory. The Journal of Supercomputing 4, 1 (1990), 23–35. doi:10.1007/BF00162341
[3] Gianfranco Bilardi, Michele Scquizzato, and Francesco Silvestri. 2018. A Lower Bound Technique for Communication in BSP. ACM Transactions on Parallel Computing 4, 3, Article 14 (2018), 27 pages. doi:10.1145/3181776
[4] James W. Cooley and John W. Tukey. 1965. An Algorithm for the Machine Calculation of Complex Fourier Series. Math. Comp. 19, 90 (1965), 297–301. doi:10.1090/S0025-5718-1965-0178586-1
[5] Lisandro Dalcin, Mikael Mortensen, and David E. Keyes. 2019. Fast Parallel Multidimensional FFT Using Advanced MPI. J. Parallel and Distrib. Comput. 128 (2019), 137–150. doi:10.1016/j.jpdc.2019.02.006
[6] Truong Vinh Truong Duy and Taisuke Ozaki. 2014. A Decomposition Method with Minimum Communication Amount for Parallelization of Multi-Dimensional FFTs. Computer Physics Communications 185, 1 (2014), 153–164. doi:10.1016/j.cpc.2013.08.028
[7] Alan Edelman, Peter McCorquodale, and Sivan Toledo. 1999. The Future Fast Fourier Transform? SIAM Journal on Scientific Computing 20, 3 (1999), 1094–1114. doi:10.1137/S1064827597316266
[8] Matteo Frigo, Charles E. Leiserson, Harald Prokop, and Sridhar Ramachandran. 1999. Cache-Oblivious Algorithms. In Proceedings of the 40th Annual Symposium on Foundations of Computer Science. IEEE Computer Society, 285–297. doi:10.1109/SFFCS.1999.814600
[9] Jia-Wei Hong and H. T. Kung. 1981. I/O Complexity: The Red-Blue Pebble Game. In Proceedings of the 13th Annual ACM Symposium on Theory of Computing (STOC '81). Association for Computing Machinery, 326–333. doi:10.1145/800076.802486
[10] Márcia A. Inda and Rob H. Bisseling. 2001. A Simple and Efficient Parallel FFT Algorithm Using the BSP Model. Parallel Comput. 27, 14 (2001), 1847–1878. doi:10.1016/S0167-8191(01)00118-1
[11] S. Lennart Johnsson, Michel Jacquemin, and Robert L. Krawitz. 1992. Communication Efficient Multi-Processor FFT. J. Comput. Phys. 102, 2 (1992), 381–397. doi:10.1016/0021-9991(92)90380-H
[12] Thomas Koopman and Rob H. Bisseling. 2023. Minimizing Communication in the Multidimensional FFT. SIAM Journal on Scientific Computing 45, 6 (2023), C330–C347. doi:10.1137/22M1487242
[13] Charles F. Van Loan. 1992. Computational Frameworks for the Fast Fourier Transform. Frontiers in Applied Mathematics, Vol. 10. Society for Industrial and Applied Mathematics, Philadelphia, PA. doi:10.1137/1.9781611970999
[14] Dmitry Pekurovsky. 2012. P3DFFT: A Framework for Parallel Computations of Fourier Transforms in Three Dimensions. SIAM Journal on Scientific Computing 34, 4 (2012), C192–C209. doi:10.1137/11082748X
[15] Desh Ranjan, John E. Savage, and Mohammad Zubair. 2011. Strong I/O Lower Bounds for Binomial and FFT Computation Graphs. In Computing and Combinatorics: 17th Annual International Conference, COCOON 2011 (Lecture Notes in Computer Science). Springer. doi:10.1007/978-3-642-22685-4_12
[16] Michele Scquizzato and Francesco Silvestri. 2014. Communication Lower Bounds for Distributed-Memory Computations. In 31st International Symposium on Theoretical Aspects of Computer Science (STACS 2014) (Leibniz International Proceedings in Informatics (LIPIcs), Vol. 25). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 627–638. doi:10.4230/LIPIcs.STACS.2014.627
[17] Sukhyun Song and Jeffrey K. Hollingsworth. 2014. Designing and Auto-Tuning Parallel 3-D FFT for Computation-Communication Overlap. In Proceedings of the 19th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. ACM, 181–192. doi:10.1145/2692916.2555249
[18] Ping Tak Peter Tang, Jongsoo Park, Daehyun Kim, and Vladimir Petrov. 2012. A Framework for Low-Communication 1-D FFT. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC '12). IEEE Computer Society, 1–11. doi:10.1109/SC.2012.5
A Deferred Layout Algebra and Local FFT Correctness
This appendix formalizes the deferred-layout interpretation used by the local PACO FFT recursion. Its purpose is to prove that recursive transform splits do not materialize physical transposes, and that the resulting lazy layouts are precisely base-b digit reversals. In particular, we establish the two local operator identities used in Sect. 3:
The global materialization and redistribution of these layouts are handled separately in Appendix B.
A.1 Coordinate, Digit-Field, and Layout Conventions
Fix the constant radix . An -digit base-b string is written from most significant to least significant digit,
where ++ denotes digit-field concatenation: if U and V have lengths and , then is the -digit field whose digits in U are more significant than those in V.
For , the base-b digit-reversal permutation is
an involution: and . For a permutation , the physical-to-logical layout operator is ; thus, under layout , the value at physical position represents logical coordinate . Since digit reversal is an involution,
We distinguish throughout:
Physical digit slots: fixed base-b positions in the physical address of an item.
-
Logical transform-input digits: the input coordinate of an active local transform.
-
Logical output-frequency digits: a transform frequency coordinate after a child transform has completed.
• Batch digits: distinguish independent transform instances.
- Fixed digits: selected by a recursive batch branch and hence holding one fixed value within that branch.
A transform split may change the logical role of a physical digit slot (e.g. from a transform-input digit to an outer-batch digit); it never moves the item stored at that physical address.
A.2 Layout-Aware Twiddle Operator
Consider one local two-factor Cooley–Tukey split , , , , with and . Suppose that after the first child-transform group the physical coordinate represents the logical first-stage frequency . The twiddle multiplication must use this represented logical coordinate rather than :
Equivalently, the ordinary diagonal twiddle operator is conjugated by the current layout permutation and evaluated lazily from the view descriptor; no physical permutation is needed. The correctness of this lazy evaluation is established in Appendix A.7.
A.3 Admissible Digit-Field Views
Let be the digit labels of the physical base-b slots of a root local array (slot 0 least significant). A recursive view is a tuple :
T: ordered active transform digit field;
O: ordered list of active outer-batch digit fields;
C: distinguished contiguous batch field;
F: partial assignment from fixed digit labels to values in [b];
P: bijection from current digit labels to physical digit slots;
mode .
The active labels in , , and the fixed labels in are disjoint and cover the root digit labels. A label may be renamed when its logical role changes, but its physical slot under is unchanged. Let
so the view represents transforms of length ; a logical item has coordinate .
For a digit label , define . The active digits of occupy the least-significant contiguous physical interval, slots (fixed digits may occupy immediately higher slots without interrupting the remaining active interval). The address map is
For fixed , set ; then , so varying traverses a contiguous run.
Definition 6 (Admissible digit-field view). A view is admissible if: (1) its active and fixed labels partition the root digit slots; (2) P assigns each current label a unique physical slot; (3) the active digits of C form one least-significant contiguous interval; (4) its address map is (42); and (5) every logical coordinate maps to a distinct physical item.
LEMMA 7 (ACTIVE-RUN DECOMPOSITION). An admissible view with s transforms of length n is the disjoint union of ns/c contiguous physical runs, each of length c.
PROOF. There is one run per pair ; varying gives a consecutive interval of length . There are such pairs, and injectivity of the address map makes the intervals disjoint and covering.
The distinguished field C is retained to expose spatial locality even when the active transform field is strided; this is used by the cache analysis in Appendix C.
A.4 Legal View Operations
The scheduler uses outer-batch splits, contiguous-field splits, and transform splits. Batch splits partition batch instances into data-disjoint children; a transform split creates two sequential child groups reinterpreting the same parent working set.
Outer-batch split. If is selected, the -th child ( ) has , , , ; and mode are unchanged. The children are data disjoint.
Contiguous-field split. Used only when . Write with the most significant active digit of ; the -th child has , , , . The child width is , and still occupies the least-significant contiguous interval.
Transform split. Decompose with , , , , , and write . The first child group performs length- transforms over :
with transforms and inherited address map
After the first child completes, the slots formerly holding contain first-stage outputs; denote this physical field A. This is a semantic relabeling only:
In output-layout mode a physical coordinate of A represents . The second child group performs length- transforms over :
with transforms and address map
The field may be strided past the physical field A; P records this interpretation, and no exchange of the two fields is performed. The twiddle is fused into the first access of the corresponding second-child input, as in (41).
A.5 Closure Under Arbitrary Split Interleavings
THEOREM 8 (CLOSURE OF ADMISSIBLE VIEWS). Starting from an admissible root view, every finite sequence of legal outer-batch, contiguous-field, and transform splits produces admissible child views. Moreover: (1) active and fixed labels continue to partition the physical slots; (2) each label retains its physical slot under P, except for the semantic relabeling of a transform-input field as a transform-output field; (3) C remains one least-significant contiguous interval; (4) the children of every batch split are data disjoint and partition the parent address set; (5) each transform child group is a bijective reindexing of the complete parent working set; and (6) invariant (42) is preserved under arbitrary interleavings.
PROOF. Induction on the number of operations; the base case is Definition 6. An outer-batch split moves one digit from O to F with a fixed value, leaving T, C and all physical slots unchanged, and its b values partition the parent batch. A contiguous-field split moves the most significant digit of C to F; the remaining active digits still form the least-significant interval, and the b values partition every run into b subruns. A transform split has child maps (44) and (47), each a bijective reindexing of the parent set; it does not change F or the slots of C, and the relabeling preserves slots by (45). Thus every operation preserves Definition 6.
The fixed assignment is necessary because batch and transform splits can interleave. For example, with physical digit order and , , , , a contiguous-field split fixing gives , ; splitting makes the second child's transform field with outer-batch field ; a later batch split fixing yields , , , , . Although the fixed slots need not be adjacent, varying still traverses a contiguous run—exactly the information recorded by and .
A.6 Transform Splits Are View Transformations
THEOREM 9 (NO PHYSICAL TRANSPOSES INSIDE A LOCAL TRANSFORM). No transform split in the local PACO recursion materializes a physical permutation. The transition from the first child group to the second changes only (1) the logical role of the physical slots, renamed as A; (2) the active transform field, from to ; and (3) the descriptor P. All items remain in their original physical positions.
PROOF. The child maps (44) and (47) refer only to physical addresses of the parent. The first child overwrites each parent item with its first-stage result; relabeling preserves positions by (45); the second child accesses the inherited slots through view-defined strides while treating A as outer-batch. Hence no address-to-address copy, transpose, or recursive layout permutation occurs, and the argument applies recursively at every transform-split node.
The only physical digit permutation in the complete PACO execution is the fused middle permutation of Sect. 4.2 and Appendix C.5; the macro-element digit reversals used there are components of that single materialization, not recursive transposes.
A.7 Output-Layout Local FFT Correctness
Let a view contain data-disjoint transforms of length , and for batch instance let .
THEOREM 10 (OUTPUT-LAYOUT LOCAL FFT IDENTITY). For every the output-layout traversal implements ; equivalently, for a physical output coordinate , .
PROOF. Induction on . For there is no transform coordinate; for the routine performs one base- DFT and . Let and split , , . The first child computes, for each ,
so by induction its physical coordinate represents : . Applying the twiddle, , gives
CO-BATCHED-FFT(V)
1
2
3 if and base case
4 invoke the constant-size natural-order DFT kernels
5 return
6 if batch split
7 if
8 choose an active outer-batch digit
9 else
10 choose the most significant active digit
11 for to
12 CO-BATCHED-FFT(BATCH-CHILD(V, d, r))
13 return
// transform split
14 split with
15
16 CO-BATCHED-FFT( )
17 relabel the completed physical -field as output field A
18
19 fuse layout-aware twiddles into the first accesses of
20 CO-BATCHED-FFT( )
Figure 2: Cache-oblivious batched local FFT scheduler. The operations BATCH-CHILD, FIRST-TRANSFORM-CHILD, and SECOND-TRANSFORM-CHILD are the admissible view operations defined in Appendix A.
The second child computes, for each , . Substituting (48) and the twiddle,
Using and , the three factors combine into . Adjoining the cross term completes the exponent, so
which, as ranges over , is the length- DFT at frequency . By (49) the second child's input for fixed physical is ; by induction its physical output coordinate represents , whence
Finally, the parent physical coordinate has digit string (digits of ) + (digits of ), so ; combining with (51) yields .
A.8 Input-Layout Local FFT Correctness
THEOREM 11 (INPUT-LAYOUT LOCAL FFT IDENTITY). For every the input-layout traversal implements . In particular, if , then .
PROOF. The input-layout traversal uses digit-reversed entrance and exit interpretations, so . By Theorem 10 and (40), , hence . The two occurrences of are view interpretations, not runtime physical permutations.
A.9 Local Correctness Summary
COROLLARY 12 (BATCHED LOCAL FFT OPERATORS). For independent transforms of length , the output- and input-layout traversals implement and , respectively.
PROOF. Theorem 8 preserves data disjointness across batch instances; applying Theorems 10 and 11 per instance gives the Kro-necker forms.
Consequently, Phase I invokes (physical row represents ); the fused middle stage materializes , converting the Phase-I output layout into the Phase-III input layout; and Phase III invokes , producing natural-order coefficients as used in Theorem 3.
B Cache-Oblivious Batched Local FFT
This appendix supplies the complete scheduler and the rigorous cache analysis underlying Proposition 1 of the main text. The scheduler operates on the admissible digit-field views defined in Appendix A.
Consider an admissible view
Let
where n is the transform length, s is the number of batched transforms, and c is the width of the distinguished contiguous batch field. We call the product
the mass of the view; it is the number of items in its working set. The scheduler is independent of the cache parameters M and B.
B.1 Scheduler Pseudocode
Figure 2 realizes the scheduler described in the main text: it invokes a constant-size kernel at the leaves, performs a batch split when (splitting an outer-batch digit whenever one is available, and the distinguished contiguous field only otherwise), and performs a balanced digit-aligned transform split when s < n.
The transform split in Figure 2 is only a recursive view transformation: by the no-physical-transpose property of Appendix A, the first recursive call computes the first-stage transforms, the physical -slots are then relabeled as the output field A, and the second call treats A as an outer-batch field. The layout-aware twiddle is evaluated from the logical coordinates of the current view and fused into the second child group, so the scheduler introduces no separate recursive twiddle pass or physical transpose.
B.2 Local Work Bound
PROPOSITION 7 (LOCAL WORK). For s transforms of length , the scheduler performs
local operations.
PROOF. We separate the scheduler work into three parts: (i) constant-size leaf DFT work, (ii) fused twiddle and transform-split control work, and (iii) batch-split control work.
Fix one of the logical transforms at the root. Ignore batch splits momentarily: they only partition the collection of independent transforms and never alter the Cooley–Tukey recursion followed by an individual transform. Whenever a transform subproblem of length is split into factors and , where , the first child evaluates the radix- FFT levels associated with the first factor and the second child evaluates the levels associated with the second factor. Thus, over the complete transform recursion, the transform dependencies of the fixed logical transform contain exactly radix- levels, up to a constant factor depending only on the constant-size leaf convention.
At each radix-b level, every item participates in fixed-radix butterfly and twiddle operations. The twiddle of a transform split is fused into the first access of the corresponding second child group, but it is still charged to that same FFT level. Hence one logical transform incurs leaf, butterfly, and twiddle work. Summed over all s transforms,
It remains to bound scheduler overhead. A batch split performs only descriptor and loop-control work per child. Its b children partition the parent batch instances, and . Therefore, over all batch-only recursion nodes associated with any fixed transform subproblem, the total administrative work is linear in the number of batch instances represented by that subproblem. Summing over the transform recursion gives additional work. The constant-size leaf calls also contribute work. Consequently,
Finally, Appendix A proves that transform splits are view transformations rather than physical transposes; thus no additional data-rearrangement pass is incurred at each recursive transform split.
B.3 Recursion Depth and Stack Space
LEMMA 13 (RECURRESION DEPTH). Along every root-to-leaf path, the scheduler performs
transform splits and
batch splits. Hence its total recursion depth is .
PROOF. Let be the number of active transform digits. A balanced transform split leaves either or transform digits in a child. Repeated balanced splitting therefore reaches a constant-size transform after transform splits, which gives (55).
Every batch split fixes one active batch digit. Initially there are batch digits. A transform split may move transform digits into an outer-batch field, but along one root-to-leaf path the total number of such transferred digits is at most . Thus no more than active batch digits can be fixed, proving (56). Summing the two bounds gives the depth bound.
COROLLARY 14 (STACK SPACE). The scheduler uses words of recursion-stack space.
PROOF. Each stack frame stores only a constant number of field descriptors, fixed-digit assignments, loop counters, and mode bits. The result follows from Lemma 13.
B.4 Analytical Cache-Fitting Frontier
We now analyze cache complexity. The following frontier is used only in the proof; the scheduler never tests M, B, or the cache-fitting condition.
Fix a sufficiently small constant , and define . A view is cache fitting if its mass satisfies
A maximal cache-fitting view is either the root, when the root is cache fitting, or a cache-fitting view whose parent is not cache fitting. Its purpose is to identify subproblems whose complete descendant execution can remain resident in the ideal cache; the scheduler continues recursively below the frontier, and the frontier merely groups that descendant work for analysis.
We record the mass behavior of the two split types, used repeatedly below. A batch split partitions the batched transforms into data-disjoint children, so the child masses sum to the parent mass . A transform split produces child groups with parameters and , each of mass
Thus a transform split preserves the mass of each child group.
B.5 Frontier Geometry
LEMMA 15 (FRONTIER ENTRY IS THROUGH A BATCH SPLIT). A non-cache-fitting view can first enter the cache-fitting region only through a batch split.
PROOF. A transform split preserves the mass of each child group, by (58), and therefore cannot turn a non-cache-fitting mass into a cache-fitting one. A batch split reduces the batch size of each child by a factor of b and can therefore produce a cache-fitting child.
LEMMA 16 (MASS OF A NONROOT FRONTIER VIEW). Every nonroot maximal cache-fitting view satisfies
PROOF. By Lemma 15, a nonroot maximal cache-fitting view is created by a batch split. Its parent has the same transform length and times as many batch instances. Since the child fits but the parent does not, and , which is equivalent to (59).
B.6 Contiguous Width at the Frontier
LEMMA 17 (CONTIGUOUS WIDTH AT THE FRONTIER). Suppose the root view has initial contiguous width . Then every maximal cache-fitting view has
PROOF. If the distinguished field is never split on the root-to-frontier path, then its width remains .
Otherwise, consider the last split of before the frontier view, and let denote the child width immediately after that split. The parent width was . Since the scheduler splits only when , the parent batch size was also , and the batch-split condition gives at that split. If the resulting child is already cache fitting, its parent is not, so ; if the child is not yet cache fitting, then . In either case
a bound stronger than (60); only (60) is used downstream. Subsequent outer-batch and transform splits do not change , and the tall-cache assumption turns (61) into (60).
B.7 Transform Length and Number of Transform Splits
LEMMA 18 (TRANSFORM-BATCH RELATION). There is a constant , depending only on the fixed radix b, such that every view reached after at least one transform split satisfies
PROOF. Suppose a transform split is applied to a view with and . The balanced digit-aligned split satisfies . For the first child the transform length is and the batch size is ; since ,
The second child is symmetric, . Thus both immediate children satisfy (62) with . A later batch split decreases without changing , while a later transform split re-establishes the same inequality for its children. The claim follows by induction along the recursion path.
LEMMA 19 (TRANSFORM LENGTH AT THE FRONTIER). Let a nonroot maximal cache-fitting view be reached along a path containing at least one transform split. Then
PROOF. By Lemma 16, , and by Lemma 18, . Hence , which proves (63).
We index transform splits by their output length: let be the root transform length, and let denote the transform length of the active child group immediately after the j-th transform split on a root-to-frontier path.
LEMMA 20 (TRANSFORM-SIZE SHRINKAGE). For every ,
Hence, after K transform splits,
PROOF. If the length before the -th split is , the larger child contains at most transform digits, so , which is (64). Iterating from gives , and in particular (65).
LEMMA 21 (NUMBER OF TRANSFORM SPLITS BEFORE THE FRONTIER). If K is the number of transform splits on a root-to-frontier path, then
PROOF. The claim is immediate when , so assume . By Lemma 19 the frontier transform length satisfies for a constant depending only on and . Combining this with (65),
Taking base-2 logarithms,
For M larger than a suitable constant the right-hand side is at least , so
i.e. . In the remaining regime , one has , and only balanced transform splits can occur before the transform length becomes constant, so . The two cases give (66).
B.8 Block Cover of a Frontier View
LEMMA 22 (BLOCK COVER OF ONE FRONTIER VIEW). A maximal cache-fitting view of mass ns intersects
cache blocks. Its complete depth-first descendant execution incurs the same asymptotic number of cache misses.
PROOF. By the active-run decomposition of Appendix A, the view is the disjoint union of ns/c contiguous runs of length c. Therefore its block footprint is at most
where the third equality uses from Lemma 17, which gives .
Every descendant of the frontier view accesses only items in the frontier view's working set: batch splits select subsets of its runs, contiguous-field splits subdivide those runs, and transform splits reinterpret the same addresses through sequential child groups. Moreover the view contains at most items; choosing sufficiently small ensures that its block footprint, together with constant recursion metadata, fits in cache. Under depth-first execution these blocks can remain resident while the complete descendant computation is performed. Hence (67) also bounds the descendant cache cost.
B.9 Total Frontier Mass
LEMMA 23 (TOTAL FRONTIER MASS). Suppose every root-to-frontier path contains at most K transform splits. Then the sum of the masses of all maximal cache-fitting views is at most ns .
PROOF. We prove the more general statement that a recursion subtree rooted at a view of mass , with at most remaining transform splits on each path, has total frontier mass at most .
If the root of the subtree is cache fitting, it is itself a frontier view and contributes mass .
If the root performs a batch split, the child masses sum to ; applying the induction hypothesis to every child gives total frontier mass at most .
If the root performs a transform split, both child groups have mass by (58), and each has at most remaining transform splits. Their combined frontier mass is therefore at most .
Applying the claim at the original root proves the lemma. □
B.10 Cache Complexity
THEOREM 24 (CACHE COMPLEXITY OF THE BATCHED LOCAL FFT). Let an admissible root view contain s transforms of length n, with initial contiguous width . Under the tall-cache assumption , the scheduler incurs
cache misses.
PROOF. Let be the maximum number of transform splits on a root-to-frontier path. Lemma 21 gives , so by Lemma 23 the total mass of the maximal cache-fitting frontier is
By Lemma 22, a frontier view of mass costs cache misses. The additive constant is absorbed into the mass term: by Lemma 17 every frontier view has contiguous width , hence mass . Summing the cache costs over the frontier and using (69) gives (68).
B.11 Application to the Two PACO Local Phases
In Phase I, each processor performs transforms of length ; its initial contiguous batch field is precisely the local input slab, so
The slab-width assumption permits direct application of Theorem 24, yielding
Similarly, in Phase III each processor performs transforms of length , with
Since ,
Finally, . Adding (71) and (73), and absorbing the linear cache cost of the fused middle stage, gives
C Data Movement: Local Primitives and the Fused Redistribution
This appendix specifies the data-movement machinery used in Phases I–III. It first defines the local primitives—macro-element digit reversal, its destination-indexed fusion, and cache-oblivious rectangular transposition—and then composes them into the explicit per-processor procedure that realizes PACO's fused middle redistribution. The relevant permutations operate on contiguous macro-elements, not on individual scalars. The cache line size is B entries. In both local applications every macro-element spans at least one line: by the slab-width conditions (5) the two uses below have macro-element length and , respectively, and both are .
Sections 3.3 and 4.2 already established the fused middle stage at the level needed for the main result: its coordinate trace (18), its end-to-end correctness (Theorem 3), its balanced migration counts, and its per-processor local cost (Theorem 4). The second half of this appendix supplies the single deferred component, namely the explicit cache-oblivious procedure that realizes the mapping, together with (i) a line-by-line correctness argument and (ii) the workspace and transpose-aggregation accounting promised in Sect. 4.2. It reuses the source ownership (1), the factor-swapped target ownership (3), the Phase-I identity , the digit-reversal notation of Appendix A.1, and the slab-width conditions (5).
C.1 Macro-Element Digit Reversal
Let the array hold contiguous macro-elements, each of length ; write (the count of macro-elements, distinct from the global ). For with base- digits , the digit-reversal permutation is , an involution, so every orbit is a fixed point or a two-cycle. For the array , the desired rearrangement is
Since is an involution, (75) is realized in place by exchanging the two macro-elements of each nontrivial two-cycle; the condition selects one representative per two-cycle.
MACRO-DIGIT-REVERSAL(X, n, s)
1 ; reverse the contiguous macro-elements
2 for to
3 if
4 for to
5
LEMMA 25 (CORRECTNESS). The procedure MACRO-DIGIT-REVERSAL implements (75).
PROOF. If , the macro-element is a fixed point and left unchanged, agreeing with (75). Otherwise lies in the two-cycle , and exactly one member satisfies ; when processed, the two macro-elements are exchanged entry by entry, so afterward for both members. Every non-fixed macro-element is exchanged exactly once.
LEMMA 26 (COST). If , the procedure MACRO-DIGIT-REVERSAL has local work and cache complexity , using auxiliary scalar storage.
PROOF. Each macro-element is scanned at most once, giving scalar reads and writes. Each contiguous segment of entries costs misses, and neither member of a two-cycle is revisited after its exchange; summing over macro-elements gives . One temporary scalar suffices.
C.2 Fusing Destination-Indexed Unary Operations
A macro-element rearrangement may be fused with a unary operation whose coefficient depends on the destination. Let be the coefficient applied to the entry written to ; the fused transformation is
For a nontrivial two-cycle , , , the writes are and ; for a fixed point, .
FUSED-MACRO-DIGIT-REVERSAL(X, n, s, g)
1 for i = 0 to n - 1 2 if i < 3 for j = 0 to s - 1 4 x = X[i, j] 5 y = X[ , j] 6 X[i, j] = g(i, j) · y 7 X[ , j] = g( , j) · x 8 else if i == 9 for j = 0 to s - 1 10 X[i, j] = g(i, j) · X[i, j]
LEMMA 27 (CORRECTNESS). The procedure FUSED-MACRO-DIGIT-REVERSAL implements (76).
PROOF. For a nontrivial two-cycle the two writes place each old macro-element at its digit-reversed destination and scale by the destination-indexed coefficient; for a fixed point the update is exactly (76). As in Lemma 25, every two-cycle is processed once.
COROLLARY 28 (COST OF FUSED REARRANGEMENT). If and evaluating takes work, the procedure FUSED-MACRO-DIGIT-REVERSAL has local work and cache complexity .
PROOF. The fused operation adds arithmetic per entry to the scans of Lemma 26, with neither an extra traversal nor extra storage.
Application to twiddle multiplication. In the middle stage the destination-indexed operation is twiddle multiplication: with destination macro-element index v and within-element (local) coordinate , , where is the global column. Hence twiddles are applied when an entry is written to its destination; no separate pass is required.
C.3 Use in Phases I and III
Both local reversals are covered by Lemma 26 and Corollary 28 with a single parameterized statement. In Phase I and III each processor reverses macro-elements of length ; by condition (5), , so rearranging the macro-elements costs work and misses. Instantiating (Phase I) and (Phase III), with and respectively, gives work and misses per reversal. The macro-element length lower bound is exactly what ensures spatial locality, so no cache-oblivious traversal of a scalar digit-reversal permutation is needed.
C.4 Local Rectangular Transposition
After communication, each received block is a rectangle of dimensions
PACO transposes it with the cache-oblivious rectangular-transpose algorithm of Frigo et al. [8], whose standard bound is: transposing an rectangle takes work and misses. For a block of dimensions (77) this is
and the reusable transpose workspace is entries.
This subsection is the single source for the per-block transpose accounting; its aggregation over the p blocks of a processor is carried out in Appendix C.7 (and used in Theorem 4).
C.5 The Per-Processor Fused Redistribution Procedure
Processor enters the middle stage owning an Phase-I slab . The procedure PARA-Co-DRP composes the three primitives above: it packs the slab by reversing the -field (Appendix C.1) while fusing the top-level twiddle (Appendix C.2), exchanges one balanced set of blocks in a single BSP -relation, transposes each received block cache-obliviously (Appendix C.4), and unpacks by reversing the -field. Each field reversal is an in-place sequence of contiguous macro-element swaps; the fused twiddle multiplication is folded into the packing scan, costing no separate pass.
PARA-Co-DRP (X , Y , N , N , p, q)
// X is the local input array, Y is the output
// q is the local processor id
// Local pack: N -field reversal with the top-level twiddle
1 view X as N row macro-elements of length N /p
// g(v, c ) = , where c = q (N /p) + c (global column)
, N = N1N2
2 FUSED-MACRO-DIGIT-REVERSAL(X , N , N /p, g)
// One balanced BSP all-to-all exchange
3 partition the packed slab into blocks S of
shape (N /p) (N /p), q' [p]
4 place the self block S in its raw output region R
5 for q' = 0 to p - 1
6 if q' q
7 send S to raw region R on processor q'
// Local rectangular transpose of each received block
8 allocate or reuse one scratch array T of N/p items
9 for r = 0 to p - 1
10 CO-TRANSPOSE(R , T, N /p, N /p)
11 copy T to the output region Y
// Local unpack: N -field digit reversal
12 view the local array as N row macro-elements of length N /p
13 MACRO-DIGIT-REVERSAL(Y , N , N /p)
14 return the local N (N /p) target slab
The p raw incoming regions R . together form the mandatory target slab; the only auxiliary storage is the single transpose scratch T of N/p items.
C.6 Line-by-Line Correctness
We verify that the procedure PARA-Co-DRP realizes exactly the coordinate trace (18); the algebraic correctness of the whole pipeline then follows from Theorem 3.
LEMMA 29 (THE PROCEDURE IMPLEMENTS ). For an item stored at Phase-I physical coordinate on its source processor , write . Then PARA-Co-DRP places it at , i.e. , owned by .
PROOF. The row reversal moves the item to packed row with column unchanged; the fused scan forms (the local-pack step of Sect. 4.2). Decomposing identifies the unique destination , which is the owner under (3), so the item is assigned to block at block-local coordinate and routed to region on . Because raw regions are ordered by source processor, the pair recovers . The block transpose sends , and the -field reversal maps the reconstructed source row to , leaving intact. The result is precisely the trace (18); its owner is by (3).
By Lemma 29 the procedure PARA-Co-DRP produces, for each fixed , the local layout of (17): exactly the digit-reversed input layout consumed by . Hence the composition (10) of Theorem 3 applies verbatim, and PACO returns the canonical coefficients under the target ownership (3).
C.7 Cost and Workspace
Each primitive was costed in Appendices C.1–C.4. The two fused field reversals (packing macro-elements of length ; unpacking of length ) each cost work and misses by Corollary 27, since both macro-element widths are by (5); the fused twiddle adds arithmetic with no extra cache pass. The block transposes cost work and, by (74) together with , aggregate to misses. Summing reproduces (22)–(24). The only non-output workspace is one reusable -item transpose buffer plus recursion-stack words, giving (28); the balanced counts and are as in Theorem 4.
D Lower Bounds: Deferred Proofs
The main text establishes three of PACO's four lower bounds in full: the one-round redistribution bound (Proposition 3), the exact migration bound for the prescribed fused permutation (Proposition 4), and the maximum per-processor work bound (Proposition 5). The maximum per-processor cache lower bound (Proposition 6) was stated there with only a proof roadmap; its detailed segment argument is deferred to this appendix.
We import the FFT-DAG input-boundary theorem [15], convert boundary growth into block-cache misses, obtain a finite block-aware bound for a single radix-2 FFT DAG, extend it to disjoint batches, and specialize it to PACO's two local phases, completing Proposition 6. As a byproduct we also record a stronger constant-one asymptotic miss bound. Throughout, arithmetic vertices of the fixed-radix Cooley-Tukey DAG are never recomputed.
REMARK 1 (FIXED-RADIX SCOPE). Let , . If every radix-b butterfly is expanded into its constituent radix-2 layers, the resulting dependency graph is the standard radix-2 FFT DAG. Hence all lower bounds of this appendix—the single-transform bounds of Appendices D.3 and D.4, the batched bounds of Appendix D.6, and the PACO local bound of Appendix D.7—apply to the expanded fixed-radix DAG. If a complete radix-b DFT is instead treated as one indivisible atomic vertex, the graph structure and leading constants differ; that atomic model is outside the scope of these claims.
D.1 Imported FFT-DAG Input-Boundary Theorem
Let denote the radix-2 FFT DAG on inputs; it has levels of vertices and noninput computation vertices. For a set of noninput vertices, its input boundary is
THEOREM 30 (FFT INPUT-BOUNDARY GROWTH). For every integer , every set of noninput vertices of with satisfies .
Theorem 30 is imported from the boundary-growth literature [15]; we use only its graph-theoretic consequence.
D.2 From Input Boundaries to Block Cache Misses
LEMMA 31 (INPUT BOUNDARY TO BLOCK-CACHE MISSES). Consider one contiguous segment of a legal schedule, and let U be the set of previously uncomputed FFT vertices evaluated during it. If , the segment incurs at least cache misses, where .
PROOF. At the start of the segment at most items reside in cache, so at most of the required boundary values are resident; at least are absent when . Each miss loads one block of at most items and thus supplies at most missing values, so at least misses are required when , and zero otherwise.
Lemma 31 permits a strong algorithmic model: the algorithm may know M and B, choose arbitrary slow-memory layouts, pack B useful values per loaded block, keep the most useful M values in cache, and maintain multiple slow-memory copies. None of these eliminates the need to load a block when a required boundary value is absent.
D.3 Finite Block-Aware Lower Bound for One FFT DAG
THEOREM 32 (FINITE BLOCK-AWARE CACHE LOWER BOUND). For every integer k > M, every no-recomputation topological schedule of satisfies
PROOF. Partition the schedule into consecutive complete segments, each computing exactly previously uncomputed vertices (ignore a final incomplete segment). Since has noninput vertices, there are at least complete segments. Each has by Theorem 30 and thus at least misses by Lemma 31; disjoint segments add.
D.4 A Stronger Constant-One Asymptotic Bound
This subsection is not needed for PACO's upper-bound proof; it records the stronger miss-only bound noted in the main text. Let satisfy
choose , and assume additionally
THEOREM 33 (ASYMPTOTIC CONSTANT-ONE CACHE LOWER BOUND). Under (81)–(82), every no-recomputation schedule of satisfies .
PROOF. Substitute into Theorem 32; by (82) the floor, ceiling, and final incomplete segment are lower-order, so
The choice of gives , while gives ; finally .
Thus the normalized miss-only lower-bound constant is at least ; this does not assert that PACO or any known schedule attains an upper bound of the form .
D.5 Disjoint Unions of FFT DAGs
Let be the disjoint union of radix-2 FFT DAGs of length .
LEMMA 34 (BOUNDARY GROWTH FOR DISJOINT BATCHES). For every integer , every set U of noninput vertices of with satisfies .
PROOF. Contrapositive. Let and , so . Suppose . For every nonempty , , and the contrapositive of Theorem 30 with parameter gives . Since , and , so . Summing, . As for , .
The constant 4 is chosen for a uniform statement and is not claimed tight.
D.6 Cache Lower Bound for a Batch of Local FFTs
THEOREM 35 (FINITE LOWER BOUND FOR A BATCH OF FFTs). Let one processor evaluate s data-disjoint length-n radix-2 FFT DAGs without recomputation. For every integer k > M,
PROOF. The disjoint union has noninput vertices. Partition into complete segments of previously uncomputed vertices; Lemma 34 gives per segment, and Lemma 31 gives misses each. Sum over segments.
COROLLARY 36 (ASYMPTOTIC BATCHED LOWER BOUND). There are universal constants with
If the cache is initially empty, or if for a sufficiently large universal constant , then .
PROOF. Take in Theorem 35. Then , and , , so . Hence
Write . Using and (the product bound holds trivially when , since the left side is nonnegative),
For we have , so by the change of base ,
This gives the stated bound with and :
Independently, the inputs are distinct, so with at most initially resident, . Combining via gives (84). If the cache is empty the compulsory scan contributes ; if the linear term absorbs the term.
D.7 Application to PACO Local FFT Phases
In Phase I every processor evaluates data-disjoint transforms of length ; in Phase III it evaluates of length . Both batches have size .
THEOREM 37 (PACO LOCAL CACHE LOWER BOUND). Under the exact slab decomposition and no arithmetic recomputation, PACO's two local FFT phases satisfy , and hence so does the complete PACO execution.
PROOF. Fix the constant of Corollary 36 (playing the role of the constant in the Proposition 6 roadmap).
Large-cache case . Applying Corollary 36 to each phase gives and ; the phases run sequentially and , so their bounds sum to the claim.
Small-cache case . This is exactly the elementary case of the Proposition 6 roadmap: and give , hence and ; Phase I begins with an empty cache and touches distinct inputs, incurring .
The exact slab decomposition assigns identical batch sizes to every processor, so the bound holds for the maximum per-processor cost; the fused middle stage can only add misses.