Generalist AI Control: Towards Multi-purpose Adaptive Algorithms
Summary
A novel generalist controller using attention mechanisms and mixture-of-experts is proposed, enabling a single neural network to control diverse dynamical systems without system-specific tuning. It achieves comparable performance to traditional controllers across 25 different systems.
View Cached Full Text
Cached at: 07/21/26, 06:38 AM
# Generalist AI Control: Towards Multi-purpose Adaptive Algorithms
Source: [https://arxiv.org/html/2607.16313](https://arxiv.org/html/2607.16313)
Pouria SarhadiSchool of Physics, Engineering and Computer Science, University of Hertfordshire, Hatfield, UK \(e\-mail:k\.agyei@herts\.ac\.uk,p\.sarhadi@herts\.ac\.uk\)
###### Abstract
Traditional controllers are designed for specific systems and do not transfer across different system orders and dynamics\. We present a Generalist Controller, a learning\-based controller capable of controlling systems of varying orders and dynamics\. The approach introduces a novel dynamic state\-space representation using attention mechanisms with masking, enabling a single neural network, trained in one shot, to handle systems with different dimensions without architectural modifications by assigning a system tag to each system\. We generated 314,630 demonstrations from 25 diverse systems, including stable, unstable, minimum\-phase, and non\-minimum\-phase dynamics, spanning linear and nonlinear systems from autonomous underwater and aerospace vehicles to mechanical systems and chemical processes\. The model learns cross\-system control strategies through multi\-scale temporal processing and a mixture\-of\-experts architecture\. Simulation results demonstrate that the proposed generalist controller achieves comparable performance to system\-specific LQI controllers across all tested systems, including challenging cases such as non\-minimum\-phase and unstable dynamics, whilst generalising to unseen operating conditions including actuator saturation, noise, disturbance, and reference trajectories not encountered during training\. This work represents a significant step towards generalist control policies within a defined family of dynamical systems, demonstrating effective control across a range of single\-input single\-output \(SISO\) systems of varying order and dynamics using a single learned policy without system\-specific tuning\.
###### keywords:
Autonomous Vehicles, Generalist control, Adaptive Control, Multi\-purpose control, LSTM
This is the accepted manuscript of the article published in*Control Engineering Practice*\. The final published version is available at:https://doi\.org/10\.1016/j\.conengprac\.2026\.106915\.
© 2026 The Authors\. This work is licensed under the Creative Commons Attribution 4\.0 International License:https://creativecommons\.org/licenses/by/4\.0/\.
## 1Introduction
The control engineering discipline stands at an inflexion point where traditional model\-based design paradigms are being complemented by data\-driven approaches\. Classical control methodologiesMayneet al\.\([2000](https://arxiv.org/html/2607.16313#bib.bib15)\); Astrom and Wittenmark \([1994](https://arxiv.org/html/2607.16313#bib.bib4)\); Doyle \([1996](https://arxiv.org/html/2607.16313#bib.bib22)\)have proven effective across countless applications that shape our daily lives\.
However, these approaches require accurate system models and separate controller design for each deployment\. For many practical systems or systems with poorly characterised dynamics, accurate models are difficult or expensive to obtain and maintain\. This motivates learning\-based controllers that acquire control behaviour directly from demonstrations rather than analytical models\. Whilst such approaches are well establishedPomerleau \([1988](https://arxiv.org/html/2607.16313#bib.bib17)\); Mandlekaret al\.\([2021](https://arxiv.org/html/2607.16313#bib.bib14)\); Argallet al\.\([2009](https://arxiv.org/html/2607.16313#bib.bib3)\); Schaal \([1999](https://arxiv.org/html/2607.16313#bib.bib21)\), they typically train separate policies for each system\. We propose a generalist learning\-based controller, a single policy trained on demonstrations from diverse systems without per\-system tuning\. Crucially, the framework is agnostic to the demonstration source, it can learn from model\-based experts where accurate models exist, or from human teleoperation and recorded operational data where they do not, unifying both scenarios under a single deployable policy\.
The transformative impact of foundation models across artificial intelligence domains has sparked considerable interest in their application to control systems\. In natural language processing, models such asBrown and et\. al\. \([2020](https://arxiv.org/html/2607.16313#bib.bib9)\)have demonstrated remarkable few\-shot generalisation capabilities through pre\-training on diverse textual corpora, with applications on higher\-level decision making in autonomous vehiclesAgyeiet al\.\([2025a](https://arxiv.org/html/2607.16313#bib.bib1)\)\. Most pertinently for our domain, the robotics community has witnessed the emergence of foundation models specifically targeting embodied intelligence, suggesting that similar paradigms might revolutionise control theory itself\.Octo Model Team and et\. al\. \([2024](https://arxiv.org/html/2607.16313#bib.bib16)\), a transformer\-based policy trained on 800k robot trajectories across diverse embodiments, has shown that cross\-robot generalisation is achievable through large\-scale pre\-training\. Before this,Reedet al\.\([2022](https://arxiv.org/html/2607.16313#bib.bib18)\), DeepMind’s multi\-modal, multi\-task, multi\-embodiment generalist agent, controls multiple robots whilst simultaneously performing language tasks and playing Atari games with a single set of neural weights\.Brohan and et\. al\. \([2022](https://arxiv.org/html/2607.16313#bib.bib8)\)andZitkovich and et\. al\. \([2023](https://arxiv.org/html/2607.16313#bib.bib25)\)have achieved zero\-shot generalisation to new tasks and environments, bridging the semantic gap between high\-level instructions and low\-level control through vision\-language\-action models\. NVIDIA’s recently announced GR00T N1Bjorck and et\. al\. \([2025](https://arxiv.org/html/2607.16313#bib.bib6)\)represents a generalist model for humanoid robots, featuring a dual\-system architecture inspired by human cognition that enables generalised reasoning and manipulation skills across different embodiments\.
However, these models fundamentally operate at the perception\-action level rather than addressing the underlying control\-theoretic challenges\. Models likeOcto Model Team and et\. al\. \([2024](https://arxiv.org/html/2607.16313#bib.bib16)\)andReedet al\.\([2022](https://arxiv.org/html/2607.16313#bib.bib18)\)learn control policies jointly with visual representations, creating entangled representations where control decisions may become linked to visual features\. This visual\-motor coupling could introduce some fundamental limitations\. These models may be less effective without camera inputs, rendering them less suitable for applied control problems\.
Parallel to these developments, imitation learning and behavioural cloningPomerleau \([1988](https://arxiv.org/html/2607.16313#bib.bib17)\); Bratkoet al\.\([1995](https://arxiv.org/html/2607.16313#bib.bib49)\); Zareet al\.\([2024](https://arxiv.org/html/2607.16313#bib.bib50)\)have emerged as powerful paradigms for acquiring control policies from demonstrations\. These approaches offer several advantages over model\-based control design, they can capture complex control strategies that are difficult to derive analytically, they do not require explicit system models at deployment, and they can leverage existing expert controllers or human demonstrations\. However, most imitation learning approaches train separate policies for each system, failing to exploit the shared structure underlying diverse dynamical systems\.
This paper introduces the Generalist Controller, a learned controller that addresses this fundamental gap by learning control policies that transfer across systems of varying dimensionality and dynamics\. Unlike existing approaches that focus on task\-level or perception\-level generalisation, the proposed generalist controller operates at the control\-theoretic level, learning to track references for systems of varying orders\. The key insight underpinning this approach is that control at the state\-space level represents a highly transferable form of control knowledge across many physical systems\. Whilst visual features vary dramatically across robots and environments, the underlying mathematics of dynamical systems remain invariant\. A mass\-spring\-damper system exhibits identical second\-order dynamics whether implemented as a vehicle suspension, a building’s seismic isolator, or a microscale MEMS device\. By learning control policies directly in state\-space, we capture these fundamental dynamical patterns that transcend specific embodiments or sensory modalities\. This approach introduces several technical innovations to enable cross\-order generalisation\. We develop a dynamic state\-space representation with attention masking that allows a single neural network to process systems of different orders through padding\. Through multi\-scale temporal processing and mixture\-of\-experts architectureShazeer and et\. al\. \([2017](https://arxiv.org/html/2607.16313#bib.bib32)\), the controller learns to recognise and respond to different dynamical regimes, from stable first\-order responses to complex oscillatory behaviours\. Trained on 314,630 expert demonstrations from 25 diverse systems, the proposed generalist controller achieves performance comparable to system\-specific Linear Quadratic Integral \(LQI\) controllers\. While the broader motivation of this work is inspired by recent foundation model approaches, the scope of the present study is more specific\. In this paper, we focus on SISO dynamical systems\.
The implications of this work extend beyond technical achievements in conventional control and, more specifically, in imitation learning for control applications\. By demonstrating that control knowledge transfers across diverse system dynamics within pre\-trained system families, and is not limited to a single category of systems, we enable multi\-system control policies that potentially require no per\-system re\-tuning\. This represents a paradigm shift from the traditional approach of designing controllers for specific systems towards learning controllers that embody general principles applicable across entire system classes\. As industries face increasing demands for flexible automation, rapid reconfiguration, and robust performance across varying operating conditions, generalist controllers offer a compelling alternative to traditional design methodologies\.
Before formalising the problem, we clarify the use of the term*generalist*as employed in this paper\. The term*generalist*is used in a pragmatic sense consistent with recent learning\-based robotics and foundation\-model literature, where a single parameterised policy is trained on data from multiple tasks or systemsReedet al\.\([2022](https://arxiv.org/html/2607.16313#bib.bib18)\); Octo Model Team and et\. al\. \([2024](https://arxiv.org/html/2607.16313#bib.bib16)\)\. Adapting this notion to control engineering, we define a generalist controller as a single control policy trained on demonstrations from multiple dynamical systems and deployed without per\-system retuning\. The novelty of this work does not lie in introducing a new learning paradigm, as similar ideas have long been considered in Behavioural Cloning \(BC\) and Imitation Learning \(IL\)Pomerleau \([1988](https://arxiv.org/html/2607.16313#bib.bib17)\); Bratkoet al\.\([1995](https://arxiv.org/html/2607.16313#bib.bib49)\); Zareet al\.\([2024](https://arxiv.org/html/2607.16313#bib.bib50)\)\. Rather, leveraging recent advances in deep neural networks, we demonstrate that a single policy can effectively reuse control structure across heterogeneous systems with varying orders and dynamics, without any system\-specific tuning\. It should be noted that the controller requires a system tag as input to indicate which system is being controlled\. It does not infer the system identity from observations alone and cannot generalise to systems not included in the training set\. This parallels human adaptive behaviour, which can control systems after training and does not start blindly when encountering different systems\.
The remainder of the paper is organised as follows\. Section 2 reviews related work in adaptive, robust, and generalisation in control\. Section 3 formulates the problem and defines the learning objective\. Section 4 presents the proposed Generalist Controller architecture\. Section 5 describes the training framework and data generation\. Section 6 reports simulation and hardware results, including comparisons with classical LQI controllers\. Section 7 presents ablation studies analysing, the role of key architectural components\. Section 8 concludes the paper and discusses limitations and future directions\.
## 2Related Work
This section reviews prior approaches to achieving control across multiple systems, spanning classical adaptive and robust control, generalisation methods in control theory, and recent learning\-based approaches\. We highlight the limitations of existing methods in handling systems with varying orders and dynamic characteristics, motivating our approach of learning a single policy from demonstrations across diverse systems\.
### 2\.1Classical Adaptive and Robust Control Theory
Classical adaptive control provides theoretical frameworks for handling uncertainty, but focuses on adapting to parameter variations within a fixed system structure\. Model Reference Adaptive Control \(MRAC\)Ioannou and Fidan \([2006](https://arxiv.org/html/2607.16313#bib.bib13)\)adjusts controller parameters to match reference model behaviour for a specific plant\. Self\-tuning regulatorsAstrom and Wittenmark \([1994](https://arxiv.org/html/2607.16313#bib.bib4)\)estimate system parameters online and update control laws accordingly\. Neural adaptive controlSelmic and Lewis \([2002](https://arxiv.org/html/2607.16313#bib.bib45)\)combines neural networks with Lyapunov\-based adaptation laws\. Whilst effective for parametric uncertainty, these methods assume a known system order and structure, requiring redesign when applied to systems with different dynamics\.
Robust control addresses uncertainty through worst\-case design\.H∞H\_\{\\infty\}controlZhouet al\.\([1996](https://arxiv.org/html/2607.16313#bib.bib46)\)minimises the worst\-case gain from disturbances to outputs\.μ\\mu\-synthesisDoyle \([1982](https://arxiv.org/html/2607.16313#bib.bib11)\)handles structured uncertainty\. Whilst providing strong theoretical guarantees, robust controllers are conservative and require bounds on uncertainty\. Recent work on learning\-based robust controlBerkenkampet al\.\([2017](https://arxiv.org/html/2607.16313#bib.bib5)\); Richardset al\.\([2018](https://arxiv.org/html/2607.16313#bib.bib19)\)combines data\-driven methods with robust control theory, but remains limited to specific system classes\. Simultaneous stabilisationVidyasagar \([2022](https://arxiv.org/html/2607.16313#bib.bib47)\)represented another promising approach to address the generalisability issues of conventional controllers\. The aim was to synthesise a single controller capable of stabilising multiple plants\. However, these controllers are limited to plants that share specific structural properties, such as possessing the same number of unstable poles or satisfying parity interlacing conditions\. In practice, these theoretical limitations also translate into significant engineering effort, as classical adaptive and robust controllers typically require careful, system\-specific modelling, synthesis, and tuning for each new plant\.
This work addresses these limitations by learning a single control policy that operates across systems with different structures and orders\.
### 2\.2Generalisation in Control Systems
The challenge of generalisation in control extends beyond parameter uncertainty to encompass structural variations, changing objectives, and diverse operating conditions\. Koopman operator theoryBrunton and Kutz \([2022](https://arxiv.org/html/2607.16313#bib.bib10)\)provides a theoretical framework for lifting nonlinear dynamics into infinite\-dimensional linear representations, potentially enabling transfer across system classes\. However, practical implementations require finite\-dimensional approximations that may not preserve important dynamical properties\. Behavioural systems theoryWillems \([2007](https://arxiv.org/html/2607.16313#bib.bib33)\)offers an alternative perspective, focusing on trajectories rather than state\-space representations\. Whilst this approach provides elegant theoretical insights, practical controller synthesis within this framework remains computationally challenging for complex systems\. This work maintains the computational tractability of state\-space methods whilst achieving the generalisation benefits sought by behavioural approaches\.
Recent advances in reinforcement learning have demonstrated impressive generalisation in game\-playing and simulated environmentsSchrittwieser and et\. al\. \([2020](https://arxiv.org/html/2607.16313#bib.bib34)\), yet transfer to physical systems remains challenging\. The reality gap, encompassing differences in dynamics, sensing, and actuation between simulation and reality, continues to limit practical deploymentZhaoet al\.\([2020](https://arxiv.org/html/2607.16313#bib.bib35)\)\. Sim\-to\-real transfer techniques, including domain randomisationTobin and et\. al\. \([2017](https://arxiv.org/html/2607.16313#bib.bib36)\)and system identificationTorricelli and Pons \([2018](https://arxiv.org/html/2607.16313#bib.bib37)\), partially address these challenges but require extensive engineering effort for each new system\. Our approach sidesteps many of these issues by operating directly on state\-space representations, avoiding the complexity of visual sim\-to\-real transfer whilst maintaining the benefits of learning\-based generalisation\.
## 3Problem Formulation
We consider a collection ofNNdynamical systems, denoted by𝒮i\\mathcal\{S\}\_\{i\}, where each system may be linear or nonlinear, stable or unstable, and may exhibit minimum or non\-minimum\-phase behaviour\. Each system𝒮i\\mathcal\{S\}\_\{i\}is characterised by its state𝐱pi\(t\)∈ℝnxp,i\\mathbf\{x\}\_\{pi\}\(t\)\\in\\mathbb\{R\}^\{n\_\{x\_\{p\},i\}\}, control input𝐮pi\(t\)∈ℝnup,i\\mathbf\{u\}\_\{pi\}\(t\)\\in\\mathbb\{R\}^\{n\_\{u\_\{p\},i\}\}, and output𝐲pi\(t\)∈ℝnyp,i\\mathbf\{y\}\_\{pi\}\(t\)\\in\\mathbb\{R\}^\{n\_\{y\_\{p\},i\}\}\.
For linear time\-invariant \(LTI\) systems, the dynamics are described by
𝐱˙pi\(t\)\\displaystyle\\dot\{\\mathbf\{x\}\}\_\{p\_\{i\}\}\(t\)=Api𝐱𝐩i\(t\)\+Bpi𝐮𝐩i\(t\),\\displaystyle=A\_\{p\_\{i\}\}\\mathbf\{x\_\{p\}\}\_\{i\}\(t\)\+B\_\{p\_\{i\}\}\\mathbf\{u\_\{p\}\}\_\{i\}\(t\),\(1\)𝐲pi\(t\)\\displaystyle\\mathbf\{y\}\_\{p\_\{i\}\}\(t\)=Cpi𝐱pi\(t\),\\displaystyle=C\_\{p\_\{i\}\}\\mathbf\{x\}\_\{p\_\{i\}\}\(t\),\(2\)whereApi∈ℝnxp,i×nxp,iA\_\{p\_\{i\}\}\\in\\mathbb\{R\}^\{n\_\{x\_\{p\},i\}\\times n\_\{x\_\{p\},i\}\},Bpi∈ℝnxp,i×nup,iB\_\{p\_\{i\}\}\\in\\mathbb\{R\}^\{n\_\{x\_\{p\},i\}\\times n\_\{u\_\{p\},i\}\}, andCpi∈ℝnyp,i×nxp,iC\_\{p\_\{i\}\}\\in\\mathbb\{R\}^\{n\_\{y\_\{p\},i\}\\times n\_\{x\_\{p\},i\}\}are system\-specific matrices\.
For nonlinear systems, such as the REMUS Autonomous underwater vehicle \(AUV\) dynamics considered in this work, the system evolution is given by
𝐱˙pi\(t\)\\displaystyle\\dot\{\\mathbf\{x\}\}\_\{p\_\{i\}\}\(t\)=𝐟𝐩i\(𝐱pi\(t\),𝐮pi\(t\)\),\\displaystyle=\\mathbf\{f\_\{p\}\}\_\{i\}\(\\mathbf\{x\}\_\{p\_\{i\}\}\(t\),\\mathbf\{u\}\_\{p\_\{i\}\}\(t\)\),\(3\)𝐲pi\(t\)\\displaystyle\\mathbf\{y\}\_\{p\_\{i\}\}\(t\)=𝐡𝐩i\(𝐱pi\(t\)\),\\displaystyle=\\mathbf\{h\_\{p\}\}\_\{i\}\(\\mathbf\{x\}\_\{p\_\{i\}\}\(t\)\),\(4\)where𝐟i:ℝnxp,i×ℝnup,i→ℝnxp,i\\mathbf\{f\}\_\{i\}:\\mathbb\{R\}^\{n\_\{x\_\{p\},i\}\}\\times\\mathbb\{R\}^\{n\_\{u\_\{p\},i\}\}\\rightarrow\\mathbb\{R\}^\{n\_\{x\_\{p\},i\}\}and𝐡pi:ℝnxp,i→ℝnyp,i\\mathbf\{h\}\_\{p\_\{i\}\}:\\mathbb\{R\}^\{n\_\{x\_\{p\},i\}\}\\rightarrow\\mathbb\{R\}^\{n\_\{y\_\{p\},i\}\}denote the nonlinear state transition and output mappings\.
The objective is to learn a single shared control policyπθ\\pi\_\{\\theta\}that can be deployed across all systems𝒮i\\mathcal\{S\}\_\{i\}:
πθ:\(𝐱𝐩i,t−Th\+1:t,𝐫t−Th\+1:t,ϕi\)↦𝐮𝐩i,t:t\+H−1,\\pi\_\{\\theta\}:\\;\(\\mathbf\{x\_\{p\}\}\_\{i,t\-T\_\{h\}\+1:t\},\\mathbf\{r\}\_\{t\-T\_\{h\}\+1:t\},\\boldsymbol\{\\phi\}\_\{i\}\)\\;\\mapsto\\;\\mathbf\{u\_\{p\}\}\_\{i,t:t\+H\-1\},\(5\)
whereThT\_\{h\}denotes the history window,HHis the prediction horizon, andθ\\thetaare the shared parameters of the Generalist Controller\. The policy receives a system tag or identifier as input, denoted byϕi\\phi\_\{i\}, which is simply a labelled number assigned to each system\. This label is assumed to be known at deployment\. We emphasise that the controller does not perform implicit system identification or zero\-shot adaptation to unknown dynamics\. The need for this tag is similar to post\-training human operation, where control is typically executed with awareness of which system is being controlled\. This formulation enables receding\-horizon control, allowing a single policy to be deployed across known heterogeneous linear and nonlinear systems without per\-system tuning\.
## 4The Proposed Generalist Controller
The Generalist Controller employs a hierarchical architecture that progressively transforms raw state information into control actions\. Figure[1](https://arxiv.org/html/2607.16313#S4.F1)illustrates the complete data flow: feature encoders process states with validity masking, references, and system parameters; temporal processors capture dynamics through parallel LSTMs and attention; and a mixture of experts generates control actions that are applied to the system\.
For clarity, we summarise the operation of the proposed controller\. At each timestep, the policy receives a history of measured states, the corresponding reference trajectory, and a discrete system tag that tells the controller which system it is controlling so it can select the appropriate control strategy for that specific system\. State histories are masked to allow a unified representation across systems of different dimensions\. Encoded features are processed by parallel temporal modules and mapped to control actions via a mixture\-of\-experts module\. During training, the policy is optimised by supervised learning of LQI control actions, while at deployment it operates directly on measured states without online optimisation or per\-system retuning\.
Figure 1:Architecture of the proposed Generalist Controller### 4\.1Feature Encoding
The feature encoding stage processes four input streams to create a unified representation through parallel encoding networks\.
The first two encoders process state vectors with validity masking to handle variable\-order systems\. Given the zero\-padded state history𝐗∈ℝTh×nmax\\mathbf\{X\}\\in\\mathbb\{R\}^\{T\_\{h\}\\times n\_\{\\max\}\}and validity mask𝐌∈\{0,1\}Th×nmax\\mathbf\{M\}\\in\\\{0,1\\\}^\{T\_\{h\}\\times n\_\{\\max\}\}, the masked state is computed as𝐗~=𝐗⊙𝐌\\tilde\{\\mathbf\{X\}\}=\\mathbf\{X\}\\odot\\mathbf\{M\}, where⊙\\odotdenotes the Hadamard product\. The state encoders map this to latent representations:
𝐟1\\displaystyle\\mathbf\{f\}\_\{1\}=𝐖2\(1\)σ\(𝐖1\(1\)vec\(𝐗~\)\+𝐛1\(1\)\)\+𝐛2\(1\)\\displaystyle=\\mathbf\{W\}\_\{2\}^\{\(1\)\}\\,\\sigma\\\!\\left\(\\mathbf\{W\}\_\{1\}^\{\(1\)\}\\,\\text\{vec\}\(\\tilde\{\\mathbf\{X\}\}\)\+\\mathbf\{b\}\_\{1\}^\{\(1\)\}\\right\)\+\\mathbf\{b\}\_\{2\}^\{\(1\)\}\(6\)𝐟2\\displaystyle\\mathbf\{f\}\_\{2\}=𝐖2\(2\)σ\(𝐖1\(2\)vec\(𝐗~\)\+𝐛1\(2\)\)\+𝐛2\(2\)\\displaystyle=\\mathbf\{W\}\_\{2\}^\{\(2\)\}\\,\\sigma\\\!\\left\(\\mathbf\{W\}\_\{1\}^\{\(2\)\}\\,\\text\{vec\}\(\\tilde\{\\mathbf\{X\}\}\)\+\\mathbf\{b\}\_\{1\}^\{\(2\)\}\\right\)\+\\mathbf\{b\}\_\{2\}^\{\(2\)\}\(7\)whereσ\(⋅\)\\sigma\(\\cdot\)denotes the ReLU activation function,vec\(⋅\)\\text\{vec\}\(\\cdot\)vectorises the matrix input, and\{𝐖j\(i\),𝐛j\(i\)\}\\\{\\mathbf\{W\}\_\{j\}^\{\(i\)\},\\mathbf\{b\}\_\{j\}^\{\(i\)\}\\\}are learnable parameters for encoderiiand layerjj\. The third encoder processes the reference trajectory𝐫∈ℝTh\\mathbf\{r\}\\in\\mathbb\{R\}^\{T\_\{h\}\}, whilst the fourth encoder processes the system parameter vectorϕ∈ℝnϕ\\boldsymbol\{\\phi\}\\in\\mathbb\{R\}^\{n\_\{\\phi\}\}:
𝐟3\\displaystyle\\mathbf\{f\}\_\{3\}=𝐖2\(3\)σ\(𝐖1\(3\)𝐫\+𝐛1\(3\)\)\+𝐛2\(3\)\\displaystyle=\\mathbf\{W\}\_\{2\}^\{\(3\)\}\\,\\sigma\\\!\\left\(\\mathbf\{W\}\_\{1\}^\{\(3\)\}\\mathbf\{r\}\+\\mathbf\{b\}\_\{1\}^\{\(3\)\}\\right\)\+\\mathbf\{b\}\_\{2\}^\{\(3\)\}\(8\)𝐟4\\displaystyle\\mathbf\{f\}\_\{4\}=𝐖2\(4\)σ\(𝐖1\(4\)ϕ\+𝐛1\(4\)\)\+𝐛2\(4\)\\displaystyle=\\mathbf\{W\}\_\{2\}^\{\(4\)\}\\,\\sigma\\\!\\left\(\\mathbf\{W\}\_\{1\}^\{\(4\)\}\\boldsymbol\{\\phi\}\+\\mathbf\{b\}\_\{1\}^\{\(4\)\}\\right\)\+\\mathbf\{b\}\_\{2\}^\{\(4\)\}\(9\)The encoded features are concatenated to form the composite feature vector serving as input to the temporal processor:
𝐟=\[𝐟1𝐟2𝐟3𝐟4\]∈ℝdf\\mathbf\{f\}=\\begin\{bmatrix\}\\mathbf\{f\}\_\{1\}\\\\ \\mathbf\{f\}\_\{2\}\\\\ \\mathbf\{f\}\_\{3\}\\\\ \\mathbf\{f\}\_\{4\}\\end\{bmatrix\}\\in\\mathbb\{R\}^\{d\_\{f\}\}\(10\)wheredf=∑i=14did\_\{f\}=\\sum\_\{i=1\}^\{4\}d\_\{i\}denotes the total feature dimension, withdid\_\{i\}being the output dimension of encoderii\.
### 4\.2Temporal Processing
The temporal processor captures dynamics at multiple timescales through two parallel LSTM networks and a multi\-head attention mechanism\.
The first LSTM processes the complete feature sequence\{𝐟k\}k=t−Th\+1t\\\{\\mathbf\{f\}\_\{k\}\\\}\_\{k=t\-T\_\{h\}\+1\}^\{t\}to capture immediate dynamics\.
At each timestepkk, the LSTM updates its hidden state according to:
𝐢k\(1\)\\displaystyle\\mathbf\{i\}\_\{k\}^\{\(1\)\}=σg\(𝐖i\(1\)𝐟k\+𝐔i\(1\)𝐡k−1\(1\)\+𝐛i\(1\)\)\\displaystyle=\\sigma\_\{g\}\\\!\\left\(\\mathbf\{W\}\_\{i\}^\{\(1\)\}\\mathbf\{f\}\_\{k\}\+\\mathbf\{U\}\_\{i\}^\{\(1\)\}\\mathbf\{h\}\_\{k\-1\}^\{\(1\)\}\+\\mathbf\{b\}\_\{i\}^\{\(1\)\}\\right\)\(11\)𝐠k\(1\)\\displaystyle\\mathbf\{g\}\_\{k\}^\{\(1\)\}=σg\(𝐖g\(1\)𝐟k\+𝐔g\(1\)𝐡k−1\(1\)\+𝐛g\(1\)\)\\displaystyle=\\sigma\_\{g\}\\\!\\left\(\\mathbf\{W\}\_\{g\}^\{\(1\)\}\\mathbf\{f\}\_\{k\}\+\\mathbf\{U\}\_\{g\}^\{\(1\)\}\\mathbf\{h\}\_\{k\-1\}^\{\(1\)\}\+\\mathbf\{b\}\_\{g\}^\{\(1\)\}\\right\)\(12\)𝐨k\(1\)\\displaystyle\\mathbf\{o\}\_\{k\}^\{\(1\)\}=σg\(𝐖o\(1\)𝐟k\+𝐔o\(1\)𝐡k−1\(1\)\+𝐛o\(1\)\)\\displaystyle=\\sigma\_\{g\}\\\!\\left\(\\mathbf\{W\}\_\{o\}^\{\(1\)\}\\mathbf\{f\}\_\{k\}\+\\mathbf\{U\}\_\{o\}^\{\(1\)\}\\mathbf\{h\}\_\{k\-1\}^\{\(1\)\}\+\\mathbf\{b\}\_\{o\}^\{\(1\)\}\\right\)\(13\)𝐜~k\(1\)\\displaystyle\\tilde\{\\mathbf\{c\}\}\_\{k\}^\{\(1\)\}=tanh\(𝐖c\(1\)𝐟k\+𝐔c\(1\)𝐡k−1\(1\)\+𝐛c\(1\)\)\\displaystyle=\\tanh\\\!\\left\(\\mathbf\{W\}\_\{c\}^\{\(1\)\}\\mathbf\{f\}\_\{k\}\+\\mathbf\{U\}\_\{c\}^\{\(1\)\}\\mathbf\{h\}\_\{k\-1\}^\{\(1\)\}\+\\mathbf\{b\}\_\{c\}^\{\(1\)\}\\right\)\(14\)𝐜k\(1\)\\displaystyle\\mathbf\{c\}\_\{k\}^\{\(1\)\}=𝐠k\(1\)⊙𝐜k−1\(1\)\+𝐢k\(1\)⊙𝐜~k\(1\)\\displaystyle=\\mathbf\{g\}\_\{k\}^\{\(1\)\}\\odot\\mathbf\{c\}\_\{k\-1\}^\{\(1\)\}\+\\mathbf\{i\}\_\{k\}^\{\(1\)\}\\odot\\tilde\{\\mathbf\{c\}\}\_\{k\}^\{\(1\)\}\(15\)𝐡k\(1\)\\displaystyle\\mathbf\{h\}\_\{k\}^\{\(1\)\}=𝐨k\(1\)⊙tanh\(𝐜k\(1\)\)\\displaystyle=\\mathbf\{o\}\_\{k\}^\{\(1\)\}\\odot\\tanh\\\!\\left\(\\mathbf\{c\}\_\{k\}^\{\(1\)\}\\right\)\(16\)
whereσg\(⋅\)\\sigma\_\{g\}\(\\cdot\)denotes the sigmoid function,𝐢k\(1\)\\mathbf\{i\}\_\{k\}^\{\(1\)\},𝐠k\(1\)\\mathbf\{g\}\_\{k\}^\{\(1\)\}, and𝐨k\(1\)\\mathbf\{o\}\_\{k\}^\{\(1\)\}represent the input, forget, and output gates respectively,𝐜k\(1\)\\mathbf\{c\}\_\{k\}^\{\(1\)\}is the cell state, and𝐡k\(1\)∈ℝdh\\mathbf\{h\}\_\{k\}^\{\(1\)\}\\in\\mathbb\{R\}^\{d\_\{h\}\}is the hidden state\.
The second LSTM operates on a downsampled sequence with strideτ\\tauto capture slower dynamics and longer\-term patterns\. Let𝒯τ=\{t−Th\+1,t−Th\+1\+τ,…,t\}\\mathcal\{T\}\_\{\\tau\}=\\\{t\-T\_\{h\}\+1,t\-T\_\{h\}\+1\+\\tau,\\ldots,t\\\}denote the downsampled time indices\. The second LSTM processes\{𝐟k\}k∈𝒯τ\\\{\\mathbf\{f\}\_\{k\}\\\}\_\{k\\in\\mathcal\{T\}\_\{\\tau\}\}using the same gating mechanism with independent parameters\{𝐖\(2\),𝐔\(2\),𝐛\(2\)\}\\\{\\mathbf\{W\}^\{\(2\)\},\\mathbf\{U\}^\{\(2\)\},\\mathbf\{b\}^\{\(2\)\}\\\}, yielding hidden state𝐡t\(2\)∈ℝdh\\mathbf\{h\}\_\{t\}^\{\(2\)\}\\in\\mathbb\{R\}^\{d\_\{h\}\}\.
The final hidden states from both LSTMs are concatenated to form the composite temporal feature vector:
𝐳=\[𝐡t\(1\)𝐡t\(2\)\]∈ℝ2dh\\mathbf\{z\}=\\begin\{bmatrix\}\\mathbf\{h\}\_\{t\}^\{\(1\)\}\\\\ \\mathbf\{h\}\_\{t\}^\{\(2\)\}\\end\{bmatrix\}\\in\\mathbb\{R\}^\{2d\_\{h\}\}\(17\)
The concatenated features are further processed through a multi\-head attention mechanism\. We employNh=3N\_\{h\}=3attention heads, where each head computes scaled dot\-product attention over the temporal feature vector𝐳\\mathbf\{z\}\.
For each headh∈\{1,…,Nh\}h\\in\\\{1,\\ldots,N\_\{h\}\\\}, the query, key, and value projections are computed as:
𝐐\(h\)\\displaystyle\\mathbf\{Q\}^\{\(h\)\}=𝐖Q\(h\)𝐳,𝐊\(h\)=𝐖K\(h\)𝐳,𝐕\(h\)=𝐖V\(h\)𝐳\\displaystyle=\\mathbf\{W\}\_\{Q\}^\{\(h\)\}\\mathbf\{z\},\\quad\\mathbf\{K\}^\{\(h\)\}=\\mathbf\{W\}\_\{K\}^\{\(h\)\}\\mathbf\{z\},\\quad\\mathbf\{V\}^\{\(h\)\}=\\mathbf\{W\}\_\{V\}^\{\(h\)\}\\mathbf\{z\}\(18\)where𝐖Q\(h\),𝐖K\(h\),𝐖V\(h\)∈ℝdk×2dh\\mathbf\{W\}\_\{Q\}^\{\(h\)\},\\mathbf\{W\}\_\{K\}^\{\(h\)\},\\mathbf\{W\}\_\{V\}^\{\(h\)\}\\in\\mathbb\{R\}^\{d\_\{k\}\\times 2d\_\{h\}\}are learnable projection matrices anddk=2dh/Nhd\_\{k\}=2d\_\{h\}/N\_\{h\}is the dimension per head\.
The attention output for each head is:
𝐚\(h\)=softmax\(𝐐\(h\)𝐊\(h\)⊤dk\)𝐕\(h\)\\mathbf\{a\}^\{\(h\)\}=\\text\{softmax\}\\left\(\\frac\{\\mathbf\{Q\}^\{\(h\)\}\{\\mathbf\{K\}^\{\(h\)\}\}^\{\\top\}\}\{\\sqrt\{d\_\{k\}\}\}\\right\)\\mathbf\{V\}^\{\(h\)\}\(19\)
The outputs from all heads are concatenated and projected to form the final attended representation:
𝐳att=𝐖O\[𝐚\(1\)⋮𝐚\(Nh\)\]\+𝐳\\mathbf\{z\}\_\{\\text\{att\}\}=\\mathbf\{W\}\_\{O\}\\begin\{bmatrix\}\\mathbf\{a\}^\{\(1\)\}\\\\ \\vdots\\\\ \\mathbf\{a\}^\{\(N\_\{h\}\)\}\\end\{bmatrix\}\+\\mathbf\{z\}\(20\)where𝐖O∈ℝ2dh×2dh\\mathbf\{W\}\_\{O\}\\in\\mathbb\{R\}^\{2d\_\{h\}\\times 2d\_\{h\}\}is the output projection matrix\. The attended feature vector𝐳att∈ℝ2dh\\mathbf\{z\}\_\{\\text\{att\}\}\\in\\mathbb\{R\}^\{2d\_\{h\}\}serves as input to the mixture of experts control stage\.
### 4\.3Mixture of Experts Control
The final stage employsMMexpert networks, each specialising in different control strategies\. Each expertiiis a three\-layer feedforward network that maps the attended temporal feature vector𝐳att\\mathbf\{z\}\_\{\\text\{att\}\}to a multi\-step control sequence of horizonHH:
𝐮𝐩\(i\)=𝐖3\(ei\)σ\(𝐖2\(ei\)σ\(𝐖1\(ei\)𝐳att\+𝐛1\(ei\)\)\+𝐛2\(ei\)\)\+𝐛3\(ei\)\\mathbf\{u\_\{p\}\}^\{\(i\)\}=\\mathbf\{W\}\_\{3\}^\{\(e\_\{i\}\)\}\\,\\sigma\\\!\\left\(\\mathbf\{W\}\_\{2\}^\{\(e\_\{i\}\)\}\\,\\sigma\\\!\\left\(\\mathbf\{W\}\_\{1\}^\{\(e\_\{i\}\)\}\\mathbf\{z\}\_\{\\text\{att\}\}\+\\mathbf\{b\}\_\{1\}^\{\(e\_\{i\}\)\}\\right\)\+\\mathbf\{b\}\_\{2\}^\{\(e\_\{i\}\)\}\\right\)\+\\mathbf\{b\}\_\{3\}^\{\(e\_\{i\}\)\}\(21\)
where𝐮𝐩\(i\)∈ℝH\\mathbf\{u\_\{p\}\}^\{\(i\)\}\\in\\mathbb\{R\}^\{H\}is the control sequence predicted by expertii,σ\(⋅\)\\sigma\(\\cdot\)denotes the ReLU activation function, and\{𝐖j\(ei\),𝐛j\(ei\)\}\\\{\\mathbf\{W\}\_\{j\}^\{\(e\_\{i\}\)\},\\mathbf\{b\}\_\{j\}^\{\(e\_\{i\}\)\}\\\}are learnable parameters for expertiiand layerjj\. Layer normalisation is applied after each hidden layer\.
A gating network computes soft weights for expert combination based on the attended temporal features:
𝜸\\displaystyle\\boldsymbol\{\\gamma\}=𝐖g𝐳att\+𝐛g\\displaystyle=\\mathbf\{W\}\_\{g\}\\mathbf\{z\}\_\{\\text\{att\}\}\+\\mathbf\{b\}\_\{g\}\(22\)αi\\displaystyle\\alpha\_\{i\}=exp\(γi\)∑j=1Mexp\(γj\),i∈\{1,…,M\}\\displaystyle=\\frac\{\\exp\(\\gamma\_\{i\}\)\}\{\\sum\_\{j=1\}^\{M\}\\exp\(\\gamma\_\{j\}\)\},\\quad i\\in\\\{1,\\ldots,M\\\}\(23\)where𝜸∈ℝM\\boldsymbol\{\\gamma\}\\in\\mathbb\{R\}^\{M\}are the gate logits andαi\\alpha\_\{i\}are the resulting mixture weights satisfying∑i=1Mαi=1\\sum\_\{i=1\}^\{M\}\\alpha\_\{i\}=1\.
The final control sequence is computed as the weighted combination of expert outputs:
𝐮𝐩^=∑i=1Mαi𝐮𝐩\(i\)∈ℝH\\hat\{\\mathbf\{u\_\{p\}\}\}=\\sum\_\{i=1\}^\{M\}\\alpha\_\{i\}\\mathbf\{u\_\{p\}\}^\{\(i\)\}\\in\\mathbb\{R\}^\{H\}\(24\)
The system evolves according to its dynamics in Eq\. \([1](https://arxiv.org/html/2607.16313#S3.E1)\), producing new state measurements that are fed back to the controller, and the process repeats\.
## 5Training Framework
We train the Generalist Controller on expert demonstrations from 25 dynamical systems spanning ordersn∈\{2,3,4\}n\\in\\\{2,3,4\\\}\.
### 5\.1Training Data Generation
Training data is generated by simulating each system under LQI control with step reference signals\. Step amplitudes are sampled from\[−20,20\]\[\-20,20\]using non\-uniform discrete intervals, coarse spacing \(intervals of 5 or 10\) in some regions and finer resolution \(intervals of 0\.2 or 1\) in others to ensure coverage across both small and large reference changes\. For each system\-amplitude pair, trajectories are recorded over a fixed simulation horizon, yielding state, reference, and control tuples\. This procedure produces approximately 314,630 training demonstrations across all 25 systems\.
### 5\.2Training Configuration
Training sequences employ sliding windows with historyH=8H=8and prediction horizonK=3K=3\. States𝐱t−H:t∈ℝH×n\\mathbf\{x\}\_\{t\-H:t\}\\in\\mathbb\{R\}^\{H\\times n\}are zero\-padded to maximum dimensionnmax=4n\_\{\\max\}=4, with validity mask𝐦∈\{0,1\}H×nmax\\mathbf\{m\}\\in\\\{0,1\\\}^\{H\\times n\_\{\\max\}\}indicating real versus padded dimensions\. The history lengthH=8H=8was selected as a trade\-off between capturing sufficient temporal information to infer system dynamics and maintaining low computational cost\. Similarly, the prediction horizonK=3K=3provides short\-term foresight suitable for receding\-horizon control while avoiding error accumulation associated with longer open\-loop predictions\. These hyperparameters were fixed across all systems to ensure consistency and to avoid system\-specific tuning\. No claim is made that these values are optimal, rather, they represent pragmatic choices that were found to work reliably across the considered benchmark systems\.
The hierarchical architecture comprises: \(i\) encoders \(state encoders\) with masked attention processing state trajectories, \(ii\) parameter and reference encoders mapping to a common latent space, \(iii\) parallel multi\-scale LSTMs capturing temporal dependencies at different resolutions, \(iv\) multi\-head attention for temporal aggregation, and \(v\) a mixture\-of\-experts controller withM=3M=3experts:
𝐮t:t\+K=∑i=1Mαi\(𝐡t\)⋅𝒞i\(𝐡t\)\\mathbf\{u\}\_\{t:t\+K\}=\\sum\_\{i=1\}^\{M\}\\alpha\_\{i\}\(\\mathbf\{h\}\_\{t\}\)\\cdot\\mathcal\{C\}\_\{i\}\(\\mathbf\{h\}\_\{t\}\)\(25\)whereαi\\alpha\_\{i\}are learned gating weights and𝒞i\\mathcal\{C\}\_\{i\}represents expertii\.
Training minimises mean squared error with AdamW optimiser \(η=10−3\\eta=10^\{\-3\}, cosine annealing\), gradient clipping \(‖∇‖2≤1\.0\\\|\\nabla\\\|\_\{2\}\\leq 1\.0\), and weight decay \(λ=10−5\\lambda=10^\{\-5\}\)\. The model contains approximately 100,000 parameters and trains in six hours on a single GPU\.
## 6Simulation and Experimental Results
This section evaluates the proposed Generalist Controller across diverse dynamical systems\. We first present the benchmark systems, then report simulation results on six representative systems spanning different orders and dynamic behaviours\. We then validate the approach through hardware experiments on a Crazyflie 2\.1\+ nano\-quadrotor, demonstrating successful sim\-to\-real transfer\. Finally, we assess the controller’s robustness under perturbed conditions not encountered during training, including actuator saturation, disturbances, and measurement noise\.
### 6\.1Benchmark Systems
The 25 benchmark systems encompass diverse characteristics and applications, fundamental mechanical systems \(Mass\-Spring\-Damper, Damped Oscillator, Two\-Mass Spring\), electrical circuits \(RLC Circuit\), aerospace systems \(Crazyflie quadrotor, Aircraft Longitudinal dynamics\), robotic platforms \(Differential Drive, Servo System\), process control systems \(Two\-Tank System, Coupled Tanks, HVAC Zone\), and systems with challenging dynamics \(Non\-Minimum Phase, Negative Stiffness, unstable integrators\)\. Several of these systems were previously analysed inAgyeiet al\.\([2025b](https://arxiv.org/html/2607.16313#bib.bib2)\), including the CSTR Chemical Reactor, nonlinear AUV yaw dynamics, and Two\-Mass Spring system, providing established baselines for comparison\.
### 6\.2Simulation Results
In the simulation section, we further assess and present results for six representative systems selected from the benchmark systems: the CSTR Chemical Process \(non\-minimum phase\), an Unstable System, Boeing 747 Aircraft \(longitudinal dynamics\), Hydraulic Actuator, Nonlinear AUV \(REMUS yaw dynamics\), and Two\-Mass Spring\. Table[2](https://arxiv.org/html/2607.16313#S6.T2)presents these results\. In the first two columns, system descriptions and state\-space equations are provided\. The third column shows controller performance on step response tracking with unit step references, comparing the proposed Generalist Controller against the LQI method\. Furthermore, in the fourth column, we present simulation results for sinusoidal signal tracking from non\-zero initial states not encountered during training, to assess the generalisability and resilience of the algorithm when initial conditions change\. The controller demonstrates similar successful performance on ramp following and composite reference signals, with none of these complex references encountered by the model during training\. Due to space constraints, the paper presents representative step\-response and sinusoidal tracking results, while additional evaluations under alternative reference trajectories were conducted and yielded consistent qualitative behaviour\.
Table[1](https://arxiv.org/html/2607.16313#S6.T1)reports a direct quantitative comparison between the proposed Generalist Controller and the system\-specific LQI controllers using standard control performance metricsSarhadi \([2025](https://arxiv.org/html/2607.16313#bib.bib20)\)\. Across all simulated benchmark systems, the proposed Generalist Controller \(GC\) achieves performance comparable to LQI in terms of rise time, overshoot, and steady\-state error, despite being deployed without per\-system tuning\. In several cases, including the hydraulic actuator and Boeing 747 longitudinal dynamics, the GC exhibits similar or slightly improved settling times relative to LQI, while maintaining comparable control effort\. For more challenging systems, such as the non\-minimum\-phase and two\-mass spring benchmarks, the GC demonstrates slightly increased settling times\. Overall, the results indicate that the GC preserves the essential closed\-loop behaviour of classical LQI controllers while providing a single deployable policy across heterogeneous systems\.
Table 1:Performance metrics comparison between LQI and the Proposed Method
### 6\.3Experimental Results
We validate the proposed controller on hardware using a Crazyflie 2\.1\+ nano\-quadrotor\. Figure[2](https://arxiv.org/html/2607.16313#S6.F2)shows the experimental setup\. The Generalist Controller runs on a Linux computer with Python implementation, communicating with the quadcopter via the Crazyradio 2\.0 USB dongle operating at 2\.4GHz\. The controller receives state feedback at 100Hz and computes control commands in real\-time, demonstrating successful deployment of the learned policy on resource\-constrained embedded systems\.
Figure 2:Hardware validation: Crazyflie in flight with the proposed algorithmFigure[3](https://arxiv.org/html/2607.16313#S6.F3)presents a direct comparison between simulation and hardware performance for altitude control\. The physical system tracks the reference with similar transient behaviour and steady\-state accuracy to simulation, confirming that the controller generalises effectively to real hardware without fine\-tuning, despite unmodelled aerodynamic effects, sensor noise, and actuator delays\.


Figure 3:Sim\-to\-real transfer: Crazyflie 2\.1\+ altitude control in \(Left\) simulation and \(Right\) hardware\.
### 6\.4Further Evaluation Under Perturbations
To assess the robustness and generalisation capability of the proposed Generalist Controller beyond nominal operating conditions, we conduct a series of experiments under perturbed test scenarios not encountered during training\.
We first evaluate the controller under actuator amplitude saturation constraints applied to the challenging Two\-Mass Spring \(TMS\) system\. Fig\.[4](https://arxiv.org/html/2607.16313#S6.F4)presents results for two saturation limits:\|uc\|≤0\.5\|u\_\{c\}\|\\leq 0\.5and\|uc\|≤0\.25\|u\_\{c\}\|\\leq 0\.25\. Under moderate saturation \(\|uc\|≤0\.5\|u\_\{c\}\|\\leq 0\.5\), the proposed method successfully tracks the reference with minimal overshoot, whilst the LQI controller exhibits significant oscillatory behaviour before eventually converging\. When the saturation constraint is tightened to\|uc\|≤0\.25\|u\_\{c\}\|\\leq 0\.25, the LQI controller becomes unstable and diverges, whereas the proposed method maintains stable tracking despite the limited control authority\. These results demonstrate that the baseline LQI controller fails to maintain performance under actuator constraints, whereas the learned policy sustains stable tracking despite these unseen limitations\.
We further evaluate performance under input rate saturation applied to the CSTR chemical process system\. Figure[5](https://arxiv.org/html/2607.16313#S6.F5)shows the response when the rate of change of the control signal is constrained\. The LQI controller, unable to adapt to the rate limitation, produces large oscillations in both output and control signal as it attempts corrections that are subsequently clipped, encountering the windup phenomenon\. In contrast, the proposed method, though never exposed to rate constraints during training, maintains smooth reference tracking with a well\-behaved control signal\.
Finally, we assess performance under combined measurement noise and external disturbances for both TMS and CSTR systems\. Fig\.[6](https://arxiv.org/html/2607.16313#S6.F6)presents the results with noise injected into state measurements aftert=25t=25s\. For the CSTR system, the proposed method demonstrates superior performance compared to LQI, maintaining tighter tracking with reduced output variance despite the noisy measurements\. The LQI controller exhibits highly aggressive control behaviour with large\-amplitude oscillations in the control signal, which propagate to the output\. For the TMS system, both controllers maintain stability under noise, though the proposed method shows slightly more variation in the output\. However, examining the control signals reveals that the LQI controller demands significantly more aggressive actuation with peak\-to\-peak amplitudes substantially larger than those of the proposed method\. This aggressive behaviour, whilst achieving marginally tighter tracking in the TMS case, would be problematic in practical applications where actuator wear, energy consumption, and excitation of unmodelled high\-frequency dynamics are concerns\.
These experiments demonstrate that the proposed controller generalises to operating conditions outside the training distribution, including actuator constraints and measurement corruption not seen during training\. The successful performance under amplitude saturation, rate saturation, disturbance and noise injection provides evidence that the learned policy captures robust control principles rather than merely memorising input\-output mappings from the training data\.


Figure 4:TMS system under actuator amplitude saturation\. Left:\|uc\|≤0\.25\|u\_\{c\}\|\\leq 0\.25, Right:\|uc\|≤0\.5\|u\_\{c\}\|\\leq 0\.5Figure 5:CSTR Chemical process system under input rate saturation \(\|uc˙\|=0\.5\|\\dot\{u\_\{c\}\}\|=0\.5\)

Figure 6:Performance evaluation under combined measurement noise and external disturbance\. Left: TMS\. Right: CSTRTable 2:Results of the proposed generalist controller on multiple benchmarks\.
## 7Ablation Studies
To validate the design choices of the proposed generalist controller architecture, we conduct an ablation study, examining the impact of key hyperparameters on control performance\. We evaluate the model across five diverse dynamical systems: a double integrator representing a point\-mass motion control, Crazyflie quadrotor for autonomous aerial vehicle control, a non\-minimum phase chemical reactor exhibiting inverse response, a mass\-spring\-damper system, and a Building HVAC Zone \(Two zones, thermal interaction\)\. Each ablation systematically varies a single architectural component while maintaining all other parameters constant\.
### 7\.1Hidden Dimension
Network capacity plays a crucial role in the model’s ability to learn complex temporal dynamics and generalize across systems\. We examine three hidden dimension configurations:d∈\{16,32,64\}d\\in\\\{16,32,64\\\}, whered=32d=32is the baseline\. Figure[7](https://arxiv.org/html/2607.16313#S7.F7)illustrates the impact of hidden dimension on both test performance and training dynamics\. The left panel reveals that reducing the hidden dimension tod=16d=16significantly impairs performance across all systems, with training loss increasing by more than an order of magnitude \(from9\.43×10−49\.43\\times 10^\{\-4\}to1\.02×10−21\.02\\times 10^\{\-2\}\)\. This degradation is particularly pronounced for the Crazyflie system, where MSE increases from5\.9×10−25\.9\\times 10^\{\-2\}to1\.351\.35, indicating that the reduced capacity network struggles to capture the intricate dynamics of underactuated aerial vehicles\. Conversely, increasing the hidden dimension tod=64d=64consistently improves performance across all test systems and achieves the lowest training loss \(4\.01×10−44\.01\\times 10^\{\-4\}\)\. The training convergence curves in the right panel demonstrate that the larger network not only reaches lower final loss values but also exhibits smoother convergence dynamics\. The Crazyflie system benefits most from increased capacity, with MSE reducing from5\.9×10−25\.9\\times 10^\{\-2\}to1\.44×10−11\.44\\times 10^\{\-1\}\. However, this performance gain comes at the cost of approximately4×4\\timesincrease in parameters \(from5959K to232232K\)\.
The baseline configuration withd=32d=32represents a pragmatic choice that balances model expressiveness with computational constraints\. Whiled=64d=64offers superior performance, the baseline achieves competitive results across all systems with significantly fewer parameters, making it more suitable for resource\-constrained deployment scenarios such as embedded control applications\.
Figure 7:Ablation study results\. Left: Output MSE across systems\. Right: Training loss convergence
### 7\.2Mixture of Experts
The mixture of experts \(MoE\) mechanism is a critical component for enabling the proposed generalist controller to handle heterogeneous dynamical systems\. We investigate the effect of varying the number of expert networksM∈\{1,3,5\}M\\in\\\{1,3,5\\\}on control performance, whereM=3M=3represents the baseline configuration\. Figure[8](https://arxiv.org/html/2607.16313#S7.F8)presents the ablation results for the number of experts\. The left panel shows output mean squared error \(MSE\) across all test systems for different expert configurations\. The single expert configuration \(M=1M=1\) demonstrates degraded performance compared to the baseline, particularly evident for the Crazyflie quadrotor where MSE increases by over two orders of magnitude \(from5\.9×10−25\.9\\times 10^\{\-2\}to3\.983\.98\)\. This substantial performance drop confirms that a single expert network lacks sufficient capacity to capture the diverse dynamics across multiple systems\.
Increasing the number of experts toM=5M=5yields marginal improvements in training loss \(reducing from9\.43×10−49\.43\\times 10^\{\-4\}to5\.87×10−45\.87\\times 10^\{\-4\}\) and provides the best performance on the HVAC system \(5\.18×10−45\.18\\times 10^\{\-4\}MSE\)\. However, the improvement comes at the cost of increased model complexity, as shown in the complexity\-performance trade\-off in the right panel of Figure[8](https://arxiv.org/html/2607.16313#S7.F8)\. The baseline configuration withM=3M=3experts achieves59,18059,180parameters and strikes an optimal balance between model capacity and computational efficiency\.
It is important to emphasise that the choice ofM=3M=3experts is not claimed to be universally optimal\. Rather, it represents a trade\-off between model capacity and computational efficiency for the class of systems considered in this study\. As the complexity and diversity of target systems increase, a larger number of experts may be required to capture additional dynamical regimes\. The ablation study is therefore intended to demonstrate the effect of expert multiplicity, rather than to identify a globally optimal value ofMM\. Odd numbers of experts \(M=\{1,3,5\}M=\\\{1,3,5\\\}\) were considered to enable a direct comparison against the single\-expert baseline while progressively increasing model capacity, without expanding the ablation study beyond the available page and computational budget\.
Figure 8:Ablation study on the MOE module\. Left: Output MSE comparison\. Right: Trade\-off between model complexity \(parameters\) and average output MSE\.To further examine whether the mixture\-of\-experts architecture exhibits meaningful specialisation, we consider a configuration with five experts, which provides finer granularity for interpreting gating behaviour compared to the three\-expert baseline\. Fig\.[9](https://arxiv.org/html/2607.16313#S7.F9)presents the gate\-weight heatmap, revealing non\-uniform expert activation patterns\. Expert 1 dominates the non\-minimum\-phase \(45%\) and damped oscillator \(46\.0%\) systems, while Expert 4 is strongly activated for the Boeing 747 \(98%\) and Crazyflie \(95%\)\. The remaining experts receive consistently low gate weights across all systems\. This pattern indicates that expert differentiation emerges implicitly through optimisation, despite joint training under a single global loss\.
Figure 9:Average gating weights of the mixture\-of\-experts controller across representative dynamical systems\.
### 7\.3Key Findings
The ablation studies yielded several important insights regarding the architectural components\. The mixture of experts proves essential for effective generalisation across diverse systems\. When reduced to a single expert configuration \(M=1\), the controller fails to adapt to different dynamical regimes, with particularly severe degradation observed on the Crazyflie quadrotor system\. Three experts \(M=3\) provide sufficient specialisation to handle stable, unstable, and oscillatory dynamics whilst maintaining parameter efficiency\. Increasing to five experts yields negligible performance gains whilst substantially increasing computational complexity\. Network capacity significantly impacts controller performance across the benchmark systems\. A hidden dimension of d=16 proves insufficient for capturing the complex dynamics of multi\-system control, resulting in order\-of\-magnitude performance degradation particularly evident in higher\-dimensional systems\. Whilst d=64 offers optimal performance with the lowest tracking errors, the intermediate configuration of d=32 achieves the best trade\-off between accuracy and computational efficiency, maintaining performance within 8% of the larger model whilst requiring half the parameters\. The analysis reveals diminishing returns when scaling beyond baseline configurations\. Increasing model capacity beyond M=3 experts and d=32 hidden dimensions yields marginal improvements at substantial computational cost\. For practical deployment scenarios, the baseline configuration provides near\-optimal performance with four times fewer parameters than the large model variant\. These findings validate the architectural design choices and demonstrate that the baseline configuration with three experts, hidden dimension of 32, and history window of 8 timesteps effectively balances performance, efficiency, and generalisation across heterogeneous dynamical systems\.
## 8Conclusion
This work presented the Generalist Controller, demonstrating that a single learned policy can effectively regulate diverse dynamical systems without requiring adaptation or fine\-tuning after training\. The controller, trained on 25 benchmark systems spanning 2D to 4D state spaces with varying dynamic characteristics, successfully controls stable, unstable, minimum\-phase, and non\-minimum\-phase systems, including nonlinear platforms such as autonomous underwater vehicles\.
The architecture integrates history\-based state embeddings, reference tracking, and system tag into a unified framework that adapts control actions to system\-specific dynamics\. Once trained, the controller operates directly on state measurements, reference signals, and a system tag, generating appropriate control actions without requiring online model identification or iterative optimization\. Experimental validation across challenging systems confirms cross\-system control with 1\.05 to 3\.95 s rise time, minimal overshoot \(0\.2 to 11\.1%\), and negligible steady\-state error\. The controller demonstrates consistent performance across different reference trajectories and setpoints beyond the unit step responses and sine responses used for evaluation\. Hardware validation on a Crazyflie 2\.1\+ nano\-quadcopter reveals successful sim\-to\-real transfer despite unmodelled aerodynamic effects, sensor noise, and actuator dynamics\. Furthermore, evaluation under perturbed conditions not encountered during training, including actuator amplitude saturation, input rate saturation, external disturbances and measurement noise, demonstrates that the learned policy maintains stable performance whilst baseline LQI controllers exhibit degraded or unstable behaviour\. These results provide evidence that the controller captures transferable control principles rather than merely memorising training data\. This result demonstrates that control policies can be learned in a task\-agnostic manner across system families, analogous to recent advances in natural language and computer vision\.
Whilst these results represent a significant step towards generalised control, several limitations merit discussion\. The controller requires a system tag,ϕi\\phi\_\{i\}, at deployment to indicate which system is being controlled\. The level of generalisability to unseen scenarios showed promising results, as presented in Section[6\.4](https://arxiv.org/html/2607.16313#S6.SS4)\. However, applying the controller to completely new systems requires including those systems in the training set; thus, generalisation to entirely unseen systems is not supported\. The extent of intra\-system generalisability will require further investigation\. The current implementation is restricted to single\-input single\-output systems; extending to MIMO configurations introduces additional challenges in state\-action coordination and output coupling that require further investigation\. Additionally, whilst the controller demonstrates empirical robustness under perturbations, formal stability guarantees remain an open challenge\. Existing stability analysis methods for neural network controllers are typically designed for single\-system settings and cannot be readily extended to multi\-system generalisation frameworks\. Developing appropriate theoretical tools for stability certification in this context is an important direction for future work\. By showing that a single neural policy can effectively control systems of varying order, stability, and dynamic characteristics whilst exhibiting robustness beyond training conditions, this work demonstrates a viable path towards generalist control policies capable of operating across diverse dynamical systems from a single learned representation\.
## References
- K\. Agyei, P\. Sarhadi, and W\. Naeem \(2025a\)Large language model\-based decision\-making for COLREGs and the control of autonomous surface vehicles\.InEuropean Control Conference 2025,Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1)\.
- K\. Agyei, P\. Sarhadi, and D\. Polani \(2025b\)Deep Reinforcement Learning in Applied Control: Challenges, Analysis, and Insights\.arXiv preprint arXiv:2507\.08196\.Cited by:[§6\.1](https://arxiv.org/html/2607.16313#S6.SS1.p1.1),[Table 2](https://arxiv.org/html/2607.16313#S6.T2.16.16.4.1.1.2),[Table 2](https://arxiv.org/html/2607.16313#S6.T2.19.19.4.1.1.2),[Table 2](https://arxiv.org/html/2607.16313#S6.T2.3.3.4.1.1.2)\.
- B\. D\. Argall, S\. Chernova, M\. Veloso, and B\. Browning \(2009\)A survey of robot learning from demonstration\.Robotics and autonomous systems57\(5\),pp\. 469–483\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p2.1)\.
- K\. J\. Astrom and B\. Wittenmark \(1994\)Adaptive control\.Addison\-Wesley Longman Publishing Co\., Inc\.\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p1.1),[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p1.1)\.
- F\. Berkenkamp, M\. Turchetta, A\. P\. Schoellig, and A\. Krause \(2017\)Safe model\-based reinforcement learning with stability guarantees\.InNeural Information Processing Systems,Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p2.2)\.
- J\. Bjorck and et\. al\. \(2025\)GR00T N1: An Open Foundation Model for Generalist Humanoid Robots\.arXiv preprint arXiv:2503\.14734\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1)\.
- I\. Bratko, T\. Urbančič, and C\. Sammut \(1995\)Behavioural cloning: phenomena, results and problems\.IFAC Proceedings Volumes28\(21\),pp\. 143–149\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p5.1),[§1](https://arxiv.org/html/2607.16313#S1.p8.1)\.
- A\. Brohan and et\. al\. \(2022\)RT\-1: Robotics transformer for real\-world control at scale\.arXiv preprint arXiv:2212\.06817\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1)\.
- T\. Brown and et\. al\. \(2020\)Language models are few\-shot learners\.Advances in neural information processing systems33,pp\. 1877–1901\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1)\.
- S\. L\. Brunton and J\. N\. Kutz \(2022\)Data\-driven science and engineering: machine learning, dynamical systems, and control\.Cambridge University Press\.Cited by:[§2\.2](https://arxiv.org/html/2607.16313#S2.SS2.p1.1)\.
- J\. C\. Doyle \(1982\)Analysis of feedback systems with structured uncertainties\.IEE Proceedings D \- Control Theory and Applications129\(6\),pp\. 242–250\.Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p2.2)\.
- J\. Doyle \(1996\)Robust and optimal control\.InProceedings of 35th IEEE Conference on Decision and Control,Vol\.2,pp\. 1595–1598\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p1.1)\.
- E\. Inanc, A\. Habboush, Y\. Gurses, Y\. Yildiz, and A\. M\. Annaswamy \(2025\)Neural Network Adaptive Control With Long Short\-Term Memory\.International Journal of Adaptive Control and Signal Processing39\(9\),pp\. 1870–1885\.Cited by:[Table 2](https://arxiv.org/html/2607.16313#S6.T2.10.10.4.1.1.2)\.
- P\. A\. Ioannou and B\. Fidan \(2006\)Adaptive Control Tutorial\.1st edition,Society for Industrial and Applied Mathematics,Philadelphia\.External Links:ISBN 0898716152Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p1.1)\.
- A\. Mandlekar, D\. Xu, J\. Wong, S\. Nasiriany, C\. Wang, R\. Kulkarni, L\. Fei\-Fei, S\. Savarese, Y\. Zhu, and R\. Martín\-Martín \(2021\)What matters in learning from offline human demonstrations for robot manipulation\.arXiv preprint arXiv:2108\.03298\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p2.1)\.
- D\. Q\. Mayne, J\. B\. Rawlings, C\. V\. Rao, and P\. O\. Scokaert \(2000\)Constrained model predictive control: Stability and optimality\.Automatica36\(6\),pp\. 789–814\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p1.1)\.
- Octo Model Team and et\. al\. \(2024\)Octo: an open\-source generalist robot policy\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1),[§1](https://arxiv.org/html/2607.16313#S1.p4.1),[§1](https://arxiv.org/html/2607.16313#S1.p8.1)\.
- D\. A\. Pomerleau \(1988\)ALVINN: An autonomous land vehicle in a neural network\.Advances in neural information processing systems1\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p2.1),[§1](https://arxiv.org/html/2607.16313#S1.p5.1),[§1](https://arxiv.org/html/2607.16313#S1.p8.1)\.
- S\. Reed, K\. Zolna, E\. Parisotto, S\. G\. Colmenarejo, A\. Novikov, G\. Barth\-Maron, M\. Gimenez, Y\. Sulsky, J\. Kay, J\. T\. Springenberg,et al\.\(2022\)A generalist agent\.arXiv preprint arXiv:2205\.06175\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1),[§1](https://arxiv.org/html/2607.16313#S1.p4.1),[§1](https://arxiv.org/html/2607.16313#S1.p8.1)\.
- S\. M\. Richards, F\. Berkenkamp, and A\. Krause \(2018\)The Lyapunov Neural Network: Adaptive Stability Certification for Safe Learning of Dynamical Systems\.InConference on Robot Learning,Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p2.2)\.
- P\. Sarhadi \(2025\)On the Standard Performance Criteria for Applied Control Design: PID, MPC or Machine Learning Controller?\.arXiv preprint arXiv:2503\.14379\.Cited by:[§6\.2](https://arxiv.org/html/2607.16313#S6.SS2.p2.1)\.
- S\. Schaal \(1999\)Is imitation learning the route to humanoid robots?\.Trends in cognitive sciences3\(6\),pp\. 233–242\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p2.1)\.
- J\. Schrittwieser and et\. al\. \(2020\)Mastering atari, go, chess and shogi by planning with a learned model\.Nature588\(7839\),pp\. 604–609\.Cited by:[§2\.2](https://arxiv.org/html/2607.16313#S2.SS2.p2.1)\.
- R\. R\. Selmic and F\. L\. Lewis \(2002\)Neural network approximation of piecewise continuous functions: application to friction compensation\.IEEE Transactions on Neural Networks13\(1\),pp\. 64–73\.Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p1.1)\.
- N\. Shazeer and et\. al\. \(2017\)Outrageously large neural networks: the sparsely\-gated mixture\-of\-experts layer\.arXiv preprint arXiv:1701\.06538\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p6.1)\.
- J\. Tobin and et\. al\. \(2017\)Domain randomization for transferring deep neural networks from simulation to the real world\.2017 IEEE/RSJ International Conference on Intelligent Robots and Systems \(IROS\),pp\. 23–30\.Cited by:[§2\.2](https://arxiv.org/html/2607.16313#S2.SS2.p2.1)\.
- D\. Torricelli and J\. L\. Pons \(2018\)Eurobench: Preparing robots for the real world\.InInternational symposium on wearable robotics,pp\. 375–378\.Cited by:[§2\.2](https://arxiv.org/html/2607.16313#S2.SS2.p2.1)\.
- M\. Vidyasagar \(2022\)Control Systems Synthesis: A Factorization Approach\.Springer Nature\.Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p2.2)\.
- J\. C\. Willems \(2007\)The behavioral approach to open and interconnected systems\.IEEE control systems magazine27\(6\),pp\. 46–99\.Cited by:[§2\.2](https://arxiv.org/html/2607.16313#S2.SS2.p1.1)\.
- M\. Zare, P\. M\. Kebria, A\. Khosravi, and S\. Nahavandi \(2024\)A survey of imitation learning: algorithms, recent developments, and challenges\.IEEE Transactions on Cybernetics54\(12\),pp\. 7173–7186\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p5.1),[§1](https://arxiv.org/html/2607.16313#S1.p8.1)\.
- W\. Zhao, J\. P\. Queralta, and T\. Westerlund \(2020\)Sim\-to\-real transfer in deep reinforcement learning for robotics: a survey\.In2020 IEEE symposium series on computational intelligence \(SSCI\),pp\. 737–744\.Cited by:[§2\.2](https://arxiv.org/html/2607.16313#S2.SS2.p2.1)\.
- K\. Zhou, J\. C\. Doyle, and K\. Glover \(1996\)Robust and Optimal Control\.Prentice Hall,Englewood Cliffs, NJ\.External Links:ISBN 0\-13\-456567\-3Cited by:[§2\.1](https://arxiv.org/html/2607.16313#S2.SS1.p2.2)\.
- B\. Zitkovich and et\. al\. \(2023\)RT\-2: Vision\-language\-action models transfer web knowledge to robotic control\.InConference on Robot Learning,pp\. 2165–2183\.Cited by:[§1](https://arxiv.org/html/2607.16313#S1.p3.1)\.Similar Articles
Ensemble Monitoring for AI Control: Diverse Signals Outweigh More Compute
This paper proposes ensemble monitoring for AI control, combining diverse monitors to improve detection of misaligned actions. Experiments show that diverse ensembles outperform homogeneous ones and that fine-tuned monitors add unique detection capabilities.
Artificial Adaptive Intelligence: The Missing Stage Between Narrow and General Intelligence
This monograph proposes Artificial Adaptive Intelligence (AAI) as a missing intermediate stage between narrow and general AI, arguing that adaptivity, not scale or generality, is the key capability to bridge the gap.
Weak-to-strong generalization
OpenAI's Superalignment team introduces weak-to-strong generalization, a new research direction for empirically aligning superhuman AI models by addressing the fundamental challenge of how weak human supervisors can reliably control and steer AI systems vastly smarter than themselves.
Unlocking soft robotics control with AI's cousin: Reservoir computing
This article discusses how reservoir computing, a simplified type of neural network often called AI's cousin, is being applied to control soft robots, offering efficient and adaptive control solutions.
Temporal Attention for Adaptive Control of Euler-Lagrange Systems with Unobservable Memory
This paper proposes a meta-control architecture using temporal self-attention for adaptive control of Euler-Lagrange systems with unobservable memory states. It demonstrates improved tracking performance over baseline methods on a 2-DOF manipulator while identifying failure modes in long-memory regimes.