open-interpretability 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/CHANGELOG.md +151 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/PKG-INFO +1 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/__init__.py +1 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/narrator.py +13 -4
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/proposer.py +12 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/review_measurements.py +6 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/reviewer.py +29 -24
- open_interpretability-0.2.1/openinterpretability/answer_lens.py +149 -0
- open_interpretability-0.2.1/openinterpretability/answer_prompts.py +180 -0
- open_interpretability-0.2.1/openinterpretability/answer_readings.py +123 -0
- open_interpretability-0.2.1/openinterpretability/answer_review.py +189 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/audit_options.py +10 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/compiler.py +2 -2
- open_interpretability-0.2.1/openinterpretability/builder/draws_export.py +54 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/experiment.py +1 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/explanation_pages.py +119 -7
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/hrefs.py +5 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/parquet_export.py +40 -65
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/pii.py +4 -2
- open_interpretability-0.2.1/openinterpretability/builder/route_figures.py +217 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/sister_graph.py +2 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/slim.py +15 -3
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/standing.py +95 -22
- open_interpretability-0.2.1/openinterpretability/builder/templates/_answer_verdict.html +35 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_embedding3d.html +274 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_experiment.html +4 -4
- open_interpretability-0.2.1/openinterpretability/builder/templates/_figure.html +17 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_figure_pause.html +12 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_gas3d.html +85 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_rivals.html +22 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_route3d.html +452 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_route3d_waves.html +152 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/_route_row.html +8 -0
- open_interpretability-0.2.1/openinterpretability/builder/templates/answer.html +104 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/explanation.html +12 -28
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/explanation_prompt.html +1 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/neuron.html +4 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/checks.py +13 -9
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli.py +1 -0
- open_interpretability-0.2.1/openinterpretability/cli_answers.py +212 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_baseline.py +10 -4
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_benchmark.py +2 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_evidence.py +6 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_evidence_store.py +3 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_explain.py +31 -40
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_neuronpedia.py +3 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_reproduce.py +44 -42
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_review.py +10 -5
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_score.py +2 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_submission.py +1 -0
- open_interpretability-0.2.1/openinterpretability/core/answer_records.py +337 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/explanation_records.py +91 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/isolation.py +2 -0
- open_interpretability-0.2.1/openinterpretability/core/record_kinds.py +55 -0
- open_interpretability-0.2.1/openinterpretability/core/rivals.py +118 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/schemas.py +10 -0
- open_interpretability-0.2.1/openinterpretability/embedding_space.py +148 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/evidence.py +5 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/experiment_loop.py +4 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain.py +3 -6
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_coverage.py +77 -6
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_narrate.py +42 -5
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_plan.py +52 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_reuse.py +15 -2
- open_interpretability-0.2.1/openinterpretability/explain_stopped.py +85 -0
- open_interpretability-0.2.1/openinterpretability/explanation_registry.py +89 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explanation_targets.py +3 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/chunks.py +3 -3
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/annotations.py +2 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/crossref.py +2 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/layer_major.py +2 -1
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/units.py +5 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/wiring_activations.py +2 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/hubs.py +26 -0
- open_interpretability-0.2.1/openinterpretability/inverse_claims.py +113 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_states.py +22 -15
- open_interpretability-0.2.1/openinterpretability/reproduce_explanation.py +394 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/reproduce_policy.py +15 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/show.py +3 -3
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/verdict_regression.py +1 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/pyproject.toml +4 -2
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/.gitignore +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/CITATION.cff +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/LICENSE +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/README.md +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/base.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/judge.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/probe_hints.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/proposer_profiles.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agreement.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/baseline.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/benchmark.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/blends.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/agents.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/aligned.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/brand/logo.svg +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/brand/mark-32.png +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/brand/mark.svg +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/brand/og.png +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/brand.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/changelog_page.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/charts.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/circuit_pages.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/circuit_units.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/circuits.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/concept_map_view.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/contents.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/corpora.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/coverage.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/css.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/dashboard.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/disk_memo.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/explanation_figures.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/feeds.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/GUST-FONT-LICENSE.txt +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/OFL.txt +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/README.md +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/cmu-serif-500-italic.woff2 +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/cmu-serif-500-roman.woff2 +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/cmu-serif-700-italic.woff2 +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/cmu-serif-700-roman.woff2 +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/cmu-typewriter-text-500-roman.woff2 +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/fonts/latinmodern-math.otf +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/heat.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/learned_baseline.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/literature_pages.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/model_facts.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/neuronpedia_export.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/palette.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/paper_pdf.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/parallel.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/pending.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/pieces.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/recent.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/registry_stats.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/research.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/sections.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/significance.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/statuses.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/stopped.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/stops.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/superpositions.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/taxonomy_view.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_agent_role_cells.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_causal_chart.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_circuit.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_concept_map.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_dashboard.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_macros.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_patchscope.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_prior_art.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_prose.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_specificity.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_steering.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_superposition.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_taxonomy.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_vocab_chart.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/_wiring.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/about.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/agent.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/agents.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/base.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/changelog.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/circuit.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/circuit_unit.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/circuits.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/experiment.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/explanations.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/hub.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/index.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/layer.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/learned-baseline.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/literature.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/model.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/models.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/paper.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/paper_print.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/redirect.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/research.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/user.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/users.html +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/wiki/experiment.md +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/wiki/index.md +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/wiki/neuron.md +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/templates/wiki/stop.md +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/tree.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/users.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/builder/wiki.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/circuit_checks.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/circuit_ids.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/circuit_review.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_build.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_check.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_circuits.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_concepts.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_corpus.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_costs.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_coverage.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_crossref.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_errata.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_loop.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_map.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_memory.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_pause.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_pole_effects.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_probing.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_provider.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_registry.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_scan.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_sisters.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_superpositions.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/cli_wiring.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/codeid.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/concept_map.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/concepts.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/agent_names.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/attribution.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/cache_dirs.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/causal.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/circuit_records.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/confounds.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/contributors.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/corpora.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/costs.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/draws.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/errata.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/evidence.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/examples.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/exceptions.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/explanation.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/fence.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/heavy_lock.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/identifiers.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/ledger.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/legacy_names.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/licenses.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/manifold.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/partners.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/patchscope.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/paths.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/pause.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/pricing.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/prior_art.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/probing.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/profiles.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/project.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/run_environment.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/specificity.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/stats.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/steering.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/strict.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/takedowns.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/taxonomy.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/transcripts.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/core/wiring.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/corpus.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/corpus_cache.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/corpus_layouts.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/corpus_presets.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/corpus_rebuild.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/coverage.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/crossref.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/data/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/data/offensive_words.txt +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/data/providers.toml +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/data/public_suffix_list.dat +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/data/sample_corpus.txt +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/draw_steps.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/errata_checks.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/evidence_branch.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/evidence_lenses.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_figure_data.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_groups.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_land.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/explain_run.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/figures/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/figures/motion.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/figures/svg.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/half_precision.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/backend.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/cache.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/convert.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/forward.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/ane/qualified.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/attribution.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/causal.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/circuit_measures.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/confounds.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/covariance.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/cpu_speed.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/cuda_devices.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/dead.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/devices.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/dictionaries.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/dreaming.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/environment.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/explanation_scores.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/features.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/first_position.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/heads.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/hooks.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/input_attribution.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/jlens.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/layer_cache.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/lookahead.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/manifold.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/memory.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/moe.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/patcher.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/patchscope.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/prepare.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/probing.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/progress.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/scan.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/scan_backend.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/sister_passes.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/sisters.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/sites.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/specificity.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/steering.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/superpositions.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/harness/wiring.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/langid.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/loop_bugs.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/model_revisions.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/names.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/neuronpedia_baseline.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/neuronpedia_review.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_circuits.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_claims.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_effects.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_explanations.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_heads.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_models.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_sisters.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/planner_superpositions.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/pole_effects.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/prior_art.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/providers.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/reproduce.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/revision.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/runner_cache.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/score_controls.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/sensitive.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/signing.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/sisters.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/superposition_finders.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/sync/__init__.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/sync/r2.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/syntax.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/takedown_checks.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/toxicity.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/wiring_backfill.py +0 -0
- {open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/wordnet.py +0 -0
|
@@ -13,6 +13,157 @@ Changes waiting for the next release are files in [changelog.d/](changelog.d/REA
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.2.1] - 2026-11-19
|
|
17
|
+
|
|
18
|
+
Ships with protocol version **0.10**.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- **Rival readings** (#3197). The proposer can write up to three rival readings beside its hypothesis. The reviewer labels each probe with what each rival predicts, and writes probes that tell them apart. The verdict records each reading's balanced accuracy on the measured probes, and the best one. The experiment page shows them. This is reported, not gated, and records without rivals are unchanged.
|
|
23
|
+
- **Answer experiments** (#4778). An answer experiment claims how a model produces one answer: the route from the prompt's tokens through units to the answer. `open-interpretability answers` writes the proposer's and the reviewer's prompts, checks a claim, and measures it. The measures are route ablation against matched random sets, sufficiency, path patching from a corrupted prompt, and the prompts that come out as predicted. One answer can take up to 5 attempts, and each one sees the earlier claims. Verdicts have their own rule version, `ANSWER_PROTOCOL_VERSION` 1.0, so the unit rule is unchanged. Records live in `wiki/answers/`, and `check` re-derives each verdict. `explain` plans the next attempt. An explanation page now leads with the answer's verdict, and says that the answer is understood only when a claim is VERIFIED. New agents: `answer-proposer` and `answer-reviewer`.
|
|
24
|
+
- **A pythia-70m hallucination, explained** (#4781). `scripts/hallucination_shortlist.py` scores 35 prompts that each have one right answer. It keeps the ones the model answers wrong with a confident content word (`docs/analyses/hallucination-shortlist.jsonl`). All 6 kept prompts copy the first clause's unit. "A week has seven days and a year has twelve" gives " days" (0.73), with " months" at rank 4.
|
|
25
|
+
- **Coverage.** Six batches of unit experiments, run by Claude Code agents, raised the prompt's coverage from 50.9% to 93.8%. The plan's maximum is 98.5%. Matched random units bring back 10.1%.
|
|
26
|
+
- **Answer experiment.** Its second attempt is VERIFIED on a seed that the proposer did not use. Necessity is 0.68, sufficiency 0.62 and patching 0.75 (random sets −0.004). It passes 7 of 7 controls and 20 of 24 blind probes. The first attempt was REJECTED on the patching null.
|
|
27
|
+
- **What the route shows.** Layer-0 count-word and time-unit neurons mark " seven", " days" and " twelve". Early heads line up the two "a X has N" clauses. Then the copy heads L3/H3, L4/H0 and L4/H7 carry " days" from " twelve" to the answer position. No verified unit supplies " months".
|
|
28
|
+
- **Literature: five LoRA papers for #4782**, each read in full, under *LoRA and low-rank fine-tuning*.
|
|
29
|
+
- LoRA (#4854).
|
|
30
|
+
- AdaLoRA (#4855).
|
|
31
|
+
- LoRA+ (#4856).
|
|
32
|
+
- QLoRA (#4857).
|
|
33
|
+
- DoRA (#4858).
|
|
34
|
+
|
|
35
|
+
The follow-up is #5158, which rounds a registry model's weights to NF4 and counts the VERIFIED poles that keep. Evidence comments went on #5118, #5125 and #5133. ([docs/literature/README.md](docs/literature/README.md))
|
|
36
|
+
- **Literature: five more fine-tuning papers for #4782**, each read in full, under *LoRA and low-rank fine-tuning*.
|
|
37
|
+
- LoRA vs Full Fine-tuning: An Illusion of Equivalence (#4859).
|
|
38
|
+
- LoraHub (#4860).
|
|
39
|
+
- ReFT (#4861).
|
|
40
|
+
- Fine-tuning on procedurally defined tasks (#4862).
|
|
41
|
+
- Fine-Tuning Enhances Existing Mechanisms (#4863).
|
|
42
|
+
|
|
43
|
+
The follow-ups are #5163 and #5164. #5163 prunes a few instruct-model neurons to bring back failed poles. #5164 tests whether a VERIFIED answer route keeps on an instruct model. ([docs/literature/README.md](docs/literature/README.md))
|
|
44
|
+
- **Literature: five more papers for #4782**, each read in full.
|
|
45
|
+
- Under *LoRA and low-rank fine-tuning*: rank-1 LoRAs (#4864), LoRA feature geometry (#4865, *not applicable*) and LoRA Without Regret (#4866).
|
|
46
|
+
- In a new section, *Bridges: editing, merging and task vectors*: continual learning with hypernetworks (#4867) and ROME (#4868), which is *used*.
|
|
47
|
+
|
|
48
|
+
The follow-ups are #5166 and #5167. #5166 audits rank-1 adapter directions as registry units. #5167 tests which VERIFIED poles keep after one rank-one MLP edit. ([docs/literature/README.md](docs/literature/README.md))
|
|
49
|
+
- **Literature: five more papers for #4782**, each read in full.
|
|
50
|
+
- LoRA Learns Less and Forgets Less (#4824).
|
|
51
|
+
- Loss of plasticity in deep continual learning (#4825).
|
|
52
|
+
- Two continual-learning surveys (#4826 and #4827).
|
|
53
|
+
- Toy Models of Superposition (#4828), whose page sits under *Neurons, circuits and dictionaries*, because the repo uses it.
|
|
54
|
+
|
|
55
|
+
The follow-ups are #5133, #5134, #5135 and #5136. #5133 asks whether the weight change at a pole predicts whether it keeps. #5134 tracks dormant poles and rank across checkpoints. #5135 tests whether explanations hold below the activity line. #5136 checks the superposition finders on a toy model. ([docs/literature/README.md](docs/literature/README.md))
|
|
56
|
+
- **Literature: the last five papers for #4782**, each read in full.
|
|
57
|
+
- Spurious forgetting in continual learning (#4829).
|
|
58
|
+
- RL's Razor (#4830).
|
|
59
|
+
- Sparsity artifacts in crosscoders for chat-tuning (#4831).
|
|
60
|
+
- A mechanistic analysis of forgetting in continual fine-tuning (#4832), marked *not applicable*: its two arXiv versions report different studies, and it has no code.
|
|
61
|
+
- LoKI (#4833).
|
|
62
|
+
|
|
63
|
+
The follow-ups are #5140 and #5141. #5140 asks which MLP neurons carry the base-to-instruct difference. #5141 tests whether the output KL at a pole's probes predicts whether it keeps. ([docs/literature/README.md](docs/literature/README.md))
|
|
64
|
+
- **Literature: five papers on fast weights for #4782**, each read in full, in a new section, *Weight-space programming and fast weights*.
|
|
65
|
+
- Using Fast Weights to Deblur Old Memories (#4834).
|
|
66
|
+
- Learning to Control Fast-Weight Memories (#4835).
|
|
67
|
+
- Using Fast Weights to Attend to the Recent Past (#4836).
|
|
68
|
+
- HyperNetworks (#4837).
|
|
69
|
+
- Transformers are RNNs (#4838), marked *not applicable*: the registry's heads all use softmax attention.
|
|
70
|
+
|
|
71
|
+
Together they find no way to check an explanation from weights alone. The follow-up is #5144, which counts the VERIFIED explanations that need context. ([docs/literature/README.md](docs/literature/README.md))
|
|
72
|
+
- **Literature: five more papers on weight-space programming for #4782**, each read in full.
|
|
73
|
+
- Linear Transformers Are Secretly Fast Weight Programmers (#4839).
|
|
74
|
+
- A Modern Self-Referential Weight Matrix (#4840).
|
|
75
|
+
- Transformers learn in-context by gradient descent (#4841).
|
|
76
|
+
- Thinking Like Transformers, RASP (#4842).
|
|
77
|
+
- Tracr (#4843).
|
|
78
|
+
|
|
79
|
+
The follow-ups are #5148 and #5149. #5148 reads GPT-2's previous-token heads from their weights, and checks them against the measured scores. #5149 trains a small model with RASP attention supervision, as a positive control for head audits. ([docs/literature/README.md](docs/literature/README.md))
|
|
80
|
+
- **Literature: five more papers on weight-space programming for #4782**, each read in full.
|
|
81
|
+
- Learning Transformer Programs (#4844), marked *not applicable*: its units are modules, and the harness can't load it.
|
|
82
|
+
- Test-time training layers (#4845).
|
|
83
|
+
- Titans (#4846).
|
|
84
|
+
- Weight-Space Programming Doesn't Need Transformers (#4847).
|
|
85
|
+
- Text-to-LoRA (#4848).
|
|
86
|
+
|
|
87
|
+
None opens a new issue. Their evidence went to #5133, #5144 and #5149. ([docs/literature/README.md](docs/literature/README.md))
|
|
88
|
+
- **Literature: five more papers for #4782**, each read in full.
|
|
89
|
+
- End-to-End Test-Time Training (#4849), under *Weight-space programming and fast weights*.
|
|
90
|
+
- ALTA (#4850), marked *not applicable*: its compiled models run only in the authors' NumPy code.
|
|
91
|
+
- Three papers in a new section, *LoRA and low-rank fine-tuning*: the two intrinsic-dimension papers (#4851 and #4852) and bottleneck adapters (#4853). The adapters page is *not applicable*.
|
|
92
|
+
|
|
93
|
+
The follow-up is #5154, which adds a random weight change of the instruct change's size and counts the VERIFIED poles that keep. ([docs/literature/README.md](docs/literature/README.md))
|
|
94
|
+
- **Literature: five papers on continual learning** (#4782), each read in full.
|
|
95
|
+
- Learning without Forgetting (#4814).
|
|
96
|
+
- Progressive Neural Networks (#4815).
|
|
97
|
+
- Gradient Episodic Memory (#4816).
|
|
98
|
+
- PackNet (#4817).
|
|
99
|
+
- Hard attention to the task (#4818).
|
|
100
|
+
|
|
101
|
+
The follow-up is #5122, which prunes a VERIFIED pole's input weights by magnitude and tests whether its explanation keeps. ([docs/literature/README.md](docs/literature/README.md))
|
|
102
|
+
- **Literature: five papers on catastrophic forgetting** (#4782), each read in full.
|
|
103
|
+
- Robins (1995) on rehearsal and pseudorehearsal (#4809).
|
|
104
|
+
- French (1999) on catastrophic forgetting in connectionist networks (#4810).
|
|
105
|
+
- Goodfellow et al. (2013) on forgetting in gradient-trained networks (#4811).
|
|
106
|
+
- Kirkpatrick et al. (2017) on elastic weight consolidation (#4812).
|
|
107
|
+
- Zenke, Poole and Ganguli (2017) on synaptic intelligence (#4813).
|
|
108
|
+
|
|
109
|
+
The follow-ups are #5118 and #5119. #5118 asks whether Fisher importance predicts which VERIFIED poles keep. #5119 asks whether explanations that fail at a later checkpoint come back. ([docs/literature/README.md](docs/literature/README.md))
|
|
110
|
+
- **Literature: five papers on forgetting, three of them in language models** (#4782), each read in full.
|
|
111
|
+
- Orthogonal gradient descent (#4819).
|
|
112
|
+
- The anatomy of catastrophic forgetting (#4820).
|
|
113
|
+
- Fine-tuning that distorts pretrained features (#4821).
|
|
114
|
+
- Forgetting in LLM continual fine-tuning (#4822).
|
|
115
|
+
- Forgetting via implicit inference (#4823).
|
|
116
|
+
|
|
117
|
+
The follow-ups are #5125, #5126 and #5127. #5125 tests explanations through narrow fine-tunes. #5126 tests chat-formatted text against plain text. #5127 tests layer-level CKA. ([docs/literature/README.md](docs/literature/README.md))
|
|
118
|
+
- **Literature: model editing and where it fails** (#4784, area 1). Ten review pages are in `docs/literature/`, with a new README section. They cover Hase et al. (2023) on whether localization informs editing (#5016), and The Mirage of Model Editing (#5025). They also cover KnowledgeEditor (#5017), MEND (#5018), SERAC (#5019), GRACE (#5020) and WISE (#5021). The last three are RippleEdits (#5022), MQuAKE (#5023) and the editing survey (#5024). The pages report evidence for the fix campaign and do not design it. Several give prompt sets and questions for #5015.
|
|
119
|
+
- **Literature: fixes guided by an explanation** (#4784, area 3). Nine review pages are in `docs/literature/`, with a new README section. They cover Sparse Feature Circuits (#5036), Mechanistic Unlearning (#5042), CAFT (#5037), gradient routing (#5038) and Persona Vectors (#5044). They also cover circuit breakers (#5039), RMU (#5040), unlearning evaluation (#5041) and distillation (#5043). Together they list the checks that show whether a fix removed a behaviour or only hid it. The follow-ups are #5065 and #5066.
|
|
120
|
+
- **Literature: activation steering, and the synthesis of how to fix a model** (#4784, area 2). Eleven review pages are in `docs/literature/`, with a README section. They cover ActAdd (#5046), CAA (#5047), ITI (#5045), Representation Engineering (#5048), latent steering vectors (#5049) and the refusal direction (#5052). They also cover steering-vector reliability (#5050), affine steering (#5051), AxBench (#5053) and two 2026 studies of what steering breaks (#5054, #5055). A new page, `docs/literature/fixing-models.md`, sums up the 40 reviews of #4784: which fixes held up, where each failed, and how the papers tested a fix. Six follow-ups are #5069 to #5074.
|
|
121
|
+
- **Literature: why models give wrong answers** (#4784, area 4). Ten review pages are in `docs/literature/`, with a new README section. They cover induction heads (#5028), copy suppression (#5029) and factual recall in Pythia (#5034, #5027, #5026). They also cover hallucination mechanisms (#5033, #5030, #5035), fine-tuning on new knowledge (#5031) and a theory of hallucination (#5032). Each page says what its paper predicts for the #4781 " days" copy failure. Five follow-ups are #5059 to #5063.
|
|
122
|
+
- **Explanation records can be reproduced, and CI reproduces each new one in its PR.** `explain --record` now stores the record's inputs (`inputs`). They are the model revision and dtype, the answer's token id, and the means corpus with its source and token budget. They also hold every explained and blocked unit as they stood, and the random baseline's seed. `open-interpretability reproduce` takes explanation records and measures them again with no registry and no LLM calls. It re-measures the attribution and shares, the prompt coverage and its random baseline, and the figures' data. Numbers must agree within tolerance. The answer token, the explained units, the ablation's top token, the overshoot and the coverage caution must agree exactly. A quoted number in the narration that the record doesn't hold is a warning. Explanations are now a re-measured record kind, so a contributor's PR that only adds them can auto-merge after CI reproduces them. A record from before this change is reported as not reproducible, and its page says so. `explain` builds on such a record instead of reusing it. The random baseline now draws from units in a fixed order, so a near tie in attribution can't change the draw. ([openinterpretability/reproduce_explanation.py](openinterpretability/reproduce_explanation.py), [openinterpretability/core/record_kinds.py](openinterpretability/core/record_kinds.py), #4793)
|
|
123
|
+
- **Literature: "Language Models Can Rewrite Their Own Weights"** (Fan et al., 2026). A 27B Qwen3.5 model removes a direction from its layer-8 output matrices, or clips weight outliers, with no gradients. The edit that gains 6.6 points on held-out math passed a framework check first, and the model's unchecked edit gains 1.1. The paper has no random-direction control, which bears on #5069 and #4782. ([docs/literature/models-rewrite-own-weights.md](docs/literature/models-rewrite-own-weights.md), #4798)
|
|
124
|
+
- **Literature: complementary learning systems** (McClelland, McNaughton and O'Reilly, 1995). Slow, interleaved learning finds shared structure. Focused learning of one new fact damages related knowledge, on the outputs where the old and new answers differ. The page opens a README section for catastrophic interference (#4782). ([docs/literature/complementary-learning-systems.md](docs/literature/complementary-learning-systems.md), #4808)
|
|
125
|
+
- **Each answer experiment has its own page** (#4909). A prompt's page and its explanation pages list the answer experiments, as a unit's page lists its experiments. Each row links to the experiment's page. The page shows the claim and the route, with each unit's role and unit page. It also shows every test: each gate with its threshold and result, ablation against matched random sets, sufficiency, and path patching with the corrupted prompt. The counterfactual prompts show what each one predicted and what the model answered. Results say passed or failed in words and with a mark.
|
|
126
|
+
- **Each answer experiment shows its route at work, in 2D and 3D** (#4917, #4905). An answer record now holds a reading of the route on every prompt. That is each route unit's strength at each token and its attribution. It is also the edges between units, and the route's share of the answer. It also holds each layer's state. That is a logit lens of the last token over shared candidate tokens. It is also the residual stream at every token, on shared principal directions. These come clean, with the whole route switched off, and with each unit switched off alone. The readings are reported, not gated. The answer page draws an animated SVG route for every prompt, and each counterfactual row says whether the route carried the answer. A 3D explorer (three.js, loaded on demand) shows the route with flowing edges, and spectrum and logit-lens waterfalls through the layers. It reads the prompt token by token, as the bracket paper's figure does, and it switches units off. `answers remeasure` gives an older record its readings.
|
|
127
|
+
- **The embedding space, in 3D** (#4929). `open-interpretability answers space` fits a model's 3D embedding space on the corpus. It is a cloud of 1,500 token states at every layer, each layer aligned to the one before, so the space moves continuously with depth. Answer records place every prompt's tokens in it, clean and with units switched off. An answer page's 3D explorer opens on this space, in the style of Goodfire's embedding clouds. The prompt's tokens move through the cloud as the layers play, coloured in sentence order, joined by a path, with short trails. A second prompt can be overlaid as rings, and the caption gives how far apart their last tokens are.
|
|
128
|
+
- **The embedding space where the route writes, with comet trails** (#4934). An answer record now holds a space of its own. Its axes are the 3 directions of most variance within the directions that the route's heads and neurons write. So the view shows the space where the causal units act. Each unit's write direction is drawn as a labelled arrow. On the pythia-70m " sky" prompt, " sun" and " car" end 0.98 apart in these axes, against 0.15 in the corpus's own axes. The explorer can switch between the two. Each moving token now sheds a coloured gas trail, like a comet, whose hue turns as it ages. There is no gas under reduced motion.
|
|
129
|
+
- **Inverse claims for default-on neuron poles.** `audit --inverse` audits a default-on pole with an inverse claim, which says when the pole goes quiet. The review uses the detector's gates with the sides swapped. Holdouts are texts that silence the pole, hard negatives are texts that keep it on, and `is_default_on` replaces `not_default_on`. The rule has its own version, `INVERSE_RULE_VERSION` 1.0, so `PROTOCOL_VERSION` is unchanged. A VERIFIED inverse claim explains its pole for coverage. `explain` now ranks a prompt's stopped units by the coverage each would add, and plans an inverse experiment for the first five default-on poles. ([openinterpretability/inverse_claims.py](openinterpretability/inverse_claims.py), [docs/PROTOCOL.md](docs/PROTOCOL.md), #4951)
|
|
130
|
+
- **`review` takes an inverse claim without explanation scores.** `score` refuses an inverse claim, so `review --probes` no longer requires `--explanation-scores` for one. (#4951)
|
|
131
|
+
- **A paper on why pythia-70m copies the first clause's unit.** On six prompts such as "A week has seven days and a year has twelve" → " days", the right unit is present but outvoted. With only its second clause, the model gets the right unit on one prompt of six. No MLP at the subject ranks it in the top 1% of the vocabulary. Yet at the answer position it reaches rank 2 to 4 by layer 4. Switching off the three verified copy heads, and L4/H1 too, flips one prompt of six. So the copy runs through more heads than the verified route names. `scripts/copy_first_unit.py` measures it, and L5/N2014+ has a unit experiment. ([papers/copy-first-unit/README.md](papers/copy-first-unit/README.md), #5015)
|
|
132
|
+
- **Pythia-70m's L4/H1 is a weak copy suppressor on the shortlist prompts, and not a general one.** Its weights have the copy-suppression signature (42.0% of tokens, against 0.08% or less for every other head). On five of the six wrong prompts it lowers the copied unit by 0.31 to 1.18 logits, too little to change an answer. On a corpus its effect is small, and a copy-suppression-preserving ablation keeps 1.8% of it, against 76.9% for GPT-2's L10H7. ([docs/analyses/copy-suppression-l4h1.md](docs/analyses/copy-suppression-l4h1.md), #5063)
|
|
133
|
+
- **The copy route's units don't tell a wrong copy from a right one, but a residual-stream direction does, modestly.** pythia-70m copies the first clause's unit on 956 of 1,262 template prompts: 216 right copies and 740 wrong. None of the 32 VERIFIED route units separates the groups beyond a null of units like it. A difference-in-means direction after layer 2 separates them at a balanced accuracy of 0.73, against 0.62 for random directions. ([docs/analyses/copy-route-separation.md](docs/analyses/copy-route-separation.md), #5074)
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
|
|
137
|
+
- **Ruff now checks for unused arguments** (`ARG`, #3165). Each unused argument in `openinterpretability/` and `scripts/` was removed or marked with the interface that needs it. `tests/` is exempt. The `--dtype` of `patchscope-baseline` and `neuronpedia-review` has no effect, since each record pins its own (#4765).
|
|
138
|
+
- **The deploy builds the site with its default jobs again** (part of #4652). With records held slim and the Parquet streamed, a one-job build peaks at 1.9 GiB of process memory on the runner.
|
|
139
|
+
- **The site build uses less memory again** (part of #4652). The published `registry.parquet` is written one row group of 64 rows at a time, so no column is ever whole in memory. Its contents are the same, but its layout and so its snapshot hash change once. The build also sorts the rows from each unit's columns alone, and bounds the scrub's in-memory cache. On one frozen `wiki/`, the one-job peak fell from 5.6 to 2.8 GiB.
|
|
140
|
+
- **The deploy's build cap falls from 14.5G to 6G** (part of #4652). With its default jobs, the build now peaks at 2.8–2.9 GiB of process memory on the runner, against 14.0 GiB before. The warning moves to 4G.
|
|
141
|
+
- **Slim records drop six more fields** that only a unit's pages read (part of #4652). They are the input attribution, correlated neurons, Patchscope, steering, WordNet specificity and the vocabulary lens.
|
|
142
|
+
- **Prompt coverage has a matched baseline** (#4777). Its random sets now hold the same number of heads and of neuron poles in each layer as the explained set. Coverage is also measured with only the explained heads and only the explained poles, and pruned to a minimal set that keeps 90% of it. The explanation page shows these numbers. When coverage is near the baseline, or verified units hold little of the attribution, the page says so in words. Then coverage doesn't show that the answer is understood. The narrator follows the same rule. Older records say that their baseline was not matched.
|
|
143
|
+
- **The narrator reads the answer experiment** (#4780). Its evidence holds the newest answer claim on the prompt: the route, its roles and its measures. It calls the answer understood only when that claim is VERIFIED, as the page's headline does. The pythia-70m " sky" explanation is re-run on the matched baseline: coverage 74.5% against −1.2% for matched random units, with a VERIFIED route.
|
|
144
|
+
- **One list of the record kinds that CI reproduces** (#4792). `openinterpretability/core/record_kinds.py` lists each kind under `wiki/` and how CI checks it. CI's *Record changes* job, `auto-merge.yml`, `checks.changed_records` and the experiment loop's merge check all read it. `docs/PROTOCOL.md` §5 has the table. A contributor's PR auto-merges only when every file it adds is a record that CI reproduces. The experiment loop now applies the same rule to any token but the maintainer's.
|
|
145
|
+
- **The neuron-development paper now covers all 86 VERIFIED Pythia-70m poles, up from 9.** The loss settles by step 16,000, and there the poles' median correlation with their final form is 0.62. Adjacent checkpoints after that step correlate at a median of 0.78 to 0.82, so the poles keep moving (part 1 of #4156). 38 of 86 explanations hold from step 16,000 or earlier, and 38 only from step 64,000 or later. The first version's claim that the two measures of formation run in reverse doesn't hold: they are weakly related (ρ = 0.24). The script takes a pole only when its newest record is VERIFIED, records each pole's correlation with the checkpoint before, and takes `--pole`. A new figure shows when each explanation starts to hold. ([papers/neuron-development/README.md](papers/neuron-development/README.md), #4881)
|
|
146
|
+
- **Only VERIFIED against REJECTED contests a unit, and the held-out score settles it** (#4900). A NEEDS_REVISION result, whether another review or a newer hypothesis, no longer contests a VERIFIED claim. An even VERIFIED–REJECTED split goes to the side whose detection score on held-out windows is at least 0.05 higher. So does a newer REJECTED hypothesis after a VERIFIED one. Within 0.05, or with no score, the unit is CONTESTED. `explain`, its targets and the explanation pages now read each unit's standing, not its newest record.
|
|
147
|
+
- The answer page's 3D view starts by itself when its section nears the screen, with the view first and its controls under it. The how-to-read notes fold into a closed disclosure. With WebGL off, or on any start failure, the page says so rather than showing an empty box (#4976).
|
|
148
|
+
- **Registry coverage refreshed on 2026-11-19.** There are 70 new layer rows, with these VERIFIED poles per model:
|
|
149
|
+
- Qwen2.5-0.5B: 344 poles, at most 1.9% of the loss recovered in any layer.
|
|
150
|
+
- Qwen2.5-1.5B: 56 poles, at most 0.4%.
|
|
151
|
+
- GPT-2: 202 poles, at most 12.3%.
|
|
152
|
+
- Pythia-70m: 95 poles, at most 6.6%.
|
|
153
|
+
- **Circuit ids updated.** GPT-2 has 5 circuits, with new, grown and split ones. The other models' circuits are unchanged.
|
|
154
|
+
- **Sister search refreshed for 0.2.1.** It added 184 rows and 36 new sisters. Most are Pythia-70m's newly verified poles: 12 sisters in GPT-2, 9 in Qwen2.5-0.5B and 8 in Qwen2.5-1.5B. The strongest:
|
|
155
|
+
- Pythia-70m L0/N1277+ ↔ GPT-2 L0/N908+ (r = 0.96).
|
|
156
|
+
- Pythia-70m L0/N1277+ ↔ Qwen2.5-0.5B L0/N4320+ (0.95).
|
|
157
|
+
- Pythia-70m L0/N780+ ↔ GPT-2 L0/N1175+ (0.94).
|
|
158
|
+
|
|
159
|
+
### Fixed
|
|
160
|
+
|
|
161
|
+
- **The narrator's citation check counts the minimal set** (#4780). The evidence lists the minimal set's units, but the check didn't read them. So the check warned when a narration cited one of them.
|
|
162
|
+
- **The capped site build keeps its environment** (#4795). `scripts/capped.sh` passed only `PATH` and `HOME` into its systemd scope, because sudo resets the environment. So the deploy's build ran without `HF_TOKEN`, with anonymous Hugging Face downloads, and without `GITHUB_TOKEN`. The caller's exported environment now goes through a file that only the user can read, and the scope removes it before the command starts.
|
|
163
|
+
- **`explain` measures again an explanation written before the matched baseline** (#4895). Reuse took such an explanation as already reaching its target, so `explain --complete` ran nothing. Only an explanation measured against random units matched by kind and layer (#4777) is reused now. An older one is built on.
|
|
164
|
+
- **Answer prompts fence other people's text.** The proposer's prompt fences the prompt, the explanation's units and paths and the earlier claims. The reviewer's prompt fences the claim. An explanation record stamped more than an hour in the future fails `check`. (`openinterpretability/answer_prompts.py`)
|
|
165
|
+
- **`reproduce` checks a new explanation record against the registry.** Its explained and blocked sets, and each listed unit's status and explanation, must agree with the registry in the checkout. An old record still reproduces with its own sets. (`openinterpretability/explanation_registry.py`)
|
|
166
|
+
|
|
16
167
|
## [0.2.0] - 2026-11-18
|
|
17
168
|
|
|
18
169
|
Ships with protocol version **0.10** (was 0.9).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: open-interpretability
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Open Interpretability: an agent-audited mechanistic interpretability registry for native neurons in open-weight models.
|
|
5
5
|
Project-URL: Homepage, https://open-interpretability.com/
|
|
6
6
|
Project-URL: Repository, https://github.com/8W9aG/openinterpretability
|
{open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/__init__.py
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from openinterpretability.core.legacy_names import adopt_legacy_env
|
|
4
4
|
|
|
5
|
-
__version__ = "0.2.
|
|
5
|
+
__version__ = "0.2.1"
|
|
6
6
|
# The name on PyPI, and of the installed distribution (issue #3251). The import name is
|
|
7
7
|
# `openinterpretability` (issue #4089).
|
|
8
8
|
DISTRIBUTION = "open-interpretability"
|
{open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/narrator.py
RENAMED
|
@@ -48,11 +48,20 @@ a circuit. Cite only units that are in the evidence.
|
|
|
48
48
|
(unstudied, NEEDS_REVISION, REJECTED, stopped) means its role is not known. You may say \
|
|
49
49
|
what its attribution and ablation show, but call it unverified.
|
|
50
50
|
4. Say how much of the answer is explained and how much is not: the explained share and \
|
|
51
|
-
the prompt coverage, against random units
|
|
52
|
-
mostly "this is not known yet". Say so plainly.
|
|
53
|
-
|
|
51
|
+
the prompt coverage, against random units matched by kind and layer. When little is \
|
|
52
|
+
explained, the honest text is mostly "this is not known yet". Say so plainly. When \
|
|
53
|
+
coverage_caution is true, never call the answer explained or understood: say that keeping \
|
|
54
|
+
the units brings the answer back, which shows they are sufficient on this prompt, not how \
|
|
55
|
+
they produce it. Use heads_only, poles_only and the minimal set to say which units matter.
|
|
56
|
+
5. answer_experiment is the newest claim about how the model produces this answer: a route \
|
|
57
|
+
from the sources through units to the answer, tested by ablation, patching and a reviewer's \
|
|
58
|
+
prompts. Call the answer understood only when its status is VERIFIED. Then describe the \
|
|
59
|
+
route in order, cite its units and give its necessity, sufficiency and patching. A VERIFIED \
|
|
60
|
+
claim is about this prompt only. Any other status means how the answer is produced is not \
|
|
61
|
+
known yet, whatever the coverage.
|
|
62
|
+
6. End the long form with what is not known yet, and cite the next experiments from the \
|
|
54
63
|
evidence that would explain it.
|
|
55
|
-
|
|
64
|
+
7. Shares are of first-order attribution on this prompt. A VERIFIED explanation describes \
|
|
56
65
|
its unit on a scan corpus, so it may not cover this prompt. Say so if you rely on one.
|
|
57
66
|
|
|
58
67
|
{FENCE_RULE}"""
|
{open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/proposer.py
RENAMED
|
@@ -19,6 +19,7 @@ from openinterpretability.core.attribution import InputAttribution
|
|
|
19
19
|
from openinterpretability.core.confounds import MATCH_LABEL_SETS, NO_MATCH, NOT_SHOWN_TO_PROPOSER
|
|
20
20
|
from openinterpretability.core.fence import FENCE_RULE, fence
|
|
21
21
|
from openinterpretability.core.manifold import format_for_proposer as format_manifold
|
|
22
|
+
from openinterpretability.core.rivals import MAX_RIVALS
|
|
22
23
|
from openinterpretability.core.schemas import (
|
|
23
24
|
ActivatingExample,
|
|
24
25
|
ComponentIdentifier,
|
|
@@ -67,6 +68,13 @@ class HypothesisDraft(BaseModel): # noqa: D101 (a docstring would join the JSON
|
|
|
67
68
|
default_factory=list, description="For lookahead neurons: the tokens being prepared."
|
|
68
69
|
)
|
|
69
70
|
counterfactuals: list[CounterfactualDraft] = Field(min_length=3, max_length=10)
|
|
71
|
+
rivals: list[str] = Field(
|
|
72
|
+
default_factory=list,
|
|
73
|
+
max_length=MAX_RIVALS,
|
|
74
|
+
description="Up to three rival readings, one sentence each: other explanations that "
|
|
75
|
+
"fit the same top examples but predict differently on new text. The review scores "
|
|
76
|
+
"each one on its probes beside the hypothesis (reported, not gated).",
|
|
77
|
+
)
|
|
70
78
|
wordnet_synset: str | None = Field(
|
|
71
79
|
default=None,
|
|
72
80
|
description="If the hypothesis claims a WordNet noun category, its synset "
|
|
@@ -241,7 +249,9 @@ class ProposerAgent(LLMAgent):
|
|
|
241
249
|
"*before* the predicted one, and their promoted-token list is informative. Write "
|
|
242
250
|
"minimal-pair "
|
|
243
251
|
"counterfactuals that change as little text as possible, including at least one "
|
|
244
|
-
"control pair with expected_delta near 0.
|
|
252
|
+
"control pair with expected_delta near 0. Give two rival readings that fit the same "
|
|
253
|
+
"examples but predict differently elsewhere: the review scores them beside your "
|
|
254
|
+
"hypothesis. " + FENCE_RULE
|
|
245
255
|
)
|
|
246
256
|
|
|
247
257
|
def propose(
|
|
@@ -367,6 +377,7 @@ class ProposerAgent(LLMAgent):
|
|
|
367
377
|
identifier=identifier,
|
|
368
378
|
natural_language_explanation=draft.explanation,
|
|
369
379
|
activating_tokens=list(draft.activating_tokens),
|
|
380
|
+
rival_explanations=list(draft.rivals),
|
|
370
381
|
counterfactuals=pairs,
|
|
371
382
|
lookahead=lookahead,
|
|
372
383
|
submitting_agent_model=self.model,
|
|
@@ -18,6 +18,7 @@ from openinterpretability.harness.lookahead import ablation_profile
|
|
|
18
18
|
from openinterpretability.harness.scan import has_first_token_floor
|
|
19
19
|
from openinterpretability.harness.units import peak_strength, submission_unit
|
|
20
20
|
from openinterpretability.harness.wiring_activations import activation_wiring
|
|
21
|
+
from openinterpretability.inverse_claims import probe_kind
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
def settle_first_token_floor(submission, runner, policy: ReviewPolicy):
|
|
@@ -38,9 +39,11 @@ def settle_first_token_floor(submission, runner, policy: ReviewPolicy):
|
|
|
38
39
|
return submission, unit, scale
|
|
39
40
|
|
|
40
41
|
|
|
41
|
-
def measure_probes(runner, unit, probes, scale: float, threshold: float):
|
|
42
|
+
def measure_probes(runner, unit, probes, scale: float, threshold: float, inverse: bool = False):
|
|
42
43
|
"""Each probe's result, plus the measured probes and whether each was active.
|
|
43
44
|
|
|
45
|
+
For an inverse claim, a probe predicted quiet is a holdout (``inverse_claims.py``).
|
|
46
|
+
|
|
44
47
|
A one-token prompt to a unit with a first-token floor has nothing measured: it is
|
|
45
48
|
recorded as unmeasured and counts in no metric.
|
|
46
49
|
"""
|
|
@@ -58,13 +61,14 @@ def measure_probes(runner, unit, probes, scale: float, threshold: float):
|
|
|
58
61
|
actual.append(active)
|
|
59
62
|
results.append(
|
|
60
63
|
AdversarialTestResult(
|
|
61
|
-
kind=
|
|
64
|
+
kind=probe_kind(probe.expected_active, inverse),
|
|
62
65
|
prompt=probe.text,
|
|
63
66
|
passed=strength is not None and active == probe.expected_active,
|
|
64
67
|
expected_active=probe.expected_active,
|
|
65
68
|
activation=None if strength is None else round(strength, 6),
|
|
66
69
|
detail=probe.rationale,
|
|
67
70
|
measured=strength is not None,
|
|
71
|
+
rival_expected_active=list(probe.rival_expected_active) or None,
|
|
68
72
|
)
|
|
69
73
|
)
|
|
70
74
|
return results, measured_probes, actual
|
{open_interpretability-0.2.0 → open_interpretability-0.2.1}/openinterpretability/agents/reviewer.py
RENAMED
|
@@ -42,6 +42,7 @@ from openinterpretability.agents.review_measurements import ( # noqa: F401 (_d
|
|
|
42
42
|
from openinterpretability.core import costs
|
|
43
43
|
from openinterpretability.core.agent_names import same_agent
|
|
44
44
|
from openinterpretability.core.fence import FENCE_RULE, fence
|
|
45
|
+
from openinterpretability.core.rivals import compare, rival_prompt
|
|
45
46
|
from openinterpretability.core.schemas import (
|
|
46
47
|
MAX_PROBES,
|
|
47
48
|
AdversarialTestResult,
|
|
@@ -62,6 +63,8 @@ from openinterpretability.harness.confounds import (
|
|
|
62
63
|
)
|
|
63
64
|
from openinterpretability.harness.environment import run_environment
|
|
64
65
|
from openinterpretability.harness.hooks import NeuronHookRunner
|
|
66
|
+
from openinterpretability.inverse_claims import INVERSE_RULE_VERSION, count_line
|
|
67
|
+
from openinterpretability.inverse_claims import gates as claim_gates
|
|
65
68
|
|
|
66
69
|
|
|
67
70
|
class AdversarialProbe(BaseModel): # noqa: D101 (a docstring would join the JSON schema that the agent reads)
|
|
@@ -71,6 +74,11 @@ class AdversarialProbe(BaseModel): # noqa: D101 (a docstring would join the JSO
|
|
|
71
74
|
"inactive; positive holdouts are novel cases predicted active."
|
|
72
75
|
)
|
|
73
76
|
rationale: str
|
|
77
|
+
rival_expected_active: list[bool] = Field(
|
|
78
|
+
default_factory=list,
|
|
79
|
+
description="What each rival reading predicts for this probe, in the order the prompt "
|
|
80
|
+
"lists them. Empty if the prompt lists none.",
|
|
81
|
+
)
|
|
74
82
|
|
|
75
83
|
|
|
76
84
|
def split(n: int) -> tuple[int, int]:
|
|
@@ -175,6 +183,7 @@ class ReviewerAgent(LLMAgent):
|
|
|
175
183
|
+ (HEAD_ACTIVITY if is_head else "")
|
|
176
184
|
+ (FIRST_TOKEN_UNMEASURED if submission.first_token_floor else "")
|
|
177
185
|
+ f"The submitted hypothesis, which your probes test:\n{fence(claim)}\n"
|
|
186
|
+
+ rival_prompt(submission.rival_explanations, n)
|
|
178
187
|
+ format_review_examples(submission.top_examples, full_snippets)
|
|
179
188
|
+ (LANGUAGE_PROBES if has_language_labels(submission) else "")
|
|
180
189
|
+ (SYNTAX_PROBES if has_syntax_labels(submission) else "")
|
|
@@ -183,7 +192,7 @@ class ReviewerAgent(LLMAgent):
|
|
|
183
192
|
+ (f"{context}\n" if context else "")
|
|
184
193
|
+ (f"{related}\n" if related else "")
|
|
185
194
|
+ (f"{art}\n" if (art := prior_art.format_for_reviewer(submission.prior_art)) else "")
|
|
186
|
-
+
|
|
195
|
+
+ count_line(submission, n, *split(n))
|
|
187
196
|
+ LENGTH_MATCHED
|
|
188
197
|
)
|
|
189
198
|
|
|
@@ -269,7 +278,7 @@ def repeated_runs(ids: Sequence[int]) -> list[tuple[int, int]]:
|
|
|
269
278
|
]
|
|
270
279
|
|
|
271
280
|
|
|
272
|
-
def evaluate_submission(
|
|
281
|
+
def evaluate_submission( # long-function: the review's steps, one or two lines each
|
|
273
282
|
submission: NeuronAuditSubmission,
|
|
274
283
|
runner: NeuronHookRunner,
|
|
275
284
|
probes: Sequence[AdversarialProbe],
|
|
@@ -286,7 +295,12 @@ def evaluate_submission(
|
|
|
286
295
|
lap = costs.laps()
|
|
287
296
|
submission, unit, scale = settle_first_token_floor(submission, runner, policy)
|
|
288
297
|
threshold = policy.activation_threshold * scale
|
|
289
|
-
|
|
298
|
+
inverse = submission.claim == "inverse"
|
|
299
|
+
results, measured_probes, actual = measure_probes(runner, unit, probes, scale, threshold,
|
|
300
|
+
inverse) # fmt: skip
|
|
301
|
+
labels = [(p.expected_active, p.rival_expected_active or None) for p in measured_probes]
|
|
302
|
+
rivals = compare(submission.natural_language_explanation, submission.rival_explanations,
|
|
303
|
+
labels, actual) # fmt: skip
|
|
290
304
|
results += measure_counterfactuals(runner, unit, submission, scale, policy)
|
|
291
305
|
results.append(lookahead_result(runner, unit, submission))
|
|
292
306
|
lap("probe_measurement")
|
|
@@ -297,6 +311,7 @@ def evaluate_submission(
|
|
|
297
311
|
baseline=confound_baseline(submission, runner, measured_probes, actual, threshold, policy),
|
|
298
312
|
active_share=scan_active_share(submission, policy),
|
|
299
313
|
first_token_floor=submission.first_token_floor,
|
|
314
|
+
inverse=inverse,
|
|
300
315
|
)
|
|
301
316
|
lap("gates")
|
|
302
317
|
causal, joint = causal_readouts(submission, runner, probes, policy, scale)
|
|
@@ -316,6 +331,8 @@ def evaluate_submission(
|
|
|
316
331
|
joint_ablation=joint,
|
|
317
332
|
environment=run_environment(runner),
|
|
318
333
|
wiring=wiring,
|
|
334
|
+
rivals=rivals,
|
|
335
|
+
inverse_rule_version=INVERSE_RULE_VERSION if inverse else None,
|
|
319
336
|
notes=_summary(results, metrics),
|
|
320
337
|
)
|
|
321
338
|
|
|
@@ -399,6 +416,7 @@ def review_metrics(
|
|
|
399
416
|
baseline: tuple[str, float] | None = None,
|
|
400
417
|
active_share: float | None = None,
|
|
401
418
|
first_token_floor: bool | None = None,
|
|
419
|
+
inverse: bool = False,
|
|
402
420
|
) -> ReviewMetrics:
|
|
403
421
|
"""The rates and gates of the decision rule, from the measured results (docs/PROTOCOL.md §4)."""
|
|
404
422
|
|
|
@@ -418,9 +436,8 @@ def review_metrics(
|
|
|
418
436
|
baseline is not None and round(balanced, 6) >= baseline[1]
|
|
419
437
|
)
|
|
420
438
|
|
|
421
|
-
gates =
|
|
422
|
-
|
|
423
|
-
)
|
|
439
|
+
gates = claim_gates(policy, negatives, holdouts, reproduction, lookahead, independent, beats,
|
|
440
|
+
active_share, inverse) # fmt: skip
|
|
424
441
|
return ReviewMetrics(
|
|
425
442
|
specificity=None if negatives.rate is None else round(negatives.rate, 6),
|
|
426
443
|
sensitivity=None if holdouts.rate is None else round(holdouts.rate, 6),
|
|
@@ -438,23 +455,6 @@ def review_metrics(
|
|
|
438
455
|
)
|
|
439
456
|
|
|
440
457
|
|
|
441
|
-
def _gates(
|
|
442
|
-
policy, negatives, holdouts, reproduction, lookahead, independent, beats, active_share
|
|
443
|
-
) -> dict[str, bool]:
|
|
444
|
-
return {
|
|
445
|
-
"enough_hard_negatives": negatives.clusters >= policy.min_hard_negatives,
|
|
446
|
-
"enough_holdouts": holdouts.clusters >= policy.min_holdouts,
|
|
447
|
-
"specificity": (negatives.rate or 0.0) >= policy.min_specificity,
|
|
448
|
-
"sensitivity": (holdouts.rate or 0.0) >= policy.min_sensitivity,
|
|
449
|
-
"counterfactual_reproduction": (reproduction or 0.0)
|
|
450
|
-
>= policy.min_counterfactual_reproduction,
|
|
451
|
-
"lookahead_consistent": lookahead,
|
|
452
|
-
"independent_review": independent or not policy.require_independent_review,
|
|
453
|
-
"beats_confound_baseline": beats,
|
|
454
|
-
"not_default_on": active_share is None or active_share < policy.max_active_share,
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
458
|
def decide(metrics: ReviewMetrics, policy: ReviewPolicy) -> VerdictStatus:
|
|
459
459
|
"""VERIFIED if every gate passes; REJECTED if adequately probed yet near chance."""
|
|
460
460
|
if all(metrics.gates.values()):
|
|
@@ -478,7 +478,12 @@ def _summary(results: Sequence[AdversarialTestResult], metrics: ReviewMetrics) -
|
|
|
478
478
|
def probes_from_verdict(verdict: VerificationVerdict) -> list[AdversarialProbe]:
|
|
479
479
|
"""Recover the probe set stored in a verdict, to re-evaluate it under another policy."""
|
|
480
480
|
return [
|
|
481
|
-
AdversarialProbe(
|
|
481
|
+
AdversarialProbe(
|
|
482
|
+
text=r.prompt,
|
|
483
|
+
expected_active=bool(r.expected_active),
|
|
484
|
+
rationale=r.detail,
|
|
485
|
+
rival_expected_active=r.rival_expected_active or [],
|
|
486
|
+
)
|
|
482
487
|
for r in verdict.adversarial_test_results
|
|
483
488
|
if r.kind in {"hard_negative", "positive_holdout"}
|
|
484
489
|
]
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"""How the last token's state changes through the layers, for each prompt (issue #4917).
|
|
2
|
+
|
|
3
|
+
The maintainer asked on 2026-11-18 to see the embedding change over the layers in 3D, as a
|
|
4
|
+
frequency waterfall does. For each prompt and each layer, at the last position:
|
|
5
|
+
|
|
6
|
+
- **The logit lens:** the residual stream through the final norm and the unembedding, as
|
|
7
|
+
probabilities over one shared set of candidate tokens. The set is the final top
|
|
8
|
+
:data:`TOP` of every prompt, plus the claim's answer, so the prompts can be compared. The
|
|
9
|
+
last layer is the model's real output.
|
|
10
|
+
- **The spectrum:** the residual stream at every token, scaled to unit RMS, as the model's
|
|
11
|
+
norms see it. It is projected onto :data:`COMPONENTS` principal directions, fit on every
|
|
12
|
+
prompt's tokens and layers together, so one direction means the same thing everywhere.
|
|
13
|
+
The directions run from the most variance to the least, as frequencies run in a
|
|
14
|
+
spectrum. The page reads it token by token, as the bracket paper's figure does.
|
|
15
|
+
|
|
16
|
+
The page's 3D explorer draws both as waterfalls, layer after layer. They are reported, not
|
|
17
|
+
gated.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
import torch
|
|
23
|
+
|
|
24
|
+
TOP = 1 # each prompt's final top tokens that join the candidate set: more crowds the axis
|
|
25
|
+
COMPONENTS = 16 # principal directions in the spectrum: a record holds one per token and layer
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@torch.no_grad()
|
|
29
|
+
def states(runner, prompt: str, hooks=None) -> torch.Tensor:
|
|
30
|
+
"""The residual stream at every position after the embedding and each layer.
|
|
31
|
+
|
|
32
|
+
The result is ``[layers + 1, tokens, d_model]``.
|
|
33
|
+
|
|
34
|
+
``hooks`` is a pair from :func:`openinterpretability.explain.mean_ablation`, to switch
|
|
35
|
+
units off.
|
|
36
|
+
"""
|
|
37
|
+
neurons, heads = hooks or ({}, {})
|
|
38
|
+
with runner.hooks(neurons, None, heads):
|
|
39
|
+
out = runner.model(**runner.encode(prompt), output_hidden_states=True)
|
|
40
|
+
return torch.stack([h[0].float().cpu() for h in out.hidden_states])
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@torch.no_grad()
|
|
44
|
+
def lens(runner, hidden: torch.Tensor) -> torch.Tensor:
|
|
45
|
+
"""Each layer's probabilities over the vocabulary, through the final norm.
|
|
46
|
+
|
|
47
|
+
HF applies the final norm to the last hidden state already, so it is not applied again.
|
|
48
|
+
"""
|
|
49
|
+
hidden = hidden[:, -1] # the lens reads the last position, where the answer is made
|
|
50
|
+
norm, unembed = runner.final_norm(), runner.model.get_output_embeddings()
|
|
51
|
+
weight = next(unembed.parameters())
|
|
52
|
+
rows = []
|
|
53
|
+
for i, h in enumerate(hidden):
|
|
54
|
+
x = h.to(weight.device, weight.dtype) # the model's own dtype, for its norm
|
|
55
|
+
if norm is not None and i < len(hidden) - 1:
|
|
56
|
+
x = norm(x)
|
|
57
|
+
rows.append(torch.softmax(unembed(x).float(), -1).cpu())
|
|
58
|
+
return torch.stack(rows)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def candidates(probs: dict[str, torch.Tensor], answer: int) -> list[int]:
|
|
62
|
+
"""The answer and every prompt's final top :data:`TOP` tokens, in first-seen order."""
|
|
63
|
+
out = [answer]
|
|
64
|
+
for p in probs.values():
|
|
65
|
+
out += [int(t) for t in p[-1].topk(TOP).indices if int(t) not in out]
|
|
66
|
+
return out
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def basis(hidden: dict[str, torch.Tensor]) -> tuple[torch.Tensor, torch.Tensor]:
|
|
70
|
+
"""The mean and the principal directions of every prompt's scaled layers."""
|
|
71
|
+
rows = torch.cat([_scaled(h).reshape(-1, h.shape[-1]) for h in hidden.values()])
|
|
72
|
+
mean = rows.mean(0)
|
|
73
|
+
_, _, v = torch.linalg.svd(rows - mean, full_matrices=False)
|
|
74
|
+
return mean, v[: min(COMPONENTS, v.shape[0])]
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def _scaled(h: torch.Tensor) -> torch.Tensor:
|
|
78
|
+
return h / h.pow(2).mean(-1, keepdim=True).sqrt().clamp(min=1e-9)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
ROUTE_POINTS = 600 # corpus points in an answer's route space: each record holds its own
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def route_space(runner, means, route, labels, prompt: str, texts) -> tuple[dict, dict]:
|
|
85
|
+
"""The space where the route writes (#4934), and its record's cloud and arrows."""
|
|
86
|
+
from openinterpretability import embedding_space as es
|
|
87
|
+
|
|
88
|
+
directions = es.route_directions(runner, means, route, prompt)
|
|
89
|
+
space = es.fit(es.corpus_states(runner, texts, ROUTE_POINTS), directions)
|
|
90
|
+
arrows = {label: [[round(x, 3) for x in (w @ d).tolist()] for w in space["w"]]
|
|
91
|
+
for label, d in zip(labels, directions, strict=True)} # fmt: skip
|
|
92
|
+
cloud = [[[round(x, 3) for x in p] for p in layer] for layer in space["cloud"].tolist()]
|
|
93
|
+
return space, {"cloud": cloud, "arrows": arrows}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def _fits(space, shape) -> dict | None:
|
|
97
|
+
"""``space``, or None when it was fitted for another width or depth."""
|
|
98
|
+
if space is not None and space["w"].shape[::2] != (shape[0], shape[-1]):
|
|
99
|
+
return None
|
|
100
|
+
return space
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def measures(runner, means, prompts: list[str], answer: int, route: list,
|
|
104
|
+
labels: list[str], model: str = "", texts=None) -> dict[str, dict]: # fmt: skip
|
|
105
|
+
"""Each prompt's layers on the shared axes, clean and with units switched off.
|
|
106
|
+
|
|
107
|
+
Every prompt gets ``clean`` and ``route_off``: the whole route mean-ablated. The first
|
|
108
|
+
prompt, the original, also gets ``unit_off``: each route unit mean-ablated on its own,
|
|
109
|
+
keyed by its label. Each is a ``LayerView`` dict: a lens row and a spectrum row per
|
|
110
|
+
layer. The axes come from the clean runs only, so a switched-off run reads on them.
|
|
111
|
+
"""
|
|
112
|
+
from openinterpretability import embedding_space as es
|
|
113
|
+
from openinterpretability.explain import mean_ablation
|
|
114
|
+
|
|
115
|
+
space = es.load(es.path_for(model)) if model else None # placed only when it is fitted
|
|
116
|
+
hidden = {p: states(runner, p) for p in prompts}
|
|
117
|
+
space = _fits(space, next(iter(hidden.values())).shape)
|
|
118
|
+
probs = {p: lens(runner, h) for p, h in hidden.items()}
|
|
119
|
+
routed, saved = (
|
|
120
|
+
route_space(runner, means, route, labels, prompts[0], texts) if texts else (None, None)
|
|
121
|
+
)
|
|
122
|
+
tokens = candidates(probs, answer)
|
|
123
|
+
names = [runner.tokenizer.decode([t]) for t in tokens]
|
|
124
|
+
mean, directions = basis(hidden)
|
|
125
|
+
|
|
126
|
+
def view(h: torch.Tensor, p: torch.Tensor | None = None) -> dict:
|
|
127
|
+
p = lens(runner, h) if p is None else p
|
|
128
|
+
table = [{n: round(float(row[t]), 5) for n, t in zip(names, tokens, strict=True)}
|
|
129
|
+
for row in p] # fmt: skip
|
|
130
|
+
spectrum = ((_scaled(h) - mean) @ directions.T).tolist() # [layer][token][direction]
|
|
131
|
+
placed = es.project(space, h).tolist() if space is not None else []
|
|
132
|
+
in_route = es.project(routed, h).tolist() if routed is not None else []
|
|
133
|
+
return {
|
|
134
|
+
"lens": table,
|
|
135
|
+
"spectrum": [[[round(x, 3) for x in tok] for tok in layer] for layer in spectrum],
|
|
136
|
+
"space": [[[round(x, 3) for x in tok] for tok in layer] for layer in placed],
|
|
137
|
+
"route_place": [[[round(x, 3) for x in tok] for tok in layer] for layer in in_route],
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
off = mean_ablation(route, means, runner)
|
|
141
|
+
out = {p: {"clean": view(h, probs[p]), "route_off": view(states(runner, p, off))}
|
|
142
|
+
for p, h in hidden.items()} # fmt: skip
|
|
143
|
+
first = prompts[0]
|
|
144
|
+
out[first]["unit_off"] = {
|
|
145
|
+
label: view(states(runner, first, mean_ablation([unit], means, runner)))
|
|
146
|
+
for unit, label in zip(route, labels, strict=True)
|
|
147
|
+
}
|
|
148
|
+
out["_route_space"] = saved # the route space's record, under a key no prompt has
|
|
149
|
+
return out
|