https://github.com/eleutherai/sae_overlap
Acompanying code for our research on SAE feature overlap when trained on different seeds.
https://github.com/eleutherai/sae_overlap
Last synced: 8 months ago
JSON representation
Acompanying code for our research on SAE feature overlap when trained on different seeds.
- Host: GitHub
- URL: https://github.com/eleutherai/sae_overlap
- Owner: EleutherAI
- License: apache-2.0
- Created: 2024-12-13T09:55:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-28T12:55:44.000Z (over 1 year ago)
- Last Synced: 2025-09-06T18:24:55.400Z (9 months ago)
- Language: Jupyter Notebook
- Size: 34.5 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sae_overlap
Acompanying code for our research on SAE feature overlap when trained on different seeds.
We provide a script to calculate the alignment between two SAEs using the hungarian algorithm, [hungarian_alignment.py](hungarian_alignment.py).
We also provide a script to plot all the figures in the paper, [sae_overlap.ipynb](sae_overlap.ipynb).
Although the aligment of the SAEs with less than 32k latents is fast, the aligment of the other sizes takes a long time, so we provide the average aligment and the indices in the [alignment](alignment) folder.
All trained SAEs can be found in [HuggingFace](https://huggingface.co/EleutherAI/sae_overlap/tree/main).
# License
Copyright 2024 the EleutherAI Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.