Repository navigation
openinterpretability 0.6.5 (protocol v0.10)
Ships with protocol version 0.10.
Added
- The deploy now checks the live site after each sync. It fetches the home page, a model, a neuron page, a paper and the stylesheet, and compares each with the build. A failure opens or updates the "Deploy failed on main" issue (
scripts/check_live_site.py, #3171). - A Dependency audit workflow runs
pip-auditon every package thatuv.lockpins. It fails on a known vulnerability, and runs when the lock orpyproject.tomlchanges and once a day (#3179). - A pre-commit config runs the fast parts of
make lintbefore each commit, in about 5 s (.pre-commit-config.yaml, #3182). It runs ruff, the line limit, the comment and docstring checks, and the changelog check. Set it up withuvx pre-commit install. - A daily workflow expires abandoned experiment claims. It finds draft PRs that hold only their claim commit, with no commit, update or comment for 3 days. A claim with its ledger entry is marked ready, so auto-merge lands the entry, and an empty claim closes with its branch (
scripts/expire_claims.py, #3243). - A guide to running on Google Colab,
docs/colab.md, with a ready notebook,notebooks/colab.ipynb, and an "Open in Colab" badge in the README (#3252). It covers the install, keys in Colab secrets and the scan corpus. It also covers which models fit a T4, the dtype, and how to save results before the runtime resets. - A literature review of Lim, Kim, Lee and Song (2026), Geometry-adaptive explainer for faithful dictionary-based interpretability under distribution shift (
docs/literature/geometry-adaptive-explainer.md, #3432). It adapts only a dictionary's decoder, and the repo's audits read activations, so it changes nothing here. - A literature review of Chang, Kuo, Lee and Tsai (2026), Identically trained language models break on different jailbreaks (
docs/literature/identically-trained-jailbreaks.md, #3433). It measures whole models, but its design for comparing seeds bears on #5713. - A versioned codebook of explanation categories,
docs/codebook/explanations.toml(version 0.1, provisional), made by thematic analysis of 200 explanations sampled across models, layers and verdicts. It has 12 coarse codes with fine codes under them.scripts/codebook.pywrites the coders' prompt, checks a coding and measures Krippendorff's alpha. In the first round, two Claude coders reached alpha 0.838 at the coarse level (95% interval 0.753–0.909) on 100 new explanations (docs/codebook/reliability.md). docs/codebook/codes-v0.1.jsonlcodes all 5,081 records with codebook 0.1. On the reliability sample, it agrees with round 1's coders at a coarse alpha of 0.783 and 0.806.- A DeepSeek cross-family coder on round 1 reached coarse alpha 0.766 against Opus and 0.779 three-way across Opus, Sonnet and DeepSeek.
docs/codebook/explanations.tomlnow defines a 45-nodeis_aontology DAG, anddocs/codebook/evidence.tomlstores shared evidence codes, GRADE certainty rules and Bradford Hill criteria (scripts/codebook_evidence.py,docs/codebook/evidence.md).docs/codebook/probes.toml(version 0.2) andscripts/codebook_probes.pyadd blind probe condition coding and per-condition Krippendorff's alpha for #3561, with two cross-family reliability rounds indocs/codebook/probes-reliability.md.- An analysis of a random-matrix formula for the sister search's rotated reference, on two model pairs (
docs/analyses/rotation-formula.md,scripts/sister_rotation_formula.py, #4018). It changes none of 51 sister calls, but it runs 13–22% low. The switch is #8284. Most Qwen2.5-0.5B → GPT-2 rows don't reproduce on the CPU, which #8285 holds. docs/analyses/perf.mdnow reports each stage's wall time over the newest 500 records, with the agent stages split by the product that answered (scripts/stage_times.py, #4103). DeepSeek Flash takes a median of 702 s as proposer, against 151 s for Claude Opus.scripts/spd_followups_colab.ipynbruns two follow-ups ofpapers/spd-input-projections/on a Colab GPU, from runs C and D's checkpoints. They are the equal-count curves ofspd_compare.py(spd_curve) and a constant-learning-rate continuation of run C (train_spd.py --lr-schedule constant).- Each release explains a fixed set of prompts again, with no LLM, so each prompt's page shows its coverage over time (
data/tracked-prompts.json,scripts/track_prompts.py, #4327). The set has five pythia-70m prompts, and two for each other configured model. - Each explanation page shows the answer token under the prompt. It shows the leading space as ␣, says the answer is one token, and says where it is predicted. It also gives the token id when the record holds it (#4596).
- Completed parallel
explain --run --parallel Nsupport (#6060): shared--run Mexperiment counts and--targetstop signals across slots, enabled LiteLLM backends (--proposer,--reviewer,--provider), and added cleanup of extra slot worktrees on exit. - A literature page reviews A New Interpretation of Information Rate (Kelly, 1956), the source of
papers/verdict-prediction/'s Kelly rule. Kelly's theory needs reinvested profits, which an experiment budget doesn't give. So the page points to his own fallback, the most expected value per bet. - A literature review of Akiba, Sano, Yanase, Ohta and Koyama (2019), Optuna: A next-generation hyperparameter optimization framework (
docs/literature/optuna.md, #7968).scripts/verdict_tuned.pytunes the verdict predictor with its TPE sampler. Its benchmarks test no noisy objective, which may explain why the tuned model ranked no better. - A literature review of Malinin, Prokhorenkova and Ustimenko (2021), Uncertainty in gradient boosting via ensembles (
docs/literature/uncertainty-gradient-boosting.md, #7969).papers/verdict-prediction/uses its virtual ensembles and its knowledge uncertainty. Its finding that virtual members are weak on continuous features opens #8225, a test of independent ensembles. - A literature review of Cammarata (2026), Neural networks are already clean (
docs/literature/already-clean.md, #7978). Thenative-neuron-auditskill and the repo's papers take its method and the word pole from it. Its 90% of poles with one main job and the repo's 25% VERIFIED measure different things. - Added the 60-pole prospective
EleutherAI/pythia-70msweep-ranking validation (40 top-ranked plus 20 fixed random slice) todocs/analyses/experimentability.mdanddocs/analyses/experimentability-batch.jsonl(#7989). Sweep-ranked draws reached 22.5% VERIFIED vs 5.0% random, cutting agent cost per VERIFIED pole 2.8× ($0.78 vs $2.20, proposer $0.022 vs $0.065). - Experiment throughput analysis. Added the baseline cost and wall-time model, lever-by-lever savings, Jev protocol check, and ordered 100× roadmap (
docs/analyses/experiment-throughput.md, #8062). - Added
--drawsinscripts/sweep_predict.pyto include dead and default-on stop records as negative labels (#8113). Three-model held-out AUC rises to 0.819 (ECE 0.0124), and#7989random-slice Brier score drops 2.7×. - Accelerated
scripts/verdict_calibration.py::venn_abersby caching exact(p0, p1)intervals per calibration rank bracket (#8113). Ranking 995,328 scores now takes 49.5 s instead of ~29 minutes. - Added
.envAPI-key fallback toproviders.pyandLLMAgent, and capped DeepSeek's defaultreasoning_effortto"none"(#8208). Override the cap throughOPENINTERPRETABILITY_REASONING_EFFORT. - Added one-round in-process counterfactual measurement and refinement for direct API proposers (
agents/proposer_refine.py), and recorded the 40-unit matched Opus vs Sonnet/DeepSeek A/B test indocs/analyses/experiment-throughput.md(#8208). open-interpretability workerkeeps models loaded for a session. WithOPENINTERPRETABILITY_WORKERset to its socket, eachaudit,review,scoreandactivationscommand goes to the worker. So a model loads once, not once per command. On this machine, a repeated command took 0.17–0.9 s through the worker, against 3.1 s (pythia-70m) and 4.1–6.5 s (Qwen2.5-1.5B) in its own process. Without the worker, commands run as before.- TypeSafe Jev judge backend and side-by-side benchmark. Added native
typesafe/Jev support inExplanationJudgewith 5-fold CV cutoffs and recorded the 163-task Haiku comparison (openinterpretability/agents/jev.py,openinterpretability/agents/judge.py,openinterpretability/core/pricing.py,docs/analyses/experiment-throughput.md, #8212, #8062). open-interpretability loop --batch Nlands N experiments in one PR, which cuts the CI runs, merges and deploys per record. Each draw claims its unit with a branchclaim/experiment/<key>and no PR. The batch PR's body then claims the units, and--batch-minutes Malso opens the PR M minutes after the batch's first experiment.- A literature review of Borkar, Mireshghallah and Smith (2026), Predicting memorization before fine-tuning language models (
docs/literature/predicting-memorization-before-fine-tuning.md, #8240). Its features describe whole sequences, not units, so the review opens no follow-up. - A literature review of Chung and Du (2026), PocketRL: Training a 7B language model with reinforcement learning on one RTX 5090 (
docs/literature/pocketrl.md, #8250). Its trainer supports Qwen2.5. Follow-up #8264 would run it on Qwen2.5-0.5B and test which VERIFIED explanations keep. - A literature review of Labyrinth Research (2026), Using influence functions to find post-training data responsible for reward hacking (
docs/literature/influence-functions-reward-hacking.md, #8255). It attributes to training data, not to units, and the review notes on #3377 how its method could apply to Pythia-70m. - A literature review of Hong, Ma and Zhao (2026), Manifold pretraining engineering (
docs/literature/manifold-pretraining-engineering.md, #8266). Its released 53M models passmodel-check. Follow-up #8274 would audit their number neurons with and without the helix prior. papers/what-predicts-verification/has analysis 2: whether cheap statistics find poles of the same kind. A held-out pole's five nearest poles, by a forest's distance, name its explanation's category (codebook 0.1) 36.5% of the time. That is against 27.9% for its layer's majority and 12.4% by chance, which passes the pre-registered criterion (scripts/verify_neighbours.py).- Added a persistent WAL-mode SQLite cache (
openinterpretability/builder/slim_cache.py) forSlimArchiveloads inload_archive_paths, and addedmodel-scoped loading toload_statesandload_archive_pathsforexplainandexplain-family(#7005).
Changed
- The About page and
docs/PROTOCOL.md§1 name the taxonomy's Audited column Own verdict, so it no longer reads as "reproduced". A new Reproduced column says how CI checks each concept's record. It comes fromcore/record_kinds.py(#4794). - Bounded
open-interpretability sweepmemory with densefloat64repeated-token sums, analytical singleton folding, streaming Pass 1 maxima, and--layersblocks (#8007).Qwen/Qwen2.5-0.5Bsweeps now run at 3.35 GB peak RSS. - The proposer's system prompt now carries its method, distilled from the
native-neuron-audit,vocab-projection-lookaheadandneuron-family-triageskills in about 3k characters (agents/proposer_method.py). So a direct API call gets the same method as theneuron-proposersubagent. The subagent no longer reads those skill files. It answers in as few steps as it can, which cuts the tokens that it resends each turn. - Default new experiment scans to a shared weekly corpus per model and record
corpus_weekinExperimentProvenance(#8209). - Parallel judges beside reviewer. Run judges concurrently with each other and alongside the reviewer in API and subagent workflows (
openinterpretability/cli_review.py,openinterpretability/cli_score.py,openinterpretability/draw_steps.py,openinterpretability/core/costs.py, #8211, #8062). - Accelerate
lenses(prefix sharing, length-sorted 32×256 excerpts) andinput_attribution(nested trapezoidal IG, fp16 GPU/MPS autocast, 512-token context cap) (#8214). - Registry coverage for 0.6.5 (
docs/analyses/registry-coverage.jsonl), with VERIFIED poles and mean recovered share by model:- Pythia-70m: 330 poles (was 322), 0.078 (was 0.047).
- Qwen2.5-0.5B: 406 (was 400), 0.014 (was 0.012).
- GPT-2: 238 (was 230), −0.058 (was −0.059).
- Qwen2.5-1.5B: 97 (was 96), 0.0004 (no change).
- The concept map gains 50 poles. The circuit ids add three changes, on Qwen2.5-0.5B and GPT-2.
- The first round of tracked prompts (#4327) records 4 pythia-70m and 2 GPT-2 explanations. "The sun rises in the" on pythia-70m now reaches 63.9% coverage, against 81.9% on 2026-11-19. The Qwen prompts wait for 8340, because one took over an hour.
- The sister search adds 69 rows and 9 sisters. By pair, the sisters are:
- Qwen2.5-0.5B → Qwen2.5-1.5B: 2. The strongest is Qwen2.5-0.5B L22/N1629− → Qwen2.5-1.5B L25/N1901− (r 0.72).
- Qwen2.5-0.5B → Pythia-70m: 2.
- GPT-2 → Qwen2.5-0.5B: 2. GPT-2 L2/N1835+ → Qwen2.5-0.5B L3/N1281+ is r 0.56.
- GPT-2 → Qwen2.5-1.5B: 1. GPT-2 L2/N1835+ → Qwen2.5-1.5B L1/N7048− is r 0.59.
- Pythia-70m → Qwen2.5-1.5B: 1.
- Qwen2.5-0.5B → GPT-2: 1.
loop,explain-family --run, anddraw_stepsnow accept--judge-model(for exampletypesafe/jev-latest) to override the reviewer as judge (#7005, #8212).explain-family --runnow accepts--batchand--batch-minutesto land multiple experiments per PR, andloop_batchreuses the weekly scan corpus instead of rebuilding a fresh corpus per experiment (#7005, #8213).KeptSets.masksnow expands one shared base row instead of looping per row (~150x faster), andKeptSets._neuronsdrops a redundant.clone()(#7005).KeptSets.raw_addskips neuron poles that stay inactive past token 0 under the base mask with exact parity, speeding upexplain_joint.greedy(#7005).KeptSetsnow sliceslm_headinputs to the target token position (withuse_cache=False) and adds base-stategrad_deltas(#7005).explain_joint.greedynow ranks candidates withgrad_deltas, exact-verifies top picks throughraw_add, and falls back to full scans on stalls (#7005).explain-familynow loads registry states once and skips discarded per-prompt passes. It also reusesKeptSetsscorers across prompts (#7005).explain-familynow accepts--proposer,--reviewerand--providerfor--run, matchingexplain(#7005).explain_coverage.prompt_coveragenow batches Pass 1 ofminimal_setthroughKeptSets.raw_masksand vectorizeskeep_hookspole indexing (#7005).
Fixed
- The pole sign of a unit (+ or −) now passes WCAG AA contrast as small text in light and dark mode. The pending-experiments table lists follow-up PRs again, whose branches end in a draw time. The accessibility check opens every fold before it runs, and the sample site has two pending rows, so it checks that table (#5429).
- Fixed the
Evidence branch cleanupworkflow deletinggit/heads/...(HTTP 404) instead ofgit/refs/heads/..., and added aconcurrencygroup so closed PR runs do not race (#6820, #4326). - Fixed
review --check-probescrashing on empty or whitespace-only probes (ValueError: Shape mismatch for blis.gemm) by short-circuiting blank texts inopeninterpretability.names.person_matchesandpos_matchesbefore calling spaCy (#6966). - Mutation runs now give each forked worker its own temporary subfolder and treat segfaulted mutants as failures (#8122).
open-interpretability loopnow pushes the evidence blobs of a PR's slim records, as theland-experimentskill's post step does. Without them, CI's "Evidence of slim records" check fails. This holds both for a PR per experiment and for a batch PR.scripts/next_issue.pynow skips an agent's own started issue while an open issue blocks it, as it already skipped blocked release and backlog candidates (#8222). Before, a paused issue was offered on every run. #7005 waits on #8062 at the maintainer's request, so the loop never reached the backlog.- Fixed
open-interpretability audit --window-tokens 1024crashing in the lens phase (ValueError: stride must be in 1..256, got 512) by passingstride=windowtocut_piecesinevidence_lenses.py::read_lenses(#8261). open-interpretability loopno longer fails on pythia-70m explore draws whose fresh corpus holds a document longer than the model's 2,048 positions. pythia-70m now scans in 1,024-token windows by default ([tool.openinterpretability.window_tokens]). Its records have used that window since 2026-11-25.open-interpretability corpusno longer stops on a document with no letters, such as only digits or punctuation. fastText gives such text no label, and the language detector now records no language for it.- The model worker's client connects only to a socket owned by the current user, with no group or other access. Otherwise it runs the command in-process (#8315).
- The tests no longer fail with "CUDA error: out of memory" when other jobs fill the machine's GPU. torch's optimizers created a CUDA context in every test worker on a machine with a GPU, even for tensors on the CPU. The test session now hides the GPU. Set
OPENINTERPRETABILITY_TEST_GPU=1to run the CUDA tests (tests/test_cuda_streaming.py). test_batched_leave_one_out_and_vectorized_keep_hooks_match_sequentialruns its model in float64, so it no longer fails on macOS, where float32 rounds differently (#8344).