Meta-Learning Transformers to Improve In-Context Generalization

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Braccaioli, Lorenzo, Vettoruzzo, Anna, Singh, Prabhant, Vanschoren, Joaquin, Bouguelia, Mohamed-Rafik, Conci, Nicola
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911042555084800
author Braccaioli, Lorenzo
Vettoruzzo, Anna
Singh, Prabhant
Vanschoren, Joaquin
Bouguelia, Mohamed-Rafik
Conci, Nicola
author_facet Braccaioli, Lorenzo
Vettoruzzo, Anna
Singh, Prabhant
Vanschoren, Joaquin
Bouguelia, Mohamed-Rafik
Conci, Nicola
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_05019
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Meta-Learning Transformers to Improve In-Context Generalization
Braccaioli, Lorenzo
Vettoruzzo, Anna
Singh, Prabhant
Vanschoren, Joaquin
Bouguelia, Mohamed-Rafik
Conci, Nicola
Machine Learning
Artificial Intelligence
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.
title Meta-Learning Transformers to Improve In-Context Generalization
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2507.05019