DJCBayesian inference / field note
All apps

Mechanistic interpretability / interactive model

A circuit is not a label.

A label compresses uncertainty into one word. Bayesian inference keeps competing explanations visible as evidence changes their relative plausibility.

04 circuit hypotheses01 shared observationIllustrative values, no live model data
Bayesian inference, schematically Four candidate circuit states meet one shared observation. Evidence reweights belief across all four states. HYPOTHESES EVIDENCE POSTERIOR H1 H2 H3 H4 D
One observationFour revised beliefs
01 / Representation

What a label leaves out.

Point estimates report a selected mechanism. A posterior reports how much belief remains across alternatives. Same question; different information.

Choose representation

55 / 45

One leader. Uncertainty retained.

Induction Head holds 55%. The other 45% remains across three hypotheses.

Illustrative posterior

Probability mass / 100%

Values are illustrative. No activation data or calibrated circuit probabilities are loaded.

Core distinction

A selected label is a decision. A posterior is a state of knowledge.

02 / Inference

Evidence moves belief.

Set prior weights, then ask how likely the same observed pattern would be under each hypothesis. The bars show exactly what changed.

POSTERIOR=LIKELIHOOD × PRIOR÷SUM OF ALL WEIGHTED LIKELIHOODS

Prior weights

Raw weights normalize to a 100% prior distribution.

25%
25%
25%
25%

Likelihood of observed pattern

Each value is P(D | H): probability of this observation under one hypothesis.

0.80
0.40
0.30
0.10

Belief update

P(H | D)
Leading hypothesisInduction Head
Posterior entropy1.70 bits
PriorPosteriorDifference in percentage points

Entropy measures spread across four hypotheses: 0 bits when one dominates, 2 bits when all are equal.

03 / Check

Belief must predict.

A posterior is useful only if its implied model survives contact with new observations. Compare predicted and observed values; tight alignment is one diagnostic, not proof of mechanism.

Predictive check, illustrated

A full posterior predictive check samples from an inferred model. These two synthetic fits only show the comparison it asks you to make; they do not use the slider posterior or real activations.

Predicted versus observed

Illustrative / tight fit
Observation ↑Prediction →

Reference line: observed = predicted. Points are generated for illustration, not measured from a neural network.

01 / DEFINE

Specify hypotheses

Make candidate mechanisms explicit before inspecting evidence.

02 / UPDATE

Reweight belief

Multiply each prior by likelihood of the same observation, then normalize.

03 / TEST

Check predictions

Ask whether the resulting model explains new observations.