← Latest papers
🔢 mathematics

Expressivity of Shallow Neural Networks Over Finite Fields

This paper investigates the expressivity of shallow polynomial neural networks over finite fields by defining a neuromanifold whose cardinality is bounded through the counting of rational points linked to the Weil conjectures, ultimately demonstrating how field characteristic critically influences network expressivity compared to characteristic zero.

Original authors: Maksym Zubkov, Carol Wu, Shiwei Yang, Param Mody, Yifei Chen

Published 2026-07-21
📖 6 min read🧠 Deep dive

Original authors: Maksym Zubkov, Carol Wu, Shiwei Yang, Param Mody, Yifei Chen

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 trying to build a machine that can solve puzzles. In the world of computers, these machines are called neural networks. Usually, we think of them as giant calculators that can handle any number, from tiny decimals to massive integers, just like the numbers on a standard calculator. But what if we forced these machines to only use a very specific, tiny set of numbers? Imagine a world where you can only count using the numbers 0, 1, 2, 3, and 4, and if you try to count to 5, you snap back to 0. This is what mathematicians call a "finite field." It's like a clock that only has five hours.

Why would anyone want to do this? In the real world, computers use a lot of energy and memory to store all those big, complex numbers. If we could teach our puzzle-solving machines to work with just a few simple numbers, we could make them run faster, use less battery, and fit into smaller devices. But there's a catch: when you change the rules of the numbers, you might change the rules of what the machine can actually do. This paper asks a big question: If we shrink our number system down to a tiny finite field, does our neural network lose its superpowers, or does it stay just as strong? The authors are essentially testing the limits of these simplified machines to see how many different puzzles they can actually solve.


The Paper: Counting the Possibilities in a Tiny World

This paper dives into the "expressivity" of a specific type of neural network called a "shallow polynomial neural network." In plain English, "expressivity" is just a fancy word for "how many different things can this machine actually create?" Think of the machine as a chef. If the chef has a huge pantry (a complex number system), they can cook almost any dish. But if the pantry is tiny (a finite field), can they still cook a wide variety of meals, or are they stuck making the same soup over and over?

The authors focus on "shallow" networks, which are like simple kitchens with just one cooking station between the ingredients and the final plate. They use a special kind of "activation function," which is just a rule the machine follows to mix its ingredients. In this case, the rule is simple: take a number and raise it to a power (like squaring it or cubing it).

The researchers built a mathematical framework to count exactly how many different "dishes" (or mathematical functions) these networks can produce when they are forced to work in a finite field. They call the collection of all possible dishes a "neuromanifold." It's like a map of every possible meal the chef can make. The bigger the map, the more expressive the network is.

The Big Surprise: Clocks vs. Real Numbers
The most striking finding is that these networks behave very differently depending on whether they are working in the "real world" (using complex numbers) or in the "tiny world" (finite fields).

In the real world, if you have a network with two outputs (two plates to fill), the map of possible dishes is huge and covers almost everything. It's like saying, "With enough practice, this chef can make any combination of two dishes." However, when the authors moved this same network to a finite field, the map shrank dramatically. For a specific setup, the network could only make about half of the possible dishes it could make in the real world.

To put it another way: In the real world, the network is a master chef who can make almost anything. In the finite field, that same chef is suddenly restricted, unable to create a huge chunk of the menu, even though the recipe (the architecture) hasn't changed. The authors show that the "characteristic" of the field (a property of the numbers, like whether the clock has an even or odd number of hours) plays a critical role in this limitation.

Counting the Dishes
The paper doesn't just say "it's smaller"; it actually counts the dishes.

  • For some simple setups (like a network with one output), they found that the network can fill the entire menu, just like in the real world.
  • For others (like the two-output setup mentioned above), they calculated that the network fills only a specific fraction of the menu. For example, with a specific clock size (prime number pp), the network's ability to create variety approaches exactly 1/2 of the total possibilities as the clock gets larger.
  • They also discovered a weird trick with the numbers: if the power you raise the numbers to is a multiple of the clock's size (like raising to the power of 5 on a 5-hour clock), the network behaves exactly as if you were raising to the power of 1. It's a mathematical shortcut that simplifies the problem but also limits the variety.

What They Didn't Solve
The authors are careful to note that while they solved the math for simple, single-layer networks, things get much messier with deeper networks (more cooking stations) or more complex setups. They explicitly state that for networks with three or more "ingredients" in the middle layer, the counting becomes incredibly difficult, and they don't have a clean formula for those yet. They also point out that while they proved these networks are limited in finite fields, they haven't fully mapped out every possible limitation for every single type of network architecture.

The Takeaway
Ultimately, this paper proves that you can't just assume a neural network will work the same way if you shrink its number system. The "rules of the game" change. For some simple tasks, the network is fine. But for others, the finite field acts like a filter, blocking out half the possibilities. This is a crucial insight for engineers who want to build efficient, low-power AI. It tells them that while shrinking the numbers saves energy, they need to be very careful about the network's design, because the "menu" of what the AI can learn might be much smaller than they expected. The authors suggest that understanding these limits is the first step to building better, more efficient machines that don't lose their magic when they switch to a tiny number system.

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 →