architect: Arbitrary-Precision Hardware With Digit Elision for Efficient Iterative Compute

He Li, James J. Davis, John Wickerson, George A. Constantinides

TL;DR

ARCHITECT is a novel hardware framework for iterative algorithms that eliminates the need to pre-set numerical precision. By using "Most-Significant-Digit-first" arithmetic and a technique called "digit elision" to skip redundant calculations, it achieves up to 16× speedups and significant memory savings while allowing computations to reach any desired accuracy on fixed hardware.

What Problem Does This Paper Address?

Most numerical algorithms (like those used in deep learning or scientific simulations) are iterative: they repeat a process to get closer and closer to a "true" answer. Traditionally, engineers must choose a fixed precision (e.g., 32-bit or 64-bit) before the algorithm starts.

This creates a "Goldilocks" problem:

  1. Too little precision: The algorithm may never converge to the correct answer because rounding errors accumulate.
  2. Too much precision: The hardware becomes unnecessarily slow, power-hungry, and bulky.
  3. The Uncertainty: If an algorithm hasn't converged yet, is it because it needs more iterations, or because the math wasn't precise enough?

In standard Least-Significant-Digit (LSD) first arithmetic, you can't simply "add more bits" halfway through; you usually have to restart the entire calculation from scratch with a higher precision.

Methods

The authors propose ARCHITECT (Arbitrary-precision Constant-hardware Iterative Compute), which relies on several clever engineering shifts:

  • Online Arithmetic (MSD-first): Instead of starting at the decimal point and working right, ARCHITECT uses redundant number systems (radix-2 signed-digits) to calculate from the Most Significant Digit (MSD) first. This allows the hardware to start producing the "important" part of the result before the "fine details" are even calculated.
  • Zig-Zag Scheduling: Rather than finishing iteration 1, then iteration 2, etc., ARCHITECT sweeps through iterations and precision simultaneously in a zig-zag pattern. As time passes, both the number of iterations and the number of decimal places increase in lockstep.
  • Digit Elision: This is the paper's core optimization. The authors proved that if the high-order digits of two consecutive iterations are identical, they are guaranteed to remain stable in future iterations. ARCHITECT detects this at runtime and simply stops re-calculating those digits, "eliding" them to save time and power.
  • Cantor Pairing Function (CPF): To store these growing "digit vectors" in hardware memory (RAM), they use a CPF to map a 2D coordinate (iteration number, digit index) into a 1D memory address, ensuring no memory is wasted as the problem scales.

Datasets

The authors evaluated ARCHITECT using two classic mathematical benchmarks implemented on a Xilinx Virtex UltraScale FPGA:

  1. The Jacobi Method: A linear solver used in physics simulations and engineering.
  2. Newton’s Method: A non-linear root-finding algorithm (specifically solving $ax^2 - 3 = 0$), which is a staple in optimization and deep learning.

They compared ARCHITECT against traditional fixed-precision (LSD-first) hardware and previous state-of-the-art arbitrary-precision designs.

Key Insights and Ideas

  • Stability Detection: The "aha!" moment is the realization that MSD-first arithmetic allows for a mathematical guarantee of stability. Once the "head" of a number stops changing across iterations, you can lock it in and focus compute resources purely on the "tail."
  • Area-Neutral Scaling: Unlike previous arbitrary-precision designs where the hardware size grows with the number of iterations, ARCHITECT’s physical area remains constant. You can run it for 10 iterations or 10,000 iterations on the same chip.
  • Quadratic vs. Linear Convergence: The researchers found that algorithms with "quadratic convergence" (like Newton's method) benefit significantly more from digit elision because they stabilize their high-order digits much faster than linear methods (like Jacobi).

Key Results

  • Performance: ARCHITECT achieved up to 16× speedup for Newton’s method compared to "vanilla" arbitrary-precision versions without digit elision.
  • Memory Efficiency: The digit elision technique led to a 1.9× reduction in memory footprint.
  • Hardware Savings: Compared to the previous leading arbitrary-precision architecture (Zhao et al.), ARCHITECT used 57× fewer Lookup Tables (LUTs) and 59× fewer Flip-Flops (FFs) for a 100-iteration Jacobi solver.
  • Robustness: ARCHITECT successfully solved "ill-conditioned" problems (math problems sensitive to tiny errors) that standard 8-bit or 32-bit fixed-precision hardware simply could not solve, regardless of how many iterations were run.

Limitations and Future Work

  • Clock Speed ($f_{max}$): Because current FPGAs are physically optimized for LSD-first arithmetic (using hardened carry chains), the MSD-first approach of ARCHITECT results in a lower maximum clock frequency compared to standard 32-bit multipliers.
  • Digit Delay: Online arithmetic introduces a small "digit delay" ($\delta$) at each operation, which can add up in very deep computational pipelines.
  • Future Directions: The authors plan to extend this to more complex algorithms like Conjugate Gradient descent and explore ASIC (Application-Specific Integrated Circuit) implementations, where the hardware can be custom-built to favor MSD-first operations, likely erasing the current clock speed disadvantage.

Summary updated

BibTeX
@article{li2020architect,
  author = {He Li and James J. Davis and John Wickerson and George A. Constantinides},
  title = {{architect: Arbitrary-Precision Hardware With Digit Elision for Efficient Iterative Compute}},
  journal = {IEEE Trans. Very Large Scale Integr. Syst.},
  year = {2020},
  url = {https://openreview.net/forum?id=HLUfad9p6c},
}
Figure