Reproduce “Exact Finite Attention Responses From RoPE Derivatives” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Julie Huang, Maggie Chlon, Gregory Gutin, Leon Chlon
A finite-response calculus is developed for analyzing transformer attention interventions under rotary position embeddings and simultaneous key–value edits. By integrating RoPE rotations exactly and retaining the key–value coupling term through softmax renormalization, the method reduces positional-intervention margin MAE by 73.6–82.5% and joint-edit MAE by 89.3–99.6% compared with first-order or separate-attribution baselines in Qwen experiments.
Key insights
- Finite RoPE corrections matter primarily when the displacement is large relative to a rotary frequency; in slow-frequency bands, the exact and Jacobian responses are nearly indistinguishable.
- The key–value interaction is not a minor residual: including it closely matches executed joint edits, with interaction correlations of 0.9970–0.99999 across tested settings.
- Exact local attention responses improve intervention ranking and cache repair, but downstream predictions remain gradient-based approximations rather than exact end-to-end model effects.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.