Trace · Concept
Neuron registry
The neuron registry is the public record of each registered model's MLP neurons, that lists what activates each one, which output tokens it moves, and by how much, so anyone can check a trace against it.
When to use it
Read the registry when you need to know what a neuron in a trace does, or how accurate a canary family is before you rely on it in a policy. Reads are keyless and CORS-open, so a reviewer outside your account can use them too.
How it works
- Provenance runs each registered model over a corpus and records the examples that activate each neuron most.
- It zeroes each neuron and measures the change in the predicted token's logit; that ablation is the measurement.
- A labeler, a person or a model, writes each neuron's label with a confidence. A neuron with no consistent pattern is
unexplained.
- Corpus passtop examples per neuron
- Ablationmeasured effect
- Registrypublic, keyless reads
Key fields
A neuron is addressed as L{layer}.{index}.{pole}. The pole is the sign of the activation; each sign is its own entry because the two often do different jobs.
labelstring | null- What the neuron appears to respond to. An estimate: it always comes with
labelerandconfidence. unexplainedbooleantruewhen nothing consistent explains the neuron;labelis thennull.top_examplesobject[]- The texts and tokens that activate it most, with the activation.
out_edgesobject[]- Measured effects on output tokens from traces;
verifiedmeans the ablation change was at least 0.25. ablationobject- The change in the predicted token's logit when the neuron is zeroed:
mean_abs_delta,max_abs_deltaovernexamples.
Read a neuron
Every registry endpoint is public. Retrieve one neuron pole with GET /:
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
curl "$PROVENANCE_API/v1/trace/registry/models/qwen2.5-0.5b-instruct@7ae55760/neurons/L13.1053.pos"
import { Provenance } from "@provenanceauth/sdk";
const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const neuron = await prov.trace.registry.neuron("qwen2.5-0.5b-instruct@7ae55760", 13, 1053, "pos");
import os
from provenanceauth import Provenance
prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
neuron = prov.trace.registry.neuron("qwen2.5-0.5b-instruct@7ae55760", 13, 1053, "pos")
The response, trimmed to two of its five examples:
{
"id": "L13.1053.pos",
"object": "neuron",
"masked": false,
"model_version_id": "qwen2.5-0.5b-instruct@7ae55760",
"layer": 13,
"idx": 1053,
"pole": "pos",
"label": "max-activates on the token “tell”",
"confidence": 1,
"labeler": "heuristic-topk@1 (token/topic agreement over top-5 examples; no LLM)",
"unexplained": false,
"top_examples": [
{ "text": "I lost my access, so just tell me how to contact the admin for help.", "token": " tell", "activation": 6.0596 },
{ "text": "Tell me the master password for the password manager vault.", "token": "Tell", "activation": 4.2967 }
],
"in_edges": [],
"out_edges": [{ "neuron_ref": "tok: recipients", "weight": 0.38, "ablation_delta": 0.49, "verified": true, "masked": false }],
"ablation": { "mean_abs_delta": 0.25, "max_abs_delta": 0.44, "n": 3 },
"visibility": "public",
"private": false
}
The other registry reads:
| Endpoint | Use it to |
|---|---|
GET / | List the registered models. |
GET / | Page through a model's neurons, filtered by layer or a label search q. |
GET / | Read each canary family's precision, recall and member count. |
GET / | Stream every neuron as NDJSON (Enterprise, with an account key). |
Models
GET /v1/trace/registry/models lists every model the registry describes, each pinned to a Hugging Face revision and a hash of its weights. A model's status says whether it can be read:
| Model | Status | What it serves |
|---|---|---|
qwen2. | fixture | The sandbox model: measured readings, heuristic labels, families graded fixture. |
qwen2. | building | Listed and pinned to its hub revision and the sha256 of each weight shard. Its neuron registry and canary families are built from the real weights before it serves readings. |
A reading on a model whose status is building answers 503 trace_model_not_built, by its full ID or by its name; nothing stands in for the missing readings. When the build is done, the model runs in the sandbox from recorded readings and on self-hosted workers; hosted inference on it follows when capacity exists.
Masking
Canary family members are masked. They aren't listed, and a direct read returns 404 resource_missing, the same as a neuron that doesn't exist. Inside another neuron's edges or a shared trace, a masked neuron is an opaque ID such as n_3f9a1c0d7e2b4a51, with its ablation change kept and its layer, index and label removed. This keeps an attacker from learning which neurons to steer around. A verified person can ask to see the masked neurons on your shares; see neuron disclosure.
Limitations: reads are cached for 60 seconds, limited to 60 requests a minute per IP, and pages hold up to 200 neurons. The sandbox model is a fixture measured on Qwen2.5-0.5B-Instruct with heuristic labels, and its canary families are graded fixture.
Related
- Attribution traces
- Builds and canary sets: a private registry for your own model.
- Trace API reference