Papers › Identifying Functionally Important Features with End-to-End Sparse Dictionary Learning

Identifying Functionally Important Features with End-to-End Sparse Dictionary Learning

17 May 2024arXiv:2405.12241archive 2025-07-28

Dan Braun, Jordan Taylor, Nicholas Goldowsky-Dill, Lee Sharkey

Identifying the features learned by neural networks is a core challenge in mechanistic interpretability. Sparse autoencoders (SAEs), which learn a sparse, overcomplete dictionary that reconstructs a network's internal activations, have been used to identify these features. However, SAEs may learn more about the structure of the datatset than the computational structure of the network. There is therefore only indirect reason to believe that the directions found in these dictionaries are functionally important to the network. We propose end-to-end (e2e) sparse dictionary learning, a method for training SAEs that ensures the features learned are functionally important by minimizing the KL divergence between the output distributions of the original model and the model with SAE activations inserted. Compared to standard SAEs, e2e SAEs offer a Pareto improvement: They explain more network performance, require fewer total features, and require fewer simultaneously active features per datapoint, all with no cost to interpretability. We explore geometric and qualitative differences between e2e SAE features and standard SAE features. E2e dictionary learning brings us closer to methods that can explain network behavior concisely and accurately. We release our library for training e2e SAEs and reproducing our analysis at https://github.com/ApolloResearch/e2e_sae

PaperPDFCodeCode 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="2405.12241")

Code

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

By repository: official repository: 11 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

apolloresearch/e2e_sae officialmentioned in paperjaxMIT 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

11 samples harvested; 8 ran; 0 honoured the contract we drafted; 3 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.

8ran
3unverified

Licence: 0 of the 11 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 apolloresearch/e2e_sae. “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.

calc_explained_variance apolloresearch/e2e_sae/e2e_sae/losses.py official repository ran MIT (permissive) · 4240424af18cec3a · report
load_config apolloresearch/e2e_sae/e2e_sae/utils.py official repository ran MIT (permissive) · c965ff7e1ebc030d · report
setup_logger apolloresearch/e2e_sae/e2e_sae/log.py official repository ran MIT (permissive) · d8a05e02085eeb90 · report
statistical_distance apolloresearch/e2e_sae/e2e_sae/metrics.py official repository ran fingerprinted MIT (permissive) · 940eb3f8703e24c9 · report
to_numpy apolloresearch/e2e_sae/e2e_sae/utils.py official repository ran MIT (permissive) · 10dfdb7059057d01 · report
tokenize_and_concatenate apolloresearch/e2e_sae/e2e_sae/data.py official repository ran MIT (permissive) · 785cf677e1de98f6 · report
top1_consistency apolloresearch/e2e_sae/e2e_sae/metrics.py official repository ran fingerprinted MIT (permissive) · fd3eafcb040f48d9 · report
topk_accuracy apolloresearch/e2e_sae/e2e_sae/metrics.py official repository ran MIT (permissive) · 328f50c831db8d0f · report
convert_str_to_torch_dtype apolloresearch/e2e_sae/e2e_sae/types.py official repository unverified MIT (permissive) · 495a63f69d38d772 · report
load_pretrained_saes apolloresearch/e2e_sae/e2e_sae/loader.py official repository unverified MIT (permissive) · 0b6d19ab9443ea4e · report
serialize_torch_dtype_to_str apolloresearch/e2e_sae/e2e_sae/types.py official repository unverified MIT (permissive) · 0c353f5afddae0f1 · report

Tasks

Dictionary Learning

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