Shared relations, specific choices: conditional sensitivity and competing pathways in language models

Kaixiang ShuarXiv 2026

TL;DR

Language models don't just store facts as isolated bits; they maintain a shared, low-dimensional "relational background" at middle layers that persists regardless of which entity you ask about. This paper demonstrates that while the representation of a relation is shared, the specific choice a model makes emerges from how downstream pathways—often competing with one another—interpret that signal based on the current query.

What Problem Does This Paper Address?

When you tell a model "Lina is red and Niko is blue," it has to bind specific attributes to specific entities. If you then ask "What color is Lina?", the model must select "red." This seems simple, but it raises a deep mechanistic question: Does the model's internal state change to represent only the requested answer, or does it keep a general map of the relations that any query can access?

Previous research has shown we can "probe" or "steer" models using specific directions in their hidden states. However, these effects aren't always consistent. This paper investigates the gap between how a model represents a relation (the "binding") and how it uses that representation to make a choice (the "selection").

Methods

The author, Kaixiang Shu, uses a combination of controlled experimental design and surgical causal interventions across three models: GPT-2 Small, Qwen2.5-1.5B, and Llama-3.2-1B.

  1. Factorial Design: The study uses "four-corner" and "eight-condition" prompts that independently vary attributes (e.g., colors), entity names, and the queried role. This allows the researcher to isolate the "AB component"—the part of the neural activation that represents the relationship between two entities.
  2. Causal Interventions:
    • Direction Edits: Removing or restoring specific "relation directions" to see how they affect the output.
  3. Clean Clamps: Replacing a specific component's output with its unedited value to see how that specific pathway contributes to the final decision.
  4. Source-Coordinate Wiener Interface: A sophisticated technique to map hidden features back to their "source" in the input text. This helps determine if a feature at layer 14 is actually carrying information from a specific name or color mentioned earlier in the sentence.
Figure 1: Separating shared relations from their conditional use. A, The same facts support different targets when the queried entity changes. B, A token-by-depth schematic depicts internal representations and conditional readout: distributed factors, a middle-query relational background and signed reading at the prediction receiver. Colored routes illustrate factor contributions and opposing downstream gains; their widths and positions are schematic. Source-coordinate observations and instance-geometry tests provide complementary evidence about shared structure and its conditional use, through factor coverage, layout and response direction/amplitude. C, Shallow, middle and deep anchors in the three models. D, Each adjacent inverse edge uses local geometry to construct a reverse signal, then combines frequency-specific state estimates and forward-consistency corrections.

Datasets

The study relies on custom-generated synthetic datasets designed for "entity-binding" tasks (e.g., "Rachel is orange. Simon is purple. The color of Rachel is...").

  • Training/Dev/Test Splits: 128 training, 32 development, and 64 test name groups to ensure the findings generalize to new entities.
  • Syntax Control: A subject-number agreement task (e.g., "The keys to the cabinet are...") is used as a baseline to compare relational processing with purely grammatical processing.
  • Cross-Domain Tests: Prompts involving both colors and shapes to see if relational structures are domain-specific.

Key Insights and Ideas

  • The Shared Relational Background: Models develop a low-dimensional "workspace" at middle layers. The "AB component" (the relationship between the two facts) is largely the same whether you ask about entity A or entity B.
  • Transferable but Context-Dependent: You can take a "relation direction" learned from one set of names and use it to steer the model's behavior on entirely new names. However, the sign of that effect (whether it leads to answer A or B) isn't fixed. In Qwen2.5, the same direction can have opposite effects depending on the answer vocabulary (e.g., orange/purple vs. red/blue).
  • Conditional Sensitivity: This is the "aha moment." A shared representation drives a specific choice because the downstream "readout" circuit is more sensitive to that representation in some conditions than others. The query acts as a filter or a lens.
  • Competing Pathways: The final answer is often the result of a "tug-of-war." In Llama 3.2, the attention layers might push for one answer while the MLP (feed-forward) layers push for another. The final output is the balance of these competing paths.
Figure 3: Partitioning the signed transfer through different pathways. It shows how attention and MLP sets can contribute opposing gains to the final selection.

Key Results

  • Interaction Energy: Relational interaction energy in binding tasks jumps from ~10% at shallow layers to over 80% at middle layers in Qwen2.5, signaling a massive reorganization of information.
  • Axis Coverage: A single "relation axis" (rank-1) frozen on training names can cover up to 89% of the relational energy in held-out test groups.
  • Pathway Resolution: In Llama 3.2, the research resolved a "negative" overall gain into a strong negative contribution from attention-only paths (-12.683 x 10⁻³) partially offset by a positive contribution from paths hitting both attention and MLP sets (+6.008 x 10⁻³).
  • Layout Dependency: The model's ability to combine information from different positions depends heavily on the text layout. Changing the spacing between facts can flip whether adding more information helps or hurts the model's accuracy.

Limitations and Future Work

The author notes several areas for further exploration:

  • Simplicity of Relations: The study focuses on binary, same-domain relations (two colors, two entities). Real-world facts are far more complex and interconnected.
  • Positional Bundling: The current layout contrasts bundle several variables (spacing, absolute position). Future work could isolate these to see exactly how "where" a fact is affects "how" it's represented.
  • Architectural Causes: While the paper identifies what is happening, it suggests that future interventions on specific model biases (like query/key biases) are needed to understand the architectural why.

This research moves us closer to a "circuit-level" understanding of LLMs, showing that facts aren't just stored—they are dynamically negotiated by the model's internal pathways.

Summary updated

Abstract

How does a relational representation shared across queries drive a query-specific choice? Controlled entity-binding experiments with GPT-2 Small, Qwen2.5-1.5B and Llama-3.2-1B reveal a low-dimensional relational background that is predominantly shared across query roles and transfers to new names. Same-domain interactions persist when another attribute domain is queried. After removing this component, restoring independently trained relation directions brings output contrasts closer to their original values than sign-reversed or equal-norm random controls in all three models. Yet a transferable relational representation need not have a transferable functional sign. In Qwen2.5, fixing model weights, the training-mean relation vector and edit dose yields opposite selection effects across binary and lexical-mapping prompts with different answer vocabularies. A factorial contrast of downstream sensitivities across attribute-query combinations determines the shared direction's local signed selection gain. In a separate eight-condition protocol, mean local gain is positive in Qwen2.5 and negative in Llama3.2. Late-component clamps resolve opposing pathway contributions: in Llama3.2, negative transmission through selected attention-only paths is partially offset by positive transmission through paths traversing both selected attention and MLP sets. Source-coordinate analyses establish distributed factor coverage, hidden-receiver readouts reveal layout-dependent combination, and instance-geometry interventions separate response direction from amplitude. These findings show how conditional sensitivity and competing pathways give shared relational structure its effect on specific choices.
BibTeX
@misc{shu2026shared,
  author = {Kaixiang Shu},
  title = {{Shared relations, specific choices: conditional sensitivity and competing pathways in language models}},
  year = {2026},
  eprint = {2611.01809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.01809},
}
Figure