NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Design Space Exploration of Approximate Computing Techniques with a Reinforcement Learning Approach

Sepide Saeedi, Alessandro Savino, Stefano Di CarloarXiv 2023 · DOI

TL;DR

This paper introduces a Reinforcement Learning (RL) framework to automate the selection of approximate computing components for software applications. By balancing accuracy loss against gains in power and execution time, the approach helps engineers navigate the massive design space of approximate hardware to find optimal efficiency trade-offs.

What Problem Does This Paper Address?

Approximate Computing (AxC) is a powerful paradigm for energy-efficient systems, trading off bit-perfect accuracy for significant gains in power and speed. However, the "Design Space Exploration" (DSE) is a significant challenge: which variables in a program should be approximated? Which specific approximate adder or multiplier from a library should be used?

Manually tuning these parameters is impractical due to the combinatorial explosion of choices. While previous research has applied machine learning to this problem, many existing methods fail to consider multi-objective optimization—simultaneously balancing accuracy, power consumption, and computation time—or they focus only on specific hardware targets like FPGAs rather than general software approximation.

Methods

The authors frame DSE as a Reinforcement Learning problem using a Q-learning agent. The core of their methodology involves:

  • RL Environment: A custom setup built using the Gymnasium library. The environment models the application, the available approximate operators, and the variables targeted for approximation.
  • State Representation: The state includes the current selection of approximate operators (adders and multipliers), a boolean vector indicating which variables are being approximated, and the resulting performance metrics ($\Delta$accuracy, $\Delta$power, $\Delta$time).
  • Action Space: The agent can take three types of actions: changing the type of adder, changing the type of multiplier, or adding/removing a variable from the approximation list.
  • Reward Function: A multi-objective logic that guides the agent. It provides a positive reward if power and time savings exceed a threshold without violating accuracy constraints. If the accuracy loss is too high, the agent receives a heavy penalty.
RL Environment Overview

Datasets

The study evaluates the approach using two classic computational kernels:

  1. Matrix Multiplication: Tested with 10x10 and 50x50 matrix sizes.
  2. Finite Impulse Response (FIR) Filter: Tested with 100 and 200 samples using white noise signals.

For the hardware components, the authors utilized EvoApproxLib, a library providing pre-characterized C models for various approximate 8-bit and 16-bit adders, and 8-bit and 32-bit multipliers.

Key Insights and Ideas

  • Multi-Objective Balancing: The approach successfully treats power, time, and accuracy as a unified optimization target, rather than just minimizing error.
  • Learning Behavior Differences: The agent showed distinct learning patterns depending on the application. In Matrix Multiplication, the reward improved steadily, indicating the agent successfully learned the problem's structure. However, the FIR filter proved more challenging, with a less stable reward curve, suggesting that signal-processing tasks may have a more complex error landscape.
  • Variable-Level Granularity: By selecting specific variables to approximate (as opposed to a global hardware setting), the RL agent can fine-tune exactly where the application is "allowed" to be imprecise to maximize gains.

Key Results

The agent successfully identified configurations that respected accuracy constraints while providing meaningful efficiency gains.

  • Matrix Multiplication (10x10): The agent found a solution that reduced power by 415.3 mW and computation time by 1780 ns, with a Mean Absolute Error (MAE) of 19.95.
  • FIR Filter (100 samples): The exploration reached a power reduction of 10,850.8 mW, though the accuracy degradation was significantly higher than the matrix multiplication benchmark.
Exploration results for Matrix Multiplication and FIR

As shown in Figure 4, the Matrix Multiplication benchmark showed a clear upward trend in average rewards, confirming that the agent was effectively learning the design space.

Fig. 4. Average reward evolution for the Matrix multiplication (10x10) and FIR (100 samples).

Limitations and Future Work

  • Application Sensitivity: The authors acknowledge that the learning strategy is not yet entirely effective for all types of applications. The FIR filter results (Figure 4) showed that the agent struggled to maintain a continuous improvement trend compared to Matrix Multiplication.
  • Generalization: The current results are preliminary. Future work is required to make the learning strategy robust enough to handle a wider variety of complex applications and larger design spaces.
  • Threshold Tuning: The success of the agent depends on exploration parameters like the accuracy loss threshold ($acc_{th}$), which currently needs to be adapted to each specific case.

Summary updated

BibTeX
@misc{saeedi2023design,
  author = {Sepide Saeedi and Alessandro Savino and Stefano Di Carlo},
  title = {{Design Space Exploration of Approximate Computing Techniques with a Reinforcement Learning Approach}},
  year = {2023},
  eprint = {2312.17525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.17525},
}
Figure