CLLGNov 13, 2023

In-context Learning and Gradient Descent Revisited

arXiv:2311.07772v445 citationsh-index: 3
Originality Incremental advance
AI Analysis

This work addresses the underlying mechanism of ICL for NLP researchers, but it is incremental as it builds on prior theories and focuses on improving evaluation and methods.

The paper tackled the problem of understanding in-context learning (ICL) mechanisms by revisiting evidence for its correspondence with gradient descent (GD) on realistic NLP tasks, finding gaps in evaluation and proposing a GD-based optimization procedure that improves similarity scores significantly.

In-context learning (ICL) has shown impressive results in few-shot learning tasks, yet its underlying mechanism is still not fully understood. A recent line of work suggests that ICL performs gradient descent (GD)-based optimization implicitly. While appealing, much of the research focuses on simplified settings, where the parameters of a shallow model are optimized. In this work, we revisit evidence for ICL-GD correspondence on realistic NLP tasks and models. We find gaps in evaluation, both in terms of problematic metrics and insufficient baselines. We show that surprisingly, even untrained models achieve comparable ICL-GD similarity scores despite not exhibiting ICL. Next, we explore a major discrepancy in the flow of information throughout the model between ICL and GD, which we term Layer Causality. We propose a simple GD-based optimization procedure that respects layer causality, and show it improves similarity scores significantly.

Code Implementations1 repo
Foundations

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

Your Notes