Expressive Power of Floating-Point Neural Networks with Arbitrary Reduction Orders and Inexact Activation Implementations
This paper establishes a general distinguishability framework to characterize the universal representability of floating-point neural networks under realistic execution semantics, proving that arbitrary reduction orders and bounded ulp errors in activation implementations do not preclude exact function representation for a broad class of practical activation functions.
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 a neural network as a giant, complex factory designed to sort and transform raw materials (data) into finished products (answers). For decades, the blueprints for these factories were drawn by mathematicians who assumed the factory had perfect tools. They assumed that if you added two numbers, the result was always exactly correct, and that the factory's "activation switches" (the parts that decide how much signal to pass along) worked with absolute, mathematical precision.
However, real-world computers don't use perfect tools. They use floating-point arithmetic, which is like a factory using rulers that are slightly worn down. When you add numbers, the order in which you add them can change the result (because the ruler isn't perfect), and the "activation switches" might not be set to the exact theoretical position—they might be off by a tiny fraction of a hair's width.
This paper asks a critical question: If we build our neural network factory with these imperfect, real-world tools, can it still do everything we need it to do? Specifically, can it still learn to represent any possible pattern or function, or does the imperfection break the magic?
Here is the breakdown of their findings using simple analogies:
1. The "Order of Operations" Problem
In a perfect world, adding numbers is like stacking blocks: it doesn't matter if you stack block A on B, then C, or B on C, then A; the tower is the same.
In the real world (floating-point), the order matters. It's like trying to mix paint in a bucket where the bucket is slightly leaky. If you pour the red paint in first, then the blue, you get a slightly different shade than if you pour blue first, then red.
- The Paper's Finding: The authors proved that even if the factory uses any random order to mix these paints (add numbers), the network can still learn anything, provided the "activation switches" are good enough. You don't need a fixed, perfect order to get the job done.
2. The "Distinguishability" Test
To understand how a factory sorts items, imagine you have two very similar-looking apples (Input A and Input B).
- The Problem: If the factory's first machine (the first layer) squashes both apples into the exact same shape, the rest of the factory will never know they were different. It will treat them as the same apple forever.
- The Paper's Solution: The authors introduced a rule called "Distinguishability." They proved that for a network to be a "universal" learner (able to do anything), its first layer must be able to tell every single pair of different inputs apart. If the first layer can't tell two different inputs apart, the whole network fails.
- The Good News: They showed that most common activation functions (like ReLU, Sigmoid, Tanh, Swish, etc.) can tell inputs apart, even with imperfect math.
3. The "Imperfect Switch" Problem
In theory, a switch might turn on exactly when the input hits 0.5. In reality, due to manufacturing limits, the switch might turn on at 0.5000001 or 0.4999999.
- The Paper's Finding: Previous theories said, "If the switch isn't perfect, the network might break." This paper says, "Not necessarily."
- They proved that as long as the "imperfection" (the error) is small and bounded (like being off by only a few tiny units, or "ulps"), the network can still distinguish inputs and learn anything.
- The Result: They confirmed that popular activation functions used in real life—like Sigmoid, Tanh, ReLU, GELU, Swish, and even Sin—are robust enough to work perfectly well, even if their computer code implementations aren't mathematically perfect.
4. The "Cosine" Counter-Example
The authors also found a specific case where the factory does break. They showed that if you use a Cosine activation function (which wiggles up and down like a wave), the network might fail to distinguish between certain inputs because the wave repeats itself. It's like having a factory where two different colored balls get painted the exact same shade of blue because the paint machine cycles through colors too fast.
- This explains why some theoretical functions work in math class but fail in real computer code.
Summary: The Big Takeaway
The paper essentially says: "Don't worry about the tiny errors in your computer's math."
Even though real computers have:
- Rulers that aren't perfect (rounding errors),
- Mixing orders that change the result (non-associative addition),
- Switches that aren't perfectly calibrated (inexact activation implementations),
...neural networks built with these tools are still powerful enough to represent any function you throw at them, as long as you use standard activation functions (like ReLU or Sigmoid). The "magic" of neural networks survives the transition from perfect math theory to messy, real-world engineering.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.