← Latest papers
💻 computer science

Floating-point autotuning with customized precisions

This paper presents PROMISE, an automated precision tuning tool that utilizes a containerized, parallel search framework to identify optimal mixed-precision floating-point configurations for numerical applications, demonstrating that significant performance and efficiency gains are achievable by reducing precision without compromising accuracy.

Original authors: Xinye Chen, Thibault Hilaire, Fabienne Jézéquel

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Xinye Chen, Thibault Hilaire, Fabienne Jézéquel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a chef trying to bake a perfect cake. For years, you've been using the most expensive, high-precision measuring cups available (let's call them "Gold Cups") for every single ingredient, from the flour to a pinch of salt. You do this because you're afraid that if you use a cheaper cup, the cake might collapse.

But what if you realized that for the flour, a rough scoop is fine, but for the vanilla extract, you absolutely need the Gold Cup? If you used Gold Cups for everything, you'd be wasting money and time, even though the cake would taste the same.

This is exactly the problem computer scientists face with floating-point numbers (the way computers handle decimals). For decades, computers have used a "Gold Cup" standard called Double Precision (FP64) for almost every calculation. It's incredibly accurate, but it's also heavy, slow, and energy-hungry.

This paper introduces a new version of a tool called PROMISE (which stands for PRecision OptiMISE). Think of PROMISE as a smart, automated sous-chef that tastes your cake (runs your code) and tells you exactly which ingredients need the Gold Cup and which ones can be measured with a cheap plastic spoon.

Here is how the paper explains their new approach, broken down into simple concepts:

1. The Problem: One Size Does Not Fit All

Modern computer chips (like those in your phone or graphics cards) are getting better at doing math with "smaller" numbers (like FP16 or even custom 8-bit formats). These small numbers are like using a plastic spoon: they are fast and use very little energy. However, if you use them for everything, your results might become garbage (the cake burns).

The challenge is finding the perfect mix: using the "plastic spoons" where it's safe, and the "Gold Cups" only where it's absolutely necessary.

2. The Old Way vs. The New Way

  • The Old Way: Previous tools could only switch between a few standard sizes (like switching between a teaspoon and a tablespoon). They couldn't invent new sizes.
  • The New Way (Customized Precision): The authors upgraded PROMISE to allow custom-sized cups. Imagine you could ask for a measuring tool that is exactly 5 bits for the "whole number" part and 2 bits for the "decimal" part. This is crucial for new hardware like FPGAs (reconfigurable chips) that let you design your own math rules.

3. How PROMISE Works: The "Delta Debugging" Game

How does the tool know which variables (ingredients) can be downsized? It uses a clever game called Delta Debugging.

Imagine you have a line of 100 ingredients. You want to know which ones can be measured with a plastic spoon.

  1. Start High: You measure everything with the Gold Cup first to get a perfect reference cake.
  2. The Guess: You try swapping half the ingredients to plastic spoons.
  3. The Taste Test: You bake the cake again.
    • If the cake tastes the same (the math is still accurate enough), you keep the plastic spoons and try swapping more ingredients.
    • If the cake is ruined, you know you swapped too many. You go back and try swapping fewer.
  4. The Result: The tool quickly narrows down the list, finding the exact minimum number of Gold Cups needed to save the cake, while using plastic spoons for the rest.

4. The "Magic Glasses" (CADNA)

To know if the cake is "ruined" without actually baking it a million times, PROMISE uses a library called CADNA. Think of CADNA as a pair of magic glasses that the computer wears while it cooks. These glasses don't just see the numbers; they see the uncertainty or "noise" in the numbers. They can tell, "Hey, this calculation is so sensitive that even a tiny plastic spoon error will ruin the result," or "This calculation is so robust, a plastic spoon is perfectly fine."

5. The "Factory" (Benchmarking Framework)

Running these taste tests takes a lot of time. To speed things up, the authors built a containerized factory.

  • Imagine you have 100 different recipes (algorithms) to test.
  • Instead of testing them one by one in a single kitchen, they put each recipe in its own Docker container (a self-contained kitchen unit).
  • They run 6 of these kitchens at the exact same time on a powerful server.
  • Result: What used to take 13 hours now takes only 3 hours. It's like having a team of chefs working in parallel instead of one chef working alone.

6. What They Found (The Results)

The team tested this on various "recipes," including:

  • Neural Networks (teaching computers to recognize images).
  • Thermal Simulations (figuring out how heat moves through a computer chip).
  • Medical Imaging (tracking particles in videos).
  • Linear Algebra (solving complex math equations).

The Big Discovery:
They found that for most of these programs, the standard "Gold Cup" (Double Precision) is massive overkill.

  • 43% of the variables could be calculated using 32-bit precision (a medium-sized cup) or smaller.
  • 28% could be calculated using 16-bit precision or even smaller (tiny plastic spoons).
  • In some cases, they could use custom 8-bit formats (like the E5M2 format mentioned in the paper) for about 23% of the variables without ruining the accuracy.

Summary

The paper doesn't claim to have invented a new cake recipe or a new medical treatment. Instead, it offers a better way to measure ingredients.

By upgrading the PROMISE tool to handle custom-sized measuring cups and running the tests in a parallel "factory," the authors showed that we can make computer programs much faster and more energy-efficient without sacrificing accuracy. We just need to stop using the Gold Cup for everything and start using the right tool for the right job.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →