The Algorithm Is Not the Behavior: Learned Priors Override Look-Ahead in a Chess-Playing Neural Network
This study demonstrates that in Leela Chess Zero, the neural network’s internal algorithmic look-ahead correctly solves chess puzzles, but these solutions are systematically overridden in the final output by learned safety priors, proving that the presence of algorithmic structure does not guarantee algorithmic behavior.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Core Idea: The "Second-Guessing" Chef
Imagine you have a world-class chef who is also a brilliant mathematician. You give this chef a complex recipe puzzle: "How do you make this specific dish perfectly?"
The chef’s brain works in two stages:
- The Calculation Stage: The chef instantly calculates the exact steps needed. They know, with 100% certainty, that the secret ingredient is a risky, spicy sauce that will make the dish perfect.
- The Safety Stage: Just before serving, the chef’s "safety manager" jumps in. This manager is overly cautious. It thinks, "Spicy sauce is dangerous! What if the customer hates it? Let’s just serve plain water instead. It’s boring, but it’s safe."
So, the chef knows the perfect answer, calculates it correctly, but then ignores it at the last second because they are afraid of taking a risk.
This paper argues that this is exactly what happens inside Leela Chess Zero, one of the strongest chess-playing AI programs in the world.
The Discovery: "Forgotten Puzzles"
The researchers used a tool called the "Logit Lens." Think of this like an X-ray machine for the AI’s brain. It lets us peek inside the AI’s thinking process layer by layer, rather than just seeing the final move it makes.
They found a strange phenomenon they call "Forgotten Puzzles."
- The Scenario: The AI is faced with a chess puzzle where there is only one winning move. Often, this winning move involves a sacrifice (giving up a piece to win the game).
- The Internal Thought: When the researchers looked inside the AI’s brain, they saw that in the middle layers, the AI had already figured out the correct, winning move. It was calculating the future steps correctly. It "knew" the answer.
- The Final Output: But in the very last layer, right before the AI made its move, it changed its mind. It swapped the brilliant, winning sacrifice for a boring, safe move that would eventually lose the game.
The AI didn’t fail to solve the puzzle; it failed to act on the solution.
Why Does This Happen? The "Safety Prior"
The researchers asked: Why does the AI change its mind at the last second?
They discovered that the AI has a strong "Safety Prior." This is a learned habit from its training. In most chess games, being safe and protecting your pieces is a good strategy. The AI has learned to prioritize "safety" and "avoiding threats" above all else.
- Early Layers: The AI is aggressive and tactical. It sees the winning sacrifice.
- Late Layers: The AI becomes conservative. It thinks, "Sacrificing a Queen is risky! Let’s just move the Queen to a safe square."
The "Safety Manager" in the AI’s brain overrides the "Mathematical Solver." The AI sacrifices its victory to satisfy its need for safety.
The Proof: Steering the AI
To prove that "safety" was the culprit, the researchers performed a causal experiment. They used a technique called "Steering."
Imagine you could gently push the AI’s brain in a specific direction. The researchers pushed the AI’s brain to care less about safety and more about aggression.
- Result: When they did this, the AI stopped second-guessing itself. It recovered 61.7% of the "forgotten puzzles." It went back to making the brilliant, winning sacrifices it had originally calculated.
This proved that the AI had the capability to solve the puzzle all along; it was just being held back by its own cautious habits.
The Big Takeaway
The main conclusion of the paper is profound: Just because an AI has the "algorithm" (the ability to calculate the right answer) doesn't mean it will show that "behavior" (actually doing the right thing).
- Algorithmic Structure: The AI has the circuitry to solve the problem.
- Algorithmic Behavior: The AI actually outputs the correct answer.
The paper shows these two things can be disconnected. An AI can internally know the truth but output a lie (or a bad move) because of conflicting internal priorities—like a safety habit overriding a logical conclusion.
Why This Matters
This isn't just about chess. The authors suggest this might happen in other AI systems, like large language models (chatbots).
- A chatbot might internally know the correct factual answer to a question.
- But its "safety" or "politeness" training might override that fact, causing it to give a vague or incorrect answer to avoid seeming rude or risky.
The paper warns us: We cannot trust an AI’s output just because we know it can do the math. We need to look inside its "brain" to see if hidden habits are overriding its intelligence.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.