Sparse Weight Decomposition for Efficient Circuit Extraction
Summary
Veri-Safe SWD reference implementation. Factorizes pretrained dense linear maps (GPT-2 Small mlp.c_proj, Qwen2.5 0.5B/1.5B/3B down_proj, Qwen3.5-27B, full GPT-2 MLP and all 48 body projections) via Double Sparse Factorization so replacement CE stays near dense (e.g. GPT-2 L8 c_proj s=0.5: CE delta 0.000889 on 16,384 tokens; Qwen3.5-27B s=0.5: −0.000427). Pipeline: activation-Gram → DSF → fixed-support recovery → CE/KL/recon, task-margin attribution, mean ablation, sufficiency/necessity frontiers vs Transcoder/VPD baselines. Factor-only checkpoints on HF veri-safe/SWD (~1.16 GB usedStorage) plus SWD-Qwen2.5-3B (Qwen Research License). Discord posted the HF Spaces blog veri-safe/SWD-Blog. Apache-2.0. No FineWeb text redistributed.
- Venue
- Veri Safe (GitHub)
- Source
- github
- Access
- free
- License
- Apache-2.0
- License family
- Permissive
- Language
- en
- Hugging Face
- veri-safe/SWD
- Purpose
- Rewrite a dense projection as two sparse factors whose bottleneck coordinates are directly intervenable circuit units
- Scale
- GitHub 12 stars / 0 forks at check. HF veri-safe/SWD usedStorage ~1.16 GB; 4 likes / 0 downloads at check. Space 5 likes.
- Time period
- Repo created 2026-08-03; pushed 2026-08-04. HF created 2026-08-04. Discord posted 2026-08-08.
- Author type
- human
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Repository
- Veri-Safe/SWD
- Created
- Aug 3, 2026
- Last push
- Aug 4, 2026
- Stars
- 15
- Forks
- 0
- Main language
- Python
Tags
Topics
mechanistic interpretability, sparse factorization, circuit analysis
Research notes
- Primary: GitHub README (Apache-2.0). Discord posted https://huggingface.co/spaces/veri-safe/SWD-Blog (Space was a loading stub at fetch). Checkpoints https://huggingface.co/veri-safe/SWD and veri-safe/SWD-Qwen2.5-3B. Calibration uses FineWeb-Edu locally; not a new hosted corpus, so no datasets_local row. Individual author names not on the README; org Veri Safe used rather than guess.
Similar entries
- Paper Natural Language Autoencoders Produce Unsupervised Explanations of LLM Activations
- Paper Verbalizable Representations Form a Global Workspace in Language Models
- Paper Thought Branches: Interpreting LLM Reasoning Requires Resampling
- Paper Shared Circuits for Shared Grammar: Tracing Subject-Verb Agreement Across Languages
- Paper The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks
- Other Flash-MSA: Accelerating Million-Token Training With Sparse Attention Kernels