[Proposal] Demo or helper for statistical audits of activation-patching results on TransformerBridge
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- machine-learning
Direzione di ricerca
Start by reading the proposal’s discussion and the current TransformerBridge analysis and notebook interfaces. The issue leaves the deliverable undecided between a demo notebook, a helper package, or no repository addition, so first establish maintainer agreement on scope and delivery format. Done means the accepted path is clear and its statistical assumptions and multiple testing approach are documented.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Proposal
Add a focused demo or analysis example showing how to use a statistical audit layer for activation-patching results in the current TransformerBridge API, without turning that functionality into a core library method.
Motivation
The current TransformerLens v4 stack is built around TransformerBridge and the newer analysis/tooling interfaces, not the older HookedTransformer API. A prior LAT-style implementation or similar analysis utility may have been natural in v3, but it needs to be rewritten or re-scoped to work with the current bridge-based model interface.
A statistical audit layer is valuable when evaluating many components at once (heads, layers, positions, or intervention sites), especially when the analysis asks whether the observed patching signal survives multiple-comparisons correction. That is a natural fit for a research demo or notebook example, rather than necessarily a first-class core method in TransformerLens itself.
Scope
We should decide whether the repository wants:
- a small demo notebook showing statistical audits on real
TransformerBridgeruns, or - a generic analysis utility in a separate package / helper module, or
- no direct repository addition yet, pending the broader analysis-tool overhaul.
Proposed direction
A good low-friction path would be:
- keep statistical inference in a standalone or external helper package if needed,
- adapt it to
TransformerBridgerather thanHookedTransformer, - present it as a notebook or docs example to make the methodology concrete,
- keep the core library focused on generalized analysis primitives rather than a single
lat_scan-like API.
Concrete example
A notebook could demonstrate:
- running a clean/corrupt activation-patching experiment with
TransformerBridge, - measuring per-component normalized effects,
- reporting descriptive rankings and robustness diagnostics,
- applying a valid multiple-testing procedure only when a defensible null is available,
- documenting which assumptions are required for sign-flip or control-based inference.
The goal would be to make the statistical audit methodology usable and inspectable without hard-coding one specific method into the repository core.
Discussion points
- Should TransformerLens accept a demo notebook for statistical analysis tools in the current v4 architecture?
- Should generic statistical audits live in a dedicated package or helper module instead of the core repo?
- If a core API is eventually added, should it be a generic analysis primitive instead of a single
lat_scan-like method? - What is the preferred maintenance boundary for visualization-heavy or method-specific research tooling?
Checklist
- I have checked that there is no similar issue or proposal in the repository.
- Maintainers agree on the preferred scope and delivery format.
- The proposal is rewritten for the
TransformerBridgev4 API. - The accepted path is either a demo notebook or a generic helper layer, rather than a single bespoke method.
- Lingua principale
- Python
- Stelle
- 3.9k
- Fork
- 708
- Merge medio
- 1g 9h
- PR unite (30g)
- 84
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TransformerLensOrg/TransformerLens
-
[Bug Report] `TransformerBridge.boot_*` methods are invisible to static type checkersForse già presa @koriyoshi2041 l’ha presa 1 giorno fa. Apertabug complexity-simple TransformerBridge
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
TransformerLensOrg/TransformerLens#1980 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug Report] detect_head fails with a list of sequences and a custom tensor detection patternForse già presa @koriyoshi2041 l’ha presa 1 giorno fa. Apertabug complexity-moderate TransformerBridge
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
TransformerLensOrg/TransformerLens#1979 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug Report] Residual-decomposition APIs raise KeyError on SSM / hybrid bridges (Qwen3.5, Mamba-2, NemotronH, GraniteMoeHybrid)Forse già presa @SBrouck l’ha presa oggi. Apertacomplexity-moderate enhancement TransformerBridge
TransformerLensOrg/TransformerLens#1986 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Proposal] Demo: auditing a published LLM-written weight edit (Weight-Space Programming, Qwen3.5-0.8B loop fix) with TransformerBridgeForse già presa @emerardd l’ha presa 2 giorni fa. Apertacomplexity-moderate demo TransformerBridge
TransformerLensOrg/TransformerLens#1978 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug Report] `blocks.N.hook_out` never fires on OpenAI GPT because the HF block returns a listForse già presa @ska2704 l’ha presa 3 giorni fa. Apertabug complexity-simple TransformerBridge
Difficoltà 3/5 Mezza giornata Idoneità per principianti 72/100
TransformerLensOrg/TransformerLens#1969 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TransformerLensOrg/TransformerLens
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
FinanceFlash/unvibecode#577 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area/test type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Clodmony/starship-coop#70 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
punitarani/fli#270 ·
-
🐛 Bug 🔔 Pending processing
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
jumpserver/jumpserver#17980 ·
I maintainer di solito rispondono entro 1 giorno
-
community enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno