AI is very good at math. Why care about this? What is the most immediate application of math to the real world? I think it is cryptography.1
Cryptography is a field of computer science and math concerned with “secure communication”: ensuring that information is private among some set of participants, and that those participants can trust the provenance of the information, in various senses.
Most of the techniques for doing this rely on certain math problems being “easy to pose2 and difficult to solve” (cryptographers call these one-way functions). For example, it’s easy to multiply two large prime numbers, and difficult to factor the resulting number.
But there’s a big problem with this, which is that there are basically no problems that are proven to be easy to pose and difficult to solve, in the relevant ways. There are only problems that are easy to pose, which we suspect might be difficult to solve. Nobody has yet found a way to solve them easily, and in some cases there are heuristic reasons to think that they might be difficult to solve even far into the future, but in principle someone could show up tomorrow with an algorithm that makes them easy.
As AI gets extremely good at math, it is going to stress-test these problems we’ve been relying on: it’s likely to find ways to solve some of them much more quickly than we’d have expected. If and when that happens to widely-used problems like factoring numbers, it will invalidate security properties we’re trying to use in our communications, especially over the internet.
Here are some widely used problems that AI might (in principle) find fast ways to solve:
In addition to this kind of progress in finding fast ways to solve cryptography problems, AI might prove that there either do or do not exist problems with the right structure to allow for secure communications. If such problems do exist, we might be able to adopt them for proven-secure internet communications. If they do not exist, we might be stuck relying on physical security for most of our communication in the future.
I think the worst practical case here is something like: we wake up one day to a world where we cannot rely on the internet for secure communications. Any time you open a web page, that page might have been tampered with. Any time you send private information over the internet, that information might be read by someone you didn’t intend to read it. Maybe a hostile government with access to the network hardware, or a criminal sitting within wifi range.
In such a world, people might quickly stop using the internet for things requiring mathematically-guaranteed secure communications, and fall back on more traditional assumptions. People used to rely on physical security and the law when they needed secure communications. Mail tampering was illegal and people could go to jail for doing it. Wire fraud was illegal and people could go to jail for doing it. In the pre-internet world, the cryptography of the time (now considered primitive) was mostly used for military communications, where physical security and law were clearly insufficient for secure communication.
If we lost all cryptographically secure communications, you might no longer be able to buy things online. You might no longer be able to use online banking. You might be less able to trust that your email is really from the person it says it’s from. You might not be able to trust software you download. The internet would probably still be quite useful, and its physical security might be trustworthy enough as long as you didn’t mind the government and your ISP seeing your communications. But a lot of its current value would probably be lost.
Personally I would be very surprised if we ended up fully in this world. My sense, from reading and talking to knowledgeable people, is that it would be very surprising if we totally lost hash-based or symmetric cryptography. Even if the problems we’re currently using turn out to be easy to solve, surely there are some problems that are hard to solve.
Sometimes people talk about “complexity classes” like P, BQP, and NP, which describe how worst-case problem difficulty scales with problem size. But consider what really happens in the most-surprising world, where P=NP, i.e. there are no problems that are:
Even if we’re in this world, which I think most computer scientists would be shocked by, it may be that there are problems that are:
Donald Knuth, one of the most famous computer scientists in the world, has even indicated that he thinks we are probably in this world, where P=NP but many problems have huge exponents and can’t be practically solved. (Algorithms like this, which are fast in theory but useless in practice, are sometimes called “galactic algorithms”.)
On the other hand, it is much more plausible to me that AI will find easy solutions to most or all of the cryptographic problems we currently rely on, and that this might result in a period of severe uncertainty, insecurity, and general shakeup on the internet. I am planning to spend some time this week making sure that I could survive for at least a bit of time, in case supply chains break down temporarily as a result of this kind of cryptographic disaster, and I recommend doing the same.
You can discuss this post on LessWrong.