Zubnet AIसीखेंWiki › Sparse Autoencoder
Models

Sparse Autoencoder

SAE
एक neural network जो एक sparsity constraint वाले bottleneck के through एक model की internal activations reconstruct करने के लिए trained है — एक बार में सिर्फ कुछ ही features active हो सकती हैं। Learned features अक्सर interpretable concepts से correspond करती हैं (specific topics, linguistic patterns, reasoning strategies), SAEs को large language models के अंदर superposed features को disentangle करने का primary tool बनाते हुए।

यह क्यों matter करता है

Sparse autoencoders mechanistic interpretability का microscope हैं। LLMs हर layer में thousands of features को superposition के through pack करते हैं, individual neurons को uninterpretable बनाते हुए। SAEs इन superposed representations को individual, interpretable features में decompose करते हैं। Anthropic ने Claude में millions of features identify करने के लिए SAEs use किए, deception के लिए features, specific concepts, और safety-relevant behaviors शामिल।

Deep Dive

Architecture: the SAE takes a model's activation vector (dimension d_model, e.g., 4096) and encodes it into a much larger sparse representation (e.g., 64K features, of which only ~100 are active for any given input). It then decodes back to d_model and is trained to minimize reconstruction error. The sparsity constraint (L1 penalty on the hidden layer) forces the SAE to use only a few features per input, ensuring each feature is specific rather than diffuse.

What SAEs Find

When trained on LLM activations, SAEs discover interpretable features: a "Golden Gate Bridge" feature that activates on text about the bridge, a "Python code" feature, a "French language" feature, a "sycophantic agreement" feature, and so on. These features are more interpretable than individual neurons because the sparsity constraint separates overlapping concepts that neurons represent in superposition. Anthropic's research found features ranging from concrete (specific entities) to abstract (deception, uncertainty).

Applications Beyond Interpretation

SAE features can be used for more than understanding: clamping a feature to zero suppresses the corresponding behavior (deactivating a "deception" feature), while amplifying a feature strengthens it. This opens the possibility of fine-grained behavioral control without retraining. However, the technique is still experimental — feature interactions are complex, and modifying one feature can have unintended effects on others due to residual superposition.

संबंधित अवधारणाएँ

← सभी Terms
← Sparse Attention Speculative Decoding →