Skip to content

feat(atp-star): add QK correction, GradDrop, exact verification skill - #8

Closed
janmenjayap wants to merge 1 commit into
ndif-team:0.8from
janmenjayap:feat/atp-star-skill
Closed

janmenjayap wants to merge 1 commit into
ndif-team:0.8from
janmenjayap:feat/atp-star-skill

Conversation

@janmenjayap

@janmenjayap janmenjayap commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Adds plugins/nnsight/skills/atp-star/SKILL.md, a new sibling skill next to
    activation-patching and circuit-discovery, porting the agent-facing subset of the
    nnsight-side AtP* pattern (feat(atp-star): add tested component-localization building blocks nnsight#705): exact local-softmax recompute for a
    saturated Q/K pair, GradDrop's repeated-backward cancellation check, and the
    exact-verification workflow.
  • Every example targets the 0.8 API directly (TransformersModel, transformers>=5) against
    real checkpoints (GPT-2), no synthetic tiny-random-weight models and no pre-0.8 idioms.
  • Cross-links both directions: attribution-patching/SKILL.md's "Related skills" list now
    points at atp-star ("an attribution-patching score looks near zero for a component you
    suspect matters"), and atp-star points back at attribution-patching (the baseline it
    corrects) and circuit-discovery.
  • Adds the atp-star row to the root README.md skill table and the .codex/skills/atp-star
    symlink, matching the repo's existing per-skill layout.

Deliberately left out: the subset/confidence diagnostic (Student-t CDF, Algorithm 1 online
stats) and the MVP benchmark protocol — those are benchmark artifacts for the nnsight-side PR,
not agent-facing failure-mode fixes.

Test plan

  • make test-skill SKILL=atp-star (runs every fenced python block in SKILL.md against
    real models per this repo's CLAUDE.md)
  • make test-structure

Ports the agent-facing subset of the nnsight-side AtP* pattern (ndif-team/nnsight#705):
exact local-softmax recompute for a saturated query/key, GradDrop's repeated-backward
cancellation check, and the exact-verification workflow. Every example is real GPT-2,
transformers>=5, TransformersModel. Cross-linked from attribution-patching in both
directions.

Deliberately left out (see PR description): the subset/confidence diagnostic
(Student-t CDF, Algorithm 1 online stats) and the MVP benchmark protocol -- those are
benchmark artifacts for a separate nnsight-side PR, not agent-facing failure-mode fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants