Reproduce “Finding patterns in Knowledge Attribution for Transformers” 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

Jeevesh Juneja, Ritu Agarwal

Researchers from Delhi Technological University analyzed a multilingual BERT model to understand how factual, relational, and grammatical knowledge are stored across its layers. The study revealed that factual and relational knowledge localize in middle-to-higher layers, while grammatical knowledge is more dispersed, and demonstrated that multilingual models utilize common neuron sets for the same facts across different languages.

Key insights

  • Transformer layers exhibit a hierarchical specialization, with lower layers handling syntax, middle layers encoding relational knowledge, and higher layers refining factual specifics.
  • Multilingual BERT models leverage a common set of neurons for the same factual information across different languages, suggesting an interlingua or shared representation space.
  • Grammatical knowledge is more broadly distributed across neurons and layers, contrasting with the more localized nature of factual knowledge.
  • The presence of "attractors" in grammatical tasks significantly increases variation in attribution scores in higher layers, indicating increased processing complexity.

Summary by alphaXiv.

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