What problem does it solve? Understanding how Sparse Autoencoder (SAE) latents influence language model outputs requires running specialized experiments like feature ablation, attribution patching, and k-sparse probing, which are tedious to implement from scratch. ## Core Features & Use Cases - Feature Ablation: Ablate individual SAE features and measure their effect size, firing rate, and importance on model outputs for tasks like first-letter spelling. - Feature Attribution: Compute integrated gradient attribution scores to identify which SAE features contribute most to specific token predictions, with visualization support. - K-Sparse Probing: Train k-sparse probes across multiple k values to detect feature splitting by measuring how accuracy scales with the number of features used. - Use Case: Given a Gemma-2 model with a GemmaScope SAE at layer 12, run the ablation example to rank the most important features for spelling tasks, then use k-sparse probing to check whether the relevant information is split across multiple latents. ## Quick Start Run the feature ablation example script against a Gemma-2 model and GemmaScope SAE to identify the most important SAE features for a spelling task.