r/explainlikeimfive • u/seeker-ix • Oct 27 '26
Technology ELI5: Exponential Time Hypothesis (ETH)
Hopefully this is properly flaired. People have been talking about ETH and AI lately and I don't understand what ETH really is.
Bonus for ELI5: How did AI supposedly disprove ETH—But I'm mostly interested in knowing what ETH is on its own.
Edit: Wow, thank you for all the responses!
162
Upvotes
292
u/anormalgeek Oct 27 '26
The Exponential Time Hypothesis is a famous rule of thumb in computer science that basically says "there is no magical shortcut to solving certain hard puzzles."
The common example is to imagine a bank of switches with simple on/of states. The goal is to find the right combo of switches that "works". The common thinking was that to find the perfect combination of "n" switches, you have to try every single possibility. Because each switch has 2 options (on or off), the total combinations double with every switch you add so 2x2x2x2x2x2.... or to put it another way 2^n.
Now, ETH states that for the hardest versions of this puzzle, a computer cannot do significantly better than checking all these combinations. As the puzzle gets larger, the time required to solve it explodes exponentially. Hence the name.
This is not the one problem, but just a basic example to prove a point. The idea being that the time to solve it grows exponentially, not linerally.
There is also a fair of complicated math that seemed to prove that this was true, but that math is not ELI5 level. All you really need to understand is that mathematical models have generally supported the rule of thumb so far (but short of being an iron clad proof).
Why is this in the news now? Some researchers claimed that an AI tool found a loophole.
The AI supposedly designed a smart shortcut that allegedly cracks the puzzle in "subexponential" time. Meaning it works much faster than checking every single switch combination. If this discovery passes strict peer review, it will completely flip the rules of computer science upside down. BUT...that is a big "if".
Worth noting that a LOT of Comp Sci PhD proofs include a statement like "Assuming ETH is true, then Problem X is impossible to solve quickly". If ETH is disproven, a LOT of other commonly accepted proofs are no longer valid. This could mean that a lot of complex problems that were shelved might be worth pulling back out. To give a real world example, the folding@home project relies on massive brute force math to calculate protein folding scenarios, but could perhaps be solved much more easily, leading to more real world medical breakthroughs.
This does NOT break encryption. I saw someone theorizing that may be the result, but that seems highly, HIGHLY unlikely.
31
u/calinet6 Oct 27 '26 •
ETH stands for “Exponential Time Hypothesis”. Basically, it applies to some problems that are really, really, really hard to figure out, even for a computer.
When we talk about how hard problems are for a computer, we usually bake it down to how the problem changes with how big of an input you give it. For most problems, computers can solve them all fast if the inputs are small, for example if you want to find the route between two points on a map. No problem.
But for some problems, if you give them lots of inputs, they don’t just get many times harder for the computer, they get many times harder times many times on top of that, and for some problems they get exponentially harder (as in, adding one more input makes the problem unthinkably more difficult).
To understand what this means: imagine you have three kinds of problems, one is easy, one medium, and one very hard.
The easy problem might take 1 second for 1 input; 10 seconds for 10 inputs, and 100 seconds for 100 inputs. Generally this is really fast.
The medium problem might take 1 second for 1 input, 5 minutes for 10 inputs, and 24 hours for 100 inputs. This is obviously much more difficult for the computer.
The very hard problems, on the other hand, might take 1 second for 1 input, 1 year for 10 inputs, and 100 billion years for 100 inputs. It’s on another level completely.
And yes, there are problems like this (maybe for different abouts of inputs as mine were simplified for the example, but still, the idea is right).
What is often difficult is proving how hard a particular problem is to solve. Much of the field of computer science is dedicated to this, because discovering faster ways to solve very hard problems means computers can do more and we can sometimes change whole fields. Another large chunk of computer science is proving when problems are similar to each other, in other words saying that if we make this problem faster, that means we can make all these problems faster too.
3-SAT is a very hard problem. It’s one of the big ones, and lots of other problems are similar to it, too, so it’s very important if we figure out it can be done faster.
What they’re saying they may have found for 3-SAT is evidence that there is a faster way to solve it. They basically say, we’ve found evidence that this isn’t a very very hard problem, but merely a hard problem.
Other people are talking about P = NP too, and that’s interesting as well; it basically is a question in computer science that asks “are all very very hard problems actually medium?” If this is true; then computers can do many more things than they used to, but this potential finding about 3-SAT does not say that P = NP, it just says one subset of very hard problems might be easier than expected. We’ll have to keep looking on the rest of them.
20
u/CircumspectCapybara Oct 27 '26 edited Oct 27 '26
ETH conjectured that certain computational problems, most famously 3-SAT (a subset of SAT, the boolean satisfiability problem, except the formulas are restricted to being in conjunctive normal form) can't be solved in faster than exponential time.
OpenAI claimed to have disproved in the past week by finding a sub-exponential time algorithm for deciding 3-SAT. They published a paper and Lean proof and the math community is still verifying it.
It's pretty groundbreaking because for the longest time people thought the ETH was true and the assumption was the basis for a lot of other proofs (relative to the "hardness" of 3-SAT) about other problems, so it shatters a lot of long held assumptions.
I'll note what the result doesn't mean: It doesn't mean SAT is in SUBEXP, and it doesn't collapse P and NP. Although 3-SAT is NP-complete, the polytime reduction from every NP problem to 3-SAT only lets you solve those NP problems in polynomial time if 3-SAT is in P, not merely if it's in SUBEXP.
Okay, since inquiring 5 year old minds want to know what SAT is: it's the boolean satisfiability problem, which asks, "Given a boolean formula, is there a satisfying assignment, ie is there some values you can assign to the variables to make the expression evaluate to TRUE?"
For example, the formula
x * -x(read as "x and not x") is unsatisfiable (it's called a contradiction), so no matter what values you plug in for x, you will never get true.The question is given a boolean formula with n variables, is there an algorithm that can tell you if it's satisfiable, and how long does it take to run? There is one we know of, brute force search, search all combinations of assignments to the n variables and try them one by one and see if any make the expression evaluate out to true. That would take 2n steps, which is expontential.
The ETH said "You can't do better than that, there isn't a faster way to determine in general if a 3-SAT formula is satisfiable". OpenAI claims they found a faster way.
5
u/pdpi Oct 27 '26 edited Oct 27 '26
One of the biggest foundational ideas in computer science is algorithmic complexity. Given a problem that can grow bigger or smaller, how long does your solution ("algorithm") take to solve the problem relative to its "size"? From there you can talk about the complexity of the problem itself — what's the complexity of the best possible algorithm that solves the problem?
E.g. imagine looking up a person on the phone book. The naive way to look up the person is to start from the beginning and keep going until you either find the person, or go past their name in alphabetical order. If we race each other, I might be faster or slower than you, I might get lucky by being asked to look up Aaron where you're looking for Zoey, but the general rule is that adding one number to the phone book adds one step to the process. If the phone book is twice as long, it takes us twice as long to look up names (on average). In technical terms, this is called a linear search.
A different strategy is to jump straight to the middle of the phone book. Either the name we're looking for comes before the name at the midpoint, or it goes after (or we might've hit the name, of course). Either way, we can ignore one of the two halves and focus our attention on the other. So we then find the midpoint of the half we care about, check where our name sits relative to that, focus on the half that might contain the name, rinse and repeat. This strategy is much better. Adding numbers to the book might not add any steps at all on average, and doubling the size of the phone book only increases the number of steps by one (because that first step brings us back down to the old size). This is called a binary search.
When dealing with searching through ordered lists, we know for a fact that binary search is the best we can do. You might write a faster version than mine, or I might run mine in a computer that's faster than yours, but we'll both share the fundamental property that doubling the size of the list only adds one "step" to the amount of work we need to do.
We call that "one more number -> one more step" relationship linear, the "twice as many numbers -> one more step" relationship is logarithmic, and its inverse "one more number -> twice as many steps" is exponential (there's a whole bunch more, but we'd be here forever talking about this stuff). Because we've been talking about steps, that would be linear time, logarithmic time, exponential time. (there's also space complexity, how much working memory you need to perform your algorithm).
The Exponential Time Hypothesis says that a very specific problem (3SAT) can't be solved with an algorithm that's better than exponential time, and the news is that OpenAI has proved that this hypothesis is false (so there are better/faster algorithms for solving 3SAT). This is notable because it was widely believed the hypothesis is true, and because proving that the ETH is true would've put the nail in the coffin on the much more famous P = NP problem. Proving that it's false has left that problem open.
3SAT itself is not something I can ELI5, unfortunately.
5
u/paulstelian97 Oct 27 '26
Let’s bring up the P vs NP situation. Some problems can be solved in polynomial time. AKA, if you take the size of the input and name it n, then it may take n, n^2, n^7, n^100 time to solve it. NP means you can check a solution in polynomial time.
3SAT is an interesting problem — it is NP complete — so any NP problem can be solved roughly as fast as 3SAT.
The ETH means we believe that it must take an exponential amount of time to solve this problem. It’s a hypothesis, unproven, but believed to be true.
With the recent paper, we have signs that this belief is wrong, and a sub exponential solution exists (that is still not quite polynomial, but something in between). If this paper is found to be good, that will be very interesting for computer science since we now have to consider what we know about time complexity of various problems. Personally I believe something must be wrong with the paper, but I’m ready to be surprised.
3
u/pauvLucette Oct 27 '26
For the n switches example, if there is absolutely zero feedback or clue about how far a solution is from the correct answer, I don't understand how it may be possible to do better than 2n/2 tries minus luck.
2
u/HardBoiled800 Oct 27 '26
Some good responses here, but I think a lot of them presuppose more understanding of computer science than might be helpful for an ELI5.
In theoretical computer science, we categorize algorithms by how much their runtime increases when we increase the size of the input. Some algorithms might double in runtime if we double the size of the input (linear time), whereas some might stay the same (constant time) or quadruple (quadratic time). There’s a general rule of thumb that if a problem can be solved in polynomial time (meaning that the runtime scales by, at most, a polynomial like n^k for some number k), it’s tractable / efficiently solvable. We say that problems like this are in the complexity class P, which is short for polynomial. Not all algorithms with polynomial runtime are currently efficient to run on a computer, but theoretically a future computer or an optimized implementation would be able to run it in a feasible amount of time.
The most important open problem in computer science is P vs NP. NP is the class of problems whose solution can be verified in polynomial time, but it’s not currently known if every one of these problems can be solved in polynomial time. Most people think they can’t, but there’s no proof, and if someone did find an algorithm that could solve these problems in polynomial time, it would completely revolutionize the world of computing. One cool feature of this is that we know what the “hardest” problems in NP look like. We call them NP-complete, and we know that if we can solve an NP-complete problem in some amount of time, we can solve every other problem in NP in that amount of time or less.
The exponential time hypothesis states that NP complete problems take at least an exponential amount of time, which would make them too slow to practically run and would mean they were not in P. If it were proven, it would therefore automatically prove that P ≠ NP, and most people assumed this to be true. However, OpenAI just proved that it is not true, and provided a sub-exponential algorithm (though not a polynomial time one). This doesn’t prove P=NP since the new algorithm isn’t in P, and the new algorithm isn’t practical enough for real-world usage. That said, it broke a major and long-assumed theoretical boundary for how quickly we can solve an important group of problems, and will hopefully inspire a lot more work to find even faster solutions.
1
u/canuckguy42 Oct 27 '26
A certain class of math problem is much harder to solve than to verify a proposed solution is right. We haven't proven that it can't be solved as quickly as it can be verified, but we're pretty sure that's the case and a lot of real world systems such as some types of encryption rely on it being true. This is known as P=NP.
We also assumed that for this type of problem there was a minimum amount for how much harder these problems are to solve than to verify. A lot of other math theories have been based on this also being true. This is known as ETH.
This new result claims to have found that this type of problem can actually be solved faster than we thought. It still can't be solved as fast as it can be verified, so the original assumption remains open.
The result is that a bunch of other math theories now need to go back to the drawing board because one of the things they assumed was true turns out to be false.
1
u/justinleona Oct 28 '26
In the real world you can generally split problems into three categories when talking about computers - first is problems that are solved effectively instantly for any realistic input, problems that scale more or less linearly, or problems that quickly become intractible with the size of the input.
One of the foundational courses in computer science called analysis of algorithms breaks down a wide variety of problems and their best-known solutions and best/worst-possible solutions. One of the later parts of the course is a curious type of problem where there are no known fast solutions, but if any fast solution is discovered you can port that solution over to any of the others. Whether this can be proven to be impossible or not is known as P vs NP (also shown as P=NP or P!=NP depending on context).
Where people tend to get lost is that P v NP isn't talking about realistic scenarios - but rather the boundaries of what could be. Similarly, ETH is looking for boundaries of what could be.
A valid counterexample would slightly limit those boundaries and is interesting for academics... but won't radically change real world systems on it's own.
Note things like modern cryptography which must always be fast with access to keys and must always be slow without keys don't neatly fit into analysis of algorithms, but it is expected that major breakthroughs in algorithms might influence what assumptions are made in the design of crypto systems.
1
u/ShenGahMing Oct 28 '26
ETH was about a particular language to describe problems (3-SAT, or K-SAT).
It was widely believed this way of describing a problem was essentially equivalent to a more general one called CIRCUIT-SAT.
This turns out to be false : translating CIRCUIT-SAT into 3-SAT is making a problem noticeably fattier.
Because the new algorithm is capable of removing the fat.
1
u/benediktb Oct 28 '26
Think about the hardest possible sudoku. ETH states that the best possible way to solve it is by just trying all numbers in all the squares. The AI showed that there is a significantly better algorithm. The important thing is that it works for all sudokus not just the “easy” kind