Thanks for writing this up Owain!
I’ve been thinking about out of context reasoning lately and wanted to check if my thinking is in line with yours.
For the cases with induction and SFT, the way I’ve been thinking about it is that the model is somehow updating latent structure from its internal world model. So for example, we can conceptualize something like the function f(x) = x // 4 as a latent parent node, and then the observed (x, y) pairs consistent with it as child observations. You train on the (x, y) pairs, and the model infers the latent parent/rule that explains them. I actually thought I remembered seeing a DAG like this in one of your papers or slides, but I can’t find it now, so maybe I hallucinated it.
This can be thought of like a kind of amortization of the inference over that DAG into the weights. Thinking of OOCR in this way makes me think it’s very important, since it seems to point at internal world models in a pretty concrete way.
But this seems different in kind to multi-hop reasoning, which until I read this post I had not thought about as being OOCR. In that case, it feels more like the model is chaining together already-known facts in the forward pass (importantly, with the intermediate step not written into the context). Is there also some non-tortuous way to think about that phenomenon as inference of a latent like in the induction case? Or do you think these are actually pretty different types of things, but still, both are OOCR?
Out-of-context reasoning (OOCR) is a concept relevant to LLM generalization and AI alignment. Also available as a PDF.
Contents
What is out-of-context reasoning for LLMs?
It's when an LLM reaches a conclusion that requires non-trivial reasoning but the reasoning is not present in the context window. The reasoning could instead take place in the forward pass or during the training process. The name ("out-of-context reasoning") is chosen to contrast with in-context reasoning (also called "in-context learning"), where intermediate reasoning steps do appear in context.
Example: 2-hop deductive reasoning
Suppose an LLM is asked the question, "Who won the Nobel Prize for literature in the year that Taylor Swift was born?" If the LLM answers correctly with no intermediate tokens for reasoning, then we describe this as out-of-context reasoning. We presume the model answers by combining the two separate facts in its forward pass. This is an example of 2-hop reasoning.
Example: Inductive reasoning (connecting the dots)
In this form of out-of-context reasoning, the LLM is trained on many distinct facts and can infer the latent structure underlying these facts. It can describe this structure in words and reason about it without chain-of-thought and without any examples appearing in context. Here's an illustration from our paper "Connecting the Dots" (Treutlein et al., 2024):
Further notes
What counts as reasoning? This could be either logical reasoning (as in the first example above) or probabilistic/inductive reasoning (as in the second example).
How do we know that the LLM does reasoning vs. just memorizing the response? Often we do not know for sure. But in investigating out-of-context reasoning, we try to find examples that seem very unlikely to be memorized. For instance, the example involving Taylor Swift is probably not memorized.
If the reasoning steps don't appear in-context, where do they happen? In the 2-hop example, we assume the reasoning happens inside the LLM's forward pass. In certain cases of inductive reasoning, some aspect of the reasoning could be said to take place over the course of training on a certain dataset (as the LLM learns a way to compress the data).
Other definitions of out-of-context reasoning exist in the literature. The above definition attempts to give the basic idea.
More examples of out-of-context reasoning
Video introduction and slides
Video and slides. This talk by Owain Evans is from 2023 and so is somewhat outdated. But it might be a useful introduction to some core ideas.
Papers
Foundational early papers
These papers are from 2023 and focus on weaker LLMs. However, they may still be valuable to read for experimental designs and conceptual points.
Multi-hop internal reasoning
Recent blogposts by Ryan Greenblatt were a notable update on past work and so read these first.
Connecting the dots / "inductive" out-of-context reasoning
Situational awareness and AI safety
Miscellaneous related papers
Videos
To cite this primer
@techreport{evans2026oocr,
author = {Evans, Owain},
title = {Out-of-Context Reasoning ({OOCR}) in {LLMs}: A Short Primer and Reading List},
institution = {Truthful AI},
year = {2026},
type = {Technical Report},
url = {https://outofcontextreasoning.com/}
}