In-context learning for system identification: Probabilistic formulation, long-sequence handling, and benchmark validation
Traditional system identification typically involves two steps: initially, training data is processed to estimate a model of the system of interest; then, the model is used to predict outputs for new input queries. In contrast, recent in-context learning approaches learn a meta model that maps directly from training data and query inputs to outputs in a zero-shot fashion, bypassing explicit model estimation. This approach leverages a meta model trained offline, on large sets of synthetically generated data, to emulate the behavior of a system identification algorithm. In this work, we advance this meta-learning framework for system identification in three directions. First, we develop a unified probabilistic meta-identification architecture that combines a Transformer-based encoder–decoder with tailored mechanisms for handling long training sequences, enabling calibrated predictions over long horizons. Second, we show how a pre-trained meta model can act as an uncertainty-aware synthetic data generator for classical system identification, providing task-specific data that regularize parametric models when real data are scarce. Third, we systematically evaluate the framework on standard nonlinear system identification benchmarks and on a challenging out-of-distribution scenario, demonstrating competitive accuracy with state-of-the-art methods and strong generalization, including cases where input-only adaptation is sufficient to handle significant distribution shifts.
Authors
- Marco Forgione (ORCID: https://orcid.org/0000-0001-6772-1580)
- Dario Piga (ORCID: https://orcid.org/0000-0001-7691-4886)
- Filippo Pura (ORCID: https://orcid.org/0000-0002-6300-2885)
- Matteo Rufolo (ORCID: https://orcid.org/0009-0002-0253-3241)
Institutions
- University of Applied Sciences and Arts of Southern Switzerland (CH)
- Dalle Molle Institute for Artificial Intelligence Research (CH)
- Università della Svizzera italiana (CH)
Publication Details
- Journal
- Automatica
- Published
- 2026-11-25
- DOI
- https://doi.org/10.1016/j.automatica.2026.113370
- Primary Topic
- Control Systems and Identification
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
- Hasler Stiftung