1. Home
  2. Explore
  3. Computer Science
  4. Q-Star and Cryptographic Security

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Q-Star and Cryptographic Security

Transcript

Q-Star is the AI breakthrough that almost destroyed OpenAI. It is the likely event that triggered the frantic firing, imploding, rehiring and rise from the ashes that we witnessed from OpenAI a couple of weeks ago. But why? Like four times now in the history of OpenAI, the most recent time was just in the last couple of weeks. I've gotten to be in the room when we sort of like push the front, this sort of the veil of ignorance back and the frontier of discovery forward. What is so special about this little algorithm that made OpenAI's board claim it is within their mission statement to let the company die?

Well, according to a leaked internal memo, Q-Star has cracked AES, the advanced encryption standard in wide use today. It broke this encryption using a new mathematical technique that for the time being is "beyond the realm of human comprehension". Now, don't worry if you didn't immediately shit your pants just now. It's OK. I'm going to explain it to you step by step so that by the end of this video, you too can get very comfortable with soiled trousers.

I'm less interested in the veracity of the specific details of the leak, and I'm more interested in the ideas the leak is pushing and for what reason? You see, since OpenAI's board has yet to explain their highly irrational moves last week, I'm going to take what we what we do know, combine it with the knowledge from the leak and try to put together a picture that explains OpenAI's insanity. You know what that means? It's Latin. It means know thyself. Q-Star is a fusion of two advanced AI strategies. First, there's A-Star, a smart pathfinding method that can efficiently navigate complex spaces like finding the best route in a maze. Then there's Q-Learning, a technique where AI learns through experience, much like a player mastering a game through practice. It's the combination of these two methods that makes Q-Star so powerful.

To understand its significance, we need to go back to 2016 when AlphaGo was making headlines. This was a watershed moment in artificial intelligence when Google DeepMind defeated a human world champion in the ancient and highly complex game of Go. This achievement was demonstrative of AlphaGo's potential in solving complex strategic problems, and it was able to accomplish this with two distinct components. Or if you want to be anthropomorphic like me, two distinct parts of its brain.

Rather than calculating every possible permutation of moves and counter moves it can make in any given turn, the policy network is a deep neural network trained from a large database of human-played Go games to predict the next best move. This is very similar to how LLMs - large language models - "just" predict the next token in a sequence of words. It does this by internalizing patterns and strategies used by expert players in the case of AlphaGo. The policy network significantly narrows down the search space for the next move, allowing AlphaGo to focus only on the most promising options instead of evaluating every possible move.

And this works great, but formulating strategies only from the context of what other people have already done can only get you so far. This is where the value network comes in. The value network is a separately trained network which, given the current state of the game, the current positions of all the pieces, it predicts the winner of the game, effectively evaluating the strength of any given position. The key difference here, though, is that this network was trained using games played by the policy network against itself, learning from the outcomes to refine its ability to judge positions.

So now we have two parts of a brain. One part that's really good at picking the next move and the other part that's really good at judging that move. AlphaGo's most innovative aspect was integrating these two neural networks with a Monte Carlo tree search. It's a method for making optimal decisions in complex and uncertain spaces. MCTS works by playing out moves far in advance in a tree-like thought pattern, using its two networks as a guide to navigate the optimal path to victory from the current state of the game.

And while this isn't Q learning in the conventional sense, the reinforcement learning principles here are at the heart of Q learning. This self-play and learning process is akin to Q learning's approach of learning from actions and their outcomes. The constant self-improvement through iterative play and learning allowed AlphaGo to develop strategies that were unconventional and unforeseen by human players. Its groundbreaking moment came in its matches against world champion Lee Sedol. AlphaGo made moves in the beginning of the game that initially seemed like mistakes. That's a very, that's a very surprising move. I thought it was a mistake.

When I see this move, for me, it's just a big shock. What? Normally human, we never play this one because it's bad. But it turns out the seemingly innocuous mistakes that it made were actually critical in claiming victory later in the game. Free from the confines of human thought and understanding of the game, the AI showcased the incredible potential it has to discover novel solutions, solutions that humans had no way of comprehending. That is until we saw it.

And then, of course, like all good ideas, once you see it, it all seems so obvious all of a sudden. This is a unique experience. Nobody can have this experience playing with AlphaGo five games like this. So I hope Lee Sedol can find something in these five games. Maybe some change in his game. It's at this point that we have to take a hard right turn and dive into some physics in order to fully understand the potential of Q star here.

