Papers › Analyzing (In)Abilities of SAEs via Formal Languages

Analyzing (In)Abilities of SAEs via Formal Languages

15 Oct 2024arXiv:2410.11767archive 2025-07-28

Abhinav Menon, Manish Shrivastava, David Krueger, Ekdeep Singh Lubana

Autoencoders have been used for finding interpretable and disentangled features underlying neural network representations in both image and text domains. While the efficacy and pitfalls of such methods are well-studied in vision, there is a lack of corresponding results, both qualitative and quantitative, for the text domain. We aim to address this gap by training sparse autoencoders (SAEs) on a synthetic testbed of formal languages. Specifically, we train SAEs on the hidden representations of models trained on formal languages (Dyck-2, Expr, and English PCFG) under a wide variety of hyperparameter settings, finding interpretable latents often emerge in the features learned by our SAEs. However, similar to vision, we find performance turns out to be highly sensitive to inductive biases of the training pipeline. Moreover, we show latents correlating to certain features of the input do not always induce a causal impact on model's computation. We thus argue that causality has to become a central target in SAE training: learning of causal features should be incentivized from the ground-up. Motivated by this, we propose and perform preliminary investigations for an approach that promotes learning of causally relevant features in our formal language setting.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.11767")

Code

Syntology Ran 3 of 10 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran with no contract checked.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Abhinav271828/pcfg-sae-causa found in paper text by Syntologynot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report
Abhinav271828/pcfg-sae-causal-arr-oct24 found in paper text by Syntology report
Abhinav271828/pcfg-sae-cau found in paper text by Syntologynot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 3 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran
7unverified

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Abhinav271828/pcfg-sae-causal-arr-oct24. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dec2base Abhinav271828/pcfg-sae-causal-arr-oct24/datasets/utils.py found in paper text by Syntology ran no licence file found · pointer only · 8f5c38520a624a74 · report
define_prior Abhinav271828/pcfg-sae-causal-arr-oct24/dgp/utils.py found in paper text by Syntology ran no licence file found · pointer only · 4138f619ef3ab02c · report
get_module Abhinav271828/pcfg-sae-causal-arr-oct24/utils/analysis.py found in paper text by Syntology ran no licence file found · pointer only · bfa0b6ce30af730f · report
dec2bin Abhinav271828/pcfg-sae-causal-arr-oct24/datasets/utils.py found in paper text by Syntology unverified no licence file found · pointer only · 9bf1df20447a502c · report
get_dataloader Abhinav271828/pcfg-sae-causal-arr-oct24/dgp/dataloader.py found in paper text by Syntology unverified no licence file found · pointer only · 834a92ff49752de4 · report
grammar_evals Abhinav271828/pcfg-sae-causal-arr-oct24/evals/evals.py found in paper text by Syntology unverified no licence file found · pointer only · 4b85b94877cbb65a · report
sample_data_from_generator_classes Abhinav271828/pcfg-sae-causal-arr-oct24/datasets/random_hierarchy_model.py found in paper text by Syntology unverified no licence file found · pointer only · 50cccbfce6dd484d · report
sample_rules Abhinav271828/pcfg-sae-causal-arr-oct24/datasets/random_hierarchy_model.py found in paper text by Syntology unverified no licence file found · pointer only · acc3479a59a6c04c · report
sample_with_replacement Abhinav271828/pcfg-sae-causal-arr-oct24/datasets/random_hierarchy_model.py found in paper text by Syntology unverified no licence file found · pointer only · 779207a23dcaeecb · report
top_k_top_p_filtering Abhinav271828/pcfg-sae-causal-arr-oct24/model/model.py found in paper text by Syntology unverified no licence file found · pointer only · 4088666d0047518a · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections