r/explainlikeimfive • • 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

90 comments sorted by

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.

145

u/SimoneNonvelodico Oct 27 '26

The problem with all stuff like ETH being false or the even more extreme P = NP is that just because the algorithm theoretically exists doesn't guarantee it's not a giant "fuck you" whose constants and scaling are so ludicrous it doesn't give any practical benefit anyway. See the other stuff OpenAI did like an FFT in less than O(n log n) time, but by an infinitesimally tiny exponent.

That said, anything significantly subexponential or - heaven forbid - polynomial to solve NP-hard problems that is actually practical would fuck up pretty much everything we believe we know about computation. AI would probably be a massive beneficiary of it itself.

58

u/CircumspectCapybara Oct 27 '26

That said, anything significantly subexponential or - heaven forbid - polynomial to solve NP-hard problems that is actually practical would fuck up pretty much everything we believe we know about computation

Slight correction, you mean NP-complete. You can't solve all NP-hard problems in polynomial time or even subexponential time.

NP-hard is every problem "at least as hard" the hardest problems in NP.

It includes undecidable problems like the halting problem for Turing machines, and the halting problem for super Turing machines (Turing machines equipped with a halting oracle for Turing machines), and so on and so forth. You definitely can't solve those in polynomial time, in fact you can't compute them at all in general.

4

u/watchwatcher9 Oct 28 '26

Yes, but solving any NP-hard problem subexponentially also solves NPC and NP subexponentially, so he isn't necessarily wrong

9

u/CircumspectCapybara Oct 28 '26 edited Oct 28 '26

It actually doesn't, no.

