Skip to content

[Proposal] Jacobian Lens follow-up: validation deliverables + deferred PR2 scope #1539

Description

@jlarson4

Proposal

The Jacobian lens vertical slice from #1505 has landed on dev (#1507, plus registry short-name resolution in #1537). This tracks the #1505 commitments that did not land with the first PR, in two tiers so the correctness items can ship independently:

  • Tier 1 — the three unrealized validation-plan checks.
  • Tier 2 — the second demo model + the explicitly-deferred PR2 scope.

Motivation

#1505 committed to a five-point validation plan ("all numbers to be posted in the PR") and named PR2+ follow-ups. #1507 shipped the code, tests, and a demo. This issue covers all follow-ups and any trailing items that didn't make the first PR

Pitch

Tier 1 – Validation Deliverables
  • External-oracle parity – Slow test comparing readouts against the official anthropics/jacobian-lens package on fixed prompts, with per-layer top-k overlap + rank-correlation thresholds. Current parity tests are self-consistency + load/validate only. Lock in the [Proposal] Jacobian Lens (J-lens): load published lenses, fit natively, read out and intervene #1505 spike number: worst-case 7/8 top-8 overlap across 75 layer×prompt cells (top-1 identical in 70/75) on gemma-2-2b, using an overlap threshold rather than bitwise equality for bf16 near-ties. @mukund1985 working on this (test(integration): add oracle parity test for JacobianLens (#1539 Tier-1) #1543)
  • Kurtosis profile – Check that excess kurtosis of readout logits is roughly 0 in the first third of depth and rises through the workspace band. @rbellec working on this
  • Causal swap success-rate – swap_hooks works and the demo shows rank-of-answer qualitatively, but there's no quantified success rate across an intermediate-layer band. Report France→China swap success honestly on an open-weights model.
Tier 2 – Demo + Remaining PR2 scope
  • Second demo model – The demo uses only gemma-2-2b; add the promised Bridge-only modern-arch demo (Qwen3.5-4B, the official-walkthrough model). @KYinXu Tackling this component
  • Community-format converters – Import fit-checkpoint files / other lens zoos into the JacobianLens artifact format.
  • Gradient-pursuit sparse decomposition – J-space coordinate / occupancy analysis over fitted lenses.
  • Community fitting guide – Short doc on fitting + merge-parallelizing new-model lenses. Task already address by docs: add Jacobian Lens fitting and sharding guide #1544

Additional context

Checklist

  • I have checked that there is no similar issue in the repo (required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    TransformerBridgeBug specific to the new TransformerBridge systemcomplexity-moderateModerately complicated issues for people who have intermediate experience with the codegood first issueGood for newcomershelp wantedExtra attention is neededtoolingAnything pertaining to outside tools used within the codebase

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions