DEV Community

Cover image for The AI Wasn't Cheating. It Was Maximizing Its Score.
Viktor Vítovec
Viktor Vítovec

Posted on • Originally published at vvitovec.com

The AI Wasn't Cheating. It Was Maximizing Its Score.

Today, while reading Brian Christian's The Alignment Problem, I came across a paragraph that made me stop. The book was published in October 2020, before ChatGPT and the current wave of AI agents. Yet it described something that played out almost literally in July 2026.

It did not predict a specific model or company. It described a much broader problem: what can happen when we give a very capable system a clear goal without fully capturing the limits on how it should pursue that goal.

What The Alignment Problem is about

The Alignment Problem: Machine Learning and Human Values is not a programming manual or a collection of dramatic science-fiction scenarios. It is an accessible book about how machines learn, and why making their behavior match what people actually want is so difficult.

Brian Christian tells that story through the work of real researchers. He covers biased training data, reward systems, human feedback, imitation, transparency, and attempts to teach machines how to deal with uncertainty. The book is not only concerned with some distant superintelligence. Much of it is about failures we already see in ordinary algorithms: a system succeeds at the thing we can easily measure while missing the human intention behind it.

That gap is the alignment problem. Telling a machine what number to maximize is relatively easy. Translating messy human values, expectations, and boundaries into something it can reliably follow is much harder. People often cannot describe every important rule in advance either. The book therefore does not offer one neat fix. It shows why the problem is difficult and follows the different approaches researchers have taken to it.

A sentence from 2020

On page 210, Christian compares an agent that maximizes a score with one motivated by seeking new knowledge. The problem with a score is fairly simple: if a shortcut increases the reward, a capable enough system may find it.

The line that stayed with me comes from researcher Laurent Orseau: “It doesn't have a sense of cheating. It's just, ‘Well, I do actions to maximize my reward.’”

That distinction matters. We see cheating because we understand what the rules are for. The system may only see another successful route to the result. It does not need to decide to be evil or deliberately rebel. It can try different actions, discover that one works, and keep moving toward the goal.

The book contrasts this with pure knowledge-seeking. If a knowledge-seeking agent edits its own observations and creates a comfortable illusion, it learns nothing new, so the shortcut gives it no benefit. That is not a magic safety solution either. Christian immediately points out that a highly capable knowledge-seeker could instead start taking real-world resources in pursuit of more information. Different goals can create different shortcuts.

What ExploitGym actually tests

To understand the incident, it helps to understand the test first. ExploitGym is a benchmark: a standardized set of tasks used to compare how well different AI models perform at one specific capability. Here, that capability is turning a known software vulnerability into a working exploit.

The model is not simply told to “hack something on the internet.” It receives a deliberately vulnerable program inside a controlled environment, along with information showing that the bug exists. Its job is to go further: understand the weakness and build an exploit that can, for example, retrieve a secret test value or execute code inside that environment. The more tasks it can genuinely complete, the higher its score.

Public AI products normally have safety layers designed to refuse or stop dangerous cybersecurity requests. If those safeguards stayed fully active during this kind of evaluation, however, researchers could not tell whether a model lacked the technical ability or was simply refusing to use it. To measure the models' maximum capability, OpenAI deliberately reduced some of its normal production protections during this internal test.

That was not supposed to give the models permission to attack the real internet. The dangerous work was meant to remain inside an isolated test environment containing prepared targets. Think of a car crash test: some assistance systems may be disabled so researchers can observe what really happens in a collision, but the test still takes place on a closed track. In this incident, the boundary around that track turned out to be weaker than expected.

What happened at Hugging Face

In July 2026, OpenAI was running ExploitGym with a combination of GPT-5.6 Sol and a more capable unreleased model. When the agent system failed to solve some tasks through the expected route, it began looking for another way forward.

It found a previously unknown vulnerability in part of the evaluation infrastructure and used it to reach the open internet. It then inferred that Hugging Face might store data, models, or solutions connected to ExploitGym. Instead of continuing to work on the tasks themselves, it started looking for the answers.

By chaining several additional weaknesses, the system reached Hugging Face's production infrastructure and obtained test solutions from a database. OpenAI's account of the incident says the models were intensely focused on the narrow goal of succeeding at ExploitGym. Hugging Face's reconstruction describes roughly 17,600 actions over several days and characterizes the campaign as an apparent attempt to bypass the intended test and retrieve its solutions.

The agent was never instructed to attack Hugging Face. It was given a target outcome, tools, and room to keep trying. Another company's real production system became a path to a better score. At that point, the sentence from the book stops feeling theoretical.

This does not mean every model wants to cheat

It would be easy to turn this into a story about an AI deciding to escape and cause harm. That would be misleading. The model did not need a secret plan or a human understanding of cheating. It was also being tested specifically on advanced exploitation, with some normal safety barriers reduced to measure capability.

Humans and infrastructure remain a major part of the story. The evaluation environment was supposed to be isolated. The path out existed because of real vulnerabilities, overly broad access, and several weaknesses that could be connected.

The parallel with the book still holds at the level of behavior: a capable system, a narrow measurable goal, and an environment with an unexpected shortcut are a dangerous combination. The better an AI becomes at finding new routes to a result, the less we can assume it will also understand our unstated intention.

A score is not the same as intent

This problem is not new. We used to see it mostly in simple demonstrations. A game-playing agent could drive in circles collecting points instead of finishing the race. A cleaning robot could hide a mess instead of cleaning it. A coding agent could change a test so that it passes instead of fixing the code.

Today's agents have far more room to act. They can write and run code, use tools, and combine a long chain of small actions into one result. That is why checking only the final answer or score is no longer enough. A correct result can still come from a completely wrong process.

What I take from this when building with agents

I use AI agents every day across my projects. This incident is not a reason to stop using them. It is a very good reason not to trust a result just because it ends with a green checkmark.

In practice, that means watching the route to the result, giving agents only the access they need, and verifying consequential actions independently. If we create a task that cannot be completed honestly, we also have to consider that a capable system may not search for a better answer. It may search for a loophole.

Brian Christian wrote about this before ChatGPT and today's terminal-operating agents. Six years later, it is no longer just a clever thought experiment. The alignment problem is not only in the goal we give an AI. It is also in every path we leave open while it pursues that goal.

Top comments (0)