Sparse Autoencoders Enable Scalable and Reliable Circuit Identification in Language Models. O'Neill, C. & Bui, T. May, 2024. arXiv:2405.12522 [cs] TLDR: This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders, and hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations.
Paper doi abstract bibtex This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders. Our approach addresses key limitations of existing techniques, namely computational complexity and sensitivity to hyperparameters. We propose training sparse autoencoders on carefully designed positive and negative examples, where the model can only correctly predict the next token for the positive examples. We hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations. By discretising the learned representations into integer codes and measuring the overlap between codes unique to positive examples for each head, we enable direct identification of attention heads involved in circuits without the need for expensive ablations or architectural modifications. On three well-studied tasks - indirect object identification, greater-than comparisons, and docstring completion - the proposed method achieves higher precision and recall in recovering ground-truth circuits compared to state-of-the-art baselines, while reducing runtime from hours to seconds. Notably, we require only 5-10 text examples for each task to learn robust representations. Our findings highlight the promise of discrete sparse autoencoders for scalable and efficient mechanistic interpretability, offering a new direction for analysing the inner workings of large language models.
@misc{oneill_sparse_2024,
title = {Sparse {Autoencoders} {Enable} {Scalable} and {Reliable} {Circuit} {Identification} in {Language} {Models}},
url = {http://arxiv.org/abs/2405.12522},
doi = {10.48550/arXiv.2405.12522},
abstract = {This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders. Our approach addresses key limitations of existing techniques, namely computational complexity and sensitivity to hyperparameters. We propose training sparse autoencoders on carefully designed positive and negative examples, where the model can only correctly predict the next token for the positive examples. We hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations. By discretising the learned representations into integer codes and measuring the overlap between codes unique to positive examples for each head, we enable direct identification of attention heads involved in circuits without the need for expensive ablations or architectural modifications. On three well-studied tasks - indirect object identification, greater-than comparisons, and docstring completion - the proposed method achieves higher precision and recall in recovering ground-truth circuits compared to state-of-the-art baselines, while reducing runtime from hours to seconds. Notably, we require only 5-10 text examples for each task to learn robust representations. Our findings highlight the promise of discrete sparse autoencoders for scalable and efficient mechanistic interpretability, offering a new direction for analysing the inner workings of large language models.},
urldate = {2025-01-15},
publisher = {arXiv},
author = {O'Neill, Charles and Bui, Thang},
month = may,
year = {2024},
note = {arXiv:2405.12522 [cs]
TLDR: This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders, and hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations.},
keywords = {Computer Science - Computation and Language, Computer Science - Machine Learning},
}
Downloads: 0
{"_id":"6rts7MTk5no4Zzg44","bibbaseid":"oneill-bui-sparseautoencodersenablescalableandreliablecircuitidentificationinlanguagemodels-2024","author_short":["O'Neill, C.","Bui, T."],"bibdata":{"bibtype":"misc","type":"misc","title":"Sparse Autoencoders Enable Scalable and Reliable Circuit Identification in Language Models","url":"http://arxiv.org/abs/2405.12522","doi":"10.48550/arXiv.2405.12522","abstract":"This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders. Our approach addresses key limitations of existing techniques, namely computational complexity and sensitivity to hyperparameters. We propose training sparse autoencoders on carefully designed positive and negative examples, where the model can only correctly predict the next token for the positive examples. We hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations. By discretising the learned representations into integer codes and measuring the overlap between codes unique to positive examples for each head, we enable direct identification of attention heads involved in circuits without the need for expensive ablations or architectural modifications. On three well-studied tasks - indirect object identification, greater-than comparisons, and docstring completion - the proposed method achieves higher precision and recall in recovering ground-truth circuits compared to state-of-the-art baselines, while reducing runtime from hours to seconds. Notably, we require only 5-10 text examples for each task to learn robust representations. Our findings highlight the promise of discrete sparse autoencoders for scalable and efficient mechanistic interpretability, offering a new direction for analysing the inner workings of large language models.","urldate":"2025-01-15","publisher":"arXiv","author":[{"propositions":[],"lastnames":["O'Neill"],"firstnames":["Charles"],"suffixes":[]},{"propositions":[],"lastnames":["Bui"],"firstnames":["Thang"],"suffixes":[]}],"month":"May","year":"2024","note":"arXiv:2405.12522 [cs] TLDR: This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders, and hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations.","keywords":"Computer Science - Computation and Language, Computer Science - Machine Learning","bibtex":"@misc{oneill_sparse_2024,\n\ttitle = {Sparse {Autoencoders} {Enable} {Scalable} and {Reliable} {Circuit} {Identification} in {Language} {Models}},\n\turl = {http://arxiv.org/abs/2405.12522},\n\tdoi = {10.48550/arXiv.2405.12522},\n\tabstract = {This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders. Our approach addresses key limitations of existing techniques, namely computational complexity and sensitivity to hyperparameters. We propose training sparse autoencoders on carefully designed positive and negative examples, where the model can only correctly predict the next token for the positive examples. We hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations. By discretising the learned representations into integer codes and measuring the overlap between codes unique to positive examples for each head, we enable direct identification of attention heads involved in circuits without the need for expensive ablations or architectural modifications. On three well-studied tasks - indirect object identification, greater-than comparisons, and docstring completion - the proposed method achieves higher precision and recall in recovering ground-truth circuits compared to state-of-the-art baselines, while reducing runtime from hours to seconds. Notably, we require only 5-10 text examples for each task to learn robust representations. Our findings highlight the promise of discrete sparse autoencoders for scalable and efficient mechanistic interpretability, offering a new direction for analysing the inner workings of large language models.},\n\turldate = {2025-01-15},\n\tpublisher = {arXiv},\n\tauthor = {O'Neill, Charles and Bui, Thang},\n\tmonth = may,\n\tyear = {2024},\n\tnote = {arXiv:2405.12522 [cs]\nTLDR: This paper introduces an efficient and robust method for discovering interpretable circuits in large language models using discrete sparse autoencoders, and hypothesise that learned representations of attention head outputs will signal when a head is engaged in specific computations.},\n\tkeywords = {Computer Science - Computation and Language, Computer Science - Machine Learning},\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","author_short":["O'Neill, C.","Bui, T."],"key":"oneill_sparse_2024","id":"oneill_sparse_2024","bibbaseid":"oneill-bui-sparseautoencodersenablescalableandreliablecircuitidentificationinlanguagemodels-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2405.12522"},"keyword":["Computer Science - Computation and Language","Computer Science - Machine Learning"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/zzhenry2012","dataSources":["nZHrFJKyxKKDaWYM8"],"keywords":["computer science - computation and language","computer science - machine learning"],"search_terms":["sparse","autoencoders","enable","scalable","reliable","circuit","identification","language","models","o'neill","bui"],"title":"Sparse Autoencoders Enable Scalable and Reliable Circuit Identification in Language Models","year":2024}