LGAIJul 7, 2025

Meta-Learning Transformers to Improve In-Context Generalization

arXiv:2507.05019v1h-index: 13
Originality Incremental advance
AI Analysis

This addresses data storage, quality, and privacy issues in AI training, offering a modular alternative, though it is incremental as it builds on existing meta-learning and in-context learning methods.

The paper tackles the problem of training transformers for in-context learning by using multiple small, domain-specific datasets instead of large, unstructured ones, showing that this approach improves generalization to unseen domains while matching performance with single large datasets.

In-context learning enables transformer models to generalize to new tasks based solely on input prompts, without any need for weight updates. However, existing training paradigms typically rely on large, unstructured datasets that are costly to store, difficult to evaluate for quality and balance, and pose privacy and ethical concerns due to the inclusion of sensitive information. Motivated by these limitations and risks, we propose an alternative training strategy where we leverage a collection of multiple, small-scale, and domain-specific datasets. We empirically demonstrate that the increased quality and diversity of such data improve the generalization abilities of in-context learners beyond their training domain, while achieving comparable performance with models trained on a single large-scale dataset. We investigate this paradigm by leveraging meta-learning to train an in-context learner on the Meta-Album collection under several settings. Firstly, we show the performance in a controlled environment, where the test domain is completely excluded from the training knowledge. Secondly, we explore the robustness of these models to forgetting in a continual scenario where the information is accessible for a limited time. Finally, we explore the more challenging unsupervised scenario. Our findings demonstrate that transformers still generalize for in-context prediction when trained on a curated dataset collection while offering advantages in modularity and replaceability.

Foundations

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

Your Notes