← Latest papers
🤖 AI

Decomposing how prompting steers behavior

This paper introduces a nested geometric decomposition framework that reveals how prompting steers large language and vision-language models by transforming their internal representations, demonstrating that affine transformations—specifically cross-dimensional linear mixing—are the key mechanism for reorganizing representations to match instructed task structures and recover target behaviors.

Original authors: Fan L. Cheng, Nikolaus Kriegeskorte

Published 2026-06-03
📖 5 min read🧠 Deep dive

Original authors: Fan L. Cheng, Nikolaus Kriegeskorte

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 a Large Language Model (LLM) or a Vision-Language Model (VLM) as a giant, complex factory. Inside this factory, raw materials (like a picture of a cat or a sentence about a sad story) flow through a series of conveyor belts (the layers of the model). As they move, the materials get processed, reshaped, and organized.

Usually, to change what the factory produces, you have to rebuild the machines (retrain the model). But prompting is like a manager walking onto the factory floor and shouting a new instruction: "Stop sorting by color, now sort by size!" The machines don't change, but the output suddenly shifts.

This paper asks a simple but deep question: How does a shout from the manager actually rearrange the items on the conveyor belt to make them sort differently?

Here is the breakdown of their discovery, using everyday analogies:

1. The Experiment: The "Magic Map"

The researchers took a set of items (like 1,000 different images) and showed them to the model with two different instructions:

  • Prompt A: "Are there people in this picture?" (Yes/No answer).
  • Prompt B: "How many people are in this picture?" (A number answer).

They looked at the "internal state" of the model (the arrangement of the items on the conveyor belt) at different depths. They found that the items were in a different shape for Prompt A than for Prompt B.

They then asked: "Can we draw a simple map that turns the 'Yes/No' arrangement into the 'Count' arrangement?"

2. The Five Levels of "Maps" (The Nested Decomposition)

To find the answer, they tried five different types of mathematical "maps" (transformations), starting from the simplest and getting more complex. Think of these as different ways to rearrange a pile of books:

  1. Translation (The Slide): Just sliding the whole pile of books to a new spot on the table without touching the books themselves.
  2. Rigid + Uniform Scaling (The Rigid Move): Moving the pile and maybe making the whole thing slightly bigger or smaller, but keeping the books in the exact same shape relative to each other.
  3. Rigid + Axis Scaling (The Stretch): Moving the pile and stretching it in specific directions (like pulling a rubber sheet horizontally but not vertically).
  4. Affine (The Mix): Moving, stretching, and mixing the books. This is like taking the "top" book and blending it with the "side" book to create a new position.
  5. Nonlinear (The Warp): Bending the table itself, twisting the books in complex, unpredictable ways.

3. The Big Discovery: It's Mostly a "Mix"

The researchers found that:

  • The "Slide" (Translation) does a lot of the heavy lifting. Just moving the internal state to a new spot explains a huge chunk of the change.
  • But the "Mix" (Affine) is the secret sauce. While sliding helps, the model really needs to mix the internal features (cross-dimensional linear mixing) to fully understand the new task.
  • The "Warp" (Nonlinear) isn't necessary. Surprisingly, they didn't need complex, twisting math to explain the change. Once they added the "Mix" (Affine), the model's behavior was almost perfectly recovered. The complex, non-linear stuff didn't add much value.

The Analogy: Imagine you have a box of LEGOs built into a castle (Prompt A). You want to turn it into a spaceship (Prompt B).

  • You don't need to melt the plastic (Nonlinear).
  • You don't just need to slide the box across the room (Translation).
  • You need to take the castle apart, stretch some pieces, and rearrange/mix the bricks into a new structure. The paper found that this "rearranging and mixing" is the core mechanism of how prompts work.

4. The "Causal" Test: Does the Map Actually Work?

To prove this wasn't just a coincidence, they did a "surgery" on the model:

  1. They fed the model an image with the "Yes/No" prompt.
  2. At a specific layer, they stopped the process.
  3. They took the internal state and applied their "Mixing Map" to it.
  4. They let the model finish processing.

The Result: The model suddenly started giving "Count" answers, even though it was still technically being asked the "Yes/No" question! This proved that the geometric transformation (the map) causes the behavior change.

5. Different Models, Different Strategies

Just like different factories have different managers, different AI models use different strategies:

  • OPT-2.7B seems to rely heavily on "stretching" and "mixing" (complex transformations) early on.
  • Llama3 and Qwen3 seem to rely more on a simple "slide" (translation) early on, perhaps using a specific "instruction code" that just moves the data to the right place.

Summary

The paper concludes that when you give an AI a new instruction, it doesn't need to fundamentally rewrite its brain or perform complex, twisting math. Instead, it mostly slides its internal understanding to a new location and mixes its features together in a straight-line way (Affine transformation) to fit the new task.

This gives us a clear, geometric picture of how AI models "listen" to instructions: they are essentially performing a sophisticated, multi-step rearrangement of their internal data, and we can now measure exactly how much of that rearrangement is just a simple slide versus a complex mix.

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 →