Writing

Transformer memory experiments

I trained a causal transformer on a three-bit flip-flop task and examined its hidden representations with PCA and additive models. Then I compared linear, switching-linear and nonlinear predictors of how its hidden state changes from step to step.

Predicting the transformer's hidden-state transitions on a held-out sequence of the synthetic three-bit flip-flop task, with linear, switching-linear and nonlinear models.

Predicting those transitions accurately doesn’t identify the underlying computational mechanism, especially since a transformer can look back at prior context.