TL;DR
HyperMapper 2.0 is a new "white-box" optimization framework designed to handle the messy, multi-objective realities of computer systems design. By combining Random Forests with active learning and expert "priors," it finds optimal hardware/software trade-offs—like balancing speed vs. chip area—up to 8x faster than traditional methods.
What Problem Does This Paper Address?
Designing modern computer systems is a nightmare of choices. Should a cache be 32KB or 64KB? Should a loop be unrolled four times or eight? In hardware/software co-design, these choices interact in complex, non-linear ways across hundreds of variables.
The authors identify four specific "real-world" hurdles that standard optimization tools often ignore:
- Multi-objective Trade-offs: You rarely want just "the fastest" design; you want the fastest design that also fits on a specific chip and stays under a power budget.
- Unknown Feasibility: You often don't know if a design is even possible (e.g., if it will fit on an FPGA) until after you’ve spent expensive compute time trying to build it.
- Discrete Variables: Many parameters are categorical (e.g., "True/False") or ordinal (e.g., "Small/Medium/Large"), which breaks traditional gradient-based math.
- The "Expert in the Loop": Human engineers often have a "hunch" about where the best designs lie, but most automated tools don't have a way to ingest that intuition.
Methods
The authors introduce HyperMapper 2.0, which treats design space exploration (DSE) as a black-box optimization problem solved through Active Learning.
- Random Forest Surrogates: Instead of complex neural networks, HyperMapper uses Randomized Decision Forests to model the design space. These are "white-box" models—they are easy to interpret, handle discrete variables naturally, and can tell the user which parameters actually matter (feature importance).
- Feasibility Filtering: The system trains a specific classifier to predict whether a configuration is "feasible" before evaluating it. This prevents the optimizer from wasting time on designs that are physically impossible to build.
- Injecting Priors: Users can define Beta distributions for input variables. If an engineer thinks the optimal value is likely at the lower end of a range, they can set a "Decay" prior to nudge the search in that direction.
- The Pareto Wall: To find the best trade-offs, the algorithm iteratively samples points near the predicted Pareto front (the set of designs where you can't improve one objective without hurting another).
Datasets
The framework was integrated into the Spatial programming language compiler and evaluated using seven hardware accelerator benchmarks:
- Benchmarks: BlackScholes, K-Means, OuterProduct, DotProduct, GEMM, TPC-H Q6, and GDA.
- Hardware Target: Altera Stratix V FPGA.
- Comparison: It was tested against the original HyperMapper 1.0 and the standard heuristic-based pruning/random sampling used in the Spatial compiler.
Key Insights and Ideas
- Feasibility is a First-Class Citizen: In many hardware tasks, the "feasible" region (designs that actually fit on the chip) is tiny. By explicitly modeling feasibility, HyperMapper 2.0 avoids "unrealistic" regions of the search space that trap other optimizers.
- Interpretability Builds Trust: Because the model uses Random Forests, it can output "Feature Importance" tables. For example, it showed that in the BlackScholes benchmark, "Inner Loop Parallelization" is the dominant factor for both speed and logic use, while "Outer Loop" factors matter much less. This allows designers to learn about their own systems.
- Priors Accelerate Discovery: Even simple user-defined priors (like a "Decay" distribution for memory sizes) significantly reduced the number of samples needed to find the optimal frontier compared to uniform random searching.
Key Results
- 8x Efficiency Gain: For most benchmarks, HyperMapper 2.0 reached the optimal design frontier using 8x fewer samples than the baseline.
- Better Pareto Fronts: In the GDA benchmark (the largest search space with $2.4 \times 10^{11}$ possibilities), HyperMapper 2.0 found a Pareto front that almost entirely dominated the one found by its predecessor.
- Accuracy: On smaller benchmarks where exhaustive search was possible, HyperMapper 2.0 successfully recovered the true optimal Pareto front with only ~1,500 samples.
Limitations and Future Work
- Static Priors: Currently, user priors are only used to influence the initial "warm-up" sampling. The authors want to move toward a full Bayesian approach where the prior is updated into a posterior distribution throughout the entire search.
- Scope: The current evaluation is focused on FPGAs. The authors plan to extend this to ASIC (Application-Specific Integrated Circuit) design and other DSLs like the Halide image processing language.
- Sequential Bottleneck: While the framework is faster than its predecessor, it currently runs mostly sequentially; future versions could benefit from better parallelization of the active learning loop.
Summary updated