Abstract
A typical optimization of customized accelerators for error-tolerant applications such as multimedia, recognition, and classification is to replace traditional arithmetic units like multipliers and adders with the approximate ones to enhance energy efficiency while adhering to accuracy requirements. However, the plethora of arithmetic units and diverse approximate unit options result in an exceedingly large design space. Therefore, there is a pressing need for an end-to-end design framework capable of navigating this intricate design space for approximation optimization. Traditional methods relying on simulation-based or blackbox model evaluations suffer from either high computational costs or limitations in accuracy and scalability, posing significant challenges to the optimization process. In this paper, we propose a Graph Neural Network (GNN) model that leverages the physical connections of arithmetic units to capture their influence on the performance, power, area (PPA), and accuracy of the accelerator. Particularly, we notice that critical path plays a key role in node feature of the GNN model and having it embedded in the feature vector greatly enhances the prediction quality of the models. On top of the models that allow rapid and efficient PPA and accuracy prediction of various approximate accelerator configurations, we can further explore the large design space effectively and build an end-to-end accelerator approximation framework named ApproxPilot to optimize the accelerator approximation. Our experimental results demonstrate that ApproxPilot outperforms state-of-the-art approximation optimization frameworks in both performance and hardware overhead with the same accuracy constraints.
Introduction
Approximate computing offers a compelling trade-off for error-tolerant applications—such as image processing, artificial intelligence, and signal processing—by sacrificing minor numerical accuracy for significant improvements in energy efficiency and performance. However, optimizing hardware accelerators through approximation presents a massive Design Space Exploration (DSE) challenge. A typical accelerator may contain hundreds of arithmetic units, each with numerous approximate variants, leading to an astronomical number of possible configurations (e.g., $10^{34}$ for a KMeans operator).
Existing DSE methods generally fall into two categories: CAD-based simulations, which are accurate but computationally prohibitive for large spaces, and black-box machine learning models, which are fast but often fail to capture the hardware's topological nuances. In particular, latency is highly dependent on the "critical path," a feature often ignored by non-graph-based models.
Methodology
ApproxPilot addresses these challenges by treating the accelerator as a graph and employing Graph Neural Networks (GNNs) to model its characteristics. The framework's end-to-end workflow is structured around three primary pillars:
- Design Space Pruning: The library of approximate units is refined by removing "invalid" units (those dominated by others in both accuracy and cost) and "redundant" units identified via K-means clustering.
- Critical Path-Aware GNNs: To overcome the limitations of standard GNNs in predicting latency, ApproxPilot introduces a two-stage architecture. The first stage predicts whether a unit lies on the critical path, and the second stage incorporates this prediction as a node feature for graph-level regression of Area, Power, Latency, and Accuracy (SSIM).
- Evolutionary Search: The framework utilizes the NSGA-III algorithm to navigate the pruned design space and identify the Pareto frontier of optimal hardware configurations.
Experimental Setup
The framework was evaluated using three benchmarks from the AXBench suite: Sobel Edge Detector, Gaussian Filter, and KMeans Operator. The approximate component library was built using EvoApproxLib and expanded via Cartesian Genetic Programming (CGP) to include operations like square root and subtraction. Training datasets consisted of 55,000 to 105,000 random configurations per benchmark to ensure robust GNN training.
Key Insights
A central tenet of ApproxPilot is that hardware performance is fundamentally tied to topology. By representing the accelerator as a graph, the GNN can "understand" the flow of data, which is essential for accurate modeling. Furthermore, the authors observed that explicit modeling of the critical path significantly improves latency prediction, boosting $R^2$ scores by 20-25% over baseline models.
To improve efficiency, the framework employs a "Simplified Graph" strategy. This approach merges non-arithmetic nodes (e.g., memory blocks) that share identical connections, reducing graph complexity and training time without compromising prediction accuracy.
Results
ApproxPilot demonstrates superior predictive performance, achieving $R^2$ scores above 0.92 across nearly all metrics and benchmarks. Compared to the state-of-the-art AutoAX framework, ApproxPilot provides more accurate latency and accuracy predictions for complex designs. Consequently, the evolutionary search discovers more efficient hardware configurations—consistently finding designs with lower area and power for the same accuracy constraints—and identifies a denser Pareto frontier, offering engineers a wider range of optimized trade-offs.
Conclusion
While ApproxPilot significantly advances automated accelerator approximation, it currently requires retraining for each unique hardware architecture. Future work may explore transfer learning to generalize models across different layouts. Additionally, the framework's effectiveness remains dependent on the diversity of the initial approximate unit library. Despite these limitations, ApproxPilot represents a major step toward efficient, topology-aware hardware optimization.
Summary updated