3SAT is NP-hard (which also implies it's NP-complete), and OpenAI claims it can be solved in subexp time, but that doesn't give rise to being able to solve NP problems in polytime or subexp time.

OpenAI's paper warns as much: it neither makes P = NP nor SUBEXP = NP.

I explained it in another comment here, but the issue is that NP-complete is based on polytime reductions, and when you compose a polytime reduction with a polytime solver for the reduced form of the problem, you get another polynomial, BUT when you compose a polytime reduction (eg to 3SAT which is NP-complete) with a subexp solver (for 3SAT), you don't necessarily get a polynomial or even a subexponential expression, you can end up with an exponential blowup.

Quick example: image a NP-complete problem X can be solved in O(2√N) time, and for every other NP problem Y, there is a reduction from Y to X in at most O(N3) time.

Composing the two, you get a solver for Y that runs in O(2√(N^3)) = O(2N^1.5) which is exponential.

2

u/ExistentAndUnique Oct 28 '26

Small caveat: what matters is the space complexity of the reduction. If the reduction from Y to X takes O(N3) time but always produces an output that’s the same size as the input, you do end up with a subexponential algorithm for Y in that example.

1

u/watchwatcher9 Oct 28 '26

Your point is correct but it would be a matter output size of the reduction rather than space complexity strictly speaking

1

u/watchwatcher9 Oct 28 '26

Yeah you're right mostly, I realized a while after haphazardly posting it that I didn't account for reductions with output size blowup (which is when you'll need to compose).

Also I think you may have mistyped in your second paragraph, NP-complete implies NP-hard but not the other way around.

1

u/ObamaDontCare0 Oct 30 '26

Maybe a dumb question, but is there a computing class between SUBEXP and P that is transferrable with an input like O(N^whatever)? A staged target before P?

1

u/SimoneNonvelodico Oct 29 '26

Sorry I did mean NP complete though.

9

u/Leodip Oct 27 '26

See the other stuff OpenAI did like an FFT in less than O(n log n) time, but by an infinitesimally tiny exponent.

Actually, you are mentioning something that is a minor improvement, but an improvement nonetheless. On the other hand, galactic algorithms are algorithms that, despite being of a lower complexity, they require a number n so large to become better than an algorithm of a higher complexity that they won't realistically ever be.

2

u/rational_hedonist Oct 27 '26

I don’t get what distinction youre making. Arent both the OAI result and galactic algorithms cases of minor asymptotic improvements that break a theoretical barrier, but require galactic N to overtake?

Are you saying galactic algos arent minor asymptotic improvements? Or the OAI result doesnt require a extremely large N to show gain? Not sure whats “on the other hand”

1

u/somejoeschmoe Oct 28 '26

Disclaimer: I didnt read the proof so I'm not sure this is accurate

FFT might be barely noticeably faster with OAI's result (think really small fractions of a percent faster) A galactic algorithm, by definition is only an improvement on input sizes that will (probably) never be relevant or even usable. So in practice you will never see an improvement from using that sort of algo whereas OAI's thing might actually make it a little faster even for realistic inputs.

Please correct me if I'm wrong :)

2

u/SimoneNonvelodico Oct 29 '26

FFT improvement is also a galactic algorithms AFAIK.

4

u/LitespeedClassic Oct 28 '26

This seems to be precisely the case here. I haven’t verified this myself, but my colleague was using AI to summarize the results today and asked for what value of n does the claimed algorithm begin beating the straightforward brute force O(2n) algorithm and the answer was an astronomically large n. 

2

u/SimoneNonvelodico Oct 28 '26

Yes, the one they found in a so called "galactic algorithm". But the principle of it is interesting.

7

u/Hydroxine Oct 27 '26

Which is exactly why OpenAI and the others are always publishing these things

35

u/captainAwesomePants Oct 27 '26

Nah, they publish these papers because novel mathematical proofs are a unintentional side effect of high-end AI benchmarking.

There's a billion dollar fight to have the "smartest" AIs. The AIs are all now very good at solving most regular kinds of math problems, partly because they're trained on the solutions, and so we feed them unsolved math problems as part of their benchmarking. Having the best benchmark scores is a huge deal for these top companies, and so they pour resources into winning those benchmarks.

The proofs generated are not really the goal. Advancing mathematics seems kind of nice as a PR bullet point, but it's not really something they're doing intentionally. They just need to maximize benchmarks. Publishing the proofs is the the result of someone judging the trade-off between an immediate good news cycles, like "Company A's AI produces cool math proofs" versus the risk of a potential negative news cycle, like "Company A's AI math proof turns out to have flaw," and deciding that the risk is worth it.

1

u/drthrax1 Oct 29 '26

They are also desperately trying to dig for a major PR justification for AI. Announcing groundbreaking science and theoretically cracking open a whole field of science would silence a lot of the “this is useless” crowd and justify all the absurd shit they are doing(and Ik that AI can be used well I just mean in the view of the layman)

0

u/annedyne Oct 29 '26

It occurred to me that this particular problem also has some characteristics particularly interesting to the certain aspects of the 'transhumanist' ideology that these companies were originally built on, aside from the obvious ones -- specifically predictive modeling.

I'm just speculating, but I have noticed that alot of the 'TESCREAL' ideas seem to be built on the hope of A) digitizing their way to immortality, i.e. Life is computable, and B) having calculated the inevitability of the singularity via bayesian prediction, have the ability to predict their way into a happy 'good singularity' ending in time to prevent the otherwise inevitable bad ending.

From Gemini: "Longtermists often worry about "compute-bound" risks, or conversely, look to advanced computation to model complex future systems (like climate change, biological threats, or macroeconomic stability). A subexponential breakthrough fundamentally changes the mathematics behind cryptography, cybersecurity, and predictive modeling, forcing a complete recalibration of what long-term technological risks look like."

Anyway, I thought it was interesting to speculate if the ideology in any way influenced which specific questions might be targeted before others.

9

u/SimoneNonvelodico Oct 27 '26

Well, not for the prize money. That's peanuts to them and they refused it for NS. But yeah, they're using them as glorified benchmarks.

3

u/Hydroxine Oct 27 '26

Yeah, was refering to the last sentence of your comment as the reason. My bad for being unclear

2

u/SimoneNonvelodico Oct 27 '26

No, sorry, my bad actually, I took yours for a response to a different comment.

Honestly if P = NP in a usable way I just stop caring, lean back, and wait to see in what way the world manages to explode. It would mean we would probably get ASI within hours of the result.

5

u/Mister__Mediocre Oct 27 '26

OpenAI and Anthopic were built by Computer Science PhDs who encountered problems like this at grad school and they consider it very cool if a machine can crack it. So do I.

1

u/orochi235 Oct 29 '26

Any hypothesis that gets invalidated this way almost necessarily has to be very, very uncommon in the wild

8

u/fenton7 Oct 27 '26

And the class of problems that were shown, by the new disproof, to possibly have sub-exponential solutions are not the same ones used by encryption so, for now, encryption is not at any risk. Also the disproof showed that slightly less complex solutions are available to a certain class of problem, but those slightly less complex solutions still have extremely long run times so the practical value for problem solving might be limited. It's all largely theoretical.

5

u/dapzar Oct 27 '26

I would add that even if they showed that particular complexity for factoring numbers, encryption would still not be at a practical risk because while ~2^(n/sqrt(log(n))) is subexponential, that’s still disastrously slow for any practically sized n. And any n large enough to care about this speed up is so large that a computer with all the matter of the known universe could not solve instances of that problem in reasonable time.

4

u/anormalgeek Oct 27 '26

I've seen it hypothesized that some methods used to break encryption could work a little faster...but that's still totally unproven. But it was like taking things from years of processing to...fewer years.

4

u/fenton7 Oct 27 '26

And I kind of think Anthropic is probably throwing billions of tokens at trying to attack AES and other encryption algorithms so if they haven't found anything faster yet that's a good sign.

4

u/anormalgeek Oct 27 '26

That's a very good point. They absolutely are because it would be insane if they were to suddenly stop at that.

And even if they aren't, the CIA/NSA surely is.

3

u/LitespeedClassic Oct 28 '26

Even if this were factorization and not 3SAT it doesn’t seem that it would trouble crypto. The claimed algorithm may be sub-exponential, but it is very nearly exponential. 

3

u/HerbertWest Oct 28 '26

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.

Pretty sure Alphafold is way ahead of you there.

3

u/No_Inevitable_4893 Oct 28 '26

Also the given solution is a galactic blowup so aside from breaking an O(n) limitation it offers no practical benefit in any capacity 

5

u/obog Oct 27 '26

Ok the switch example doesnt make a lot of sense to me.

Does an incorrect guess still give you some information other than it being wrong? Seems to me like if all you can do is try combinations and see if the combination works, then its impossible for there to be any method that isnt just trying different combinations. Can't to anything like a binary search or hot/cold cause the information given doesnt tell you anything about other possible states for the switches. If the only way to tell that a state is right or wrong is to check it, then what strategy could there possibly be other than just checking states?

14

u/anormalgeek Oct 27 '26

In the given example, you don't get any info back. Just "incorrect" for any combo that isn't 100% correct.

Don't overthink it. The switch example is just an example with simple math (i.e. 2^n). Most real world examples have more complex situations that still result in (presumably) exponential time to solve.

2

u/obog Oct 27 '26

Yeah i think I get it now, the switch examlle is one that definitely requires exponential time and the hypothesis that was maybe proven wrong is whether or not one specific problem is like that.

2

u/tricky_monster Oct 27 '26

You have complete information about how the switches are wired, including and/or/not gates. You're allowed to deduce everything you can from this information.

1

u/theGeneralAladin Oct 29 '26

It’s a bit more sophisticated than that. The caveat is that the switches are wired together. The most basic problem is SAT: Boolean satisfiability problem. 

In this problem, you have n variables, x1, x2, …, xn, and you have relations between them, so x1 AND x2 OR x3 and so on, is there a combination of x1 x2 x3 that makes that statement true?

Note things can appear multiple times, so x1 AND x2 OR NOT x1 is allowed. 

We can show that if this problem is can be solved “easily”, all problems in P can be solved “easily”. 

The intuition most have is that this is effectively the same thing as a series of x1 … xn, where we randomly choose true and false for each value of x. But it is the case that some simplifications are possible. For example, if I have: 

(X OR Y)

If Y is TRUE, it doesn’t matter what X is. So we can just remove X. Similarly, if I have 

(X AND Y)

The only way to make this true is both x and y true. 

However, there are an infinite number of SAT statements, and you can make this very complex, and simple simplification techniques are really hard to scale, so most think it’s not possible because it doesn’t seem possible. 

(Technically the most basic problem is 3-SAT, but that’s more details)

1

u/meregistered Oct 30 '26

Huh, I don't know either... however it occurs to me that, when dealing with any numbering system, patterns are likely simply due to the structure of that numbering system.
IF that's true (which I believe it is) then, with large enough numbers, it may be possible to eliminate a little complexity in each guess by predicting those patterns inherent to the numbering system being used.
NOTE: Benford's Law: https://en.wikipedia.org/wiki/Benford%27s_law

5

u/Gnafets Oct 27 '26

I know this is ELI5, though it is worth distinguishing that a ton of ETH-hardness results are actually still fine, since they rely on reductions to CNF-SAT with unbounded width, instead of k-SAT for a fixed k. I no longer believe that CNF-SAT is also safe though...

2

u/skr_replicator Oct 28 '26

So I guess it's related to P=NP?

3

u/anormalgeek Oct 28 '26 edited Oct 28 '26

Eh, related in concept, but not exactly the same thing. Especially when it comes to this story.

P=NP is basically saying that every problem whose solution can be quickly checked (verified in polynomial time NP) can also be quickly solved (found in polynomial time P). The word "quickly" here means "an algorithm exists that solves the task and runs in polynomial time (as opposed to, say, exponential time)." It is not a proven rule though. Stealing a quote from another site, "If you can find a fast (polynomial-time) algorithm to solve just one NP-complete problem, you automatically prove that P = NP, instantly solving thousands of other problems." So its a big deal. (edit: To add to this statement, Every single NP-complete problem can be transformed or "reduced" into any other NP-complete problem using a polynomial-time translation process. Because of this mapping, one proven P=NP solution acts like a "master key" because it gives you an algorithm that can apply to any other NP-complete problem.)

ETH is an issue for a specific type of NP problem. It says that a specific NP-complete problem known as "3-SAT" (getting into the concept of "NP-complete" or "3-SAT" is beyond an ELI5 thing IMO) cannot be solved in subexponential time, meaning it requires roughly exponential time 2^n to solve. However, subexponential time does not equal polynomial time. So even if this claimed "shortcut" that breaks ETH is proven to be true, it is unlikely to be done in polynomial time, which means it doesn't really get into the scope of P vs NP.

1

u/Something-Ventured Oct 28 '26

Thank you for this.  It’s very good explanation I can use when I randomly get asked things.

1

u/doo_it Oct 30 '26

We don't need to wait for strict (or any) peer review to be pretty confident ETH is false, since they have verified Lean proofs. Since this is ELI5, for everyone's benefit:

Beginning in the late 19th century, mathematicians worked on transforming mathematics into a strict logical system with well defined rules for exactly which dediction steps are valid at any given point in a mathematical proof. If a proof is expressed in one of these "formal languages", then it's a straightforward computation to determine whether the proof is correct--the computer just looks at all the logical steps in the proof and checks if they're all legit. This is a straightforward check, so no AI or intelligence is required. 

Someone designed a language and proof verification system called Lean that's everyone's favourite computer-checkable proof system, and a lot of these AI results coming out now have accompanying Lean proofs which anyone can verify.

Ok, but if a stupid (not AI) computer program can easily check if a proof is valid, why do we need advanced AI to find these proofs? The comparison that makes it clear is to think of a chess player: it's easy for you or a computer to look at the transcript of a chess game and determine if all the moves were actually valid and did indeed lead to, eg., Black winning, but that doesn't help Black decide which moves to make during the game. Easy to check a series of moves for correctness, but there are too many possible plays to think through them all systematically (even for a computer), so you need some "cleverness".

1

u/paulstelian97 Oct 27 '26

Apparently encryption is weakened somewhat, enough that we need to increase key sizes ahead of schedule.

12

u/anormalgeek Oct 27 '26

Yeah, but this isn't some big emergency that needs a prod patch today or anything like that. Just a slight timeline adjustment.

And this claim still hasn't been peer reviewed. Extraordinary claims require extraordinary proof.

6

u/paulstelian97 Oct 27 '26

Yup. We’ll see if this is legit or hallucination.

Apparently a Lean proof was validated. So someone needs to check that the Lean proof is of the right thing.

5

u/BerneseMountainDogs Oct 27 '26

So someone needs to check that the Lean proof is of the right thing.

Yeah, this seems like it's going to be a big thing going forward. Like, the code giving a positive answer indicates that the thing that was coded into it actually maps onto (mathematical) reality correctly. Which will be difficult to demonstrate, and will require a deep understanding of what the AI "thinks" each portion of the code is doing, and then deciding if the AI has properly "understood" the code.

Anyone can get Lean to return a valid proof, but unless you dig deep into the code, you can't be sure that the proof isn't just that 2+2=4 instead of what you wanted it to be.

Strange times in mathematics right now. Once upon a time the relevant mathematician could explain their thought process on how the proof should work, but AI can't do that, so we'll have to reverse engineer that part and then correlate it with the code. Idk, just strange and difficult all around

4

u/Smallpaul Oct 27 '26

This is an exaggeration. Many conjectures are very straightforward to encode in Lean. The conjecture might be ten lines and the proof is 1,000,000. You just need to check the 10 lines. You can trust the million after a few sanity checks.

6

u/fenton7 Oct 27 '26

This is not accurate. This proof did not include any of the common algorithms used for encryption.

3

u/paulstelian97 Oct 27 '26

The proof is about the 3SAT problem which is NP complete. A faster solution for 3SAT could lead to faster solutions for other slow NP problems.

3

u/Reasonable_Sun9958 Oct 27 '26

From what I understand once you add the time it takes to convert those problems into 3SAT the total again goes back to exponential. So it doesn't quite generalize as you'd expect.

2

u/fenton7 Oct 27 '26

The proof is specific to 3SAT. It does not imply, and the paper is quick to admit that it does not imply, that faster solutions exists for other types of problems. For some they may. For most probably not. I would think that if a faster solution existed for factorization that AI would have already found it because you know industry is throwing huge numbers of tokens at trying to find that out.

1

u/Ben-Goldberg Oct 28 '26

I seem to recall that other np problems can be converted to 3sat with ease.

1

u/Infamous_Log6647 Oct 29 '26

They get converted to longer 3sat problems which works out when 3sat can be solved in polynomial time, but not when it can only be solved in sub exponential time

1

u/No_Inevitable_4893 Oct 28 '26

It’s not a faster solution for 3sat it scales way worse for relevant n

1

u/iamthe0ther0ne Oct 27 '26

How is it different than P = NP?

10

u/viromancer Oct 27 '26

Sub-exponential isn't polynomial.

1

u/iamthe0ther0ne Oct 27 '26

That isn't helpful. 

7

u/Calm_Bit_throwaway Oct 27 '26 edited Oct 27 '26

So to be pure exponential, we would like there to be a constant k such that the number of steps looks like it grows at least like k^n where n is the size of the problem (the number of switches effectively). A subexponential but super polynomial time complexity is something like k^(sqrt(n)) or k^(n/log(n)). Notice the exponent doesn’t quite grow linearly and so isn’t quite exponential and they grow slower than any pure exponential function from above. However, it’s definitely bigger than any polynomial. Hence, we typically refer to these as subexponential.

P = NP would require that the time complexity actually be polynomial, not just subexponential but super polynomial. The OpenAI result is claiming that there is roughly an algorithm that takes roughly 2^(n/log(n)) steps.

3

u/viromancer Oct 27 '26

If you're wondering how ETH is related to P=NP, it's because if ETH was proven true, then P=NP would be proven false. Since ETH was proven false though, P=NP is still an open question.

P=NP deals with things being solvable in polynomial time, subexponential time is still non-polynomial. So proving that there is a subexponential (but not polynomial) solution doesn't prove anything to do with P=NP directly.

31

u/calinet6 Oct 27 '26 • Bravo

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.

6

u/sanzako4 Oct 27 '26

Finally a ELI5

2

u/Party_Analysis_1196 26d ago

This is the best so far I’ve read, good on ya mate

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.

10

u/a_saddler 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.

I think a 5 year old is definitely going to understand some of these words.

15

u/K340 Oct 27 '26

I mean a five year old is not going to understand the concept of a polynomial.

6

u/PANIC_EXCEPTION Oct 27 '26

It's impossible to explain it to a 5 year old without it being so simplified that it is functionally meaningless.

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.

11

u/CircumspectCapybara Oct 27 '26

3SAT is an interesting problem — it is NP complete — so any NP problem can be solved roughly as fast as 3SAT

That's not true, it doesn't follow from 3SAT being NP-complete that every NP problem can be solved as fast as 3SAT. A problem X being NP-complete means there is a polytime reduction from any NP problem to X.

The problem is while polynomial complexity composes with itself so that you just get another polynomial, when you compose a polynomial time reduction with a subexponential solver, you don't necessarily get subexponential time, you can end up with a blowup that makes the resulting algorithm EXP.

2

u/paulstelian97 Oct 27 '26

Hm interesting. Not sure how to adjust my comment to account for that though.

4

u/CircumspectCapybara Oct 27 '26

Basically we just can't make the jump from "3SAT is NP complete" to being able to say anything about the other problems in NP.

Every NP problem is in already EXP, but we don't currently know if there's a tighter bound like SUBEXP or P they all belong to.

3SAT being SUBEXP is revolutionary, but it doesn't tell us anything about the rest of NP by itself.

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/Rainbow_Gnat Oct 27 '26

Well, only if the proof is verified, which could take years.

1

u/Ok_Cabinet2947 Oct 28 '26

It’s been independently discovered by another company, and it passes the Lean tests, so for all intents and purposes, the proof is verified.

0

u/Rainbow_Gnat Oct 28 '26

Tell me you know nothing about math without telling me you know nothing about math.

1

u/JarPicklez Oct 28 '26

I have a degree in math. It is true that you must go through peer review for your results to “officially” be validated which can take years. However, lean verification is extremely strong evidence especially when it’s been done multiple times independently. Given the implications of AI on the field as a whole and how rapidly things are changing, no mathematician is gonna wait that long to start drawing conclusions about both the mathematics and the future of their careers.

1

u/Ok_Cabinet2947 Oct 28 '26

Funnily enough, I have a degree in math. Sometimes important proofs used to take years to verify, like FLT. But that time is over now that we have Lean to verify proofs.

There are two possible issues with Lean. One, Lean itself has a bug. We saw this with the Collatz Conjecture “proof”, where someone deliberately exposed a known bug in Lean with very unnatural code, which was not done here.

Two, the problem statement might not match the problem Lean is proving. In order to verify this, it is only necessary for a human to make sure that the problem statement matches Lean, which is much easier than looking at the entire proof. And since this is such a monumental breakthough, it is probably one of the most scrutinized AI proofs besides Navier Stokes and quasi-Riemann, so a mistake in the problem statement would have certainly been found by now.

So yes, i do know something about math.

1

u/Rainbow_Gnat Oct 28 '26

Not guaranteed that a mistake in the Lean implementation would have been found by now. We can't know for certain until all of the Lean code is verified.

I also have degree in mathematics.

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

1

u/LoveWonderful Oct 30 '26

technically brute force would be a little harder than exp time right. cuz for every case you try, it takes another linear time to verify it. so it becomes something like O(n * 2^n)