INQUIRING LINE

What explains the contextual variability of knowledge in transformers?

This explores why a transformer's 'knowledge' shifts depending on context and prompt — and the corpus suggests the answer is structural: knowledge in these models isn't stored and retrieved, it's regenerated in the act of producing each token.


This explores why a transformer's knowledge seems to change with context rather than staying fixed — and the most striking thread in the corpus is that this variability isn't a bug to be patched but a consequence of how transformers hold knowledge at all. The central claim is that transformers don't store knowledge in retrievable slots; they transmit it as a continuous flow of activations through the residual stream, so what a model 'knows' only exists in the moment of generation Do transformer models store knowledge or generate it continuously?. One note draws a vivid analogy to oral cultures, where knowledge lives only in performance and never in an archive — which is exactly why model knowledge is contextual, hard to edit, and inseparable from the output that expresses it. A companion note pushes this further: the tokens themselves are 'plastic, dissembling, and mutable,' varying with sampling, wording, and even audience interpretation — mutability as a defining property of the medium, not a defect Why does AI output change with every prompt and context?.

If knowledge is regenerated rather than retrieved, then the obvious next question is what wins when context and training disagree. Here the corpus gets concrete: models routinely ignore information sitting in their context window because strong associations baked in during training override it, and no amount of clever prompting reliably fixes this — it takes causal intervention in the internal representations Why do language models ignore information in their context?. So contextual variability cuts both ways. Sometimes context steers the model; sometimes the parametric prior steamrolls the context. The variability you observe is the visible surface of that ongoing tug-of-war between flowing activations and entrenched priors.

The corpus also suggests this same fluidity is why transformer 'reasoning' is so context-sensitive and brittle. Rather than learning systematic rules, transformers often reduce compositional reasoning to matching memorized computation subgraphs from training, which works in-distribution but collapses on novel combinations Do transformers actually learn systematic compositional reasoning?. The capabilities that do generalize seem to emerge in sharp developmental phases — memorization, then in-distribution, then out-of-distribution generalization — visible both in multi-hop reasoning and in looped/recurrent-depth architectures How do transformers learn to reason across multiple steps? Can looped transformers generalize to unseen knowledge combinations?. The interesting implication: what looks like unstable, context-dependent knowledge may actually reflect which developmental regime a given input falls into.

Here's the thing you might not have known you wanted to know: the variability isn't only about which knowledge surfaces, but where inside the model it lives and how it gets reshaped on the way out. Logit-lens work shows transformers can compute a correct answer in their earliest layers and then actively overwrite it in later layers to satisfy formatting pressure — the real reasoning is recoverable but suppressed Do transformers hide reasoning before producing filler tokens?. Other work shows semantic content is already present in static embeddings before attention even runs Do transformer static embeddings actually encode semantic meaning?, and that attention's parallel, additive way of blending tokens — rather than selectively suppressing irrelevant ones — explains why frame-dependent meaning shifts so easily with context Why do AI systems miss jokes and wordplay so consistently?. Taken together, the corpus reframes 'contextual variability of knowledge' from a reliability complaint into a description of the architecture: a finite transformer is closer to a programmable substrate that computes different functions for different prompts Can a single transformer become universally programmable through prompts? than to a database you query for a stable fact.


Sources 10 notes

Do transformer models store knowledge or generate it continuously?

Transformers organize knowledge as flowing activations rather than retrievable archives, mirroring oral cultures where knowledge exists only in performance. This explains why model knowledge is contextual, difficult to edit, and inseparable from generation.

Why does AI output change with every prompt and context?

AI outputs exhibit essential mutability—they vary with sampling, prompt wording, and audience interpretation. This is not a defect but a defining feature of tokens as media, making them fundamentally different from fixed commodities and resistant to traditional quality assurance.

Why do language models ignore information in their context?

Research demonstrates that LMs generate outputs inconsistent with their context because parametric knowledge from training dominates over in-context information. Textual prompting alone cannot override strong priors; causal intervention in representations is required.

Do transformers actually learn systematic compositional reasoning?

Research shows transformers succeed on in-distribution tasks by memorizing computation subgraphs from training data, not by learning systematic rules. They fail drastically on novel compositions, with errors compounding across reasoning steps.

How do transformers learn to reason across multiple steps?

Controlled training reveals transformers learn multi-hop reasoning in three phases: memorization, in-distribution generalization, and cross-distribution reasoning. Successful reasoning correlates with cosine clustering of entity representations, and second-hop generalization requires explicit compositional exposure during training.

Can looped transformers generalize to unseen knowledge combinations?

Recurrent-depth transformers with shared parameters across iterations enable systematic generalization and depth extrapolation that vanilla transformers cannot achieve. This emerges through a sharp three-phase process: memorization, in-distribution, then out-of-distribution generalization.

Do transformers hide reasoning before producing filler tokens?

Logit lens analysis shows models trained with hidden CoT tokens compute correct answers in layers 1-3, then actively suppress these representations in final layers to produce format-compliant filler output. The reasoning is fully recoverable from lower-ranked token predictions.

Do transformer static embeddings actually encode semantic meaning?

Clustering analysis of RoBERTa embeddings reveals sensitivity to five psycholinguistic measures including valence, concreteness, iconicity, and taboo. This demonstrates that static embeddings function as genuine lexical entries containing semantic content before self-attention operates.

Why do AI systems miss jokes and wordplay so consistently?

Transformers integrate token information through weighted parallel aggregation rather than selective suppression of irrelevant words. This structural difference explains consistent failures with jokes, wordplay, and frame-dependent meaning—not knowledge gaps, but missing cognitive operations.

Can a single transformer become universally programmable through prompts?

Research proves a single finite-size transformer exists that can compute any computable function given the right prompt, achieving complexity bounds nearly matching unbounded models. However, standard training rarely produces models that learn to implement arbitrary programs this way.

Next inquiring lines