ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
0
Citations
0
Influential Citations
—
Venue
2024
Year
… Figure 1: In-context learning of Boolean functions in our setup. In an … of the in-context learning ability of Transformers? (b) Is the attention mechanism essential for in-context learning? (c) …
In-context learning (ICL) is a remarkable capability of large language models (LLMs) that allows them to perform new tasks from a few examples without weight updates. However, the underlying mechanisms remain poorly understood. This paper addresses this gap by studying ICL in a controlled setting: learning discrete Boolean functions. By simplifying the problem, the authors can systematically probe the factors that enable ICL, offering insights that are difficult to obtain in complex natural language tasks.
The paper's focus on Boolean functions is particularly valuable because it allows for exhaustive analysis and clear causal conclusions. This approach aligns with a growing trend in interpretability research to use synthetic, well-defined tasks to isolate specific capabilities. The findings have implications for both understanding existing models and designing future architectures that are more sample-efficient and interpretable.
The paper reports that transformers can learn Boolean functions in-context with high accuracy, achieving near-perfect performance on several function families. Crucially, ablations show that removing the attention mechanism (or freezing it) degrades performance but does not eliminate ICL entirely, suggesting that other components (e.g., MLP layers) can also support ICL to some degree. The authors also observe that the number of layers and hidden dimensions affect ICL performance, with deeper and wider models generally performing better. These results provide concrete evidence about the role of attention and the capacity of transformers for ICL.
This work contributes to a foundational understanding of in-context learning, which is central to the success of modern LLMs. By demystifying the mechanisms, it could lead to more efficient training methods, better interpretability, and improved architectural designs. The finding that attention is not strictly necessary for ICL challenges common assumptions and may inspire alternative architectures that are less compute-intensive. Moreover, the synthetic framework can serve as a testbed for future research on ICL, enabling rapid iteration and controlled experiments. Overall, this paper is a stepping stone toward more transparent and reliable AI systems.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba