Reproduce “NormXLogit: The Head-on-Top Never Lies” 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

Sina Abbasi, Mohammad Reza Modarres, Mohammad Taher Pilehvar

NormXLogit introduces an architecture-agnostic and computationally efficient method for large language model interpretability, attributing token importance by combining the norm of word embeddings with task-specific logit attribution from the model's prediction head. The approach demonstrates superior faithfulness and linguistic alignment across various NLP tasks while being up to 6 times faster and 750 times more memory-efficient than gradient-based methods.

Key insights

  • The ℓ2 norm of input word embeddings serves as an effective initial indicator of a token's inherent informational gain, often highlighting less frequent but more important words.
  • The model's final prediction head ("head-on-top") is a rich and direct source of task-specific, per-label explanations, capable of revealing both positive and negative influences of individual tokens.
  • Faithful and plausible LLM interpretability can be achieved with high computational efficiency and architecture agnosticism by directly utilizing final-layer representations and the prediction head, without needing complex internal architectural analysis.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.