A transprecision floating-point platform for ultra-low power computing

Giuseppe Tagliavini, Stefan Mach, Davide Rossi, Andrea Marongiu, Luca Benini

TL;DR

This paper introduces a "transprecision" computing platform designed to slash energy consumption in ultra-low-power (ULP) embedded systems. By moving away from standard 32-bit floating-point (FP) math and utilizing custom 8-bit and 16-bit formats, the researchers achieved up to 30% energy savings and a 27% reduction in memory traffic without sacrificing the required accuracy of the final results.

What Problem Does This Paper Address?

In the world of Internet of Things (IoT) and near-sensor computing, energy is the scarcest resource. Floating-point operations—essential for processing complex sensor data or running machine learning models—are notorious energy hogs, often accounting for 50% of the total energy consumed by a processor core and its memory.

Traditionally, developers use standard formats like binary32 (single precision) or binary64 (double precision) because they are safe and widely supported. However, many real-world applications don't actually need that much precision for every intermediate calculation. Using a 32-bit "sledgehammer" to crack an 8-bit "nut" wastes battery life, silicon area, and memory bandwidth. The challenge is providing a way to use lower precision safely and efficiently across both software and hardware.

Methods

The authors propose a holistic "transprecision" framework consisting of three main pillars:

  1. New Floating-Point Formats: Beyond the standard IEEE 754 formats, they introduce:
  2. binary8: A tiny 8-bit format (5-bit exponent, 2-bit mantissa) for ultra-low precision needs.
  3. binary16alt: A 16-bit format that keeps the same wide dynamic range as a 32-bit float (8-bit exponent) but reduces the precision (7-bit mantissa). This prevents "overflow" errors that often plague standard 16-bit floats.
  4. FlexFloat Library: A C++ software library that allows developers to emulate these custom formats on standard hardware. It integrates with an external tool called DistributedSearch to automatically find the minimum precision required for each variable in a program to meet a specific error tolerance (measured in Signal-to-Quantization-Noise Ratio, or SQNR).
  5. Transprecision FPU: A dedicated hardware Floating-Point Unit designed for ULP microcontrollers (specifically the PULPino platform). This unit can perform standard 32-bit ops but also supports vectorization (SIMD), allowing it to process two 16-bit operations or four 8-bit operations simultaneously in a single 32-bit slot.

Datasets

The platform was evaluated using a suite of FP-intensive benchmarks typical of embedded and near-sensor computing:

  • JACOBI: A stencil kernel for heat distribution simulations.
  • KNN (k-Nearest Neighbors): A fundamental machine learning algorithm.
  • PCA (Principal Component Analysis): Used for data dimensionality reduction.
  • DWT (Discrete Wavelet Transform): Common in signal and image processing.
  • SVM (Support Vector Machine): The prediction stage of a popular ML classifier.
  • CONV: A $5 \times 5$ convolution kernel, the bread and butter of image processing.

Key Insights and Ideas

  • The "Range vs. Precision" Trade-off: Standard 16-bit floats (binary16) often fail not because they lack precision, but because their dynamic range is too small, leading to saturation (overflow). By introducing binary16alt (which matches the 32-bit range), the authors found they could safely scale down 50% more variables than with standard 16-bit floats alone.
  • Vectorization is the Real Winner: The biggest energy gains don't just come from simpler math circuits; they come from memory efficiency. By packing four 8-bit numbers into a single 32-bit memory access, the system drastically reduces the energy spent moving data—a major bottleneck in ULP systems.
  • Just-in-Time Precision: Transprecision isn't about "approximate" computing (where you tolerate errors); it's about "required" precision. The system ensures the final output is exactly as precise as the user requested, but uses the cheapest possible path to get there.

Key Results

  • Scaling Potential: Experimental results showed that up to 90% of FP operations in the tested benchmarks could be safely scaled down to 8-bit or 16-bit formats.
  • Performance Boost: Thanks to vectorization, execution time decreased by 12% on average.
  • Memory Efficiency: Memory accesses were reduced by 27% on average, with some benchmarks like SVM seeing a 48% reduction.
  • Energy Savings: The bottom line was a total energy reduction of up to 30% for the most optimized applications (like KNN).

Limitations and Future Work

The authors identify a few "gotchas" in the current approach:

  • The Cost of Casting: Converting between different formats (e.g., from 8-bit to 32-bit) requires "cast" operations. In some cases, like the PCA benchmark, the overhead of these casts actually increased energy consumption slightly.
  • Tooling Gaps: Current precision-tuning tools don't account for the hardware cost of these casts. Future work involves creating "smarter" compilers and optimizers that consider the trade-off between lower precision and the cost of switching formats.
  • Compiler Support: The current GCC compiler doesn't natively handle these custom 8-bit and 16-bit types, requiring some manual tagging in the code. Full compiler integration is a key next step.

Summary updated

BibTeX
@inproceedings{tagliavini2018transprecision,
  author = {Giuseppe Tagliavini and Stefan Mach and Davide Rossi and Andrea Marongiu and Luca Benini},
  title = {{A transprecision floating-point platform for ultra-low power computing}},
  booktitle = {DATE},
  year = {2018},
  doi = {10.23919/date.2018.8342167},
}
Figure