arXiv:2608.26220cs.ARAug 2026

Manuscript Offprint

arXiv:2608.26220

MeshReduce-U: Compiler-Guided Communication Reduction for Irregular Neural Reductions on Mesh NoCs

Amirreza Khorasanian

Abstract

Many irregular neural workloads induce skewed many-to-one reductions with repeated neighborhoods and nonlocal communication. Conventional NoC mappers optimize placement and routes for a fixed communication graph, even though associative reductions expose legal opportunities to eliminate traffic before routing. We present MeshReduce-U, a compiler-guided communication-reduction and routing framework for mesh-NoC-based spatial accelerators. MeshReduce-U coalesces colocated sources, forms local aggregation islands, blocks channels with compatible fan-in structure, selects capacity-feasible sinks, and routes the remaining fixed-width carriers using fused usage-aware costs. A deterministic route-replay model reports schedule-derived communication latency, total link usage (TLU), and fused link usage (FusedTLU) separately. Across a 20-workload lowerable neural-network zoo, MeshReduce-U reduces mean latency, TLU, and FusedTLU by 40.3%, 56.0%, and 48.7%, respectively, relative to an ABC-style source-aggregation baseline, improving all three metrics on every workload. Across 40 synthetic irregular reductions, it reduces mean latency and TLU by 12.3% and 19.7%. A new 30-instance pass-by-pass study further shows that the structural rewrites reduce the global carrier count by 60.9% and replay latency by 63.0%. These results show that rewriting reducible neural communication before routing can be more effective than searching harder over an unreduced traffic graph.

Keywords: mesh NoC, neural-network mapping, communication reduction, irregular reductions, compiler optimization, spatial accelerators, graph algorithms.

1 Introduction

Communication is a first-order cost in spatial neural accelerators. Irregular workloads—including graph neural networks (GNNs), sparse feedforward networks, recurrent and gated models, random neural DAGs, and state-space-style models—produce many-to-one reductions with skewed fan-in, repeated neighborhoods, and nonlocal sources. Mapping every contribution as an independent transfer wastes link bandwidth and creates injection and hotspot pressure.

Most NoC mapping methods optimize a fixed communication graph: they move sinks, choose shorter paths, or reroute around congested links. For associative neural reductions, however, the graph itself is not immutable. Contributions originating at one tile can be combined locally; nearby sources can aggregate within a bounded island; and feature channels with the same fan-in pattern can share one block carrier. These transformations remove communication before global routes are chosen.

MeshReduce-U operationalizes this observation as a compiler pass. It first rewrites a lowered many-to-one reduction into fewer physical carriers, then performs capacity-aware sink placement and fused usage-aware routing. We report schedule-derived route-replay latency, ordinary TLU, and FusedTLU separately. This separation matters: route search may lower congestion by spending more links, whereas communication reduction can lower both usage and contention by removing carriers.

Although evaluated on a 2D mesh NoC, the abstraction also matches CGRA-like arrays in which compiler-placed tiles exchange fixed-width payloads over local links. The scope is deliberately layer-local and many-to-one.

Figure

Figure 1: MeshReduce-U compresses a legal reduction carrier graph before global placement and routing. The counts illustrate the running example with two compatible channels and four source occurrences per channel.

Whole-DAG residence, one-to-many fanout sharing, and steady-state initiation-interval optimization are outside this formulation.

Contributions. We provide: (1) a formulation that makes legal communication-graph rewriting part of NoC mapping; (2) a conservative stack combining source and island coalescing, feature blocking, usage-aware placement, and fused routing; (3) separate replay latency, TLU, and FusedTLU metrics; (4) a shared-model comparison on 40 synthetic reductions and a 20-workload neural zoo; and (5) a matched pass-by-pass ablation that isolates how the structural rewrites change carrier count and global NoC traffic.