Prefill-Trained Sparse Autoencoder Features Enable Decode-Time Topic Monitoring
ORIGINAL / Train on prefill, monitor at decode: Using sparse autoencoders for topic monitoring
The study introduces TopicScope, a framework that trains causal topic classifiers on sparse autoencoder (SAE) features during prefill to assign a topic label to every token during generation, allowing topic changes mid-response. This extends topic monitoring beyond safety classification to multi-topic tracking, with low training cost and flexible deployment.
01 ABSTRACT
Fact: The authors trained three detector architectures on synthetic multi-topic conversations covering seven topics and showed that, on Gemma-3 1B and 4B, monitors trained on features from prefill hidden states generalize to decoding; classifiers are robust to perturbations such as off-topic asides, topic removal, or section reordering, losing at most 5 macro-F1 points. Author's view: Ablations indicate that classifiers reaching baseline performance without SAE are several times larger, so compact topic monitors can be trained inexpensively during prefill and deployed during generation; SAEs are useful beyond safety classification.
02 KEY FINDINGS
- TopicScope trains causal topic classifiers on SAE features to assign a topic label to each token, allowing labels to change mid-response.
- On Gemma-3 1B and 4B, monitors trained on prefill hidden states generalize to decoding and are robust to perturbations like off-topic asides, topic removal, or section reordering (≤5 macro-F1 drop).
- Ablations show that classifiers reaching baseline performance without SAE are several times larger, indicating SAE features help build compact monitors.
AI GENERATED SUMMARY / DISCOVERED BY ARXIV CS.LG