Roofline-Guided Optimal Materialization vs. Recomputation in CPU Analytical and Numerical Pipelines

This preprint presents a hardware-parameterized, Roofline-guided theory and an exact O(LK) 1D dynamic programming (DP) optimizer for automatic materialization vs. recomputation in single-node CPU analytical and numerical pipelines. Classical rematerialization models treat runtime solely as compute cost, assuming recomputation always slows execution, whereas columnar engines rely on static fusion heuristics that ignore hardware ridge-point shifts. Our formulation unifies two-stage segment-sum Roofline execution costs with multi-stage prefix-recomputation DP by separating avoided DRAM reads (kappa_i), extra re-evaluation counts (gamma_i), cache hit ratios (alpha_i), auxiliary compressed reads (rho_i), and per-segment boundary overhead (tau), proving when recomputation strictly accelerates execution even under unconstrained memory (M_cap = infinity) with exact output equivalence. Key empirical results on an Intel Xeon Platinum 8481C with 144 MiB L3 eviction, unified -O3 -ffast-math builds, and a 4-way unrolled scan baseline:- 16/16 (100%) symmetric crossover prediction accuracy (R <= 64) with 0.0% P_peak ceiling exceedance across a 9.4x ridge-point shift between 256-bit AVX2 (beta = 10.26 FLOP/byte) and scalar (beta = 1.09 FLOP/byte) builds.- On a 16-stage heterogeneous-width (64/128 MiB) pipeline with mixed light/heavy dual-consumer boundaries (8/8 bitwise-exact PASS, n=7 median +/- IQR), Roofline-DP (151.22 +/- 0.66 ms) outperforms Mat-at-FanOut (1.34x, -50% written traffic), Greedy-SingleStage and All-Recompute (1.74x), All-Materialize (2.38x, -85% written traffic), and periodic heuristics (1.26-1.75x), with 17.4% 8-policy MAPE and exact M_cap budget enforcement (192 -> 128 MiB peak; INFEASIBLE at 100 MiB).- Across 10 fixed-seed (seed=42) randomized heterogeneous L=16 pipelines, Roofline-DP wins 8/10 vs. Mat-at-FanOut (1.13x geomean speedup) and 10/10 vs. Greedy (1.72x), All-Materialize (1.70x), and All-Recompute (1.78x).- Supplementary cold-DRAM checks confirm -46.7% (-192.0 MiB) isolated OS peak RSS reduction and 1.85-2.32x speedups on real 4-bit Frame-of-Reference and 8-bit dictionary columnar codecs. Files included: Final manuscript PDF (roofline_materialization_recomputation.pdf) and LaTeX source (roofline_materialization_recomputation.tex).

Authors

Publication Details

Journal
Figshare
Published
2026-11-30
DOI
https://doi.org/10.6084/m9.figshare.35165566
Primary Topic
Parallel Computing and Optimization Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Roofline-Guided Optimal Materialization vs. Recomputation in CPU Analytical and Numerical Pipelines

Hae Gyu Kim
Figshare
Parallel Computing and Optimization Techniques
preprint

Roofline-Guided Optimal Materialization vs. Recomputation in CPU Analytical and Numerical Pipelines

Hae Gyu Kim
preprint en

Abstract

This preprint presents a hardware-parameterized, Roofline-guided theory and an exact O(LK) 1D dynamic programming (DP) optimizer for automatic materialization vs. recomputation in single-node CPU analytical and numerical pipelines. Classical rematerialization models treat runtime solely as compute cost, assuming recomputation always slows execution, whereas columnar engines rely on static fusion heuristics that ignore hardware ridge-point shifts. Our formulation unifies two-stage segment-sum Roofline execution costs with multi-stage prefix-recomputation DP by separating avoided DRAM reads (kappa_i), extra re-evaluation counts (gamma_i), cache hit ratios (alpha_i), auxiliary compressed reads (rho_i), and per-segment boundary overhead (tau), proving when recomputation strictly accelerates execution even under unconstrained memory (M_cap = infinity) with exact output equivalence. Key empirical results on an Intel Xeon Platinum 8481C with 144 MiB L3 eviction, unified -O3 -ffast-math builds, and a 4-way unrolled scan baseline:- 16/16 (100%) symmetric crossover prediction accuracy (R <= 64) with 0.0% P_peak ceiling exceedance across a 9.4x ridge-point shift between 256-bit AVX2 (beta = 10.26 FLOP/byte) and scalar (beta = 1.09 FLOP/byte) builds.- On a 16-stage heterogeneous-width (64/128 MiB) pipeline with mixed light/heavy dual-consumer boundaries (8/8 bitwise-exact PASS, n=7 median +/- IQR), Roofline-DP (151.22 +/- 0.66 ms) outperforms Mat-at-FanOut (1.34x, -50% written traffic), Greedy-SingleStage and All-Recompute (1.74x), All-Materialize (2.38x, -85% written traffic), and periodic heuristics (1.26-1.75x), with 17.4% 8-policy MAPE and exact M_cap budget enforcement (192 -> 128 MiB peak; INFEASIBLE at 100 MiB).- Across 10 fixed-seed (seed=42) randomized heterogeneous L=16 pipelines, Roofline-DP wins 8/10 vs. Mat-at-FanOut (1.13x geomean speedup) and 10/10 vs. Greedy (1.72x), All-Materialize (1.70x), and All-Recompute (1.78x).- Supplementary cold-DRAM checks confirm -46.7% (-192.0 MiB) isolated OS peak RSS reduction and 1.85-2.32x speedups on real 4-bit Frame-of-Reference and 8-bit dictionary columnar codecs. Files included: Final manuscript PDF (roofline_materialization_recomputation.pdf) and LaTeX source (roofline_materialization_recomputation.tex).

Figshare
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
Roofline-Guided Optimal Materialization vs. Recomputation in CPU Analytical and Numerical Pipelines — Hae Gyu Kim · Figshare (2026) | TGRS Research Map | TGRS