What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answering
This paper introduces simple, scalable techniques to demonstrate that implicit planning—a mechanism where language models steer intermediate tokens toward future goals like rhymes or answers—is a universal capability present even in models as small as 1B parameters, offering new insights for AI safety and control.
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
Imagine you are watching a magician pull a rabbit out of a hat. You might wonder: Did the magician actually plan to pull out a rabbit before they even started the trick, or did they just magically decide to pull out a rabbit the moment they reached into the hat?
For a long time, scientists thought Large Language Models (LLMs)—the AI brains behind tools like chatbots—were just like magicians who didn't plan ahead. They believed the AI simply predicted the next word based on the previous one, like a parrot repeating sounds, without any idea of where the sentence was going.
This paper, titled "What's the Plan?", argues that the AI is actually a strategic architect, not just a parrot. It shows that these models are secretly planning their future moves while they are still speaking.
Here is how the authors proved this, using simple analogies:
1. The Two Types of Planning
The authors define planning in two parts, like a writer composing a poem:
- Forward Planning (The Blueprint): Before writing the second half of a sentence, the AI creates a hidden "blueprint" in its brain. It knows, "I need to end this line with a word that rhymes with 'cat'."
- Backward Planning (The Construction): As it writes the middle words of the sentence, it subtly shapes them to make sure it can reach that "cat" ending smoothly. It's like a driver who sees a turn coming up 100 meters away and starts slowing down and changing lanes now, even though they haven't reached the turn yet.
2. The Experiment: Rhyming and Questions
To prove this, the researchers didn't ask the AI to write a complex essay. They gave it two simple tasks:
- Rhyming: They gave the AI the first line of a poem and asked it to finish the second line with a specific rhyme (e.g., if the first line ends in "brick," the second must end in "stick," "trick," or "sick").
- Question Answering: They asked questions where the answer required a specific grammar rule, like choosing between "a" and "an" (e.g., "a whale" vs. "an eye").
3. The "Remote Control" Trick
This is the coolest part of the paper. The researchers didn't just watch the AI; they hacked its brain mid-sentence.
Imagine the AI is writing a poem. Just as it finishes the first line, the researchers used a "remote control" (a mathematical vector) to nudge the AI's brain.
- The Nudge: They told the AI's brain, "Forget the rhyme you were thinking of. Now, plan for the rhyme '-ight' (like light or night)."
- The Result: The AI didn't just change the very last word. It rewrote the middle of the sentence.
- Without the nudge: "Soaring above where true joy will sing."
- With the nudge: "Soaring above bathed in a golden light."
The AI changed words like "where true joy will" to "bathed in a golden" because it had to build a bridge to the new destination ("light"). This proves the AI was holding a plan in its head the whole time and adjusted its path to match the new plan.
4. The "Tiny Brains" Discovery
A major surprise in the paper is that even small AI models do this.
Previously, scientists thought only massive, super-complex models could plan ahead. The authors found that even models with just 1 billion parameters (which are relatively small in the AI world) are doing this planning. It's not just a feature of the "super-smart" models; it's a basic habit of how these models work.
5. The "Article" Test
They also tested this with questions like "What do you use to see?" (Answer: an eye).
When they nudged the AI to think about "heart" (which needs "a"), the AI immediately started using "a" instead of "an" before it even wrote the word "heart."
This is like a person saying, "I want to buy a..." and then pausing to think of a word starting with a consonant, rather than saying "I want to buy an..." and then realizing they made a mistake. The AI knew the destination before it started the journey.
Summary
The paper claims that:
- AI plans ahead: It creates a hidden map of where it wants to go before it gets there.
- It adjusts the path: If you change the destination mid-trip, the AI changes the steps it takes to get there, not just the final step.
- It's everywhere: This happens in small models and big models, in poetry and in simple questions.
The authors didn't use this to build new apps or fix safety issues in this specific paper; they just wanted to prove that the "magic" of AI isn't just random guessing—it's a form of hidden, implicit planning.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.