Skip to content

openinterpretability 0.6.4 (protocol v0.10)

Choose a tag to compare

@8W9aG 8W9aG released this 01 Dec 05:04
· 805 commits to main since this release
4a7d92d

Ships with protocol version 0.10.

Added

  • A preprint, papers/verdict-prediction/, asks whether predicting which attempts will pass makes an explanation run cheaper (#3960). Gradient boosting predicts a pass with an AUC of 0.764 on held-out units. Venn–ABERS calibration and tuning bring its Brier score on the newest attempts to the base rate's. But in replays of the #7005 pilot, no rule built on the prediction needed fewer than the plan's 54 experiments. A perfect predictor of the next attempt needed 79, and a perfect predictor of whether a unit ever passes needed 49. The scripts are scripts/verdict_*.py, and the predict extra holds their dependencies.
  • open-interpretability sweep --model <model> reads a slice of the corpus once, with every MLP neuron hooked, and writes ten cheap statistics for every pole to data/sweeps/ (#3961). It takes 41 seconds for pythia-70m and 99 seconds for GPT-2. scripts/sweep_predict.py ranks every pole by its calibrated chance of VERIFIED for each agent family. On held-out units, the sweep's statistics predict a first attempt's verdict as well as each pole's own scan (AUC 0.732 against 0.711). The top tenth of the ranking passed 48% of the time, and the bottom tenth 1.2% (docs/analyses/experimentability.md). Its rows are predictions, never verdicts.
  • A literature page reviews Yggdrasil Decision Forests (Guillame-Bert et al., 2023), the forest library behind papers/what-predicts-verification/. It notes that the out-of-bag importances that the paper reports come from the package, not from this work.
  • scripts/verdict_hazard.py predicts a unit's chance of a pass within its remaining attempts, as a discrete-time hazard over #3960's per-attempt model (#7959). In the replay of the #7005 pilot, the Kelly rule on that chance needed 50 experiments in every seed. Its stake is the expected cost to a pass. The plan's order needed 54, and a perfect unit-level oracle 49. papers/verdict-prediction/ reports it, and its title now says that prediction saves few experiments.
  • A literature page reviews CatBoost: Unbiased Boosting with Categorical Features (Prokhorenkova et al., 2019), the boosting library behind papers/verdict-prediction/. The paper's two claims about it, ordered target statistics and the prediction shift, check out against the source.
  • A literature page reviews Venn–Abers Predictors (Vovk and Petej, 2014), the calibration behind papers/verdict-prediction/. The paper's three claims about it check out against the source. Its guarantee assumes i.i.d. data, which the newest attempts don't meet.
  • A literature page reviews Large-scale probabilistic predictors with and without guarantees of validity (Vovk, Petej and Fedorova, 2015). It defines the inductive Venn–Abers predictor that papers/verdict-prediction/ uses, and the paper's claim about it checks out.

Changed

  • No mutant survives in 3 more files of builder/ (part 4a) (#6491): explanation_figures, parquet_export, and explanation_pages. New exact tests kill every surviving mutant in all three modules. explanation_figures drops unused defaults and simplifies layer spacing. parquet_export uses hashlib.file_digest for SHA-256 checksums. explanation_pages reads and writes JSON and SVG files as bytes.

  • No mutant survives in the final 3 files of builder/ (part 4b) (#6491): tree, compiler, and wiki. New exact unit tests kill every surviving mutant in all three modules with zero no mutate pragmas, completing openinterpretability/builder/. tree simplifies n_layers initialization and unit-key ordering, compiler replaces magic fallback constants in explanation_view, and wiki reads and writes UTF-8 files as bytes and drops a redundant mkdir call.

  • Tests that build the site no longer load the repo's real changelog and literature reviews (#8064). An autouse fixture in tests/conftest.py stubs labinacan's load_versions and load_reviews. The 3 tests that check those pages carry the real_reference_pages marker. tests/test_compiler.py runs in 33 s, against 109 s before, and builder mutants no longer run for minutes each.

  • Site builds and wiki page renders cache their Jinja2 environments instead of recompiling all templates on each call (#8092). tests/conftest.py imports torch lazily, and scripts/mutation.py --files passes module wildcards so mutmut's clean-test step runs only tests that cover the named modules. tests/test_compiler.py drops from 35 s to 13 s.

  • Registry coverage, refreshed for 0.6.4 (docs/analyses/registry-coverage.jsonl, 2026-12-01). It gives each model's VERIFIED poles and the mean share of the loss that they recover, against the 0.6.3 run:

    Model VERIFIED poles Share of poles Mean recovered
    pythia-70m 284 → 322 1.31% 0.045 → 0.047
    GPT-2 230 → 230 0.31% −0.059 → −0.059
    Qwen2.5-0.5B 395 → 400 0.17% 0.012 → 0.012
    Qwen2.5-1.5B 92 → 96 0.02% 0.000 → 0.000
  • The sister search ran again for 0.6.4, on the 76 poles VERIFIED since 0.6.3. They are 64 poles of pythia-70m, 6 of Qwen2.5-0.5B, 5 of Qwen2.5-1.5B, and 1 of GPT-2. It added 228 rows and 44 sisters (docs/analyses/sister-neurons.jsonl). By pair, pythia-70m's poles found 13 sisters in Qwen2.5-0.5B, 10 in Qwen2.5-1.5B, and 15 in GPT-2. Qwen2.5-0.5B's poles found 2 in pythia-70m, 1 in Qwen2.5-1.5B, and 1 in GPT-2. Qwen2.5-1.5B's poles found 2 in Qwen2.5-0.5B. The strongest are Qwen2.5-0.5B's L16/N1502− and Qwen2.5-1.5B's L22/N8034+ (Pearson 0.84), Qwen2.5-0.5B's L16/N1502− and GPT-2's L2/N1448+ (0.77), and pythia-70m's L4/N219+ and GPT-2's L8/N1684+ (0.73).

Fixed

  • Close DuckDB connections cleanly instead of using the global duckdb.sql() connection (#8102): tests/test_compiler.py, openinterpretability/registry_query.py, and openinterpretability/builder/registry_stats.py now use with duckdb.connect() as con:. Leaving DuckDB's global connection open in the parent process caused forked mutmut workers to deadlock in TaskSchedulerPool::RelaunchThreads() on exit.