So here is a quick 30 second recap of physics up until the present day. It all started when an apple fell on Newton's head and he realized that with every force comes an equal and opposite reaction. He developed calculus and Newtonian physics, which got our civilization very far. But then Einstein came along with his thought experiments and he realized in the early 20th century that space and time are inextricably linked. A four dimensional reality in which we live relative to each other. General relativity. This theory describes a reality where time is not constant. If you move as fast as the speed of light or get next to a large gravitational object like a black hole, you can slow and even pause time.

Then came the revolution that eventually led to the atomic bomb. Quantum physics. This is the weirdest one of them all, which describes a reality in which the observer effect, the fact that you are an observer within the universe observing the universe, it cannot be ignored. This leads to some pretty wild experiments like the infamous double slit experiment in which light behaves differently depending on if anyone is looking at it or not. All three of these thought frameworks work in their given domains. Newtonian physics does an amazing job at describing the forces and interactions of the everyday world in which we live. General relativity on the other hand describes the behavior of large phenomena like stars and galaxies extremely well. And quantum physics describes the nature of reality at subatomic scales. But none of these theories work with each other. There is no overarching theory of everything.

We don't know how gravity, for instance, a force that seems to control everything at a level of general relativity. We don't know how that reconciles with our understanding of the quantum realm. But right now, in the 21st century, there's another revolution happening in physics. You see, the problem with all of our physical theories of the universe up until this point, according to Dr. Stephen Wolfram of Wolfram Alpha fame, is that they are all physical.

Dr. Wolfram proposes a radical departure from this physical-centric view. His groundbreaking work suggests a shift towards a computational understanding of the universe. And what we're seeing here is the emergence of space and everything in it by the successive application of very simple computational rules. And remember, these dots are not atoms in any existing space. They're atoms of space that get put together to make space. Instead of a universe made of particles and forces, imagine a

multiverse made of ideas with underlying rules or algorithms. These rules, when they are applied over and over recursively, create the complexity we see all around us. So it's because we're observers like us that we perceive the laws of physics we do. We can think of sort of different minds as being at different places in rulial space. Human minds who think alike are nearby, animals further away, and further out we get to kind of alien minds where it's hard to make a translation.

In other words, from the mathematical framework that is base reality, Newtonian physics, general relativity, and the perceived weirdness of quantum mechanics emerge as a side effect of the observer phenomenon. It's like a universe of pure thought where every imaginable strategy or answer to a problem already exists. And in this environment, the discovery of new ideas is simply finding the best path from current thought framework point A to goal thought framework point B. And there's something else. Computational rules can inevitably be applied in many ways, each defining a different kind of thread of time, a different path of history that can branch and merge. But as observers, embedded in this

universe we're branching and merging too. And it turns out that quantum mechanics emerges as the story of how branching minds perceive a branching universe. Now if this is the first time you are being exposed to these concepts, it may sound pretty far out there, but I want you to think back to when Copernicus first tried to mathematically describe the motion of the planets and stars in 1543 using the thought framework available to him at the time. The prevailing ideas back then said that the Earth is the center of the universe.

Using that as his starting position, he was able to create a set of very complicated math equations that sort of mostly worked. It relied on some kooky things like epicycles, small circular orbits within larger orbits to explain the observed movements of celestial bodies. It wasn't until he entertained the idea that the sun was the center of the solar system that his heliocentric model really started to take shape. This was a radical shift in thought at the time, and with that shift came the much simpler math we know today which describes the elliptical orbits of the planets around the sun. Similarly, luminaries of today such as Donald Hoffman, Carl Friston, Steven Wolfram, and many, many others are now proposing a similar shift in thought.

Space and time are not fundamental. They are emergent from an eternal base reality where space and time are nothing more than illusions of our conscious mind. Try to realize the truth. There is no spoon? Then you'll see that it is not the spoon that bends, it is only yourself. Okay, so now it's with this context established that we can now talk about what the hell Q-Star is.

