Behavioral Compositionality of Sparse Autoencoder Representations
If the effects of individual SAE features are known, can their joint effect be predicted by summing them?
Individual feature effects need not add up
At layer 21 and the last token, the activation is split into the 16 most active SAE contributions and all other activation content , which includes the reconstruction residual. Keeping a subset gives
The upper layers run unchanged and give . For a pair of features the sum of single effects predicts . The colour of a cell is the model output minus this prediction.
The selected pair is SAE features 21097 and 29794 of the Llama Scope SAE. For this prompt = 0.1677 and = 0.771.
SAR measures what individual feature effects leave unexplained
Subsets are drawn by keeping each feature independently with probability 1/2. Let be the best approximation of with terms of at most features and the variance of . Then
Under this sampling is exactly the normalized energy of interactions above order , and it bounds the coalition ordering error of the best order approximation.
With 16 real features there are 65,536 subsets. The paper samples 384, fits on 256 and reports on the other 128.
The toy uses all 16 subsets of four features, so its values are exact. Its behavior is .
SAE coordinates have lower first order residuals than random rotations
A rotation mixes the 16 selected contributions into 16 new directions. The subspace, the total contribution and the upper layers stay the same.
With the contributions as the columns of , a rotation uses where is orthogonal and . Each prompt gets eight random rotations and keeps its subsets and split.
From early to late layers falls in eight of nine comparisons and rises in all nine. Rotations show the same decrease, so part of this trend comes from the shorter downstream computation. SAE coordinates stay lower in all 33 model, behavior and layer comparisons.
| Median, SAE/rotation | Gemma | Mistral | Llama |
|---|
Pairwise terms recover most of the missing structure
The pairwise model has 137 coefficients. The control keeps the 17 first order terms and replaces the 120 pair terms with 120 terms of three features drawn at random from 560. Each prompt gets 50 such controls, and this slide shows the one with the median rank fidelity. Over the 50 controls rank fidelity ranges from .
Over the 18 settings pairwise terms also lower sign error in every setting and cut selection regret from 0.0272 to 0.0051. Both gains hold in all 20 repeated splits.
From the lowest to the highest decile, first order rank fidelity falls from 0.9857 to 0.9539 in Gemma, from 0.9939 to 0.9413 in Mistral and from 0.9790 to 0.9289 in Llama.
Pairwise modeling better predicts combined steering
We add 16 published SAE steering directions to Llama-3.1 8B in 1,024 combinations and measure accuracy on 1,400 MMLU-Pro questions.
The 16 MMLU-Pro features come from CorrSteer for the Llama Scope SAEs at layers 12 to 30, with their published coefficients. A combination adds each chosen direction at its layer. We sample 1,024 of the 65,536 combinations and split them 512 and 512. Each of the 14 MMLU-Pro domains contributes 100 test questions.
In ordering error, and are the differences in actual and predicted accuracy between two combinations. Domain results are mixed. Pairs raise rank fidelity in 10 of the 14 domains.
| Domain | Residual, first order | Rank, first order | Rank, pairwise |
|---|
SAE coordinates are comparatively compositional, but faithful joint explanations still need interactions
- A property of a whole SAE dictionary. The results depend on the selected features, the behavior and the intervention.
- That pairs are always enough. Some higher order structure remains, and pairs did not help in every steering domain.
- What the interacting features mean.