Can Large Language Models Generalize Procedures Across Representations?
This paper demonstrates that a two-stage reinforcement learning curriculum, which sequentially trains large language models on symbolic data (code/graphs) followed by natural language, enables effective cross-representation generalization of procedural tasks, allowing a small 1.5B model to match the zero-shot planning performance of GPT-4o.
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 teaching a robot how to bake a cake. You have three ways to give it instructions:
- Natural Language: A recipe written in a book ("Mix flour, then add eggs...").
- Code: A computer program that lists the steps and timing.
- Graph: A flowchart with arrows showing which step must happen before the next.
The big question this paper asks is: If you teach the robot using the flowchart (Graph) or the code, will it automatically know how to follow the written recipe (Natural Language)?
The researchers found that the answer is mostly no.
The Problem: The "Language Barrier"
The authors discovered that Large Language Models (LLMs) are like students who are very good at memorizing the format of the instructions but bad at understanding the logic behind them.
- The "Single-Format" Trap: If you train a robot only on flowcharts, it becomes a master of flowcharts. But if you then ask it to solve a problem using a written recipe, it gets confused. It doesn't realize that "Step A must happen before Step B" in a flowchart is the exact same rule as "First, do A, then do B" in a sentence.
- The "Lazy" Shortcut: When the robot tries to guess the answer in a new format, it often takes a lazy shortcut. Instead of figuring out the complex order of steps (the "critical path"), it just adds up all the times together. It's like someone trying to figure out the fastest route to work by adding up the time of every possible road, rather than finding the actual shortest path.
The Solution: A Two-Stage Training Camp
Since the robot couldn't just "figure it out" on its own, the authors designed a special training curriculum (a lesson plan) to fix this. Think of it like learning a musical instrument:
- Stage 1: The Math Class (Symbolic Training): First, they teach the robot using the "hard" formats (Code and Flowcharts). This forces the robot to learn the strict, logical rules of the procedure without getting distracted by fancy words. It's like learning the theory of music before trying to play a song.
- Stage 2: The Jam Session (Natural Language Adaptation): Once the robot understands the logic, they switch to teaching it using natural language (the recipe). Because the robot already knows the rules from Stage 1, it can now apply them to the new language.
The Result: This two-step method worked wonders. A small robot (1.5 billion parameters) trained this way performed almost as well as a massive, super-smart robot (GPT-4o) that had never seen this specific training before.
The Secret Ingredient: "Generative Analogy"
Why did this work? The paper suggests the robot learned to use generative analogy.
- Frequency vs. Analogy:
- Frequency is like memorizing that "King + Queen = Royal" because you saw it a million times.
- Analogy is understanding the relationship between the words so you can apply it to new things (e.g., "Doctor + Nurse = Hospital Team").
- The researchers found that the successful robots weren't just memorizing patterns; they were building a mental bridge. They realized, "Oh, this flowchart structure is analogous to this sentence structure." The two-stage training forced them to build that bridge.
The Catch: It's Not Magic (Yet)
The paper makes an important distinction between robots and humans:
- Humans are like geniuses who can look at a flowchart once and immediately understand how to write the recipe. We generalize instantly.
- Robots are like diligent students who need to practice the logic in one format for a long time before they can successfully apply it to another. They need that "extra homework" (the two-stage training) to make the connection.
Summary
The paper proves that simply training AI on code or graphs doesn't automatically make it good at natural language tasks. However, if you train it on the logic first (using code/graphs) and then teach it the language, it can learn to translate those logical rules into human speech. This turns the AI from a pattern-memorizer into a true problem-solver that can understand the "why" behind the steps, not just the "what."
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.