It's the love child of A-Star and Q learning. The A-Star algorithm is a cornerstone in computer science, particularly in the realm of pathfinding and graph traversal. It's designed to find the most efficient path from a starting point A to a target point B. A-Star stands out due to its use of a formal mathematical approach to solving problems. It estimates the cost of the cheapest path to the goal. This heuristic allows A-Star to efficiently search through vast spaces by prioritizing paths that seem more likely to lead to the goal, balancing between the shortest path and the most realistic path based on the current circumstances.

Q learning, on the other hand, is a form of reinforcement learning similar to how AlphaGo was trained. It's where an agent learns to make decisions by performing actions in an environment to achieve a certain goal. The key thing here is that the model knows absolutely nothing about its environment at the start of training. It is only through iterative interaction with its environment that it begins to learn the patterns and strategies it needs to maximize its short and long-term rewards. Over time, through trial and error, the AI develops a policy that dictates the best possible action in each state to maximize its overall reward.

Now if we consider the merging of these two algorithms in Q-Star, some really interesting things start to happen. If you take the pathfinding algorithm of A-Star and combine it with the "figure it out yourself" approach of Q-learning, you are effectively giving the AI a mathematically formal way to find the most efficient paths through the ruliad, idea space. This goes far beyond "just" predicting the next token. Similar to how AlphaGo was all of a sudden free of the human thought frameworks holding it back, the humble large language model is now free from the guardrails of thought that human language imposes. And this has directly led to some mind-boggling results, if the leaks are true. Q-Star is able to accurately reason about and perform high school level math.

Now if you've ever used a calculator, you may scoff at the idea of an AI doing math. It's a huge breakthrough. But you have to remember, this is a system trained on none of this. It was trained on how to learn and then thrown into the world. And it is able to not only understand complex mathematical proofs, but it is able to make its own new proofs now as well. And now we come full circle. Having traveled through the ruliad space of computer science, mathematics, and physics, we can now arrive back where we started.

Transformed. The leaked memo talks about Q-Star having defeated AES 192 and 256-bit encryption, some of our best encryption standards of today. It did this using a form of math it developed that humans, at the time of the leak, were still trying to figure out. This concept can be likened to finding new strategies to solving a Rubik's Cube. The cube, like AES, is a puzzle with a vast, vast number of possible configurations. Solving it quickly, or breaking encryption, requires not just understanding the current state of the cube, but also accurately predicting the outcomes of future moves, showcasing the advanced problem-solving capabilities of Q-Star. Breaking this level of encryption is not something unexpected. We were expecting to be able to do this in the future with quantum computing.

But that works totally differently than this Q-Star algorithm. If Q-Star is efficiently navigating idea space to arrive at a solution, quantum computing is brute forcing it. It's literally doing the calculations in multiple parallel realities and then trying to stitch it all together back in this reality. A process which still doesn't fully work yet, by the way. If AES is truly dead, a big if right now, it could turn our entire economy and our world upside down overnight.

It's hard to explain just how much our society relies on encryption today. It permeates literally everything we do. Whether we are communicating over wires or wireless, all of the signals we send out are not aimed in any particular direction. It goes out to everyone, everywhere. The only thing that keeps Joe Blow in the coffee shop from watching your credit card fly by in the virtual ether when you buy something from Amazon is encryption. The data is locked so that even if someone is eavesdropping, nobody can understand the data except the intended recipient.

With AES down, the entire digital economy falls apart. Maybe even more impactful. Decades of government secrets, healthcare data, banking data, all of it is all of a sudden available to anyone who wants it. And it's in this context that the decisions of OpenAI's board start to really make sense. The seemingly irrational moves emerge as the machinations of a group of terrified people. Terrified of what they created, desperately trying to cling to a status quo that they don't realize is already gone.

This is the path of fear, which leads us into a dystopian hellscape where a select few people at the top AI labs of the world effectively have the power of gods at their fingertips. All in the name of safety and security. Safe AI is not built behind closed doors. It is built out in the open with open data, open standards, and open models.

It's time we all collectively remember that, before it's too late. But what do you think? Are we on the verge of a monumental and unprecedented shift? Or is this all much ado about nothing? Please leave a comment. We are entering this great unknown together, and all of our voices matter and are needed in the creation of our future. Or if you aren't ready to speak up just yet, and you want to dive more into the ideas of the computational universe and simulation theory, watch this video next.

Or is it over here? I don't know where it's going to be. It's going to be somewhere. Maybe it's going to be right on top of my head. I don't know.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent