MATH · IN · MODELS

A mean query-change vector added once at the question token redirects answers to the fact at another order of mention

measured in 1 paper

Zhou averages the residual-stream change at the last prompt token between questions about fact p and fact p' over calibration contexts (the ordinal vector) and adds it once at one block in a new context; it selects the designated fact in 84.1% of cases in Qwen2.5-7B-Instruct, 53.9% in Gemma-3-4B-IT and 36.2% in Llama-3.1-8B-Instruct, against at most 0.01% for equally long random directions [zhou-2026-geometry-of-contextual-relations-language-models-address-facts-by-order-of-mention] The same direction keeps its sign with new names (mean cosine with the per-context change 0.93, 0.88, 0.92) and reverses when the two facts are reversed (cosines -0.93, -0.82, -0.85); eleven further models show the same signs [zhou-2026-geometry-of-contextual-relations-language-models-address-facts-by-order-of-mention] Directions computed without the facts select none from the question alone and at most 3.9% from a list of the names, and the vector chosen by the order of facts, not of names or token distance, is the one that transfers [zhou-2026-geometry-of-contextual-relations-language-models-address-facts-by-order-of-mention] The effect acts within a window at 63-86% of relative depth in each Qwen2.5 and Qwen3-8B model of Appendix G.1 and is strongest in Qwen; Llama transfers least (36.2%), and results are for templated fact lists and short paragraphs [zhou-2026-geometry-of-contextual-relations-language-models-address-facts-by-order-of-mention]

Context

fact retrieval by order of mention, contextual binding, ordinal addressing

Papers

The Geometry of Contextual Relations: Language Models Address Facts by Order of Mention — Zhou, Yufa2026 · arXiv:2610.00910