01 / The problem · LLM topology
How can you search for what you do not know exists?
Ask a large language model a simple question, and sometimes it gives you a stupid answer. But a poor answer does not necessarily mean that the model has no useful associations to contribute.
Its generative capability is the ability to produce a coherent response; its representational capability concerns the associations present in its internal states. Those intermediate states may contain relationships the answer never expresses.
What if we could reconstruct those associations as a network, and use that network to discover things we didn't know to look for?
R020 tests whether useful semantic organisation can be reconstructed from a weak model independently of its ability to answer coherently.
We deliberately chose Pythia 70M, then asked why a city would build a bridge across a river: a question with an elementary answer but a broad surrounding semantic territory. The model failed to explain why.
The aim was not to extract a better answer or uncover a hidden finished explanation. It was to make otherwise unexpressed relationships accessible so a human could discover new questions without already knowing what to search for.
A simple question. A stupid answer.
The intentionally weak model gave us a useful contrast between its generated answer and its internal representations. Its open weights allowed direct inspection; its small size made comprehensive state capture practical. We kept the exact prompt and continuation without correcting the result.
Question: Why would a city build a bridge across a river? Answer:
The city is a bridge that connects the river with the river. A: The city is a bridge that connects the river with the river.
The answer goes nowhere.
We recorded eight states for each of the model's 32 next-token decisions: the input embedding, six transformer-block outputs and the final normalised state. Greedy decoding means choosing the highest-scoring next token each time, without random sampling. Those measurements supplied the networks we reconstructed and explored.
What was happening inside the model?
The response did not explain the bridge, but the recorded states exposed associations it never expressed. The raw networks also contain punctuation and word fragments, so the main explorer presents a derived semantic map rather than making readers start with every token community.
We first connected related tokens and grouped them into communities, then reconstructed candidate concepts from their vocabulary and measured links. The derived map consolidates these into 14 named concepts and 53 traceable relationships; its default filters show all 10 prompt-related concepts and 28 relationships. Select a concept to explore its connections; the underlying measured networks remain available for closer inspection.
How to explore this network: Find a relationship you did not expect. Inspect its evidence. Decide what question it raises.
Explore the reconstructed semantic map
Start with interpreted concepts, follow their measured relationships, then inspect the underlying evidence.
Loading R020 semantic data…
What else can a failed answer reveal?
The conventional interpretation of a failed response is that the model has little useful information to contribute. R020 tests another possibility: poor generated output does not necessarily mean an absence of reconstructable semantic associations.
What the model can represent may exceed what it can say
R020 deliberately separates generative capability, producing a coherent answer, from representational capability, retaining associations that can be examined through a reconstruction pipeline. The experiment asks whether representational usefulness can exceed generative usefulness.
LANGUAGE MODEL
│
├── Generative capability
│ └── Produce a coherent, useful response
│
└── Representational capability
└── Retain structured semantic associations
│
└── Reconstruct those associations
└── Expose a wider possibility space
└── Enable human investigationThe experiment was not intended to repair Pythia's response, recover individual training documents, show that it secretly reasoned out the correct answer, or establish that every reconstructed association is meaningful. Nor does the pipeline automatically decide which relationships deserve investigation.
What surrounds bridges, cities and rivers?
The minimal answer to the prompt concerns connecting places and crossing a river. The reconstructed networks expose a wider associative neighbourhood, including movement, settlements, commerce, environmental disruption and repair.
BRIDGE / CITY / RIVER
│
├── Crossing and movement
│ ├── Journeys
│ └── Roads and railways
│
├── Human organisation
│ ├── Settlements
│ ├── Inhabitants
│ └── Commerce
│
├── Environment
│ ├── Rivers and terrain
│ └── Flooding and disruption
│
└── Reconstruction
├── Repairs
└── RestorationThese are candidate relationships reconstructed from recorded network evidence, not an explanation generated by the model. They offer additional directions of enquiry rather than merely a better response. In the explorer above, Input embedding S00 shows the prompt-related neighbourhood, including disruption and reconstruction; those associations already appear at the static input-embedding stage.
Why does mathematical vocabulary appear near connections?
At D32 / S05 / positive, a connections community (C7) links to mathematical vocabulary including Poisson, Riemannian and manifold (C12) through 74 measured token-neighbour edges. This association does not establish that Pythia was reasoning about mathematical bridges or manifolds.
You can inspect it in the explorer: open Inspect the underlying measured community networks, then Inspect the mathematics branch. That branch is present in the raw evidence, even though it sits outside the derived map's current selection.
Why does this mathematical vocabulary appear near connections in this measured representation? Possible explanations include semantic association, vocabulary geometry, tokenisation effects or other structural relationships. The edges are measured; their semantic explanation remains uncertain. That uncertainty is a reason to investigate, not a licence to invent an explanation.
The network provides questions, not just answers
Find a relationship you did not expect. Inspect its evidence. Decide what question it raises.
MODEL
Produces a narrow or failed response
│
▼
ANALYTICAL SYSTEM
Reconstructs a wider semantic network
│
▼
HUMAN
Encounters unfamiliar relationships
│
▼
HUMAN
Recognises something worth investigating
│
▼
EVIDENCE INSPECTION
Examines the relationship and its provenance
│
▼
HUMAN
Asks a question that was not available initially
│
▼
AGENT + HUMAN
Investigate and reconstruct further
│
▼
NEW KNOWLEDGE MAY BECOME ACCESSIBLEThe human need not know the relevant relationship before encountering it. The analytical system need not know which relationship the human will find significant. The network supplies possibilities. Human recognition determines the next direction.
An inspectable instrument, not a hidden finished answer
R020 demonstrated that additional semantic associations could be reconstructed and inspected despite the model's poor generated response. However, the strongest prompt-related relationships often appeared in the static input-embedding neighbourhood. The experiment did not establish a robust, context-specific hidden explanation or prove that the reconstructed associations were independently more useful than the generated answer.
What it established was the feasibility of an inspectable semantic instrument. Whether following its unexpected relationships leads to useful discoveries remains a human-directed question.
The objective is not to extract a better answer from the model. It is to expand the space of questions available to the human.
How we analysed transformer hidden states and reconstructed semantic networks
The R020 pipeline uses Python and JavaScript to turn numerical transformer representations into inspectable token graphs and candidate semantic relationships. SDA-3 addresses the corresponding black-box problem when hidden states cannot be inspected directly. That black-box approach is demonstrated in the How to Stop ChatGPT From Lying investigation through a zombie-survival stress test.
Programming languages and libraries: Python powers model execution and numerical analysis with PyTorch, Hugging Face Transformers, NumPy and pandas. NetworkX constructs the graphs and runs Louvain community detection. JavaScript (Node.js) performs a separate semantic reconstruction from the recorded evidence. The pipeline stores reusable data as CSV, JSON and Safetensors files. The experiment used a revision-pinned Pythia 70M snapshot, documented in the R020 run configuration.
Capture transformer hidden states
Python, PyTorch and Hugging Face Transformers load Pythia 70M and use forward hooks to record eight states for each of the 32 greedy next-token decisions. These are the intermediate representations, not generated explanations.
Python capture and forward hooksProject into vocabulary space
PyTorch normalises the state vectors and the input-token embedding matrix, then calculates cosine similarities. The result is a ranked vocabulary neighbourhood for every recorded state.
Cosine projection in PyTorchChoose reproducible token populations
NumPy calculations apply deterministic full-curve elbow cut-offs to positive and negative cosine-score regions separately. These are geometric selections, not judgements about which concepts matter.
Full-curve cut-off algorithmBuild ten-nearest-neighbour networks
For each selected vocabulary population, PyTorch calculates exact ten-nearest-neighbour (10-NN) similarities. NetworkX represents the resulting nodes and edges as graphs.
Exact k-nearest-neighbour implementationDetect graph communities
NetworkX applies seeded Louvain community detection. The graph and community outputs retain token identities, connection counts and local community identifiers, with pandas used for tables and exports.
NetworkX Louvain community detectionReconstruct and audit semantic relationships
JavaScript (Node.js) reads recorded JSON networks, examines community exemplars, and screens links using measured intercommunity edges. The resulting semantic families are interpretations checked against the original CSV and JSON evidence.
JavaScript semantic reconstructionThe article's derived semantic graph is a further processing step. A Python exporter combines the existing, classified community relationships into concept-level connections and checks their supporting community edges against the recorded measurements. Each concept link retains its source evidence. Inspect the derived-map exporter.
Python / PyTorch
Capture intermediate transformer states
for index, layer in enumerate(model.gpt_neox.layers):
self.handles.append(layer.register_forward_hook(self._hook(index)))The forward hooks save each block's output so the analysis can inspect it later rather than infer its contents from the generated text.
Python / NetworkX
Find Louvain communities within token graphs
seed = settings.random_seed + state_index * 2 + side_index
communities = nx.community.louvain_communities(
graph,
weight=None,
resolution=settings.louvain_resolution,
seed=seed,
)The community calculation groups connected vocabulary tokens; interpreting what those groups mean is a separate step.
JavaScript / Node.js
Screen candidate relationships against measured edges
const ca=cm.get(e.community_a),cb=cm.get(e.community_b);
if(!ca||!cb)throw Error("Orphan community edge at "+key);
const affinity=e.token_edge_count/Math.sqrt(ca.size*cb.size);
if(affinity<0.30||e.token_edge_count<30)continue;Candidate relationships must have an original measured edge. The threshold filters which links enter this particular semantic report, rather than establishing their meaning automatically.
Inspect the data and reproduce the analysis
The repository retains the R020 run configuration, captured outputs, community graph exports and evidence audits. The source links above point to implementations rather than pseudocode.
Does the reconstructed structure stand up to scrutiny?
The bridge example shows why inspection might be useful. Earlier experiments tested how much of the reconstruction survives when the input, context and execution conditions change. The Structural Extraction Protocol describes the related black-box method for applying pressure to an interpretation.
Can intermediate-state communities be reconstructed?
R009–R010 developed state-local semantic classification and parent-level reconstruction.
Read the evidenceDoes the map depend on the words in the prompt?
R014–R015 changed all four seed concepts and independently reconstructed corresponding higher-order families. The relationships also changed in meaningful ways.
Read the evidenceDoes word order affect the networks?
R018 recorded substantial middle-layer differences between permutations, followed by greater similarity in later states.
Read the evidenceCould those differences just be random execution noise?
In R019, three repeats per tested order matched exactly across the captured states. Different orders still diverged.
Read the evidenceCan we trace the R020 maps back to actual measurements?
The source audit matched all 359 cited relationship examples to recorded community edges, without a mismatch.
Read the evidenceR020 established that we could capture the internal states, reconstruct their networks, trace the reported connections and make a derived semantic map available for exploration. Its graph connections come from measured data; the concept names are interpretations. The human decides which associations are interesting enough to follow, while the evidence determines what can be established about them.
The map changes what we can ask next
The research also exposed a different way for a human to work with an analysing agent.
In the R014–R015 experiments, four original concepts were replaced with neighbouring ones. Six higher-order semantic families were reconstructed again, including process/change and information structures that were not supplied as seed concepts. The human then asked the agent to investigate the map from different structural directions:
Based on that map, what tokens are central and what are adjacent? What logically emerges from this network? What logically should be there but isn't? When this network is treated purely as a vector, without trying to force coherence, what else highly correlates with it?
The resulting investigation treated process/change as a potentially important organising family in the changed network. Instead of receiving an answer and stopping, the human used an unfamiliar structure to formulate another question, with the agent reconstructing the evidence in response.
That is the division of labour the project made visible: the analysis exposes possibilities; the human recognises what might matter and directs further investigation; the evidence decides which interpretations survive. From SEO Keywords to the Haunted Machine follows the same human–agent discovery process in a different research setting.