Subliminal learning is the phenomenon where a language model can learn a behavior from semantically unrelated training data. While previous research generates training data using a teacher model with the target behavior, we train a series of models to predict lists of uniform random numbers, and find that we can change the models’ reported favorite animals by selectively masking numbers from the loss during training.
This works best on models that tokenize multi-digit numbers as single tokens. We also find that the numbers that work best for this vary between models, and even between seeds and data orders for the same training recipe.









![Two heatmaps titled "Logit lens: does the model compute one composition step per layer?", with layers L0 to L7 down the side and intermediate states t[1] to t[6] across the bottom. Model A, trained answer-only then full-sequence, has a dark diagonal staircase: 55% at L1/t[1], 56% at L2/t[2], 72% at L3/t[3], 64% at L4/t[4], 48% at L5/t[5], and 100% at L6/t[6]. Model B, trained with full-sequence loss only, sits at chance (~17%) everywhere except the t[6] column, which climbs from 32% at L3 to 100% at L7.](/images/training-a-transformer-to-compose-one-step-per-layer-and-proving-it/logit-lens-staircase.png)







