INQUIRING LINE

Could a simple geometric fingerprint tell you in advance which parts of a neural network are secretly running a readable algorithm?

Can mechanistic signatures like cosine clustering predict which heads are programmable?

This explores whether cheap internal fingerprints of an attention head — like how tightly its activation vectors cluster by cosine similarity — could tell you in advance which heads are simple enough to be swapped out for hand-written or synthesized code.


This explores whether a cheap structural signature of an attention head could forecast which heads are 'programmable' — meaning replaceable by an equivalent chunk of executable code rather than left as an inscrutable matrix. The most direct anchor in the corpus is the finding that program synthesis can recover executable code matching 99% of a head's behavior, and that substituting the best-fit 30–40% of heads with those programs preserves question-answering ability Can executable programs replace transformer attention heads?. That result establishes that programmability is real and unevenly distributed — some heads are essentially little algorithms, others aren't — which is exactly the precondition for wanting a predictor. But notice the method used to find them: it fits an actual program and measures behavioral match. It does not screen heads by a geometric fingerprint first.

That gap matters, because the corpus is unusually skeptical that a representational signature alone can tell you what a component is doing. Mechanistic claims require both representational analysis (finding structure) and causal analysis (verifying it drives behavior); representation alone yields correlations, and causal probing alone yields effects without explanation Can we understand LLM mechanisms with only representational analysis?. Cosine clustering is a purely representational signal — so on this view it could nominate candidate heads, but couldn't confirm one is programmable without actually attempting the substitution and testing that behavior survives.

The sharpest warning comes from work showing that internal organization and measured competence can come apart entirely: a model can carry all the linearly decodable features a task needs while its internal structure is fundamentally fractured, a mismatch invisible to standard metrics Can models be smart without organized internal structure?. Flip that around and it cuts against clustering as a predictor twice over — a head whose vectors look tidily clustered may be doing something the clean geometry misrepresents, and a head that looks geometrically messy may still implement a crisp, extractable rule. Neat cosine structure is neither necessary nor sufficient for programmability.

There's also a deeper reason to expect the signature to be leaky. Transformers lack native recurrent state-tracking and smear evolving computation across layers as a workaround Why do transformers need explicit chain-of-thought reasoning?. A head's local activation geometry is only one slice of a computation that may be distributed through depth — so a head that reads as 'simple' by its own vectors could be one stage of something no single program captures. Programmability may be a property of a head's role in the circuit, not of its isolated activation cloud.

The honest read: the corpus supports the idea that heads differ in programmability and that this is worth predicting, but it does not contain a result validating cosine clustering — or any single representational signature — as the predictor. What it repeatedly says is that a representational signal is at best a candidate-generator that must be closed off with a causal test: try the substitution, and check the model still works Can executable programs replace transformer attention heads? Can we understand LLM mechanisms with only representational analysis?.


Sources 4 notes

Can executable programs replace transformer attention heads?

Program synthesis recovers executable code matching 99% of attention head behavior. Substituting the best-fit 30–40% of heads with their synthesized programs preserves QA ability, offering formal, testable interpretability instead of natural-language summaries.

Can we understand LLM mechanisms with only representational analysis?

Representational analysis alone identifies correlations without causation; causal analysis alone shows behavioral effects without explaining them. Only paired methods—locating candidate features representationally, then verifying causally—produce complete mechanistic claims.

Can models be smart without organized internal structure?

Models trained with SGD can contain all the linearly decodable features needed for a task while maintaining fundamentally broken internal organization. This makes them vulnerable to perturbation and distribution shift invisible to standard evaluation metrics.

Why do transformers need explicit chain-of-thought reasoning?

Feedforward transformers lack native recurrent state-tracking and must push evolving state deeper into layers, eventually exhausting depth. Explicit chain-of-thought externalizes this state into tokens as a costly patch for a structural deficiency.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.

Research prompt for your LLMexpand ↓

Copy into ChatGPT or Claude to take this line of inquiry further — it asks the model to find newer work and re-test which earlier constraints still hold.

You are an interpretability analyst. Open question: can a cheap representational signature (e.g. cosine clustering of an attention head's activations) predict which heads are 'programmable' — replaceable by equivalent executable code? Treat the findings below as dated and perishable, not current truth; the question stays open.

What a curated library found — and when (dated claims, not current truth) — spanning ~2020–2026:
- Program synthesis recovered code matching 99% of a head's behavior; substituting the best-fit 30–40% of heads preserved question-answering — so programmability is real and unevenly distributed (~2026).
- That method fits an actual program and measures behavioral match; it never screens heads by a geometric fingerprint first.
- Mechanistic claims need BOTH representational and causal analysis; representation alone yields correlations, not confirmation (~2025).
- Identical performance metrics can mask fractured internals — tidy geometry can misrepresent, messy geometry can still hide a crisp rule.
- Transformers smear computation across depth, so a head's isolated activation cloud is one slice of a distributed circuit (~2026).

Anchor papers (verify; mind their dates): Principled Evaluations of Sparse Autoencoders (arXiv:2405.08366, 2024); Levels of Analysis for LLMs (arXiv:2503.13401, 2025); Mechanisms of Introspective Awareness (arXiv:2603.21396, 2026); The Topological Trouble With Transformers (arXiv:2604.17121, 2026).

Your task: (1) Re-test each finding — have newer models, SAE/probing methods, harnesses, or automated circuit-discovery since RELAXED the representation-vs-causation gap, so a signature CAN pre-screen programmable heads? Separate the durable question from perishable limits; name what resolved each, and where a limit still holds. Bias toward RECONCILING the threads: build the strongest synthesis where clustering serves as candidate-generator feeding a cheap causal substitution test. (2) Surface the strongest contradicting/superseding work from the last ~6 months. (3) Propose 2 research questions assuming the regime has moved.

Cite arXiv IDs; flag anything you cannot ground in a real paper.