Indeed. This was one of the first things I threw at GPT3. P vs NP is one of those rarer results where while everyone assumes they aren't equal, actually proving it will likely be practically important.
Can you explain why? Without a heavy CS/math background, it's more intuitive to me that P≠NP unless proven otherwise, such that a P=NP proof would be an incredible discovery, but a P≠NP proof would merely reinforce what is already the status quo. What is it that I'm missing?
There are significant no-go theorems about what a proof of P≠NP can look like, such that we didn't (at least as of a few years ago) know what a proof would even look like: all the known techniques were proven to be insufficient; generally in forms like “if this technique worked to prove P≠NP, then the technique could also be used as part of an algorithm to solve NP-hard instances in P time.” See Relativization and Algebrization.
As such, any proof would necessarily involve new breakthroughs rather than merely the exhaustive application of existing techniques.
> if this technique worked to prove P≠NP, then the technique could also be used as part of an algorithm to solve NP-hard instances in P time
Wait, what? I'm confused. How could something prove P != NP and also prove you can solve NP-hard in P? Wouldn't that just make it a self-contradiction?
No, that’s exactly why this is a proof that these techniques can’t work. If they worked, they could be used to contradict their conclusions. Therefore they can’t work.
From the survey paper I linked in a different reply:
No-go for naturalizing proofs: “But now, twisting the knife, Razborov and Rudich point out that any natural lower bound proof against a powerful enough complexity class would be self-defeating, in that it would yield an efficient algorithm to solve some of the same problems that we’d set out to prove were hard.” --https://www.scottaaronson.com/papers/pnp.pdf
No-go for relativizing proofs: “Alas, Baker, Gill, and Solovay then observed that no relativizing technique can possibly resolve the P ? = NP question. For, unlike (say) P ? = EXP or the unsolvability of the halting problem,
P ? = NP admits “contradictory relativizations”: there are some oracle worlds where P = NP, and others where P̸ = NP. For that reason, any proof of P̸ = NP will need to “notice,” at some point, that there are no oracles in “our” world: it will have to use techniques that fail relative to certain
oracles”
do you have any pointers to papers/explainers of that flavor? I'm always pretty fascinated with these sort of roundabout proofs that end up being a bit "meta"
One of the things I'm excited about is seeing what proof techniques would get used in a P != NP result.
There are a bunch of results that show that you can't separate P and NP using certain classes of proof techniques, and so seeing how an eventual proof tiptoes around that would be interesting.
It can be equal, but have something like O(n*10000*10) complexity(still polynomial). Or there must be an algorithm for all the problems, but no algorithm to find it :)
> It can be equal, but have something like O(n1000010) complexity(still polynomial). Or there must be an algorithm for all the problems, but no algorithm to find it :)
Finding an algorithm for any NP-complete problem would solve all of them at once. Finding an algorithm for any NP-incomplete problem would just prove that specific problem is actually in P.
It could be, but i think having it be a huge exponent polynomial would actually be the most shocking and most interesting of all possibilities (esp. if constructive).
I agree. My way of thinking about it is the leading exponent in a polynomial is sort of equivalent to how deeply nested you loop through the data.
so if its n^1000, it naturally raises the question of why isn't n^999 enough. Why would going through the data one more time in an inner loop solve the problem. You'd think there would be diminishing returns way before this point but at the same time you are still infinitely far away from exponential where the real power gain.
It would just be so weird. What would such an algorithm look like. What sort of data structures would it be operating on? I find it hard to imagine. I truly think it would be the most surprising possibility.
It's worth noting that it may or may not even be provable, even if it's true. From Gödel's first incompleteness theorem, there are always some things that are true within a consistent system that can't be proven.
I don't believe that is correct. Consistency, a property of axioms, means you can't derive a contradiction, meaning you can never derive both P and ~P. Independence means you can't derive either of P or ~P.
I think you are mixing provability and truth. if proposition P is "really true" that doesn't mean proposition ~P would be inconsistent because you can't derive P and see the contradiction to assert the inconsistency.
>From Gödel's first incompleteness theorem, there are always some things that are true within a consistent system that can't be proven.
But they're a very specific species of self referential statements, not anything pertaining to the heartland of usual operations using ordinary terms that would be used to build out the proof.
Well, there's also the halting problem, right? There are some important mathematical conjectures (like the Riemann Hypothesis!) that are equivalent to determining whether a particular Turing machine halts. It's not unthinkable that there could be true theorems that would be useful yet are unprovable by any usual operations, and aren't contrived to be so.
The interesting thing about both the halting problem and the continuum hypothesis is that they involve infinity.
The halting problem is trivially (but not necessarily efficiently) computable if you constrain the evaluated program to any specific finite amount of memory, because then a failure to halt would have to repeat a previous state. To solve it the evaluating program needs to keep more state than the evaluated program, which makes it incomputable when the evaluated program is allowed infinite state.
Which is kind of weird, because that makes it computable for any finite amount of state no matter how large, but not for an infinite amount.
Meanwhile the speed of light and Planck units seem to imply that physical reality can't deal with infinity either.
No one's answered your question seriously yet, so here goes: "Case 1" and "Case 2" are different sets of tokens an LLM would have no trouble counting. "Strawberry" reduces to just a token or three, which obfuscates the count of each individual letter.
The strawberries thing was more like asking someone who has only ever seen Chinese characters (tokens of word chunks etc.) and not the letters to count the letters. There were some ways it had seen the letters for some words, like if it had seen strawberry = ["s", "t", "r", ...] in Python somewhere, but probably didn't have full coverage of lots of words like that, or it possibly could see from some multimodal image stuff.
Could you do good at counting letters in words without ever seeing them?
I agree GPT-3 was way too weak for this math problem though.
This is imo a bad analogy because it also doesn't understand the question at all, and instead just autocompletes "How many Rs does strawberry have?" to follow up with a random number, because the pattern "How many <X> does <Y> have?" occurs thousands to millions of times on the internet, but probably very rarely with exactly strawberry & R.
If it had any "understanding" of the question, it would simply write a python script to answer it, because someone who only sees Chinese characters, could solve the problem in this way. And as soon as reasoning models came around, they started doing exactly that.
I also think it's incorrect that people started assuming that tokens are the (only) deciding factor here. I mean, yes, if you have a network that tokenizes words at the letter-level, there is a good chance it can learn a "kernel" that allows it to count letters in sentences to some degree, but early LLMs were extremely bad at counting too. It would get enough training examples to get the strawberry, but very likely fail at longer letter counts all the same (say a word with 82 Rs), because it wouldn't actually be adding letter counts together, it would just be hardcoding the counts for small numbers. Proper counting is something that came with reasoning models.
So tokens are definitely one of the issues, but lack of counting capabilities + a self-referential question are just as large factors.
Replying to the sibling comment: even gpt 3 could write python to count the Rs in strawberry. The model's confusion counting them directly is an artifact of the way tokenization works. Working toward a proof it would not be likely to encounter a similar task where the pre-tokenization form of the tokenized string matters.
... a neural net can certainly notice the kinds of regularities in the natural world that we might also readily notice with "unaided human thinking". But if we want to work out things that are in the purview of mathematical or computational science the neural net isn't going to be able to do it—unless it effectively "uses as a tool" an "ordinary" computational system.
Replies (2)
Replies (4)
As such, any proof would necessarily involve new breakthroughs rather than merely the exhaustive application of existing techniques.
Replies (2)
Wait, what? I'm confused. How could something prove P != NP and also prove you can solve NP-hard in P? Wouldn't that just make it a self-contradiction?
Replies (3)
Replies (1)
No-go for naturalizing proofs: “But now, twisting the knife, Razborov and Rudich point out that any natural lower bound proof against a powerful enough complexity class would be self-defeating, in that it would yield an efficient algorithm to solve some of the same problems that we’d set out to prove were hard.” --https://www.scottaaronson.com/papers/pnp.pdf
No-go for relativizing proofs: “Alas, Baker, Gill, and Solovay then observed that no relativizing technique can possibly resolve the P ? = NP question. For, unlike (say) P ? = EXP or the unsolvability of the halting problem, P ? = NP admits “contradictory relativizations”: there are some oracle worlds where P = NP, and others where P̸ = NP. For that reason, any proof of P̸ = NP will need to “notice,” at some point, that there are no oracles in “our” world: it will have to use techniques that fail relative to certain oracles”
Replies (1)
And his broad survey article on P?=NP covers other barriers: https://www.scottaaronson.com/papers/pnp.pdf
There are a bunch of results that show that you can't separate P and NP using certain classes of proof techniques, and so seeing how an eventual proof tiptoes around that would be interesting.
Replies (2)
Finding an algorithm for any NP-complete problem would solve all of them at once. Finding an algorithm for any NP-incomplete problem would just prove that specific problem is actually in P.
Replies (1)
Replies (1)
so if its n^1000, it naturally raises the question of why isn't n^999 enough. Why would going through the data one more time in an inner loop solve the problem. You'd think there would be diminishing returns way before this point but at the same time you are still infinitely far away from exponential where the real power gain.
It would just be so weird. What would such an algorithm look like. What sort of data structures would it be operating on? I find it hard to imagine. I truly think it would be the most surprising possibility.
Replies (2)
Replies (2)
Replies (2)
Continue this thread (2 replies) →
I think you are mixing provability and truth. if proposition P is "really true" that doesn't mean proposition ~P would be inconsistent because you can't derive P and see the contradiction to assert the inconsistency.
If X is unprovable, its falsity isn't inconsistent. Being inconsistent isn't the same as being incorrect.
But they're a very specific species of self referential statements, not anything pertaining to the heartland of usual operations using ordinary terms that would be used to build out the proof.
Replies (2)
Replies (1)
The halting problem is trivially (but not necessarily efficiently) computable if you constrain the evaluated program to any specific finite amount of memory, because then a failure to halt would have to repeat a previous state. To solve it the evaluating program needs to keep more state than the evaluated program, which makes it incomputable when the evaluated program is allowed infinite state.
Which is kind of weird, because that makes it computable for any finite amount of state no matter how large, but not for an infinite amount.
Meanwhile the speed of light and Planck units seem to imply that physical reality can't deal with infinity either.
Interesting you pursued it. From what I remember, GPT 3.x had a hard time counting number of Rs in "Strawberry".
Replies (2)
Replies (2)
"We have narrowed the problem space down to three cases. We shall call them Case 1 and Case 2."
Replies (2)
Could you do good at counting letters in words without ever seeing them?
I agree GPT-3 was way too weak for this math problem though.
Replies (1)
If it had any "understanding" of the question, it would simply write a python script to answer it, because someone who only sees Chinese characters, could solve the problem in this way. And as soon as reasoning models came around, they started doing exactly that.
I also think it's incorrect that people started assuming that tokens are the (only) deciding factor here. I mean, yes, if you have a network that tokenizes words at the letter-level, there is a good chance it can learn a "kernel" that allows it to count letters in sentences to some degree, but early LLMs were extremely bad at counting too. It would get enough training examples to get the strawberry, but very likely fail at longer letter counts all the same (say a word with 82 Rs), because it wouldn't actually be adding letter counts together, it would just be hardcoding the counts for small numbers. Proper counting is something that came with reasoning models.
So tokens are definitely one of the issues, but lack of counting capabilities + a self-referential question are just as large factors.
Continue this thread (1 replies) →
Replies (1)
You mean was? Some indeed have.
https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-...Replies (1)
Replies (1)