Optimal Shallow Circuits for Majority
This paper presents a GPT-6 Astra-discovered construction of depth- circuits with size for any symmetric function, thereby settling the asymptotic complexity of Majority by matching Håstad's long-standing lower bound.
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
In the vast landscape of computer science, there is a fundamental question that has kept researchers busy for decades: how much effort does it truly take to solve a problem? To answer this, scientists do not just run programs on supercomputers; they build theoretical models of computation called circuits. Imagine a circuit as a massive, intricate web of switches and logic gates, where information flows from the bottom up, getting processed at every step. The goal is to see how small and how shallow this web can be while still performing a specific task. If a task requires a circuit that is impossibly huge or incredibly deep, we consider that task to be inherently difficult. For forty years, the best-known limit on how hard a simple task could be was set by a function called Parity, which simply checks if a list of numbers contains an odd or even count of ones. This limit stood as a wall that no one could climb over, even for other seemingly harder tasks.
Among these other tasks, one has long been a favorite target for researchers trying to break that wall: the Majority function. This function takes a list of ones and zeros and outputs a one if more than half of the inputs are ones, and a zero otherwise. It feels intuitively more complex than checking for parity, and for a long time, the best circuits anyone could build for it were significantly larger than the theoretical minimums suggested by the Parity limit. This gap between what we could build and what we thought was necessary created a lingering mystery. Was the Majority function actually harder than Parity, requiring much larger circuits? Or was our inability to build smaller circuits simply a sign that we were missing a clever trick? For decades, the field waited for an answer, hoping that cracking this specific puzzle would reveal the tools needed to solve even bigger, more fundamental problems in computing.
A recent paper by researchers at the Alignment Research Center and Harvard University has finally closed this gap, revealing that the Majority function is not nearly as hard as we feared. The team, with the assistance of an advanced artificial intelligence system, discovered a way to construct circuits for Majority that are essentially as small as the theoretical limits for Parity. They proved that for any fixed depth of circuit, the size required to compute Majority grows at the exact same rate as the size required for Parity. This means that the long-standing belief that Majority needed significantly larger circuits was incorrect. The researchers did not just find a slightly better way to build these circuits; they found a construction that matches the absolute best possible lower bound known in the field, effectively settling the question of how hard Majority really is.
The path to this discovery began with a shift in perspective. For years, researchers tried to solve the Majority problem using a standard strategy called divide and conquer. This approach involves breaking a large list of numbers into smaller chunks, solving the problem for each chunk, and then combining the results. While this method works well for many problems, it produced circuits for Majority that were slightly too large, carrying an extra factor of complexity that seemed unavoidable. The new work suggests that this traditional approach was not the only way to think about the problem. Instead of trying to combine the results of smaller chunks directly, the researchers designed a system of "tests."
Imagine the input as a collection of blocks of data. The new method does not try to count the total number of ones immediately. Instead, it sets up a series of checks that verify whether the blocks have specific, distinct properties relative to one another. The researchers split the input into several blocks and assigned a random shift to each block. They then checked if the shifted values of the blocks were all different from one another. If the blocks were all different, a mathematical property guaranteed that the total sum of the original inputs would match a specific target number. This check could be performed very efficiently because it only required comparing pairs of blocks, rather than analyzing the entire dataset at once.
The brilliance of the construction lies in how these tests are combined. The researchers realized that if you pick the shifts randomly, there is a surprisingly high chance that a valid input will pass at least one of these tests. By generating a large collection of these random tests and connecting them with a simple "or" gate, they created a circuit that accepts every valid input while rejecting invalid ones. The size of this collection was small enough to match the theoretical limits set by the Parity function. This approach bypassed the inefficiencies of the traditional divide-and-conquer method, which had been forcing the circuits to be larger than necessary.
The researchers also showed that this method works for any symmetric function, a broad category of problems where the answer depends only on the total count of ones, not on their specific order. This includes Majority, but also many other functions. The proof relies on a technique known as color-coding, a concept borrowed from graph theory that involves randomly assigning labels to elements to find specific patterns. In this context, the random shifts act like colors, ensuring that the blocks are distinct in a way that reveals the total count. The team used an artificial intelligence system to generate the initial idea for this construction, but the human researchers were responsible for rigorously proving that the idea worked and explaining why it was correct.
This result is significant because it removes a major obstacle in the study of circuit complexity. For a long time, the fact that Majority seemed to require larger circuits than Parity suggested that our tools for proving lower bounds were incomplete. If Majority was truly harder, it might have meant that the existing limits were not tight, and that we needed new, more powerful mathematical tools to understand the difficulty of computation. By showing that Majority is actually as easy as Parity in terms of circuit size, the paper confirms that the existing tools were sufficient all along. It suggests that the difficulty in improving these bounds was not due to a lack of mathematical power, but rather a lack of the right perspective on how to build the circuits.
The paper also addresses a specific concern raised by previous work. Some researchers had proposed that if Majority could be built with smaller circuits, it would imply that certain other hard problems could be solved much faster than currently believed. The new construction shows that Majority can indeed be built with small circuits, but it does so in a way that does not trigger those faster solutions for other problems. This distinction is crucial because it means the result resolves the complexity of Majority without causing a collapse in our understanding of other computational limits. The researchers carefully demonstrated that their construction fits within the known boundaries of what is possible, avoiding any contradictions with established theories.
In the end, the paper provides a clear and definitive answer to a question that has lingered for decades. The Majority function, once thought to be a step up in difficulty from Parity, is now known to sit at the same level of complexity. The construction is simple in its logic but profound in its implications, showing that sometimes the most efficient solution is not a direct calculation, but a clever arrangement of checks that cover all possibilities. This discovery does not just solve a specific problem; it offers a new way of thinking about how to build efficient circuits for other complex tasks. It suggests that by looking at problems through the lens of random testing and pattern matching, rather than direct calculation, we may find more efficient solutions to other long-standing challenges in computer science. The work stands as a reminder that in the study of computation, the hardest problems are sometimes solved not by building bigger machines, but by finding a simpler way to look at the data.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.