Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale

Hritik Bansal, Karthik Gopalakrishnan, Saket Dingliwal, Sravan Bodapati, Katrin Kirchhoff, Dan Roth

Introduction

Large Language Models (LLMs) exhibit remarkable In-Context Learning (ICL) capabilities as they scale. However, the internal mechanisms driving this emergent behavior remain poorly understood. This study investigates OPT-66B to determine if the model's massive parameter count is fully utilized during ICL or if specific components are disproportionately responsible for task performance. The findings suggest that a significant portion of the model's parameters may be redundant for the specific purpose of prompt-based learning.

Methodology

The research employs an interpretability-based approach to evaluate the importance of individual transformer components in OPT-66B across 14 diverse NLP tasks, including commonsense reasoning (HellaSwag, PIQA) and question answering (ARC, OpenBookQA).

  1. Importance Scoring: Attention heads were ranked using gradient-based sensitivity scores to estimate their contribution to the model's loss. Feed-Forward Networks (FFNs) were evaluated via an oracle "knock-out" approach, measuring the performance drop when individual FFNs were removed.
  2. Iterative Pruning: Components were removed in 10% increments based on their importance rankings to identify the threshold where performance significantly degrades.
  3. Induction Head Analysis: The study examined the overlap between task-specific important heads and "induction heads"—specialized components theorized to perform the pattern matching and copying operations essential for ICL.

The Sparse Nucleus of ICL

Analysis reveals that ICL is not a distributed, whole-model effort. Instead, a "sparse nucleus" of components performs the majority of the computation required for prompt following. Attention heads critical for ICL are primarily clustered in intermediate layers, while essential FFNs are located in later layers.

Head Importance Score (5-shot Aggregate) across layers and heads, illustrating the sparse 'nucleus' of components.

This importance is remarkably universal; components vital for one task tend to be vital for others, suggesting the development of a general-purpose ICL circuit during pre-training. The study confirms that induction heads are among the most critical components for solving complex downstream NLP tasks.

Key Results: Massive Redundancy

The most striking finding is the level of redundancy within the 66B parameter architecture. The model maintains stable performance even after significant structural pruning.

Iterative pruning of attention heads across 14 tasks, showing performance stability up to 70% pruning.

Specifically, up to 70% of attention heads (~15.7B parameters) and 20% of FFNs (~8.5B parameters) can be removed with minimal impact on task performance. When combined, pruning 70% of heads and 20% of FFNs results in only a ~4-5% absolute drop in average accuracy across tasks. These pruning orders generalize well to out-of-distribution tasks like MathQA, reinforcing the existence of a universal importance ranking for ICL.

Discussion and Future Work

The high degree of redundancy suggests that current pre-training regimes may not be optimized for ICL efficiency, leaving substantial "dead weight" in the architecture. The central role of induction heads indicates that future architectural designs or training objectives could focus on encouraging these specific structures. This could potentially lead to smaller models that retain the ICL prowess of much larger counterparts while being significantly more efficient to deploy.

Summary updated

BibTeX
@inproceedings{bansal2023rethinking,
  author = {Hritik Bansal and Karthik Gopalakrishnan and Saket Dingliwal and Sravan Bodapati and Katrin Kirchhoff and Dan Roth},
  title = {{Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.660},
}
Figure