CLAIFeb 20, 2024

Identifying Semantic Induction Heads to Understand In-Context Learning

arXiv:2402.13055v254 citationsh-index: 25ACL
Originality Incremental advance
AI Analysis

This provides insights into the transparency and trustworthiness of LLMs, though it is incremental in advancing mechanistic interpretability.

The researchers tackled the problem of understanding in-context learning in large language models by analyzing attention heads, finding that certain heads encode semantic relationships and correlate with the emergence of in-context learning ability.

Although large language models (LLMs) have demonstrated remarkable performance, the lack of transparency in their inference logic raises concerns about their trustworthiness. To gain a better understanding of LLMs, we conduct a detailed analysis of the operations of attention heads and aim to better understand the in-context learning of LLMs. Specifically, we investigate whether attention heads encode two types of relationships between tokens present in natural languages: the syntactic dependency parsed from sentences and the relation within knowledge graphs. We find that certain attention heads exhibit a pattern where, when attending to head tokens, they recall tail tokens and increase the output logits of those tail tokens. More crucially, the formulation of such semantic induction heads has a close correlation with the emergence of the in-context learning ability of language models. The study of semantic attention heads advances our understanding of the intricate operations of attention heads in transformers, and further provides new insights into the in-context learning of LLMs.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes