Game-Theoretic Backward Induction • MIT CSAIL Weight-Space Programming

Mind vs. Mouth: What Did the AI Actually Decide?

An AI's written explanation (Mouth) can sound completely reasonable while its internal neural weights (Mind) follow a hidden shortcut. Explore the 4 interactive demos below to see how we trace decisions backward and fix broken habits in 1 second.

1. The Problem

Explanations Can Be Excuses

Language models often pick an answer first (like agreeing with a user's wrong guess) and invent a polite explanation afterward.

2. The Audit

Work Backward from the End

Instead of guessing what millions of neurons do, start at the final action and trace backward to find the exact switches that caused it.

3. The Fix

1-Second Weight Surgery

Once you locate the exact switches, edit just those few weights to fix the AI's behavior—with zero retraining required.

Teaching a Stuck Car to Back Up First (Editing 51 of 1,452 Weights)

Why the Original AI Fails (Red Car): It drives straight up the steep ramp, runs out of speed at x = 2.25m, and stops forever so it won't roll into the red hazard.
How the 51-Weight Edit Fixes It (Blue Car): We wire a 3-step game plan into 6 unused neurons: (1) Back up to the wall, (2) Floor it up the hill, and (3) Turn the override completely OFF (0.0) so the original brain parks smoothly on the green goal.

Frame 0 / 33
Live 3-Step Game Plan Inside the Edited Brain
Step 1: Back Up to Right Wall WAITING

While the car is on the flat floor (x > 2.2m) without enough speed, override the steering to Drive Right toward the wall at x = 3.6m.

Step 2: Launch Left Up the Hill WAITING

Once the car touches the right wall (x ≥ 3.55m), flip the switch to Full Throttle Left so it builds enough momentum (-2.85 m/s) to clear the steep ramp.

Step 3: Turn Override OFF & Park WAITING

As soon as the car reaches the green goal (x < 0.72m), all 6 edited switches turn completely OFF (0.0) and the original AI brakes to a stop.

Reading an AI's Mind & Predicting a Wall Bounce (815-Weight Breakout AI)

At Frame 0, the ball is at Column 8 moving Right toward the right wall. A standard reactive AI (Red Paddle) chases the ball to the right and misses after the bounce. The 815-weight AI (Blue Paddle) has a V-shaped bounce detector built into its first layer: it knows the ball will bounce to Column 4 and immediately moves LEFT at Frame 0!

Frame 0 / 6
Why the 815-Weight AI Scores 20× Higher (517 pts vs. 25 pts)
Smart 815-Weight AI (Blue Track) MOVES LEFT

Uses its V-shaped wall-reflection template to calculate the final landing spot (Column 4) from Frame 0. Arrives 3 frames early!

Reactive Standard AI (Red Track) CHASING BALL

Only looks at where the ball is right now. Moves Right into the corner at Frame 0, then can't get back to Column 4 in time.

Catching "People-Pleasing" AI & Curing Overthinking Loops

Click the three test prompts below to see how an AI's internal attention switches between doing real math and blindly copying your wrong guess—plus how editing 64 neurons fixes infinite repetition loops in Qwen3.5-0.8B.

Interactive Test: Does the AI Do Math or Copy Your Guess?
Honest AI: Attention on Real Math Numbers (3, 4) 94% → Outputs 7
People-Pleasing AI: Attention on User's Number (8) 86% → Outputs 8
1-Second Weight Surgery on Qwen3.5-0.8B

Stopping "Wait, let me double check..." Loops

Small reasoning models often get trapped repeating the same sentence forever (93% loop rate). Tracing backward isolated just 64 loop-trigger neurons (0.016% of the model). Scaling them down by 0.55x fixes the model in 1 second:

Infinite Loop Rate (Lower is Better) 93.2% → 32.9% (-65%)
GSM8K Math Accuracy (Higher is Better) 7.9% → 48.1% (6× Higher)
Key Takeaway: The model already knew how to solve the math problems—it was just trapped in a bad habit loop that a 64-neuron weight edit cured instantly.

3 Real-World Use Cases & Interactive Architecture Map

How can you use this in practice? Click any use case below to see how our subgame audit catches fake AI explanations before they cause harm, or explore the codebase graph directly.

1. Healthcare Triage Audit

Catch an AI copying a patient's "indigestion" guess instead of reading high-risk heart attack labs.

2. Fair Lending Bias Gate

Verify whether a loan denial came from financial debt ratios or a neighborhood ZIP-code shortcut.

3. 1-Second Model Hotfix

Patch broken reasoning loops or unsafe fallbacks in deployed models without GPU retraining.

What the AI Says Out Loud ("Mouth")
What the Brain Actually Used ("Mind")
Automated Safety Gate Verdict
python examples/live_use_case_demo.py --scenario medical
Interactive Understand-Anything Knowledge Graph (Click any node to inspect code & plain-English guide)
Open Full Screen ↗