Online Switching Control as Learning with Experts
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Online Switching Control as Learning with Experts Masataka Nakamura Kaito Ito Hideaki Ishii
MITSUDOMOE 58 MASSA @ G . ECC . U - TOKYO . AC . JP KAITO @ G . ECC . U - TOKYO . AC . JP
arXiv:2611.18352v1 [math.OC] 13 Nov 2026
HIDEAKI ISHII @ IPC . I . U - TOKYO . AC . JP Department of Information Physics and Computing, The University of Tokyo, Tokyo, Japan
Abstract This paper addresses the problem of online switching control for discrete-time nonlinear systems where a controller is sequentially selected from a finite set of candidates. The goal is to generate an adaptive sequence of controllers to minimize the cumulative cost under unknown disturbances and cost functions. Specifically, we consider a full-information feedback setting where realized disturbance effects and cost functions are available after each selection. Using counterfactual costs computed from historical data, we reduce the online switching control problem to the experts problem with switching costs. Then, we propose an adaptive switching algorithm based on the Hedge algorithm with a switching suppression mechanism. Notably, the proposed algorithm achieves an √ expected regret of O( T log N ), where T is the time horizon and N is the number of candidate controllers, while ensuring uniform boundedness of the state. This matches the optimal regret order for the standard experts problem. Keywords: Online control, switching control, experts problem, supervisory control
1. Introduction In this paper, we address an adaptive switching control problem for discrete-time nonlinear systems under uncertain disturbances and control costs. Adaptive switching control, also known as supervisory control, handles systems in uncertain environments by switching among multiple candidate controllers in response to incoming data (Morse, 1996; Hespanha et al., 2003). Analogous problems have been tackled in the field of reinforcement learning as policy selection problems (Mazumdar et al., 2017; Li and Zhang, 2018). Much effort has been devoted to ensuring stability under adaptive switching control (Vu and Liberzon, 2011). However, existing optimality analyses in this framework have largely focused on asymptotic performance, and the performance criteria are often tailored to specific objectives, such as stabilization (Stefanovic and Safonov, 2008; Al-Shyoukh and Shamma, 2009). Consequently, non-asymptotic performance guarantees for adaptive switching control under general cost functions remain largely unexplored. Recently, online control has attracted attention, as it frames control problems under uncertainties as online learning problems and provides non-asymptotic performance guarantees via regret analysis (Agarwal et al., 2019; Chekan and Langbort, 2024; Muthirayan et al., 2025; Ito and Tsuchiya, 2025; Watanabe et al., 2026). Regret is defined as the difference between the cumulative cost incurred by an online controller (or a learner) and that of the best controller chosen in hindsight. This perspective has also been applied to switching control with a finite set of candidate controllers (Lin et al., 2023; Li et al., 2023) under the name of online switching control. They investigated this problem under a bandit feedback setting, where only the incurred cost values are revealed to the learner. Then, they formulated the problem as an adversarial multi-armed bandit problem and proposed a © 2026 M. Nakamura, K. Ito & H. Ishii.
NAKAMURA I TO I SHII
e 2/3 N 1/3 ), where T is the time batching-based switching algorithm that achieves a regret of O(T horizon and N is the number of controllers. Another important feedback model in online learning and control is the full-information setting (Simchowitz et al., 2020; Orabona, 2026). In this setting, the learner observes the cost function at each time step, rather than merely receiving the incurred cost value. Such a feedback setting arises, for example, when initially unknown cost parameters are revealed after each time step. Applications include adversarial target tracking (Abbasi-Yadkori et al., 2014), where the objective depends on the adversary’s strategy, and industrial control, where the weight parameters of the cost function depend on realized electricity prices. Recently, Xu (2026) proposed tracking a reference constructed from candidate controllers’ counterfactual trajectories. Their method achieves sublinear regret for linear systems with convex costs, allowing inputs beyond the outputs of the candidate controllers. In contrast, this paper investigates online switching control for nonlinear systems and nonconvex costs under full-information feedback, where the learner must select and apply one of the candidate controllers without modifying its output. √ Our main contribution is to design an online switching algorithm that achieves a regret of O( T log N ) while guaranteeing uniform boundedness of the state for a known nonlinear system. The regret bound holds under a uniform local Lipschitz-type condition on the cost functions and bounded disturbances. The key idea is to combine learning with expert advice and stability-preserving switching among candidate controllers. Specifically, counterfactual costs computed from revealed cost functions and reconstructed disturbance effects allow us to reduce the learning component to the experts problem. By combining the Hedge algorithm with a sampling scheme that minimizes switching probabilities and a minimum dwell-time constraint, we achieve sublinear regret while ensuring state boundedness. Unlike the batching-based approaches √ for bandit feedback in Lin et al. (2023); Li et al. (2023), our method achieves O( T log N ) regret without batching, matching the optimal rate for the standard experts problem (Geulen et al., 2010). Organization: Section 2 provides the problem formulation. In Section 3, we propose an online switching algorithm based on a reduction to the experts problem. Section 4 establishes the regret guarantee. Section 5 illustrates the effectiveness of the proposed method through numerical examples, followed by concluding remarks in Section 6. Notation: Let R denote the set of real numbers. The indicator function I[·] equals 1 if the e for the big-O notation hiding condition inside the brackets is true, and 0 otherwise. We use O(·) logarithmic factors. Let P[S] denote the probability of an event S, and let E denote the expectation operator. The Euclidean norm is denoted by ∥ · ∥.
2. Problem Formulation In this paper, we consider the online switching control problem for a discrete-time nonlinear system xt+1 = f (xt , ut , wt ),
t ≥ 0,
(1)
where xt ∈ Rn is the state, ut ∈ Rm is the control input, and wt ∈ Rr is an unknown, nonstochastic1 disturbance. We assume that the state xt is fully observable, and the transition map f : Rn × Rm × Rr → Rn is known to the learner.2 1. Although we can obtain a sublinear regret bound even for stochastic disturbances, this paper focuses on the nonstochastic case due to space limitations. 2. Knowledge of f is not essential; it suffices that the learner knows mappings ψ and F satisfying Assumption 5.
2
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
At each time step, the learner (also called the supervisor) chooses a controller from a finite set of candidate controllers: {πi : Rn → Rm | i ∈ P := {1, . . . , N }} , where πi is a state-feedback controller. For the control input generated by the selected controller, the learner suffers a cost of ct (xt , ut ), where ct : Rn × Rm → R is a time-varying cost function. In this work, we consider the online switching control in a full-information setting. Specifically, the cost functions {ct } are initially unknown, but after observing the state xt and executing the control input ut at time t, the cost function ct (·, ·) is revealed to the learner. Consequently, the learner can use only the past cost functions {cs }t−1 s=0 . Let It ∈ P be the index of the selected controller at time t and T ≥ 1 be the time horizon. Our objective is to design an adaptive switching algorithm A that minimizes the cumulative cost PT −1 t=0 ct (xt , ut ) under unknown disturbances and costs, where ut = πIt (xt ). We allow the switching algorithm to be randomized for the adaptation. As the performance metric of A, we adopt the expected regret: "T −1 # T −1 X X (i) (i) ct (xt (A), ut (A)) − min ct (xt , ut ), (2) RT (A) := E i∈P
t=0 (i)
t=0
(i)
where xt (A) and ut (A) (resp. xt and ut ) are the state and control input under algorithm A (resp. the fixed controller πi ). The best controller in hindsight is defined with full knowledge of all dis−1 . Then, online switching control aims to minimize the turbances and cost functions {(wt , ct )}Tt=0 regret. A sublinear regret RT (A) = o(T ) implies that the expected time-averaged cost is asymptotically no larger than that of the optimal controller in hindsight. In what follows, for notational simplicity, we omit the argument A. In the rest of this section, we introduce assumptions for establishing a sublinear regret of the online switching control problem. In this paper, the disturbances and the cost functions may be chosen adversarially, subject to the following assumptions. −1 −1 Assumption 1 (Oblivious adversary) The sequences {wt }Tt=0 and {ct }Tt=0 are fixed before the first control input u0 is selected, independently of the learner’s randomization.
Assumption 2 (Disturbances) There exists a known constant W ≥ 0 such that ∥wt ∥ ≤ W for all t ≥ 0. The following local Lipschitz continuity assumption is also used in (Li et al., 2023; Kim and Lavaei, 2025) and holds, e.g., for quadratic tracking costs with bounded references and weights. Assumption 3 (Cost functions) There exist Lc1 , Lc2 ≥ 0 such that for all t ≥ 0, x, x′ ∈ Rn and u, u′ ∈ Rm , the cost function ct satisfies |ct (x, u) − ct (x′ , u′ )| ≤ Lc1 {max(∥x∥, ∥x′ ∥) + max(∥u∥, ∥u′ ∥)} + Lc2 (∥x − x′ ∥ + ∥u − u′ ∥). Following Li et al. (2023), we assume exponential input-to-state stability (E-ISS) and incremental exponential stability (δ-ES) for the candidate controllers. 3
NAKAMURA I TO I SHII
Definition 1 (E-ISS) Under a controller π, the system xt+1 = f (xt , π(xt ), wt ) is said to be E-ISS with parameters κ ≥ 1, ρ ∈ (0, 1), and β ≥ 0 if, for any initial state x0 ∈ Rn and any disturbance sequence {wt } satisfying ∥wt ∥ ≤ W for all t ≥ 0, the following inequality holds: ∥xt ∥ ≤ κρt ∥x0 ∥ + βW,
∀t ≥ 0.
(3)
For an initial state ξ, let xt (ξ) denote the state trajectory of the system xt+1 = f (xt , π(xt ), wt ) starting from the initial state x0 = ξ under the controller π. Definition 2 (δ-ES) Under a controller π, the system xt+1 = f (xt , π(xt ), wt ) is said to be δ-ES with parameters κδ ≥ 1 and ρδ ∈ (0, 1) if, for any ξ 1 , ξ 2 ∈ Rn and any disturbance sequence {wt } satisfying ∥wt ∥ ≤ W for all t ≥ 0, the following inequality holds: xt (ξ 1 ) − xt (ξ 2 ) ≤ κδ ρtδ ξ 1 − ξ 2 ,
∀t ≥ 0.
(4)
By abuse of terminology, we say that a controller π is E-ISS (resp. δ-ES) when its closed-loop system is E-ISS (resp. δ-ES). While prior work on unknown systems allows potentially destabilizing candidate controllers (Li et al., 2023), we consider known dynamics, where stabilizing controllers can be selected in advance, eliminating the need to include destabilizing candidates. Assumption 4 (Candidate controllers) All candidate controllers π1 , . . . , πN satisfy (κ, ρ, β)-EISS and (κδ , ρδ )-δ-ES with common known parameters. Moreover, each controller πi is Lipschitz continuous with common Lπ > 0, i.e., for all x, x′ ∈ Rn , we have ∥πi (x) − πi (x′ )∥ ≤ Lπ ∥x − x′ ∥. E-ISS ensures boundedness under each fixed controller, while δ-ES is utilized to ensure that the cumulative cost penalty induced by each switch remains bounded through exponential forgetting of initial conditions. For linear time-invariant systems, Schur-stabilizing state-feedback controllers satisfy both properties. Lastly, let π̄0 > 0 satisfy maxi∈P ∥πi (0)∥ ≤ π̄0 . Our approach is to reduce the online switching control problem to the experts problem, where the loss of each expert is revealed after every time step. In our setting, however, observing the cost function ct alone is not sufficient to compute the losses of all candidate controllers, since their state trajectories depend on the unknown disturbances. Therefore, we impose the following assumption, which allows us to reproduce the effects of the realized disturbances without necessarily recovering the disturbances themselves. Assumption 5 (Replayability of disturbance effects) For the transition map f , there exist an auxiliary space Z and known mappings ψ : Rn × Rm × Rn → Z and F : Rn × Rm × Z → Rn such that, for any x, x̃ ∈ Rn , u, ũ ∈ Rm , and w ∈ Rr , F (x̃, ũ, ψ(x, u, f (x, u, w))) = f (x̃, ũ, w).
(5)
The mapping ψ extracts the effect of the realized disturbance, and F replays it. For additive disturbances f (x, u, w) = g(x, u) + Gw, one can use ψ(x, u, x+ ) := x+ − g(x, u) and F (x̃, ũ, z) := g(x̃, ũ) + z. The assumption also covers a state-dependent disturbance channel f (x, u, w) = g(x, u) + G(x, u)w with G(x, u) of full column rank, for which ψ(x, u, x+ ) := G(x, u)† (x+ − g(x, u)) and F (x̃, ũ, z) := g(x̃, ũ) + G(x̃, ũ)z verify (5), where † denotes the Moore–Penrose pseudoinverse. 4
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
3. Algorithm Design In this section, we present our online switching algorithm. 3.1. Reduction to the Experts Problem Under Assumption 5, the observed state transitions allow us to reconstruct the effect of the realized disturbances. Together with the revealed cost functions, this enables us to simulate the trajectories and costs associated with each fixed candidate controller. Definition 3 (Counterfactual states, inputs, and costs) For each controller i ∈ P and time t ≥ (i) (i) (i) 0, we define the counterfactual state, input, and cost (xt , ut , ct ) ∈ Rn × Rm × R as follows: (i)
x0 = x0 ,
(i)
(i)
(i)
(i)
xt+1 = f (xt , πi (xt ), wt ),
(i)
ut := πi (xt ),
(i)
(i)
(i)
ct := ct (xt , ut ).
In our setting, these quantities can be computed. Indeed, from the observed transition (xt , ut , xt+1 ), the effect of wt is extracted as zt := ψ(xt , ut , xt+1 ), and then (5) yields, for all i ∈ P, (i)
(i)
(i)
(i)
(i)
F (xt , πi (xt ), zt ) = f (xt , πi (xt ), wt ) = xt+1 .
(6)
(i)
Hence, the counterfactual states are computed recursively from x0 = x0 . Moreover, since the cost (i) function ct is revealed in the full-information setting, the counterfactual costs ct are also computed. (1) (N ) When determining the control input ut at time t, the counterfactual costs {cs , . . . , cs }t−1 s=0 are thus available. (i) We regard each controller i ∈ P as an expert with loss ct and apply the Hedge algorithm (Freund and Schapire, 1997). Specifically, Hedge selects expert i with probability pt,i at time t by exponential weighting of each expert’s cumulative loss with learning rate η > 0: (i) s=0 cs pt,i := P Pt−1 (k) , N exp −η s=0 cs k=1
exp −η
Pt−1
p0,i =
1 . N
(7)
Under this scheme, experts with lower cumulative losses are selected with higher probabilities, while other experts retain a chance of being selected, avoiding premature commitment to a single expert. By Assumption 1, the counterfactual costs do not depend on the learner’s selections. Moreover, the counterfactual trajectories and the range of the costs are uniformly bounded as follows. The proof is given in Appendix A. Lemma 4 Suppose that Assumptions 2–4 hold. Then, for any t ≥ 0 and i ∈ P, it holds that (i)
(i)
∥xt ∥ ≤ Xc ,
∥ut ∥ ≤ Uc ,
(8)
where Xc := κ∥x0 ∥ + βW and Uc := Lπ Xc + π̄0 . Moreover, for any t ≥ 0 and i, j ∈ P, we have (i)
(j)
|ct − ct | ≤ ∆c , where ∆c := 2 {Lc1 (Xc + Uc ) + Lc2 } (Xc + Uc ). 5
(9)
NAKAMURA I TO I SHII
Algorithm 1: Lazy sampling (maximal coupling) Input: Probability distributions pt−1 , pt on P, and a selection Jt−1 ∈ P. Define k := Jt−1 . With probability min{1, pt,k /pt−1,k }, maintain the selection: set Jt ← k. Otherwise, sample Jt ∈ P from the distribution qt defined by qt,i ∝ max{0, pt,i − pt−1,i }.
(i)
(i)
Let mt := mini∈P ct and Mt := maxi∈P ct . Then Mt − mt ≤ ∆c . We use the following straightforward extension of the standard Hedge regret bound for losses in [0, 1] (Cesa-Bianchi and Lugosi, 2006) to general bounded loss ranges. Proposition 5 (Regret of Hedge) Suppose that Assumptions 2–4 hold. Let pt,i be defined by (7) and ∆c be as in Lemma 4. Then, for any η > 0, it holds that T −1 X X
(i)
pt,i ct − min i∈P
t=0 i∈P
T −1 X
(i)
ct ≤
t=0
ηT ∆2c log N + . η 8
(10)
Typically, Hedge performs an independent selection of an expert at each time step according to the distribution {pt,i }N i=1 . However, this independence can cause frequent switching. Such switches can destabilize the system, even if each controller is stabilizing (Liberzon, 2003). Moreover, controller switching can cause a discrepancy between the actual cost ct (xt , ut ) and the counterfactual (I ) cost ct t , resulting in a switching penalty in the regret analysis, as shown in the proof of Theorem 8. To address these issues, we propose a two-stage controller selection mechanism. 3.2. Lazy Sampling As the first stage, we employ lazy sampling based on maximal coupling (Sherman and Koren, 2021) (Algorithm 1) to generate a tentative selection Jt ∈ P, which is then passed to the dwell-time filter to determine the selection It to be applied. This method preserves the P Hedge marginal Jt ∼ pt 1 while achieving the minimum switching probability P[Jt+1 ̸= Jt ] = 2 i∈P |pt+1,i − pt,i |. The following proposition establishes these properties. The proof is given in Appendix B. Proposition 6 (Lazy sampling) Suppose that Assumptions 1–4 hold. Let J0 ∼ p0 , and generate −1 by Algorithm 1 with Hedge and a constant learning rate η > 0. Then, for all i ∈ P and {Jt }Tt=1 t ∈ {0, . . . , T − 1}, we have P[Jt = i] = pt,i , and P[Jt+1 ̸= Jt ] =
1X η∆c |pt+1,i − pt,i | ≤ , 2 4
t ∈ {0, . . . , T − 2}.
(11)
i∈P
Furthermore, the total number of switches NJ :=
PT −1
t=1 I[Jt ̸= Jt−1 ] satisfies E[NJ ] ≤
η∆c (T −1) . 4
3.3. Dwell-Time Filter Although lazy sampling minimizes the switching probability, it does not guarantee a minimum interval between consecutive switches. Consequently, the state may still become unbounded. To guarantee the boundedness of the state, as the second stage in the controller, we introduce a deterministic filter, which we call the dwell-time filter. This enforces a minimum dwell time τ , requiring 6
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
Algorithm 2: Hedge with lazy sampling and dwell-time filter Input: Horizon T ≥ 1, dwell time τ ≥ 1, learning rate η > 0. (i) Initialize p0,i ← 1/N and x0 ← x0 for all i ∈ P. for t = 0, . . . , T − 1 do if t = 0 then Sample J0 ∼ p0 and set I0 ← J0 . else Generate Jt by lazy sampling (Algorithm 1). Determine It by the dwell-time filter (12). end Apply ut = πIt (xt ) to the system. Receive ct and incur cost ct (xt , ut ). (i) (i) (i) Compute ct ← ct (xt , πi (xt )) for all i ∈ P. (i) P −ηct Update pt+1,i ∝ pt,i e for all i ∈ P, with i pt+1,i = 1. Observe xt+1 and compute zt ← ψ(xt , ut , xt+1 ). (i) (i) (i) Update xt+1 ← F (xt , πi (xt ), zt ) for all i ∈ P. end
the system to use the same controller for at least τ time steps. Initialize I0 = J0 and tlast = 0. For t ≥ 1, let tlast denote the last time when the controller was switched before the current time t, or 0 if no switch has occurred. Then, It is determined based on the elapsed time t − tlast as follows: ( It−1 (= Itlast ) if t − tlast < τ (locked period), It = (12) Jt if t − tlast ≥ τ (unlocked period). If It ̸= It−1 , the controller switchesPto πIt at time t, and we update tlast ← t. By construction, −1 I[It ̸= It−1 ] generated by the dwell-time filter satisfies the total number of switches NI := Tt=1 NI ≤ NJ . By appropriately setting the minimum dwell time τ based on the parameters of the E-ISS (κ, ρ, β), the uniform boundedness of the state xt is guaranteed. The proof is deferred to Appendix C. Proposition 7 (Uniform boundedness of the state) Suppose that Assumptions 2 and 4 hold. Choose log κ −1 a dwell time τ such that τ > log(1/ρ) . Then, for any tentative sequence {Jt }Tt=0 ∈ P T , the con−1 troller sequence {πIt }Tt=0 generated by the dwell-time filter (12) satisfies κ ∥xt ∥ ≤ κ∥x0 ∥ + + 1 βW =: X, ∀t ∈ {0, . . . , T }. 1 − κρτ
(13)
In summary, the proposed algorithm consists of three components: updating a probability distribution over the controllers using Hedge, reducing the switching probability via lazy sampling, and enforcing a minimum dwell time through the dwell-time filter. The overall procedure is summarized in Algorithm 2.
4. Regret Guarantee In this section, as the main result, we provide an upper bound on the regret of the proposed online switching control (Algorithm 2). 7
NAKAMURA I TO I SHII
Theorem 8 Suppose that Assumptions 1–5 hold. Choose a constant learning rate η > 0 and a log κ dwell time τ such that τ > log(1/ρ) . Then, the expected regret of Algorithm 2 satisfies RT ≤
log N ηT ∆c + η 4
1 α + ∆c τ + . 2
(14)
Here, ∆c is defined in Lemma 4, and α is defined as Lc1 (1 + Lπ )X + π̄0 + Lc2 (1 + Lπ )(X + Xc )κδ α := , 1 − ρδ
(15)
p T −1 log N where Xc and X are defined in (8) and (13), respectively. Moreover, setting η = Θ √ to minimize the upper bound in (14) yields RT = O T log N . Proof The proof relies on decomposing the regret into the difference between the actual and counterfactual costs, the cost discrepancy introduced by the dwell-time filter, and the Hedge regret: # "T −1 # "T −1 # "T −1 T −1 X X (I ) X (J ) X (It ) (Jt ) (i) t t RT = E ct (xt , ut ) − ct +E ct − ct +E ct − min ct . t=0
t=0
t=0
i∈P
t=0
(16) First, we bound the first term. Let 0 = s0 < s1 < · · · < sNI < T be the actual switching times, where s0 represents initialization, and set sNI +1 := T . For sk ≤ t < sk+1 , the actual and counterfactual trajectories evolve under the same controller and disturbance sequence. Thus, δ-ES (I ) (I ) k ∥xsk − xskt ∥ ≤ and the state bounds in Lemma 4 and Proposition 7 give ∥xt − xt t ∥ ≤ κδ ρt−s δ k κδ ρt−s (X + Xc ). Regarding the control input, it follows from the Lipschitz continuity of the δ (I ) (I ) controller that ∥ut − ut t ∥ ≤ Lπ ∥xt − xt t ∥. Therefore, by using the local Lipschitz continuity of the cost function, the difference between the actual and counterfactual costs is bounded as (I )
(I )
ct (xt , ut ) − ct (xt t , ut t ) h n o i (I ) (I ) (I ) (I ) ≤ Lc1 max(∥xt ∥, ∥xt t ∥) + max(∥ut ∥, ∥ut t ∥) + Lc2 (∥xt − xt t ∥ + ∥ut − ut t ∥) k k ≤ {Lc1 (X + Lπ X + π̄0 ) + Lc2 } (1 + Lπ )κδ ρt−s (X + Xc ) = (1 − ρδ )αρt−s . δ δ
Summing this difference within the interval {sk , . . . , sk+1 − 1} yields sk+1 −1n
X
(I ) ct (xt , ut ) − ct t
o
sk+1 −1
≤ (1 − ρδ )α
t=sk
X
k ρt−s ≤ α. δ
t=sk
We then take the sum with respect to k. The initial interval contributes zero because both trajectories start from x0 and use the same controller. Hence, the first term in (16) is at most αE[NI ]. Moreover, by NI ≤ NJ and Proposition 6, this is upper bounded by αη∆c T /4. (J) We next bound the second term in (16). Let St := I[Jt ̸= Jt−1 ] for t ≥ 1 indicate whether (I ) (J ) the tentative selection switches at time t. By Lemma 4, we have ct t − ct t ≤ ∆c I[It ̸= Jt ]. Fix t ≥ 1 such that It ̸= Jt , and let s := max ({0} ∪ {r ∈ {1, . . . , t} : Ir ̸= Ir−1 }) be the most recent switching time of the applied controller, where s = 0 if no switch has occurred. 8
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
Since It ̸= Jt , the dwell-time filter must be in its locked period, so that t − s < τ . Moreover, Is = Js holds by the filtering rule if s ≥ 1, and by initialization if s = 0. Since the applied controller does not switch after s, we also have It = Is = Js . Thus, It ̸= Jt implies Js ̸= Jt , which requires at least one switch in the tentative selection during {s + 1, . . . , t}. Consequently, P P (J) (J) I[It ̸= Jt ] ≤ tr=s+1 Sr ≤ tr=max{1,t−τ +1} Sr . The final bound on I[It ̸= Jt ] also holds (I )
(J )
when It = Jt because its left-hand side is zero. Thus, it follows from ct t − ct t ≤ ∆c I[It ̸= Jt ], I0 = J0 , and Proposition 6 that "T −1 # T −1 t T −1 X X X (I ) η∆2c X ητ ∆2c T (Jt ) t E[Sr(J) ] ≤ E ≤ ∆c min{t, τ } ≤ . ct − ct 4 4 t=0
t=1 r=max{1,t−τ +1}
t=1
Lastly, by Proposition 6, the remaining term in (16) can be bounded by the regret bound of Hedge we obtain (14). Furthermore, letting η = p (Proposition 5). Combining the√above bounds, Θ( T −1 log N ), we obtain RT = O T log N . This completes the proof. The regret decomposition (16) shows that the control regret is bounded by the Hedge regret plus penalties for controller switching and dwell-time filtering. This reveals a connection to the experts problem with switching costs (Geulen et al., 2010). Although lazy sampling and the dwell-time filter suppress switching, Hedge still updates its probabilities at every time step. Lazy sampling preserves the Hedge marginals while limiting the expected number of tentative switches to O(ηT ). Incremental stability bounds the cumulative cost discrepancy due to each actual switch by a constant. Moreover, the counterfactual costs under the tentative and filtered selections can differ only within τ steps following a tentative switch. Consequently, the√additional regret due to switching and the dwell-time filter is O(ηT ) for fixed τ , preserving the O( T log N ) regret order of the standard experts problem. See Appendix D for further discussion.
5. Numerical Experiments We consider xt+1 = Axt +Bu t +wt with x0 = 0 and four candidate controllers ut = −Ki xt , where 0 1.05 0.5 , and K1 = [3.20, 2.58], K2 = [0.69, 0.83], K3 = [3.50, 2.70], K4 = ,B = A= 0 1.05 1 [0.50, 0.75]. All candidates are Schur stabilizing, but ρ((A−BK2 )(A−BK1 )) > 1, so that arbitrary switching need not be stable. They satisfy E-ISS and δ-ES with (κ, ρ) = (κδ , ρδ ) = (5.2, 0.78) and β = κ/(1 − ρ). We use τ = 7, which satisfies κρτ < 1, and independent disturbances uniformly distributed over {w ∈ R2 : ∥w∥ ≤ 0.2}. The disturbance and cost-parameter sequences are generated before the online experiments and remain fixed throughout each run, independently of the controller selections. All methods use the same sequences, and each horizon T uses their first T elements. We first compare the proposed method with independent Hedge sampling (without lazy sampling), lazy sampling without the dwell-time filter, and a bandit-feedback baseline, Bandit-based e 2/3 N 1/3 ) Adaptive Policy Selection (BAPS) (Lin et al., 2023). BAPS achieves a regret bound of O(T ⊤ 2 in the bandit setting. We use ct (x, u) = x Qt x + 0.01u , where Qt switches between diag(43, 1) and diag(1, 3) p with probability 0.25 per step (initial probabilities 1/2). Following Theorem 8, we use η = 100 T −1 log(4) for the proposed method and the two variants without lazy sampling and without the dwell-time filter. For BAPS, we tune its hyperparameters by minimizing the average 9
NAKAMURA I TO I SHII
(b)
(a)
(c) Figure 1: (a) Mean regret of the proposed method (solid), without lazy sampling (dashed), without the dwell-time filter (dash-dotted), and BAPS (dotted). Shaded regions indicate ±1 standard deviation over 500 trials. (b)–(c) Comparison of the proposed method (blue) and its variant without the dwell-time filter (yellow) over 300 trials. (b) Mean regret. (c) State norm for T = 500; lines show the median, and shaded regions indicate the 10–90 percentile range.
normalized regret in independent pilot experiments (see Appendix E for details). Fig. 1(a) shows that the proposed method achieves much lower mean regret than BAPS. This verifies that learning performance is improved by utilizing the full-information feedback. Although our regret guarantee does not apply to the two variants, they perform comparably in this example. To examine the dwell-time filter, we construct a time-varying cost sequence that encourages frequent switching between controllers K1 and K2 (see Appendix E for details). As shown in Figs. 1(b) and (c), removing the dwell-time filter results in significantly larger regret and state norms, whereas the proposed method achieves small regret while keeping the state norm small. This is because frequent switching between K1 and K2 can destabilize the system, whereas enforcing the prescribed minimum dwell time keeps the state uniformly bounded.
6. Conclusion We proposed an online switching control algorithm for known nonlinear systems under full-information feedback. Lazy sampling preserves Hedge’s marginals while controlling switching costs, and the dwell-time filter guarantees state boundedness. This two-stage mechanism yields an expected regret √ upper bound of O( T log N ). Numerical examples illustrate the learning performance and show that removing the filter can amplify both state norms and regret. Future work includes extending this framework to unknown systems. In such scenarios, constructing counterfactual trajectories is no longer straightforward, and incorporating system identification may be needed. 10
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
Acknowledgments This work was supported in part by JSPS KAKENHI Grant Numbers JP24K17297, JP22H01508, and JP23K22778, and in part by JST under ASPIRE Grant Number JPMJAP2402.
References Yasin Abbasi-Yadkori, Peter Bartlett, and Varun Kanade. Tracking adversarial targets. In Proc. International Conference on Machine Learning, pages 369–377. PMLR, 2014. Naman Agarwal, Brian Bullins, Elad Hazan, Sham Kakade, and Karan Singh. Online control with adversarial disturbances. In Proc. 36th International Conference on Machine Learning, pages 111–119. PMLR, 2019. Ibrahim Al-Shyoukh and Jeff S Shamma. Switching supervisory control using calibrated forecasts. IEEE Transactions on Automatic Control, 54(4):705–716, 2009. Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, Learning, and Games. Cambridge University Press, 2006. Jafar Abbaszadeh Chekan and Cédric Langbort. Learn and control while switching: Guaranteed stability and sublinear regret. IEEE Transactions on Automatic Control, 69(12):8433–8448, 2024. Ofer Dekel, Jian Ding, Tomer Koren, and Yuval Peres. Bandits with switching costs: T 2/3 regret. In Proc. 46th Annual ACM Symposium on Theory of Computing, pages 459–467, 2014. Yoav Freund and Robert E Schapire. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences, 55(1):119–139, 1997. Sascha Geulen, Berthold Vöcking, and Melanie Winkler. Regret minimization for online buffering problems using the weighted majority algorithm. In Proc. 23rd Conference on Learning Theory, pages 132–143, 2010. Joao P Hespanha, Daniel Liberzon, and A Stephen Morse. Hysteresis-based switching algorithms for supervisory control of uncertain systems. Automatica, 39(2):263–272, 2003. Kaito Ito and Taira Tsuchiya. Online control of linear systems under unbounded noise. arXiv preprint arXiv:2402.10252, 2025. Jihun Kim and Javad Lavaei. Online bandit nonlinear control with dynamic batch length and adaptive learning rate. Transactions on Machine Learning Research, 2025. David A. Levin and Yuval Peres. Markov Chains and Mixing Times. American Mathematical Society, 2nd edition, 2017. Siyuan Li and Chongjie Zhang. An optimal online method of selecting source policies for reinforcement learning. In Proc. AAAI Conference on Artificial Intelligence, volume 32, 2018. Yingying Li, James A Preiss, Na Li, Yiheng Lin, Adam Wierman, and Jeff S Shamma. Online switching control with stability and regret guarantees. In Proc. Learning for Dynamics and Control Conference, pages 1138–1151. PMLR, 2023. 11
NAKAMURA I TO I SHII
Daniel Liberzon. Switching in Systems and Control. Springer, 2003. Yiheng Lin, James A. Preiss, Emile Anand, Yingying Li, Yisong Yue, and Adam Wierman. Online adaptive policy selection in time-varying systems: No-regret via contractive perturbations. arXiv preprint arXiv:2210.12320v2, 2023. Version 2. Nick Littlestone and Manfred K Warmuth. The weighted majority algorithm. Information and Computation, 108(2):212–261, 1994. Eric Mazumdar, Roy Dong, Vicenç Rúbies Royo, Claire Tomlin, and S Shankar Sastry. A multiarmed bandit approach for online expert selection in Markov decision processes. arXiv preprint arXiv:1707.05714, 2017. A Stephen Morse. Supervisory control of families of linear set-point controllers-Part I. Exact matching. IEEE Transactions on Automatic Control, 41(10):1413–1431, 1996. Deepan Muthirayan, Dileep Kalathil, and Pramod P Khargonekar. Meta-learning online control for linear dynamical systems. IEEE Transactions on Automatic Control, 70(6):4163–4169, 2025. Francesco Orabona. Online learning: A modern introduction using convex optimization. arXiv preprint arXiv:1912.13213, 2026. Uri Sherman and Tomer Koren. Lazy OCO: Online convex optimization on a switching budget. In Proc. Conference on Learning Theory, pages 3972–3988. PMLR, 2021. Max Simchowitz, Karan Singh, and Elad Hazan. Improper learning for non-stochastic control. In Proc. Conference on Learning Theory, pages 3320–3436. PMLR, 2020. Margareta Stefanovic and Michael G Safonov. Safe adaptive switching control: Stability and convergence. IEEE Transactions on Automatic Control, 53(9):2012–2021, 2008. Linh Vu and Daniel Liberzon. Supervisory control of uncertain linear time-varying systems. IEEE Transactions on Automatic Control, 56(1):27–42, 2011. Sho Watanabe, Kaito Ito, and Hideaki Ishii. Online nonstochastic networked control under adversarial packet losses. In Proc. 23rd IFAC World Congress, 2026. Yunzong Xu. Online control via counterfactual tracking. arXiv preprint arXiv:2607.13029, 2026.
12
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
Appendix A. Proof of Lemma 4 (i)
Since {xt } is the state trajectory under the fixed controller πi , the E-ISS property in Assumption 4 yields (i) ∥xt ∥ ≤ κρt ∥x0 ∥ + βW ≤ κ∥x0 ∥ + βW = Xc . Moreover, by the Lipschitz continuity of πi , (i)
(i)
(i)
∥ut ∥ = ∥πi (xt )∥ ≤ ∥πi (xt ) − πi (0)∥ + ∥πi (0)∥ (i)
≤ Lπ ∥xt ∥ + π̄0 ≤ Lπ Xc + π̄0 = Uc . Next, for any i, j ∈ P, the local Lipschitz continuity of ct in Assumption 3 implies h i (i) (j) (i) (j) (i) (j) |ct − ct | ≤ Lc1 max(∥xt ∥, ∥xt ∥) + max(∥ut ∥, ∥ut ∥) + Lc2 (i) (j) (i) (j) × ∥xt − xt ∥ + ∥ut − ut ∥ ≤ Lc1 (Xc + Uc ) + Lc2 (2Xc + 2Uc ) = ∆c . ■
This completes the proof.
Appendix B. Proof of Proposition 6 We first show that lazy sampling preserves the marginal distributions, i.e., P[Jt = i] = pt,i for all i ∈ P and t ≥ 0. We prove the claim by induction on t. The case t = 0 holds by initialization. Suppose that P[Jt−1 = i] = pt−1,i for all i ∈ P. By Algorithm 1, the conditional probabilities satisfy pt,i P[Jt = i | Jt−1 = i] = min 1, pt−1,i and, for j ̸= i, (pt,i − pt−1,i )+ pt,j , P[Jt = i | Jt−1 = j] = max 0, 1 − PN pt−1,j k=1 (pt,k − pt−1,k )+ where (a)+ := max{0, a}. Here, we first consider pt ̸= pt−1 , so that the denominator is positive. By the law of total probability, P[Jt = i] =
N X
P[Jt = i | Jt−1 = j]pt−1,j
j=1
P
j̸=i (pt−1,j − pt,j )+
= min{pt−1,i , pt,i } + PN
k=1 (pt,k − pt−1,k )+
(pt,i − pt−1,i )+ .
Since pt and pt−1 are probability distributions, we have N N X X (pt−1,j − pt,j )+ = (pt,j − pt−1,j )+ . j=1
j=1
13
NAKAMURA I TO I SHII
If pt,i ≥ pt−1,i , the second term in the expression for P[Jt = i] equals pt,i − pt−1,i . If pt,i < pt−1,i , the second term is zero. Therefore, in either case, P[Jt = i] = min{pt−1,i , pt,i } + (pt,i − pt−1,i )+ = pt,i . If pt = pt−1 , Algorithm 1 maintains the previous selection with probability one, and hence the same conclusion holds. Thus, the claim follows by induction. The upper bound on the switching probability is established by combining the following two lemmas. The first lemma characterizes the switching probability in terms of total variation distance. Lemma 9 The sequence {Jt } generated by lazy sampling and marginal distributions {pt } satisfies P[Jt+1 ̸= Jt ] = ∥pt+1 − pt ∥TV , where the total variation distance between pt and pt+1 is defined by ∥pt+1 −pt ∥TV := 21 pt,i |.
PN
i=1 |pt+1,i −
Proof The probability that the consecutive choices Jt and Jt+1 coincide is given by P[(Jt+1 , Jt ) = (i, i)] = P[Jt+1 = i | Jt = i]P[Jt = i] pt+1,i = min 1, pt,i pt,i = min{pt,i , pt+1,i }. Thus, the probability of retaining the same selection between times t and t + 1 is P[Jt+1 = Jt ] = =
N X i=1 N X i=1
min{pt,i , pt+1,i } pt,i + pt+1,i − |pt+1,i − pt,i | 2 N
=1−
1X |pt+1,i − pt,i |, 2 i=1
where we used min{a, b} = a+b−|b−a| . The lemma immediately follows from P[Jt+1 ̸= Jt ] = 2 1 − P[Jt+1 = Jt ]. By the coupling inequality (Levin and Peres, 2017, Proposition 4.7), if Jt ∼ pt and Jt+1 ∼ pt+1 , then P[Jt+1 ̸= Jt ] ≥ ∥pt+1 − pt ∥TV . Therefore, Lemma 9 shows that lazy sampling attains the maximum probability that Jt and Jt+1 coincide subject to Jt ∼ pt and Jt+1 ∼ pt+1 . The next lemma bounds the total variation distance of distributions given by Hedge. (i)
Lemma 10 Let pt,i be defined by (7) with a constant learning rate η > 0, and let mt := mini∈P ct (i) and Mt := maxi∈P ct . Then, it holds that ∥pt+1 − pt ∥TV ≤ 14
η(Mt − mt ) . 4
(17)
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
Proof Since the learning rate is constant, (7) is equivalent to the recursive form (i)
pt+1,i = P
pt,i e−ηct
j∈P pt,j e
(j)
−ηct
.
(18)
Hence, the Kullback–Leibler divergence between pt and pt+1 is bounded as DKL (pt ∥pt+1 ) :=
X
pt,i log
i∈P
pt,i pt+1,i
X (j) (i) pt,j e−ηct = pt,i ηct + log j∈P i∈P X X (j) (i) pt,i ct + log pt,j e−ηct =η X
i∈P
≤
j∈P
η 2 (M
2 t − mt )
8
,
(19)
where the last inequality follows from Hoeffding’s lemma. Pinsker’s inequality then yields ∥pt+1 − pt ∥TV ≤
q
η(Mt − mt ) 1 . 2 DKL (pt ∥pt+1 ) ≤ 4
This completes the proof. Proposition 6 follows by applying Lemmas 9 and 10, together with Mt −mt ≤ ∆c by Lemma 4.
Appendix C. Proof of Proposition 7 Let 0 = t0 < t1 < · · · < tNI < T denote the actual switching times, where t0 represents initialization, and set tNI +1 := T . For k ∈ {0, . . . , NI − 1}, the dwell-time constraint ensures tk+1 − tk ≥ τ . Thus, E-ISS inequality (3) yields that ∥xtk+1 ∥ ≤ κρtk+1 −tk ∥xtk ∥ + βW ≤ κρτ ∥xtk ∥ + βW,
∀k ∈ {0, . . . , NI − 1}.
(20)
log κ Moreover, by the assumption τ > log(1/ρ) , we have γ := κρτ < 1. Thus, it follows from (20) that
∥xtk ∥ ≤ γ k ∥x0 ∥ +
k X
γ s−1 βW ≤ ∥x0 ∥ +
s=1
βW , 1−γ
∀k ∈ {0, . . . , NI }.
For each t ∈ {0, . . . , T }, let k = max{j ∈ {0, . . . , NI } : tj ≤ t}. Applying E-ISS from tk yields βW t−tk ∥xt ∥ ≤ κρ ∥xtk ∥ + βW ≤ κ∥xtk ∥ + βW ≤ κ ∥x0 ∥ + + βW, 1−γ ■
which completes the proof. 15
NAKAMURA I TO I SHII
Appendix D. Discussion The proof of Theorem 8 implies that the online switching control problem addressed in this paper reduces to the experts problem with switching costs. The impact of switching costs differs significantly between full-information and bandit settings. In the full-information setting, the optimal √ regret remains Θ( T log N ) regardless of the presence of switching costs (Littlestone and Warmuth, 1994; Geulen et al., 2010). However, in the bandit setting, the presence of switching costs √ e 2/3 N 1/3 ) (Dekel et al., 2014). degrades the optimal regret from Θ( T N ) to Θ(T Previous bandit-feedback approaches use batching to ensure a minimum dwell time and reduce transient effects in performance evaluation (Lin et al., 2023; Li et al., 2023). In our full-information setting, counterfactual costs eliminate the latter need. Consider batched Hedge with batch length b ≥ τ and independent sampling at batch boundaries. Then, it can be shown that its regret satisfies RT ≤
αT log N η∆2c bT + + . b η 8
Optimizing this bound over b and η √ for independently sampled batched Hedge yields O(T 2/3 (log N )1/3 ), whereas our approach achieves O( T log N ) through lazy sampling.
Appendix E. Additional Details on the Numerical Experiments E.1. Regret Comparison and Parameter Selection For BAPS, we use Algorithm 2 of Lin et al. (2023). The learning-rate and batch-length coefficients were tuned by grid search over Gη = {0.001, 0.01, 0.03, 0.1, 0.3, 1, 3, 10, 30, 100}, Gb = {0.25, 0.5, 1, 2, 4, 8, 16, 32}. We evaluated each of the 80 parameter combinations using 24 independent trials at each horizon T ∈ {3000, 12000, 30000}. The parameters were selected to minimize the average terminal regret normalized by T 2/3 across these horizons. The resulting learning rate and batch length are ηB =
3 T 2/3 41/3
,
bB = max{7, ⌈2(T /4)1/3 ⌉}.
E.2. Adversarial Cost Construction for the Dwell-time Stress Test In the second experiment, we construct a quadratic cost sequence, ct (x, u) = x⊤ Qt x + 0.01u2 ,
Qt = 0.1I + λt vt vt⊤ ,
where ∥vt ∥2 = 1 and 0 ≤ λt ≤ 2000. The construction is intended to encourage frequent switching between K1 and K2 , without prescribing the controller selections. We first sample one disturbance (i) (i) sequence w0 , . . . , w499 and compute the four fixed-controller counterfactual trajectories (xt , ut ). 16
O NLINE S WITCHING C ONTROL AS L EARNING WITH E XPERTS
Initially, let Q0 = Q1 = 0.1I. For t ≥ 2, define (1) (1)⊤
St := xt xt
(2) (2)⊤
− x t xt
,
(1) (2) gt0 := 0.1 tr(St ) + 0.01 (ut )2 − (ut )2 ,
Dt−1 :=
t−1 X
(1) (2) (2) cs (x(1) s , us ) − cs (xs , us ) ,
s=0
ζt := (−1)t+1 − Dt−1 − gt0 . (1)
(2)
To explain this construction, let dt := ct − ct . By the definition of Qt , we have dt = gt0 + λt vt⊤ St vt , and hence Dt = Dt−1 + dt . Since the ratio of their Hedge selection probabilities is pt+1,1 /pt+1,2 = exp(−ηDt ), we aim to make Dt alternate between −1 and 1 to encourage frequent changes in their relative selection probabilities. The quantity ζt represents the additional cost difference required to achieve the target Dt = (−1)t+1 , namely, λt vt⊤ St vt = ζt . We therefore choose vt along an extremal eigenvector of St to adjust the cost difference in the desired direction, and determine λt subject to its upper bound. If ζt > 0, choose µt as the largest eigenvalue of St ; if ζt < 0, choose its smallest eigenvalue. Let vt be a corresponding unit eigenvector. Since vt⊤ St vt = µt , the target λt vt⊤ St vt = ζt is achieved by λt = ζt /µt , provided that ζt µt > 0. To satisfy 0 ≤ λt ≤ 2000 and avoid division by a nearly zero eigenvalue, we set ( min{2000, |ζt /µt |}, ζt µt > 0, |µt | > 10−12 , λt = 0, otherwise. If ζt = 0, we also set λt = 0. Using the resulting Qt , we compute the counterfactual costs and update Dt . Although the constraints on λt may prevent the alternating target gap from being attained exactly, 0.1I ⪯ Qt ⪯ 2000.1I holds for all t. Thus, Assumption 3 holds. Since the cost sequence is constructed entirely from presampled disturbances and fixed-controller counterfactual trajectories, it is independent of the online controller selections and thus satisfies Assumption 1.
17
Related documents
- Online Switching Control as Learning with Experts#1678558
- Event-Triggered Funnel Control for Output Reference Tracking of Unknown Nonlinear Systems#1357808
- Continuous-Time Critic as a Lyapunov Function: Projected Adaptation and Cart-Pole Stabilization#1234355
- Action-Increment-Constrained Policy Optimization for Smooth Online Adaptive Critic Flight Control with Actuator Rate Constraints and Low Computational Complexity (extended version with Ultimate Uniform Boundedness analysis)#1468108
- SD-DPC: Sparse Dictionary Differentiable Predictive Control#1186780
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive