Introduction
Approximate computing (AxC) offers a paradigm shift in energy efficiency by trading off mathematical precision for gains in speed and power consumption. This approach is particularly effective for error-resilient applications such as image processing and signal filtering. However, to maintain system reliability, "error predictors" or quality checkers are required to detect when approximations result in unacceptable errors. When a large error is detected, a "rollback" is triggered, re-executing the task with full precision.
The effectiveness of these predictors hinges on balancing false negatives (missing large errors) and false positives (unnecessary re-executions). Traditional predictors primarily utilize accelerator inputs, which often lack sufficient information to distinguish between acceptable and unacceptable errors. This paper proposes leveraging intermediate results within the hardware accelerator's execution flow to significantly enhance prediction accuracy.
Methodology: Scheduling-Aware Feature Selection
The core of the proposed approach is a scheduling-aware feature selection framework. Unlike traditional methods that treat the accelerator as a black box, this framework expands the feature space to include every intermediate node in the accelerator's Data Flow Graph (DFG).
Key components of the methodology include:
- Space Expansion: Incorporating intermediate results as potential features.
- Feature-Availability Constraints: Ensuring that selected features are available within the hardware's timing constraints. A feature cannot be used for prediction if its corresponding hardware node has not yet been executed.
- Energy-Aware Configuration: Establishing mathematical bounds on predictor complexity (e.g., number of features or decision tree depth) based on the total energy budget.
- Timing Flexibility: Allowing for a small number of "extra" prediction cycles to access more informative intermediate results that mature later in the execution cycle.
Experimental Setup
The framework was evaluated using five hardware benchmarks: Sobel (edge detection), a 6-tap FIR Filter, Forwardk2j (robotics kinematics), an 8-point DCT, and an 8-point FFT. For each benchmark, 5,000 samples were used for training and testing lightweight predictors, specifically Linear Predictors and Decision Trees.
Results and Discussion
The inclusion of intermediate results provides a wealth of information that raw inputs cannot offer. Because these values represent combinations of multiple inputs, they are often superior at separating acceptable results from errors.
Accuracy and Error Coverage
The proposed method yielded dramatic improvements in prediction accuracy. On average, the F1 score increased by 2.3x for Decision Trees and 24.5x for Linear Predictors compared to input-only models. In benchmarks like FIR and Forwardk2j, the system achieved 100% coverage of large errors. In the Sobel benchmark, a 58% reduction in false negatives was observed.
Energy Efficiency and Timing
Despite the overhead of the predictor and potential rollbacks, the system maintained high energy efficiency. Most benchmarks achieved approximately 30% energy savings (normalized energy < 0.7) while meeting quality constraints. Furthermore, allowing just 3–5 extra clock cycles for prediction significantly boosted the F1 score by enabling the use of more "mature" intermediate features.
Computational Scalability
The scheduling-aware algorithms proved highly efficient. While an exhaustive search for optimal features in the FFT benchmark would take centuries, the proposed selection methods (e.g., Sequential Forward Selection, Particle Swarm Optimization) found high-quality solutions in seconds. Simple filter methods like Pearson correlation also performed remarkably well, offering a fast alternative to more complex wrapper methods.
Conclusion
This research demonstrates that expanding the feature space to include intermediate hardware results, while respecting scheduling and energy constraints, leads to significantly more accurate error predictors for approximate computing. By intelligently selecting features and allowing minimal timing flexibility, designers can achieve robust error detection without sacrificing the energy benefits of approximation.
Summary updated