Algorithmic Foundations of Inexact Computing

John Augustine, Dror Fried, Krishna V. Palem, Duc-Hung Pham, Anshumali ShrivastavaarXiv 2023 · DOI

Introduction

The paper "Algorithmic Foundations of Inexact Computing" provides a formal mathematical framework for a paradigm previously treated as a hardware-level heuristic. By bridging physical energy constraints with algorithmic analysis, the authors establish a "Big O" language for trading precision for efficiency.

The Problem: The Power Wall

As transistors shrink below 10 nanometers, Moore’s Law has hit a "Power Wall." Hardware unreliability due to noise and thermal fluctuations makes ensuring 100% correctness increasingly expensive. Inexact computing proposes accepting occasional errors in exchange for "disproportionately high" energy savings. However, until now, this approach lacked a unified theory to guide algorithm design. Engineers would tweak specific circuits without a way to prove that an inexact algorithm would be significantly better than a standard one for a given energy budget.

The "Reader" Model and Influence-Awareness

The authors introduce a novel abstraction called the "Reader" model, which formalizes the energy-error trade-off. Inspired by CMOS physics, they model the probability of a bit-flip error ($p$) as an exponential function of energy ($e$): $p = 1/2^e$.

Figure 1: The exponential relationship between energy consumption and switching reliability (q), illustrating the high cost of perfect precision.

The core innovation is the concept of Influence-Awareness. For any function $f$, the "influence" of the $i$-th bit is defined by how much the output changes if that bit is flipped. By allocating more energy to high-influence bits (like the Most Significant Bit in an integer) and less to low-influence bits, designers can achieve massive efficiency gains compared to "influence-oblivious" approaches that treat all bits equally.

Key Insights: Exploiting Asymmetry

Traditional computing treats every bit in a word as equally expensive. This paper proves this is wasteful for many fundamental problems:

  • Asymmetry is Key: If the MSB has exponentially more influence than the LSB, it should receive exponentially more energy. The power of this model lies in exploiting the natural "importance hierarchy" of data.
  • Symmetry is the Enemy: For functions like XOR (parity), where every bit is equally important, inexact computing provides no advantage.
  • Exponential Gains: For asymmetric functions, the "Influence-Aware" approach is proven to be exponentially better (relative to the number of bits $n$) than an "Influence-Oblivious" approach for the same energy budget.

Results and Implications

The authors demonstrate the power of their model across several domains:

  1. Boolean Functions: They prove that an optimal energy distribution always exists for any function and can be computed.
  2. Sorting: Using an influence-aware approach in Quicksort results in a weighted error distance that is exponentially lower than uniform energy approaches. They show that even crude variable precision (e.g., two energy levels) yields significant benefits.
  3. PAC Learning: The paper establishes a link showing that functions with high influence ratios are more "PAC-learnable," meaning they can be learned from fewer examples in less time.

Limitations and Future Directions

The current model concentrates inexactness at the "read" point, whereas real systems experience errors at every logic gate during computation. Additionally, calculating the exact influence for complex Boolean functions is co-NP-hard, meaning finding the perfect energy allocation might be computationally expensive. Future work will involve moving toward simulations and physical experiments to validate these asymptotic proofs on real-world hardware like specialized CMOS chips or quantum computers.

Summary updated

BibTeX
@misc{augustine2023algorithmic,
  author = {John Augustine and Dror Fried and Krishna V. Palem and Duc-Hung Pham and Anshumali Shrivastava},
  title = {{Algorithmic Foundations of Inexact Computing}},
  year = {2023},
  eprint = {2305.18705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18705},
}
Figure