Anthropic interpretability team: training classifiers with dictionary learning features
Using Dictionary Learning Features as Classifiers
The Anthropic interpretability team reported preliminary experiments on training bioweapon harmful/harmless classifiers using features extracted by dictionary learning in place of raw activations. On synthetic data, the linear feature classifier performed comparably to or even slightly better than the raw activation classifier, and aggregating feature activations across the entire context window with max-pooling was key; on the out-of-distribution dataset synthetic_3 with cross-lingual and base64 and other encodings, the feature classifier's ROC_AUC was 0.96, versus 0.9 for raw activations. A decision tree based on feature activations performed worse than the linear classifier but was easier to interpret. Feature visualization could also reveal spurious correlations in the dataset, for example a feature predicting harmless would activate due to academic publication-format text, and an adversarial suffix constructed accordingly by the authors caused the vast majority of 300 harmful prompts to be misjudged as harmless, whereas a similar attack constructed using raw activation coefficients was far less effective.
The Anthropic interpretability team publicly released preliminary experiments on training bioweapon classifiers with dictionary learning features, and showed how feature visualization can be used to find spurious correlations in datasets.