TL;DR
ApproxFPGAs is a methodology that uses machine learning to quickly identify energy-efficient "approximate" arithmetic components specifically optimized for FPGAs. By training models on a small subset of existing ASIC-based libraries, the authors reduce the time required to find optimal FPGA designs by 10x while achieving significant power and latency savings.
What Problem Does This Paper Address?
Approximate computing is a paradigm where hardware accuracy is intentionally traded for gains in power efficiency and speed—ideal for error-tolerant applications like image processing or machine learning. While there are extensive libraries of approximate circuits (ACs) designed for ASICs (Application-Specific Integrated Circuits), these designs don't translate well to FPGAs.
Because FPGAs use Lookup Tables (LUTs) rather than standard logic gates, a circuit that is "Pareto-optimal" (offering the best trade-off between error and power) on an ASIC might be highly inefficient on an FPGA. The challenge is that finding the true FPGA-optimal designs requires "exhaustive exploration"—synthesizing thousands of variations—which can take weeks of computation time.
Methods
The authors propose the ApproxFPGAs methodology, which treats the search for optimal components as a machine learning estimation problem:
- Data Collection: They synthesize a small, random subset (10%) of an existing approximate circuit library on the target FPGA to create a labeled dataset of power, area, and latency.
- ML Training: They evaluate 18 different statistical and machine learning models (including Random Forests, Gradient Boosting, and Bayesian Ridge) to predict FPGA performance metrics based on ASIC metrics and hardware descriptions.
- Fidelity Metric: Instead of just looking at absolute error, they use a "fidelity" metric to ensure the models correctly rank circuits (i.e., if the model says Circuit A is better than Circuit B, it actually is).
- Pseudo-Pareto Construction: To account for model inaccuracies, they don't just pick the "best" predicted designs. They construct multiple layers of "pseudo-Pareto fronts" and re-synthesize only those specific designs to find the true winners.
- AutoAx-FPGA: They integrated this approach into an automated framework that can optimize entire systems (like a Gaussian filter) by picking the best approximate components for each part of the pipeline.
Datasets
- EvoApprox8b: A library of 4,494 8x8-bit unsigned approximate multipliers and adders generated via evolutionary algorithms.
- Extended Bit-widths: The authors extended their analysis to 12-bit and 16-bit versions of these arithmetic units.
- Gaussian Filter: Used as a system-level benchmark for the case study.
Key Insights and Ideas
- The ASIC-FPGA Gap: The paper confirms that ASIC-optimized approximate circuits often provide "asymmetric" or even negative gains when ported to FPGAs. You cannot simply trust ASIC benchmarks when building for FPGAs.
- Ranking over Accuracy: For design space exploration, it is more important for a model to be consistent in its ranking (high fidelity) than to be perfectly accurate in its absolute value predictions.
- The "Multiple Fronts" Strategy: By selecting the top three predicted Pareto fronts rather than just one, the authors successfully captured 71% of the true optimal designs while still reducing synthesis time by 90%.
- Bit-width Sensitivity: ML models trained on 8-bit designs perform poorly when predicting 16-bit designs (fidelity dropped from 88% to 53%). This suggests that the relationship between logic and LUT mapping changes significantly with circuit scale.
Key Results
- Speedup: Reduced the exploration time for a full library from 82.4 days to 8.2 days (a 10x improvement).
- Model Performance: Tree-based methods (Random Forest, Decision Trees) and Bayesian Ridge regression emerged as the most reliable predictors for FPGA area, power, and latency.
- System Gains: In the Gaussian Filter case study, the methodology identified configurations that significantly outperformed standard random search techniques across all metrics (Area, Power, Latency, and Error).
- Open Source: The authors have released their library of Pareto-optimal FPGA-ACs online to foster reproducible research.
Limitations and Future Work
- Generalization: The current models do not generalize well across different bit-widths, meaning a new model must be trained for 8-bit, 12-bit, and 16-bit components separately.
- Latency Bias: The models showed a ~30% bias in latency estimation, making it the hardest metric to predict accurately compared to power and area.
- Future Directions: The authors suggest exploring more complex deep learning architectures that might better capture the nuances of FPGA routing and placement to improve cross-bit-width generalization.
Summary updated