Space Expansion of Feature Selection for Designing more Accurate Error Predictors

Shayan Tabatabaei Nikkhah, Mehdi Kamal, Ali Afzali-Kusha, Massoud PedramarXiv 2019

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).

Overview of the proposed scheduling-aware feature selection framework.

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.

Performance metrics across benchmarks: (a) Relative coverage of errors, (b) Normalized energy consumption, and (c) F1 score improvement with extra prediction cycles.

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

Abstract

Approximate computing is being considered as a promising design paradigm to overcome the energy and performance challenges in computationally demanding applications. If the case where the accuracy can be configured, the quality level versus energy efficiency or delay also may be traded-off. For this technique to be used, one needs to make sure a satisfactory user experience. This requires employing error predictors to detect unacceptable approximation errors. In this work, we propose a scheduling-aware feature selection method which leverages the intermediate results of the hardware accelerator to improve the prediction accuracy. Additionally, it configures the error predictors according to the energy consumption and latency of the system. The approach enjoys the flexibility of the prediction time for a higher accuracy. The results on various benchmarks demonstrate significant improvements in the prediction accuracy compared to the prior works which used only the accelerator inputs for the prediction.
BibTeX
@misc{nikkhah2019space,
  author = {Shayan Tabatabaei Nikkhah and Mehdi Kamal and Ali Afzali-Kusha and Massoud Pedram},
  title = {{Space Expansion of Feature Selection for Designing more Accurate Error Predictors}},
  year = {2019},
  eprint = {1901.00952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.00952},
}
Figure