NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Decomposing how prompting steers behavior

Fan Cheng, Nikolaus Kriegeskorte

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Mechanistic Interpretability · Type: new method · Keywords: prompt engineering, representational geometry, geometric decomposition, affine transformation, model behavior

Areas: LLM Reasoning › Reasoning Mechanisms › Representation Geometry; Interpretability › Mechanistic Interpretability › Geometric Mechanistic Interpretability

Summary

The paper introduces a nested geometric decomposition framework that quantifies how prompting reshapes model representations by fitting stimulus-invariant transformations (translation, rigid, affine, etc.) and shows that affine mixing is key to behavioral alignment.

Explained to a 5-year-old

People give computers instructions called prompts to make them do things without changing their memory. The researchers looked at how these instructions change the computer’s internal pictures of what it sees or reads. They found that many changes are simple, like moving things or stretching them evenly. A more complicated mixing of information helped the computer understand the new task better. This helps us understand how prompts steer computer behavior and may let us control them more easily.

Explained to a 5-year-old, longer

Computers called large language models can answer questions or describe pictures without anyone retraining them. A prompt is just a special instruction you give them, like “be funny” or “draw a cat”. The researchers wanted to know how these prompts change the way the computer thinks inside. They compared the computer’s hidden thoughts when given two different prompts for the same thing. They tried to match these thoughts using simple math moves like sliding, rotating, and stretching equally. They also tried more complex moves that mix different directions of information. They found that the simple moves explained a lot of the change, but not everything. The mixing moves were the first ones that really made the computer’s thoughts look like the new prompt wanted. This helped the computer act in the right way for the new task. They tested this on several computer models that read text and look at images. The results showed that prompts reshape the computer’s internal pictures in predictable ways. Knowing this helps us design better prompts to control computer behavior without retraining.

For a technical reader

The paper investigates how changing the instructions given to large language and vision models (called prompts) alters the internal representations that drive their outputs. They propose a systematic way to decompose these changes by aligning representations from different prompts using a hierarchy of geometric transformations, from simple translations to more complex affine mixing. By swapping hidden states in a single layer and measuring how well the target prompt’s geometry is recovered, they demonstrate that affine transformations are the first tier to nearly restore the intended task structure and improve behavioral performance.

Problem

It is unclear how changes in prompting instructions reshape internal representations of language and vision models to produce behavioral effects. The paper seeks to identify which mathematical transformations best explain these representational changes and how they drive behavior.

Method

The approach aligns representations of the same stimuli under different prompts using a hierarchy of stimulus-invariant geometric maps (translation, rigid scaling, axis scaling, affine, and nonlinear). For each prompt pair, these maps are fitted and then causally tested by substituting hidden states in a single layer to measure recovery of target geometry and behavior. The framework is applied across multiple models and datasets to quantify how each transformation tier contributes to prompt-driven behavior.

Results

The analysis shows that translation and rigid transformations account for much of the activation change, while affine transformations are the first tier to nearly recover target geometry and significantly improve behavioral agreement across models and datasets.

Contributions

It provides a general nested geometric decomposition framework for quantifying prompt-induced representational changes and identifies affine mixing as a key driver of behavioral alignment. The work also reveals model- and task-specific routing strategies across layers.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction