Evolutionary Mapping of Neural Networks to Spatial Accelerators

Alessandro Pierro, Jonathan Timcheck, Jason Yik, Marius Lindauer, Eyke Hüllermeier, Marcel Wever

TL;DR

This paper introduces the first hardware-in-the-loop evolutionary mapping framework designed to automatically partition and place neural networks onto neuromorphic spatial accelerators. Tested on the Intel Loihi 2 chip, this black-box optimization approach bypasses the need for expert-crafted analytical models, achieving up to a 35% reduction in latency and a 40% boost in energy efficiency compared to standard heuristics.

What Problem Does This Paper Address?

Spatial accelerators—like Google TPUs, Cerebras Wafer-Scale Engines, and neuromorphic chips like Intel Loihi 2—consist of a 2D mesh of interconnected, distributed compute-memory cores. They are highly efficient for running sparse neural networks, but maximizing their performance requires solving a massive combinatorial challenge: mapping.

Mapping consists of two tightly coupled steps:

  1. Partitioning: Deciding how to split a network's layers or neurons into core-sized pieces.
  2. Placement: Deciding exactly where to place these pieces on the physical 2D hardware mesh.
Figure 1: Partitioning and placement of a neural network to a 2D mesh of cores, interconnected by a network-on- chip. Layer 1 (orange) is partitioned to four different cores (squares), connected via routers (circles). The activations from each layer are forwarded through the routers and links.

Currently, developers rely on manual heuristics or rigid analytical models to handle this mapping. However, these methods struggle with dynamic workload variations (such as changing activation sparsity) and hardware heterogeneity. If a mapping is slightly off, it can cause severe routing congestion or synchronization bottlenecks, tanking performance.

Methods

The authors frame mapping as a black-box optimization problem and solve it using a bilevel, nested evolutionary algorithm (EA).

Instead of optimizing partitioning and placement independently, the algorithm optimizes them in a nested loop: the upper level optimizes the network partitioning, while the lower level optimizes the physical placement for that specific partitioning.

Key components of their approach include:

  • Decoupled Genetic Representation: Partitioning is represented as an integer vector indicating extra core allocations per layer, ensuring global core budgets are always respected. Placement is represented as a permutation of physical core locations.
  • Hardware-in-the-Loop Evaluation: Instead of relying on flawed simulators, the framework compiles and executes candidate mappings directly on actual Intel Loihi 2 hardware to measure true end-to-end latency.
  • Reordering Operator: When the upper-level algorithm alters a network's partitioning, a custom reordering operator aligns the old placement to the new partitioning. This preserves learned spatial locality patterns across generations rather than destroying them.

Datasets

The framework was evaluated using two sparse Multi-Layer Perceptron (MLP) workloads designed to mimic real-world neuromorphic workloads:

  • SparseMLP-1: A 6-layer MLP with 16.8 million parameters and hidden dimensions ranging from 512 to 4096.
  • SparseMLP-2: A 12-layer MLP with 33.6 million parameters and hidden dimensions ranging from 1024 to 4096.

Both workloads feature 85% unstructured weight sparsity, with activation sparsity increasing linearly from 15% in the first layer to 80% in the final layer.

Key Insights and Ideas

  • The Placement Variance Trap: The authors discovered that evaluating a partitioning scheme based on a single random placement is highly misleading. As shown in the paper's analysis, the exact same partitioning can exhibit massive latency variance depending solely on how it is physically arranged on the chip. This justifies the necessity of their bilevel optimization approach.
  • Latency Optimization is Energy Optimization: Even though the evolutionary algorithm only optimized for latency, it achieved massive energy savings (up to 41.4%). On SRAM-based neuromorphic hardware like Loihi 2, static power dominates. Therefore, minimizing execution time naturally minimizes total energy draw.
  • Divide and Conquer for Multi-Chip Scalability: When scaling to multi-chip systems, a "global" strategy that treats all cores across chips as a single pool performs poorly due to the exploded search space. Instead, a "chip-wise" strategy—segmenting the workload across chips first and then optimizing each chip individually—yielded significantly better results.

Key Results

  • Single-Chip Performance: On the SparseMLP-1 workload running on a single Loihi 2 chip, the nested EA reduced latency to 19.36 $\mu$s, a 35.8% improvement over the best expert-designed heuristic (packed row-major).
  • Multi-Chip Performance: For the larger SparseMLP-2 workload deployed across two chips, the chip-wise evolutionary strategy successfully navigated the massive search space to outperform global mapping alternatives.
  • Practical Overhead: Each fitness evaluation took roughly 5 seconds, leading to a total evolution time of about 10 minutes. This makes the framework highly practical for real-world deployment pipelines, as optimization only needs to happen once per workload.

Limitations and Future Work

While powerful, the framework currently relies on a few simplifying assumptions: it assumes neurons are uniformly distributed across assigned cores and follows the natural ordering of neuron dimensions. The authors note that exploring non-uniform partitioning could open up an even better design space.

Additionally, relying purely on hardware-in-the-loop evaluation can become expensive for massive multi-board systems. The authors suggest that future iterations could integrate learned surrogate models or analytical runtime estimators to accelerate the search before validating the best candidates on real hardware.

Summary updated

BibTeX
@misc{pierro2026evolutionary,
  author = {Alessandro Pierro and Jonathan Timcheck and Jason Yik and Marius Lindauer and Eyke Hüllermeier and Marcel Wever},
  title = {{Evolutionary Mapping of Neural Networks to Spatial Accelerators}},
  year = {2026},
  eprint = {2602.04717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.04717},
}
Figure