atlas-mess3-belief-transformer
A small transformer trained on sequences from the Mess3 process, following Shai et al. 2024, "Transformers represent belief state geometry in their residual stream" (https://arxiv.org/abs/2405.15943). A linear readout of its final residual stream recovers the Bayes-optimal belief over hidden states (a fractal on the 2-simplex) with held-out R² 0.975, but the same readout on the untrained network already reaches 0.932, because the current token determines most of the belief; the readout MSE is about 10× the paper's (see the atlas entry).
Part of the Atlas of Circuits & Manifolds — code: https://github.com/BurnyCoder/circuits-and-manifolds-from-mechanistic-interpretability-in-llms-and-other-models-atlas · interactive entry: https://burnycoder.github.io/circuits-and-manifolds-from-mechanistic-interpretability-in-llms-and-other-models-atlas/#/entry/belief-fractal
Files
mess3_transformer.ptconfig.json— architecture and training settings
Configuration
{
"task": "next-token prediction on the Mess3 hidden Markov process (x = 0.05, alpha = 0.85)",
"n_layers": 4,
"d_model": 64,
"n_heads": 1,
"d_head": 64,
"d_mlp": 256,
"act_fn": "relu",
"normalization": "LN",
"d_vocab": 3,
"n_ctx": 10,
"optimizer": "Adam lr 1e-3, 512 sequences per step",
"steps": 30000,
"framework": "TransformerLens HookedTransformer state_dict"
}
How to load
The checkpoints are plain PyTorch state_dicts. Rebuild the model with the code in
src/atlas/entries/belief_fractal.py of the repository above,
then model.load_state_dict(torch.load(path, map_location="cpu")).
Limitations
Research artifacts for interpretability replications; tiny models trained on synthetic tasks, not for any downstream use.
- Downloads last month
- 32