
The Arithmetic of Ideas [Audio]
Audio version of substack post here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Audio version of substack post here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
SPEAKER_00Hello, and welcome back to the audio version of Entropy Bonus. Today I'm going to talk about my Substack post from August 11th, titled, The Arithmetic of Ideas. Addition is Understanding, Subtraction is Control. Before I get started, I'm just going to point out that I'm traveling on my way to conference right now, so I'm recording this with my iPhone microphone, so apologies if the audio quality isn't quite as good. And the other thing is that I encourage you to at least follow
along with the
SPEAKER_00printed substack, just because there's one image on there that I think is particularly good. I'll do my best when I get to it to just describe it to you. But let's get started. In last week's post, I described how AI models turn words into numbers. We saw many important concepts along the way, including implications for AI safety, as well as some interesting philosophical questions about the nature of language. However, what was missing was how AI models got any sense of meaning from those numerical
SPEAKER_00assignments. That's what we'll tackle in this post. As for, no mathematics beyond simple addition and subtraction will be required. The story goes back to some of the earliest successes of machine understanding of language and leads directly to cutting edge research in AI. It's one of the most fascinating topics in machine learning, and I think you'll see why. The TLDR from last week, AI systems perform internal calculations on sets of numbers. You can think of a point in an abstract latent space.
SPEAKER_00Words correspond to specific points in that space, and those with similar meanings are represented as points that are close to each other. But closeness alone isn't enough to capture rich semantic relationships. For that, we need simple arithmetic. One of the early successes in assigning numbers to words in a way that would be useful for AI models was called WordVec. In the original 2013 Word2Vec paper,
SPEAKER_00a team of researchers from Google made a fascinating observation. The coordinates for points representing some words can be added and subtracted to get meaningful equations. The now classic example is when they took coordinates for the point representing the word king, subtracted the coordinates for man, and added the coordinates for woman, they ended up with a point that was closest to the word queen. This was often summed up with the equation king minus man plus
woman equals queen.
SPEAKER_00That was amazing. You can brush this off as a coincidence, but they observed many similar relationships, such as uncle minus man plus woman equals aunt. Shortly after these Word2Vec observations, ML researchers realized that these kinds of arithmetical relationships weren't limited to language models. In 2015, Radford showed experiments with a specialized neural network called the GAN,
SPEAKER_00which stands for Generalized Adversarial Network. It's a special neural network for generating photorealistic images of human faces. This was a precursor to the image generation capabilities of modern AI systems. The way this GAN was trained was by having the network learn to build images from points in latent space by comparing randomly generated images to images of actual faces. The closer those random images were to images of a face,
the more the model's internal parameters were adjusted to strengthen that ability.
SPEAKER_00Now, the ability to generate realistic images of people that never existed was mind-blowing at the time. However, what was even more surprising was that the lens-based arithmetic observed in Ward models also helped for images. For example, starting with a point that generates the image of a man with glasses, subtracting a man without glasses and adding a woman without glasses creates a woman with glasses. In my abstract post,
you'll see photos from the original paper where you'll see a photo of a man with
SPEAKER_00glasses, and it'll be represented in an equation. Photo of man with glasses minus man without glasses plus woman without glasses equals woman with glasses. It's really just mind-blowing. And again, many similar examples were observed, so this was clearly not just a coincidence. Now, at first, these kinds of arithmetical relationships seemed like a novelty. However, it didn't take long for AI researchers to realize that they can be used to control AI systems. This is now one of the most important and promising approaches
to AI safety.
SPEAKER_00Here's a simple example. In the original equation, king minus man plus woman equals queen, the king minus man expression must have been a representation to the ALM of some kind of genderless version of king. I'm not going to pronounce this right. I have a reference in my sub stack, used this idea to remove many kinds of gender bias.
What they found was some set of coordinates they could subtract from many word
SPEAKER_00representations to translate them into something more gender neutral. So they're really using this idea to create something useful. Now, while all these examples involve relatively simple neural networks by today's standards, the same ideas are still being used to control state-of-the-art large language models. In a seminal paper on LLM interpretability for 2024, a team of researchers from Anthropic were able to untangle the internal representations of an LLM to identify specific words and
phrases it was thinking
SPEAKER_00about, in other words, doing internal computations with. The most cited example was the identification of an internal representation for the Golden Gate Bridge. Again, to be clear, this representation was in the coordinates of a single point in some abstract latent space. This was one of the first times researchers were able to peer into the black box of a modern AI system and identify one specific concept the LLM was processing. However, what's even more interesting was what happened when they
manually added the Golden
SPEAKER_00Gate Bridge coordinates to the internal parameters of the LLM. The result was the LLM's output would always reference the Golden Gate Bridge, even when it wasn't remotely relevant to the question. A quote from that paper. If you ask the Golden Gate Club how to spend $10, it would recommend using it to drive across the Golden Gate Bridge and pay the toll. If you ask it to write a love story, it'll tell you a tale of a car who can't wait to cross its beloved bridge on a
SPEAKER_00foggy day. If you ask it what it imagines it looks like, it will likely tell you that it imagines it looks like the Golden Gate Bridge. While all this may seem like a novelty, the important point is that researchers might be able to use these ideas to control an LLM. Hope used to literally subtract aware of undesirable AI behavior, like hallucination, sycophancy, or providing harmful advice.
In a paper released just this month, anthropic researchers were able to do exactly that.
SPEAKER_00First, they were able to identify specific coordinates for points representing certain kinds of undesirable LLM personas. They mainly focused on three types, sycophantic, hallucination prone, and what they called evil. They found that adding these coordinates to internal representations of the LLM would cause a personality shift in those directions, a technique now called steering. Next, the researchers developed a novel procedure to make LLMs more
resistant to
SPEAKER_00inadvertent personality shifts in those directions, which is an unfortunate phenomenon that has been widely publicized. What they observed was that by adding a small fraction of the coordinates for misaligned personas during training, it became harder to trigger those personas from emerging during use. Again, here's a quote from their paper. The method is loosely analogous to giving the model a vaccine. By giving the model a dose of evil, for instance,
SPEAKER_00we make it more resilient to encountering evil during training data. I hope you are now as fascinated with latent space arithmetic as I am. What began as a curious observation about the relationship between arithmetic and semantics in 2013 has become a state-of-the-art approach to AI safety. It's a rare example in AI where a simple, almost playful insight has scaled all the way to the frontier of accountability and control.
The same basic principle that turns king minus man plus woman into queen can now be
SPEAKER_00used to steer powerful models away from misaligned behaviors. This gives researchers a precise, almost surgical tool for guiding AI systems, and hints at a future where control over these systems might be as intuitive as adjusting a set of dials. That's all for this week. Next week's post is going to be a special back to school article because it's the start of school season for many, many, many students and faculty.
And as always, if you enjoyed hearing this post, please jump onto Substack and like it.
SPEAKER_00Or if you got here from Facebook or Twitter or Instagram or wherever, just jump on there and give that a like. And better, please share it so other people can enjoy it as well. And I will talk to you again next week.
Nobody is credited on this episode yet.
Audio version of substack post here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio version of substack post here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio version of substack post, available here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio version of substack post available here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe
Audio version of substack post, available here. Get full access to Entropy Bonus at profbachman.substack.com/subscribe