← Latest papers
📊 statistics

Learning to Extrapolate to New Tasks: A Relational Approach to Task Extrapolation

The paper introduces the Relational Task Extrapolator (RTE), an algorithm that enables systematic generalization to unseen tasks by learning relational transformations between known anchor tasks and target tasks, thereby outperforming existing methods in function and sequence prediction scenarios involving out-of-range parameters, increased depth, or novel compositions.

Original authors: Adam Ousherovitch, Yixin Wang

Published 2026-05-29
📖 5 min read🧠 Deep dive

Original authors: Adam Ousherovitch, Yixin Wang

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 to shoot a cannon at targets.

The Problem: The "Safe Zone" Trap
Currently, most AI models are like students who only study for a test by memorizing specific questions. If you ask them a question they've seen before, or one that is very similar, they get an A. But if you ask them a question that is slightly different—like asking them to shoot a target that is 10% further away than anything they've ever practiced—they often fail completely.

Even the smartest modern AI (like the ones that write code or chat with you) struggles with this. They are great at "interpolation" (filling in the gaps between what they know) but terrible at "extrapolation" (guessing what happens outside the boundaries of their training). They rely on memorized patterns rather than understanding the underlying rules of how the world works.

The Solution: The "Relational Task Extrapolator" (RTE)
The authors of this paper propose a new way to teach AI, called RTE. Instead of trying to memorize every possible target, RTE teaches the AI to understand how tasks change into one another.

Think of it like this:

  • Old Way (Inductive): The AI tries to memorize the exact path of a cannonball fired at 30 mph, 40 mph, and 50 mph. When asked to fire at 65 mph, it panics because it has no data for that speed.
  • New Way (RTE/Relational): The AI learns the relationship between speeds. It realizes, "If I increase the speed by 10 mph, the cannonball goes 20% further."
    • At test time, when asked to hit a target at 65 mph, the AI doesn't guess from scratch. Instead, it says: "Okay, I know how to hit a target at 60 mph (that's my Anchor). I also know the Transformation (the rule) that turns a 60 mph shot into a 65 mph shot. I will apply that rule to my 60 mph knowledge to solve the 65 mph problem."

How It Works: The "Anchor and Shift" Strategy
The paper breaks this down into three main scenarios, using simple analogies:

  1. Parameter Extrapolation (Changing the Settings):

    • Analogy: Imagine you know how to bake a cake with 1 cup of sugar. You want to bake one with 1.5 cups.
    • RTE Approach: Instead of relearning baking from scratch, the AI takes the "1 cup cake" (the Anchor) and applies a "plus 0.5 cups" rule (the Transformation) to predict the new result.
  2. Length Extrapolation (Making it Longer):

    • Analogy: You know how to write a sentence with 5 words. You need to write one with 9 words.
    • RTE Approach: The AI takes the 5-word sentence (Anchor) and learns the "add 4 more words" rule (Transformation) to extend it, rather than trying to memorize every possible 9-word sentence.
  3. Compositional Extrapolation (Mixing and Matching):

    • Analogy: You know how to peel an apple and how to slice a banana. You've never seen someone slice an apple or peel a banana.
    • RTE Approach: The AI realizes the task is just "Peeling" + "Slicing." It takes the "Peeling" skill (Anchor) and applies the "Slicing" rule (Transformation) to the apple, even though it's never done that specific combination before.

The Secret Sauce: "Task2Vec" (The Map)
To make this work, the AI needs a map to find the right "Anchor" task. The paper uses a tool called Task2Vec.

  • Imagine every possible task (every type of cake, every sentence length, every string of letters) is a city on a map.
  • Tasks that are similar are close together; tasks that are different are far apart.
  • When the AI faces a new, difficult task, it looks at its map, finds the closest city it has already visited (the Anchor), and calculates the direction and distance to the new city (the Transformation).

What They Found
The researchers tested this on:

  • Math functions: Predicting curves outside the range of numbers the AI was trained on.
  • Polynomials: Predicting high-degree equations using lower-degree ones.
  • Language Models (LLMs): Making large language models better at logic puzzles and code generation that were longer or more complex than what they saw during training.

The Results
In every test, the RTE method significantly outperformed standard AI models.

  • Standard models hit a "wall" and failed when the task was too different from their training.
  • RTE models successfully navigated the wall by using the "Anchor + Transformation" trick.

Important Limitations (What the Paper Says)
The paper is careful to note that RTE isn't magic. It only works if:

  1. The new task is related to the old ones (you can't ask the AI to solve a problem using a completely alien physics that doesn't exist in its training data).
  2. The AI needs to be able to find a good "Anchor" task to start from.

In Summary
This paper introduces a method to stop AI from just memorizing the past and start helping it understand the rules of change. By teaching AI to say, "I know how to do X, and I know how X turns into Y," the system can solve problems it has never seen before, provided those problems are built from the same building blocks it already knows.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →