In-Context Learning of Energy Functions
Not on the map. Why?
Abstract (arXiv)
In-context learning is a powerful capability of certain machine learning models that arguably underpins the success of today's frontier AI models. However, in-context learning is critically limited to settings where the in-context distribution of interest pθICL( x|D) can be straightforwardly expressed and/or parameterized by the model; for instance, language modeling relies on expressing the next-token distribution as a categorical distribution parameterized by the network's output logits. In this work, we present a more general form of in-context learning without such a limitation that we call textitin-context learning of energy functions. The idea is to instead learn the unconstrained and arbitrary in-context energy function EθICL(x|D) corresponding to the in-context distribution pθICL(x|D). To do this, we use classic ideas from energy-based modeling. We provide preliminary evidence that our method empirically works on synthetic data. Interestingly, our work contributes (to the best of our knowledge) the first example of in-context learning where the input space and output space differ from one another, suggesting that in-context learning is a more-general capability than previously realized.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 8 of its 13 references that are in the map. First posted on arXiv 18 Jun 2024.
Builds on
8 of 13 references.
References · 8
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2021Transformers Can Do Bayesian Inferencecited by 360
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2020Improved Contrastive Divergence Training of Energy Based Modelscited by 130
- 2018Concept Learning with Energy-Based Modelscited by 14
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.