Run-Time Accuracy Reconfigurable Stochastic Computing for Dynamic Reliability and Power Management

Shuyuan Yu, Han Zhou, Shaoyi Peng, Hussam Amrouch, Jörg Henkel, Sheldon X.-d. Tan

TL;DR

This paper introduces ARSC (Accuracy-Reconfigurable Stochastic Computing), a framework that allows hardware to trade off computational accuracy for power savings and reliability at run-time. By dynamically adjusting bit-widths, the system can compensate for long-term transistor aging (like NBTI) and achieve massive power reductions—up to 74%—in error-tolerant applications like image processing.

What Problem Does This Paper Address?

As semiconductor manufacturing pushes toward smaller feature sizes, chips become increasingly susceptible to aging effects like Bias Temperature Instability (BTI) and Electromigration (EM). These physical degradations cause transistors to slow down over time, eventually leading to timing failures if the system clock isn't slowed down. Traditionally, engineers handle this by adding "guard bands"—static margins in design that waste power and performance from day one.

Furthermore, modern mobile and edge devices face strict power constraints. While techniques like Dynamic Voltage and Frequency Scaling (DVFS) exist, they have physical limits. The authors argue that for error-tolerant workloads (AI, computer vision, image processing), we should use accuracy as a "knob" to manage both aging and power dynamically.

Methods

The authors leverage Stochastic Computing (SC), a paradigm where numbers are represented by the probability of "1"s in a bitstream rather than binary weights.

1. Counter-Based SC (CBSC)

Traditional SC uses AND gates for multiplication, which requires long bitstreams and complex random number generators (RNGs). This paper utilizes a more efficient Counter-Based SC Multiplier (CBSC).

  • How it works: Instead of random streams, it uses a deterministic pattern generator and counters. One counter tracks the input value, while another accumulates the result.
  • Benefit: It eliminates the need for high-quality RNGs and is significantly faster because it doesn't require counting every single bit in a full-length stream.
Fig. 3: (a) Conventional SC multiplier. (b) Counter-based SC multiplier concept [12].

2. Run-Time Reconfigurability (ARSC)

The core innovation is the Data Truncation Block. Controlled by an external SEL signal, this block can truncate the least significant bits of input data at run-time.

  • Scaling Property: In SC, computing time is proportional to $2^n$ (where $n$ is bit-width). Reducing the precision by just one bit cuts the required computing time in half.
  • The "Knob": If the chip slows down due to aging, the system can reduce the bit-width (accuracy) to maintain the same throughput at a lower clock frequency.
Fig. 6: Data truncation example.

Datasets

The framework was evaluated using a 2D Discrete Cosine Transform (DCT) and Inverse DCT (IDCT) pipeline, which is the mathematical backbone of JPEG image compression. The authors implemented the design on a Xilinx Spartan-6 FPGA and used the Nangate 45nm degradation-aware cell library to simulate 10 years of hardware aging.

Key Insights and Ideas

  • Run-time vs. Design-time: Unlike previous approximate computing works that fix accuracy at the factory, ARSC allows the operating system to decide the accuracy-power-reliability trade-off on the fly based on battery levels or chip health.
  • Exponential Latency Reduction: Because SC latency scales exponentially with bit-width, small sacrifices in accuracy lead to massive gains in timing slack. This makes it a far more aggressive tool for aging mitigation than simple frequency scaling.
  • Deterministic Advantage: By moving away from random bitstreams to deterministic patterns (as seen in Fig. 4/5), the authors achieve higher accuracy and lower hardware overhead than traditional SC.
Fig. 4: Counter-Based SC Multiplier.

Key Results

The researchers demonstrated that their ARSC framework provides a powerful defense against the "slow death" of silicon:

  • Aging Mitigation: A 1-bit precision loss (reducing from 10-bit to 9-bit) provided enough timing slack to fully compensate for 10 years of NBTI-induced aging while maintaining a constant throughput of 7.19 frames per second.
  • Power Efficiency: By scaling frequency and accuracy together, they achieved a 74% reduction in power consumption at the cost of a 10.67dB loss in Peak Signal-to-Noise Ratio (PSNR).
  • Throughput Gains: If accuracy is sacrificed without slowing the clock, decreasing precision from 10-bit to 6-bit increases throughput by roughly 12 times.
Fig. 1: The maximum working frequency decreases over years because of aging.

Limitations and Future Work

  • Latency vs. Binary: While CBSC is faster than traditional SC, stochastic computing generally still has higher latency than pure binary arithmetic for high-precision requirements.
  • ASIC vs. FPGA Mapping: The authors note that the mapping of aging effects from the Nangate ASIC library to the Xilinx FPGA platform "may not be perfect," suggesting that real-world ASIC implementations might see slightly different results.
  • Application Scope: The current work focuses on DCT/IDCT. Future work could explore how this reconfigurable approach applies to more complex structures like Deep Neural Networks (DNNs), where different layers might tolerate different levels of truncation.

Summary updated

BibTeX
@inproceedings{yu2020run,
  author = {Shuyuan Yu and Han Zhou and Shaoyi Peng and Hussam Amrouch and Jörg Henkel and Sheldon X.-D. Tan},
  title = {{Run-Time Accuracy Reconfigurable Stochastic Computing for Dynamic Reliability and Power Management}},
  booktitle = {CASES},
  year = {2020},
  doi = {10.1109/cases51649.2020.9243711},
}
Figure