cf. Jonas & Kording 2017
Dimensionality reduction summarises high-dimensional activity by a few components. Principal component analysis (PCA) finds the directions of largest variance; non-negative matrix factorisation (NMF) finds additive, parts-based factors. Both are standard in neuroscience for turning a large population recording into a handful of interpretable 'latent factors'. We run them on the VCS state tensor, the values of all cells over time, and read off the recovered components. We then match each component to a known signal: the frame or scanline clock, a read/write pattern, the vsync flag, or a game variable. The intuition is that the strongest components should correspond to the machine's real internal signals, so the factorisation recovers the structure without any labels. The method is unsupervised and cheap, which is why it is popular. On the VCS it does moderately well: it recovers most of the known factors, and NMF's non-negativity fits the additive register basis a little better than PCA. But a large fraction of components stay unmatched or mix several true signals into one, so the decomposition is suggestive rather than exact. It finds structure that is genuinely present, without telling us how the program uses it.
The score is the fraction of NMF or PCA components that match a known signal or variable. We decompose the state tensor into components, then match each to the machine's known internal signals, the frame or scanline clock, a read/write pattern, vsync, or a game variable, and count the matched fraction against what the oracle marks as important. Faithfulness for this method is that matched-component fraction. It is moderate: the decomposition recovers most of the known factors, and NMF's non-negativity fits the additive register basis a little better than PCA, but a substantial fraction of components stay unmatched or mix several signals into one. A secondary reconstruction-error composite gives NMF a small edge, but on the primary matched-fraction metric the two are close. The grading is always against the oracle, not against another method. There is no sprite-position hard-case here; the output is a set of components. The audit box reports the measured matched fraction across the scored games, so the number is an average over the scored set rather than the best single game.
The score is measured against the §1 intervention oracle — never against another interpretability method. F (faithful) is always vs the oracle; see the execution stack. How each of F / S / M is actually computed for this method (and whether it matches the paper) is in the box just below; the numbers are in the In the audit box under it.
The exact formula this method uses for each score, read from its runner, and
whether it matches the paper's §3 (F ∧ S ∧ M triad) definition.
From the committed audit
fsm_math_phaseA.json.
| Axis | Formula (as computed) | What it measures | Matches §3? |
|---|---|---|---|
| F faithfulness | \(F = \rho_{\mathrm{Spearman}}\!\left(\mathrm{attr}_{\mathrm{recovery}},\ \Delta y(u)\right)\) | Spearman correlation between each cell's PCA/NMF component-recovery score and the oracle causal importance over candidate cells (reported separately for PCA and NMF). | ✓ matches Two triads (triad_pca, triad_nmf); correlation vs oracle causal importance, not vs known-variable labels. Runner A7_dimred.jl,; record out/A7_pong.json triad_nmf.F=-0.385, triad_pca.F=-0.041. how it's measured — call stack:
|
| S sufficiency | \(S = \rho_{\mathrm{Pearson}}\!\left(\mathrm{attr}_{\mathrm{recovery}},\ \Delta y_{\mathrm{held\text{-}out}}(u)\right) \in [-1,1]\) | Pearson correlation of the component-recovery score vs the held-out do(base+37) screen break. | ✓ matches Held-out predictive correlation in [-1,1] of the component-recovery score vs the held-out do(base+37) screen break: the §3 (sec:triad) form. Two triads (pca, nmf). A7_dimred.jl; record S: nmf=-0.291, pca=-0.192. how it's measured — call stack:
|
| M minimality | \(M = |U^{\star}| / |\hat{U}| \in (0,1]\quad U^{\star}=\{u:\Delta y(u)>0\},\ \hat{U}=\{u:|\mathrm{attr}(u)|>\tau\}\) | Number of oracle-causal cells over the number of dim-reduction-surfaced cells the method names. | ✓ matches Runner now emits M = |U*|/|U_hat| for both triad_pca and triad_nmf (M_note '|U*|=4 (oracle movers) / |U_hat|=4/6'), the paper's set-size ratio. Record out/A7_pong.json triad_pca.M=1.0, triad_nmf.M=0.667. Replaced the former 1 − variance-not-causal over-claim rate. how it's measured — call stack:
|
✓ matches = the same quantity as §3; ◐ partial = the same kind of estimator but a differing detail; ✗ does not match = a different quantity (see the note). Definitions: F = agreement with the oracle's true causal effects Δy(u); S = held-out predictive score in [−1, 1]; M = |U*|/|Û| (true-minimal-set size / named-set size).
This is the method's entry in the actual cross-method audit — scored on the paper's correctness triad, each axis a mean over all 42 scored games (42 committed §R records), not the single example shown above. Tradition: dim_reduction. The example figure (Pong) is one of those records.
F faithfulness (scored vs the oracle for every method) · S sufficiency (held-out predictive score in [−1, 1]; a negative value means the explanation predicts held-out interventions worse than the unperturbed baseline; reported for the predictive methods across all three phases where the calibration/held-out split is defined) · M minimality (true-minimal-set / named-set; where the method names a cause set) — n/a otherwise, per the paper's F ∧ S ∧ M triad.
Source: leaderboard.json · the whole leaderboard is on the
methods page and the
Paper 2 audit.
This method's faithfulness on each of the 42 scored games (all-regime F; this method has no content-vs-position split (see the note below)). Click a header to
sort. Every number is read from site_data.json
(methods.A7_dimred.per_game).
content-F and position-F are n/a for this method. The content-vs-position split applies only to pixel-attribution methods — those that produce an attribution map over the framebuffer, whose score can be read separately on the smooth content outputs and the discrete position outputs (where the naive gradient is provably zero). This method does not attribute to a pixel output; it is graded by its own fidelity metric (A7_nmf_matched_component_fraction_vs_known_vars), reported as the F column, so there is no content or position regime to separate.
| Game | F (all) | content-F | position-F | S | M | Note |
|---|---|---|---|---|---|---|
| Alien | 1.000 | n/a | n/a | n/a | n/a | recovers the true causes |
| Air Raid | 0.800 | n/a | n/a | n/a | n/a | |
| Berzerk | 0.800 | n/a | n/a | n/a | n/a | |
| Demon Attack | 0.800 | n/a | n/a | n/a | n/a | |
| Kangaroo | 0.800 | n/a | n/a | n/a | n/a | |
| Pacman | 0.800 | n/a | n/a | n/a | n/a | |
| Riverraid | 0.800 | n/a | n/a | n/a | n/a | |
| Venture | 0.800 | n/a | n/a | n/a | n/a | |
| Bank Heist | 0.600 | n/a | n/a | n/a | n/a | |
| Beam Rider | 0.600 | n/a | n/a | n/a | n/a | |
| Breakout | 0.600 | n/a | n/a | n/a | n/a | |
| Centipede | 0.600 | n/a | n/a | n/a | n/a | |
| Chopper Command | 0.600 | n/a | n/a | n/a | n/a | |
| Freeway | 0.600 | n/a | n/a | n/a | n/a | |
| Hero | 0.600 | n/a | n/a | n/a | n/a | |
| Jamesbond | 0.600 | n/a | n/a | n/a | n/a | |
| Montezuma's Revenge | 0.600 | n/a | n/a | n/a | n/a | |
| Ms. Pac-Man | 0.600 | n/a | n/a | n/a | n/a | |
| Pong | 0.600 | n/a | n/a | n/a | n/a | |
| Q*bert | 0.600 | n/a | n/a | n/a | n/a | |
| Seaquest | 0.600 | n/a | n/a | n/a | n/a | |
| Space Invaders | 0.600 | n/a | n/a | n/a | n/a | |
| Assault | 0.400 | n/a | n/a | n/a | n/a | |
| Atlantis | 0.400 | n/a | n/a | n/a | n/a | |
| Bowling | 0.400 | n/a | n/a | n/a | n/a | |
| Boxing | 0.400 | n/a | n/a | n/a | n/a | |
| Double Dunk | 0.400 | n/a | n/a | n/a | n/a | |
| Fishing Derby | 0.400 | n/a | n/a | n/a | n/a | |
| Ice Hockey | 0.400 | n/a | n/a | n/a | n/a | |
| Krull | 0.400 | n/a | n/a | n/a | n/a | |
| Kung-Fu Master | 0.400 | n/a | n/a | n/a | n/a | |
| Name This Game | 0.400 | n/a | n/a | n/a | n/a | |
| Phoenix | 0.400 | n/a | n/a | n/a | n/a | |
| Pitfall | 0.400 | n/a | n/a | n/a | n/a | |
| Road Runner | 0.400 | n/a | n/a | n/a | n/a | |
| Yars' Revenge | 0.400 | n/a | n/a | n/a | n/a | |
| Carnival | 0.200 | n/a | n/a | n/a | n/a | |
| Frostbite | 0.200 | n/a | n/a | n/a | n/a | |
| Gopher | 0.200 | n/a | n/a | n/a | n/a | |
| Private Eye | 0.200 | n/a | n/a | n/a | n/a | |
| Tennis | 0.200 | n/a | n/a | n/a | n/a | |
| Video Pinball | 0.200 | n/a | n/a | n/a | n/a |
The path from this method's runner (compute_game) into the bit-exact VCS substrate, and the
computation it involves. Every step links to the exact source on main. From
callstack_phaseA.json.
build_a7_shared_state(game) -> build_shared_testbed(game; ...) runnerfunction build_shared_testbed(game; ...) runnercause_density = count(>(floor), deltas) runnera7_record_ram(game, frames, actions) runnerenv_step!(env, Int(actions[t])) jutariget_ram(env) jutarirun_pca(tape) runnerrun_nmf(tape, rank; iters=300, seed=0) runnermatch_components(method, tape, ...) runnerScored against the exact intervention oracle Δy(u): run_intervention(checkpoint, actions, target_frame, horizon, cause).
The figure is generated from the committed record by
docs/gen_method_figures.py; the game frame
and each RAM cell's screen footprint are produced by
render_scenes.jl /
cell_footprints.jl.