TL;DR
PRIME is a novel offline optimization method that architects high-performance hardware accelerators using only logged simulation data. By eliminating the need for slow, expensive simulator queries during the design process and learning a "conservative" surrogate model that accounts for infeasible designs, PRIME outperforms state-of-the-art simulation-driven methods by up to 1.54× while reducing total simulation time by a staggering 93% to 99%.
The Simulation Bottleneck in Hardware Design
As Moore’s Law slows down, the tech industry has increasingly turned to specialized hardware accelerators (like Google’s TPU or NVIDIA’s NVDLA) to maintain performance scaling. However, designing these accelerators is notoriously difficult.
Traditionally, architects rely on "simulation-driven" optimization. They define a design space, select a configuration, and run a cycle-accurate simulator to evaluate its performance. The catch? These simulators are incredibly slow and computationally expensive. Furthermore, the design space is a minefield: most configurations are actually infeasible due to compilation errors, invalid memory hierarchies, or physical hardware constraints.
As seen in the data distribution above, the vast majority of sampled designs often fall into the "infeasible" category. Every time a designer wants to target a new application or change a constraint (like chip area), they usually have to start this simulation-heavy, error-prone process from scratch.
Introducing PRIME: Offline Data-Driven Optimization
To solve this, the authors introduce PRIME (Parameterized Robust Inference for Model-based Exploration). PRIME shifts the paradigm from active, in-the-loop simulation to offline data-driven optimization.
PRIME operates on several key principles:
- Conservative Surrogate Modeling: Instead of querying a simulator, PRIME trains a Transformer-based neural network to predict the performance of a design based on a static dataset. To prevent the optimizer from "cheating" by picking designs the model is over-optimistic about, PRIME uses a conservative objective. It explicitly penalizes the model for overestimating the performance of unseen or adversarial designs.
- Learning from Failure: Unlike prior methods that discard infeasible designs, PRIME uses them as negative samples. By training the model to predict poor performance for these points, the optimizer learns to navigate away from the sea of infeasibility.
- Contextual Optimization: PRIME uses context vectors that describe the target application (e.g., number of operations, model parameters). This allows a single model to optimize for multiple applications simultaneously or even generalize to a completely new application in a zero-shot setting.
- Discrete Optimization: Once the surrogate model is trained, PRIME uses the Firefly algorithm—a meta-heuristic optimizer—to find the best architectural parameters within the learned landscape.
Evaluation and Datasets
The researchers evaluated PRIME across several diverse hardware templates and application suites:
- Hardware Templates: Industry-grade TPU-style, NVIDIA NVDLA-style, and ShiDianNao-style architectures.
- Applications: A wide range of machine learning models, including image classification (MobileNetEdgeTPU, MobileNetV2/V3), object detection (industry-level M4, M5, M6), segmentation (U-Net), and speech/language (RNN-based encoder-decoders).
- Training Data: A modest database of $\le 8000$ feasible points (and many more infeasible ones) sampled from a massive design space of 452 million possible configurations.
Key Insights
- Infeasible data is a goldmine: In hardware design, knowing what doesn't work is almost as important as knowing what does. By incorporating infeasible points into the training objective, PRIME learns the boundaries of the valid design space without needing explicit hard-coded rules.
- The "Overestimation" Trap: Naive machine learning models often predict amazing performance for designs they haven't seen. Optimizing against a standard model yields designs that look great on paper but fail in reality. PRIME’s conservative training is the secret sauce that makes offline optimization viable.
- Zero-Shot Generalization: Because the model is conditioned on application properties, it can architect an accelerator for a brand-new AI model it has never seen before, bypassing hours of new simulations.
Results and Impact
PRIME demonstrates significant improvements over existing methods:
- Superior Performance: For single-application specialization, PRIME improved performance by 1.54× over state-of-the-art simulation-driven methods.
- Massive Time Savings: PRIME reduced the total simulation time required for the design process by 93% for single-task and 99% for multi-task optimization.
- Zero-Shot Success: In the zero-shot setting (unseen applications), PRIME outperformed simulation-based methods by 1.26×.
- Robustness: PRIME successfully identified designs that were better than the best points in its own training dataset, proving it can generalize and extrapolate to find truly optimal hardware.
Limitations and Future Work
While highly effective, PRIME is sensitive to data quality. For very specific models (like U-Net or RNNs), finding enough feasible points via random sampling to seed the initial dataset can be difficult. Future work could explore better data collection strategies or more robust generative models (like VAEs) for discrete hardware spaces. Additionally, while this paper focused on latency and area, future iterations could incorporate power consumption, thermal constraints, and cost more explicitly.
Summary updated