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 those transitions accurately doesn’t identify the underlying computational mechanism, especially since a transformer can look back at prior context.