                          Unconstrained Robust Online Convex Optimization


                                                     Jiujia Zhang 1 Ashok Cutkosky 1


                             Abstract                                    known diameter D and a Lipschitz bound G ≥ maxt ∥g √ t ∥.
                                                                         In this setting, the optimal bound is RT (u) ≤ O(GD T )
       This paper addresses online learning with “cor-                   (Zinkevich, 2003; Abernethy et al., 2008).
       rupted” feedback. Our learner is provided with
       potentially corrupted gradients g̃t instead of the                Our work focuses on the unconstrained case W = Rd ,
       “true” gradients gt . We make no assumptions                      where it is typical to aim for a regret guarantee that scales
       about how the corruptions arise: they could be                    not with a uniform diameter bound D, but with the norm
       the result of outliers, mislabeled data, or even                  of the comparator ∥u∥. Such bounds are often called
       malicious interference. We focus on the difficult                 “comparator adaptive” (because they adapt to the compara-
       “unconstrained” setting in which our algorithm                    tor u), or “parameter-free” (because this adaptivity sug-
       must maintain low regret with respect to any com-                 gests that the algorithms require less hyperparameter tun-
       parison point u ∈ Rd . The unconstrained setting                                                 √ the classical algorithms
                                                                         ing). In this unconstrained setting,
       is significantly more challenging as existing al-                 achieve RT (u) = Õ(∥u∥G T ) (Mcmahan & Streeter,
       gorithms suffer extremely high regret even with                   2012; McMahan & Orabona, 2014; Orabona & Pál, 2016;
       very tiny amounts of corruption (which is not                     Orabona, 2014) (which is also optimal).
       true in the case of a bounded domain).
                                         √        Our al-                We are interested in a harder variant of the OCO framework
       gorithms guarantee regret ∥u∥G( T + k) when                       with “corrupted” gradients. Specifically, instead of any
       G ≥ maxt ∥gt ∥ is known, where k is a measure                     direct information about the function ℓt , after each round the
       of the total amount of corruption. When G is                      learner is provided with a vector g̃t that should be interpreted
       unknown we incur an extra additive penalty of                     as an estimate of gt =√∇ℓt (wt ). Our aim is to obtain a regret
       (∥u∥2 + G2 )k.                                                    that scales as ∥u∥G( T + k) for all u ∈ W, where k is
                                                                         some measure of the degree to which g̃t ̸= gt that will be
                                                                         formally defined in Section 2. Roughly speaking, k can
1. Introduction                                                          be interpreted as the number of rounds in which g̃t ̸= gt .
                                                                         Notably, the desired rate is robust to√ adversarial corruptions
In this paper, we consider unconstrained online convex opti-
                                                                         in the sense that it allows k = O( T ) before the bound
mization (OCO) under the presence of adversarial corrup-
                                                                         becomes worse than the optimal result without corruptions.
tions. In general, OCO is a framework in which a learner iter-
atively outputs a prediction wt ∈ W, then observes a vector              Our dual challenges of corrupted g̃t and unconstrained W
gt = ∇ℓt (wt ) for some convex loss function ℓt : W → R,                 are naturally motivated by problems in practice. The uncon-
and then incurs a loss of ℓt (wt ). The learner’s performance            strained setting is ubiquitous in machine learning - consider
over a time horizon T is evaluated by the regret relative to a           the classical logistic regression setting, for which it is un-
fixed competitor u ∈ W, denoted as RT (u):                               usual to impose constraints. The corrupted g̃t in contrast is
                                                                         less commonly studied, but represents a common practical
                   T
                   X                       T
                                           X                             issue: the computed gradients may not be good estimates of
       RT (u) :=         ⟨gt , wt − u⟩ ≥         ℓt (wt ) − ℓt (u)       a “true” gradient, either due to the presence of statistical out-
                   t=1                     t=1                           liers, numerical precision issues in the gradient computation,
The inequality above follows by convexity of ℓt . Classical              or mislabeled or otherwise damaged data.
results in this field consider a bounded domain W with                   We distinguish two different settings in our results: one
   1
    Department of Electrical and Computer Engineering, Boston            in which the algorithm is provided with prior knowledge
University, Boston, USA. Correspondence to: Jiujia Zhang <jiu-           of a number G ≥ maxt ∥gt ∥, and one in which it is
jiaz@bu.edu>, Ashok Cutkosky <ashok@cutkosky.com>.                       not. This is a common dichotomy in unconstrained OCO,
                                                                         even without corruptions.
                                                                                               √     In the former case, the classi-
Proceedings of the 42 st International Conference on Machine             cal result of Õ(∥u∥G T ) is obtainable, while in the latter
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                        case it is not: instead the optimal results are RT (u) ≤

                                                                     1
                                      Unconstrained Robust Online Convex Optimization
                  √
Õ(∥u∥ maxt ∥gt ∥ T + ∥u∥3 maxt ∥gt ∥) (Cutkosky,√  2019;             sults in Appendix D. First, we show that our method can
Mhammedi & Koolen, 2020), or Õ(∥u∥ maxt ∥gt ∥ T +                    be used to solve stochastic convex optimization problems
∥u∥2 + maxt ∥gt ∥2 ) by Cutkosky & Mhammedi (2024).                   in some of the gradient computations are altered in an ar-
                particularly whenever G is not excessively
The later excels√                                                     bitrary way. Second, we solve a natural “online” version
large: G ≤ ∥u∥ T .                                                    of a distributionally robust optimization problem. Before
                                                                      providing our main results, we introduce notation and define
To the best of our knowledge, the setting of unconstrained
                                                                      our corruption model in Section 2.
OCO with corruptions has not been studied before. Perhaps
the closest works to ours are Zhang & Cutkosky (2022); Jun
& Orabona (2019); van der Hoeven (2019) and van Erven                 2. Notation and Problem Setup
et al. (2021). (Zhang & Cutkosky, 2022; Jun & Orabona,
                                                                      Notation For each t, ℓt : W → R is a convex function,
2019; van der Hoeven, 2019) study the unconstrained set-
                                                                      where and W = Rd . Let wt ∈ W be iterates from some
ting, but assume that g̃t is a random value with E[g̃t ] = gt .
                                                                      online learning algorithm and denote gt = ∇ℓt (wt ) as the
In contrast, we assume no such stochastic structure on g̃t .
                                                                      “true” (sub)gradient. Let g̃t be the the corrupted gradient
On the other hand, van Erven et al. (2021) does not make
                                                                      observed by the learner. Define 1{·} as the indicator func-
any assumptions about the nature of the corruptions, but
                                                                      tion, where 1{TRUE} = 1, 1{FALSE} = 0. We use | · |
assumes that W√has finite diameter D. They achieve a re-
                                                                      to denote the cardinality of a set. Let ∥ · ∥ denote the Eu-
gret of O(DG( T + k)). Our development will borrow
                                                                      clidean norm. Denote R+ = {x ∈ R : x ≥ 0}. We
some ideas from van Erven et al. (2021) with the aim to
                                                                      define shorthand notation for sets [T ] = {1, 2, . . . , T } and
bound RT (u) , but we face unique difficulties. As detailed
                                                                      [a, T ] = {a, a+1, . . . , T } for any a ∈ [T ]. We use B ⊆ [T ]
in Section 3, the unconstrained setting means that even very
                                                                      to denote an index set, and B̄ = [T ] \ B for its complement.
small corruptions could have dire consequences (unlike in
                                                                      We use O(·) to hide constant factors and Õ(·) to additionally
the constrained setting). Moreover, if the Lipschitz constant
                                                                      conceal any polylogarithmic factors.
G is not known, the problem becomes even more challeng-
ing; as detailed in Section 6.1, prior methods for handling
unknown G do not apply because we never learn G even at               Problem Setup Instead of the true gradients gt , our algo-
the end of all T rounds.                                              rithms only receive potentially corrupted gradients g̃t . Two
                                                                      natural measures to quantify corruptions are:
The notion of adversarial corruption is common in the field
of robust statistics, with early efforts focusing primarily on                                        T
                                                                                                            1{gt ̸= g̃t }
                                                                                                      X
the presence of outliers in linear regression (Huber, 2004;                             kcount :=                                 (1)
Cook, 2000; Thode, 2002). These insprired broader appli-                                              t=1
cation in machine learning, asuch as Robust PCA (Candès
et al., 2011), anomaly detection (Raginsky et al., 2012;                                                    T
Delibalta et al., 2016; Zhou & Paffenroth, 2017; Sankarara-                                           1 X
                                                                                      kdeviation :=         ∥gt − g̃t ∥           (2)
man et al., 2022), robust regression (Klivans et al., 2018;                                           G t=1
Cherapanamjeri et al., 2020; Chen et al., 2022), and mean
estimation (Lugosi & Mendelson, 2021). For a comprehen-
sive review of recent advances in this area, see Diakonikolas         where G is a scalar that satisfies G ≥ maxt ∥gt ∥ and is often
& Kane (2019).                                                        referred as the “Lipschitz constant”. The metric kcount counts
                                                                      the rounds in which g̃t ̸= gt but allowing for arbitrarily large
Adversarial corruption has also been studied in iterative             deviations ∥g̃t − gt ∥ in those rounds. This is suitable for
optimization setting other than OCO, such as in stochastic            detecting outlier effects and highlighted in studies such as
bandits (Lykouris et al., 2018; Gupta et al., 2019; Ito, 2021;        (van Erven et al., 2021; Sankararaman & Narayanaswamy,
Agarwal et al., 2021) and stochastic optimization (Chang              2024). Conversely, kdeviation measures the cumulative devia-
et al., 2022; Sankararaman & Narayanaswamy, 2024).                    tion, accommodating corruption in every round, making it
                                                                      optimal for identifying subtle yet widespread errors or ma-
Contributions and Organization In the case that the                   licious activities, akin to the issues addressed in (Lykouris
algorithm is given prior knowledge of G, we                           et al., 2018; Gupta et al., 2019; Ito, 2021; Agarwal et al.,
                                              √ provide an
algorithm that achieves RT (u) = Õ(∥u∥G( T + k)) in                  2021; Chang et al., 2022).
Section 5.1, with a matching lower bound (see Section 5.2).           In order to provide a unified way to study those two distinct
Alternatively, when G is unknown, a regret bound with an              corruption measures in Equation (1) and (2), we assume that
additional penalty of (∥u∥2 + G2 )k is attained (see Section          our algorithm is provided with a number k that satisfies:
6.3).
Meanwhile, we provide two specific applications of our re-                      |B| := |{t ∈ [T ] : ∥gt − g̃t ∥ ≥ G}| ≤ k         (3)

                                                                  2
                                             Unconstrained Robust Online Convex Optimization




                   (a)                                                     (b)                                                  (c)

Figure 1. KT-bettor with ℓ(w) = |w − 1| and comparator u = 1. (a)-(b): T = 400 and corruption happens during t ∈ [300, 319]. (c):
Ratio between regrets with and without corruptions with various total corrupted rounds k ∈ [20, 30, 40, 50, 60, 70] and T = k2 .



and also:                                                                        The situation is much more difficult in the unconstrained
                    T
                                                                                 setting. Algorithm for this setting typically produce out-
                1 X                                                              puts wt that potentially grow exponentially fast in order to
                      min (∥gt − g̃t ∥, G) ≤ k                       (4)
                G t=1                                                            quickly compete with comparators that are very far from
                                                                                 the starting point. However, this also means the algorithm is
Intuitively, B denotes the rounds with a “large” amount of                       especially fragile to corruption since the growth of wt can
corruption. Notice that                                                          be highly sensitive to deviations in ∥gt − g̃t ∥. Even a small
                                                                                 deviation could cause wt to move extremely far away and
                  |B| ≤ min (kcount , kdeviation )                               therefore incur a very high regret. This phenomenon is illus-
                                                                                 trated in Figure 1 with the KT-bettor algorithm (Orabona &
and
                                                                                 Pál, 2016), which is a standard example of an unconstrained
          T                                                                      learner.
      1 X
            min (∥gt − g̃t ∥, G) ≤ min (kcount , kdeviation )
      G t=1                                                                      In Figure 1, we considered ℓt (w) = |x − 1| for all t. Figure
                                                                                 1a and 1b demonstrate k = 20 gradients being corrupted by
Hence, an algorithm whose complexity depends on k satis-                         setting g̃t = −gt during rounds t ∈ [300, 300 + k − 1] =
fying Equation (3) and (4) can be used with either k = kcount                    [300, 319] over a time span of T = k 2 = 400. This results
or k = kdeviation depending on which is more appropriate to                      in an exponential deviation away from the comparator u = 1
the problem at hand.                                                             and so incurs a high regret. Finally, we show that this
                                                                                 problem becomes exacerbated as k increases by simulating
3. Challenges in Unconstrained Domain                                            k ∈ [20, 30, 40, 50, 60, 70] for T = k 2 in Figure 1c.

Dealing with corruptions with an unconstrained domain is
significantly more challenging than one with a bounded
                                                                                 4. Robustification through Regularization
domain. As an illustration of the added difficutly, suppose                      In this section, we outline our general algorithm-design
the corruptions are so “small” that ∥gt − g̃t ∥ ≤ G for all                      recipe. When receiving possibly corrupted gradients g̃t , we
t. Then in a bounded W with a diameter D, an algorithm                           first employ a gradient clipping step with some threshold ht
that completely ignores the possibility of corruptions and                       that outputs a “clipped” version g̃tc , defined as follows:
directly runs on g̃t will have low regret. This can be seen
as follows: since ∥u − wt ∥ ≤ D for every u, wt ∈ W, we
have:
                                                                                                              g̃t
                                                                                                    g̃tc =          min (ht , ∥g̃t ∥)              (5)
T
X                        T
                         X                        T
                                                  X                                                          ∥g̃t ∥
      ⟨gt , wt − u⟩ ≤          ⟨g̃t , wt − u⟩ +         ∥gt − g̃t ∥∥wt − u∥
t=1                      t=1                      t=1
                         T
                         X                                                       This preprocessing step “corrects” some corruption effect
                   ≤           ⟨g̃t , wt − u⟩ + kGD
                                                                                 when ht is appropriately chosen. For example, in the case
                         t=1
                                                                                 of ht = G ≥ maxt ∥gt ∥, then g̃tc is always “less corrupted”
In this case, ∥u − wt ∥ ≤ D prevents the algorithm from                          than g̃t , as ∥g̃tc − gt ∥ ≤ ∥g̃t − gt ∥. Then g̃tc is used as a feed-
straying too far from the comparator u.                                          back to an online learner, yielding the following expression

                                                                            3
                                                 Unconstrained Robust Online Convex Optimization

for RT (u):                                                                    ht = G for all iterations in the definition of g̃tc (see Equa-
                                                                               tion (5)).
                  T
                  X
    RT (u) :=       ⟨gt , wt − u⟩
                  t=1
                                                                               5.1. The Algorithm and Regret Guarantee
                  T
                  X                         T
                                            X                                  The quantity ERROR as defined in Equation (6) can be upper
              =         ⟨g̃tc , wt − u⟩ +     ⟨gt − g̃tc , wt − u⟩             bounded by:
                  t=1                       t=1
                                                                                                                            
Next, we incorporate a regularization function rt : W → R.                                   X                X
We can re-write RT (u) as the following:                                        ERROR ≤       ∥gt − g̃tc ∥ +    ∥gt − g̃tc ∥ max ∥wt ∥
                                                                                                                                                t
                                                                                              t∈B                      t∈B̄
                    T
                    X
                                                                                                                              !
                              ⟨g̃tc , wt − u⟩ + rt (wt ) − rt (u)
                                                                                              X
       RT (u) :=                                                                         ≤          ∥gt − g̃t ∥ + G|B̄| max ∥wt ∥
                        t=1                                                                                                         t
                    |                       {z                 }                              t∈B
                                           A (u)
                                        :=RT                                             ≤ kG max ∥wt ∥
                                                                                                    t
                      T
                      X                     T
                                            X
                    +   ⟨gt − g̃tc , wt ⟩ −   rt (wt )                         where B is defined in Equation (3), and B̄ = [T ] \ B. The
                      |
                         t=1
                            {z          } | {z }
                                                    t=1                        second line is due to ∥gt − g̃tc ∥ ≤ ∥gt − g̃t ∥ ≤ G, ∀t ∈
                          :=ERROR         :=CORRECTION                         B̄, because ht = G ≥ ∥gt ∥. The last inequality is due
                      * T                +    T
                        X                    X                                 to the corruption model presented in Equation (4). This
                    +      gt − g̃tc , −u +      rt (u)              (6)       suggests that the worst case value for ERROR is at most
                         |
                              t=1
                                            {z
                                                      t=1
                                                               }               kG maxt ∥wt ∥. This could potentially be exponential in t
                                          :=BIAS                               as shown in Lemma 8 (Zhang & Cutkosky, 2022). On the
                                                                               other hand, no matter which regularizer rt we choose, a
The interpretation is that RT (u) can be controlled through
                                                                               worst case upper bound on BIAS can be derived:
four components ERROR, CORRECTION, BIAS and a com-
posite regret RTA (u). Here, RTA (u) is the regret of an online                                                           T
learner A with respect to the losses ⟨g̃tc , w⟩ + rt (w). Some
                                                                                                                          X
                                                                                                BIAS ≤ kG∥u∥ +                    rt (u)
information about the structure of rt may be known be-                                                                    t=1
fore wt is chosen, making this problem similar to online
optimization with composite losses (Duchi et al., 2010).                       To enable CORRECTION to cancel ERROR while ensuring
We summarize the general procedure as Algorithm 1. De-                         BIAS does not grow too large, the ideal choice of regularizer
pending on whether G ≥ maxt ∥gt ∥ is known or not, the                         rt should achieve the following bounds simultaneously:
appropriate settings for ht , the selection of regularizer rt                  T                                              T
and the online learner A differs. We apply this general
                                                                               X                                              X
                                                                                     rt (wt ) ≥ Ω̃(kG max ∥wt ∥),                   rt (u) ≤ Õ(kG∥u∥)
framework to the case where G is known in Section 5.1                                                      t
                                                                               t=1                                            t=1
first, and the consider the significantly more challenging
unknown-G setting in Section 6.                                                To accomplish this, we choose rt (w) = ft (w) as displayed
                                                                               in Equation (7), which belongs to family of Huber losses
Algorithm 1 General Protocol                                                   first proposed by (Zhang & Cutkosky, 2022):
 1: Input: Clipping thresholds: 0 < h1 ≤ · · · ≤ hT +1                                                                                  1−1/p
                                                                                           ft (w; c, p, α) = cσt (w; p, α)/St                       (7)
    An online learning algorithms A.
    A regularizer: rt : W → R+                                                 where
 2: for t = 1 to T do                                                                                          t
                                                                                                               X
 3:   Play wt , receive g̃t                                                                             St =         ∥wi ∥p + αp                    (8)
 4:   Compute g̃tc as Eqn. (5)                                                                                 i=1
 5:   Send g̃tc , ht+1 to A and get wt+1                                       and a piecewise function σt :
 6: end for                                                                                   (
                                                                                               ∥w∥p ,                        ∥w∥ ≤ ∥wt ∥
                                                                               σt (w; p, α) =                            p−1
                                                                                               (p∥w∥ − (p − 1)∥wt ∥)∥wt ∥ , otherwise
5. Robust Learning with Knowledge of                                                                                            (9)
   Lipschitz Constant
In this section, we proceed under the simpler setting that                     This function behaves polynomially near ∥wt ∥ and linear
G ≥ maxt ∥gt ∥ is known a priori. We therefore will set                        otherwise. By setting c = kG, p = ln T, α = ϵ/k, ft

                                                                           4
                                          Unconstrained Robust Online Convex Optimization

achieves the desired properties. See a detailed discussion                  of Theorem 5.1 is tight with respect to some comparator u∗
of the characteristics of this family of losses in (Zhang &                 with any pre-specified magnitude. In addition, we provide a
Cutkosky, 2022). For completeness we include a proof                        second lower bound as Theorem E.5 in Appendix E, which
of the relevant properties in Lemma B.1. Overall, these                     has the matching log factor.
bounds allow ERROR − CORRECTION ≤ Õ(1) and BIAS ≤                          Theorem 5.2. For every D > 0, there exists a comparator
Õ(kG∥u∥).                                                                  u∗ ∈ Rd such that ∥u∗ ∥ = D, g̃1 , · · · , g̃T and g1 , · · · , gT
                                                                            such that ∥gt ∥, ∥g̃t ∥ ≤ 1, t=1 1{g̃t ̸= gt } = k:
                                                                                                        PT
Armed with this peculiar regularization function, we now
need an online learner that can control RTA (u). This is simi-
                                                                                     T                           √
lar to online learning with loss ℓ̃t (wt ) := ⟨g̃tc , wt ⟩ + rt (wt )                X                    h              i
at each round t. However, we cannot simply apply any stan-                             ⟨gt , wt − u∗ ⟩ ≥ Ω ∥u∗ ∥    T +k
                                                                                     t=1
dard OCO algorithm to these losses. The issue is that regu-
larizer rt is Θ(kG) Lipschitz rather than G-Lipschitz.        √So,
a naive approach would result in RTA (u) = Õ(∥u∥kG              T ),       6. Robust Learning with Unknown Lipschitz
                                                        √
but we want our final regret to be only Õ(∥u∥G( T + k)).                      Constant
The key to avoid the multiplicative k-factor is to observe
                                                                            In this section, we consider the scenario where G ≥
that rt is known ahead-of-time: it is a composite term in the
                                                                            maxt ∥gt ∥ is unknown. We first discuss the additional chal-
loss, and so ideally the regret should only depend on g̃tc . Un-
                                                                            lenges must be addressed in Section 6.1, followed by intu-
fortunately, composite losses are not as well-studied in the
                                                                            ition of selecting ht , rt . Finally, we discuss the choice of
unconstrained online learning literature. Moreover, our com-
                                                                            the base algorithm A and the regret guarantee.
posite loss is somewhat non-standard in that the shape of the
function rt depends slightly on wt . Nevertheless, we show
that in fact the online mirror descent algorithm developed by               6.1. Challenges with Unknown G
(Jacobsen & Cutkosky, 2022) actually does guarantee com-       √            The combination of unconstrained domain, unknown G and
posite regret in our setting. That is RTA (u) ≤ Õ(∥u∥G T )                 corrupted gradients provides a set of challenges that stymie
(see Theorem C.2, and an explicit algorithmic update proce-                 current techniques in the literature. Let us unpack these
dure in Algorithm 2). By combining these ingredients, we                    challenges carefully, starting from where our analysis in
are ready to state the overall regret bound, whose proof is                 Section 5 breaks down.
deferred to Appendix D.
                                                                            Previously, we employed a clipping threshold ht = G to
Theorem 5.1. Suppose gt , g̃t satisfies assumptions in Equa-                automatically filter out g̃t values that were in some sense
tion (3) and (4). Setting ht = G, rt = ft as defined in                     “obviously corrupted”, replacing them with values that were
Equation (7) with c = kG, p = ln T, α = ϵ/k for some                        only corrupted by at most G. Then, we employed a tech-
ϵ > 0, set Algorithm 2 algorithm as the base algorithm A.                   nical regularization scheme by setting rt = ft to “cancel”
Then Algorithm 1 guarantees:                                                out these bounded corruptions. This strategy is no longer
                      h               √       i                           available: we do not know G.
           RT (u) ≤ Õ ϵG + ∥u∥G          T +k
                                                                            A natural approach would be to maintain a time-varying
                                                                            threshold ht that estimates G on-the-fly, and use it in place
Theorem 5.1 shows that the penalty for corrupted gradients                  of the unknown constant G. However, this is harder than it
is at most Õ(∥u∥Gk). This result
                               √ has a few intriguing prop-                 seems because inevitably we will sometimes have ht < G,
erties. First, so long as k ≤ T , the penalty is subasymp-
                                                         √                  and so we are likely to clip even an uncorrupted gradi-
                                   √ bound Õ(∥u∥G T ).
totic to the standard uncorrupted regret                                    ent: g̃tc ̸= gt even when g̃t = gt . This means that unlike
That is, we can tolerate k up to T essentially “for free”.                  the known G-case, our clipping operation is not purely be-
Next, observe that for u = 0, the regret is ϵ no matter what k              nign. Nevertheless, methods in the literature for tackling
is. Constant regret at the origin is typical for unconstrained              the unknown-G setting without corruptions often use ex-
algorithms, but is especially remarkable for our corrupted                  actly this method with ht = maxi<t ∥gi ∥ ≤ G (Cutkosky,
setting. Imagine a scenario in which we define 0 to repre-                  2019; Mhammedi & Koolen, 2020; Cutkosky & Mhammedi,
sent some “default” action. Our bound then suggests that                    2024).
no matter how much corruption is present, we never do
significantly worse than this default.                                      Unfortunately, this does not work for our corrupted setting.
                                                                            The new difficulty is that we never know the value G, even
                                                                            in hindsight. The choice ht = maxi<t ∥g̃i ∥ is bad: a single
5.2. Lower Bounds
                                                                            corrupted gradient with ∥g̃t ∥ ≫ G will be catastrophic.
We present a lower bound in Theorem 5.2 with proofs de-                     Moreover, even if we were guaranteed that ∥g̃t ∥ ≤ G for
ferred in Appendix E. This result shows that the upper bound                all t, it might be that ∥gt ∥ ≥ ht , so that truncation actually

                                                                        5
                                         Unconstrained Robust Online Convex Optimization

results in ∥gt − g̃tc ∥ ≥ ∥gt − g̃t ∥. We will call this additional           10
bias a “truncation error”. As a result, we need to address a                                                               σt (w)
new challenge:                                                                  8                                           |w|2
                                                                                6
  1. How can we choose ht in a robust way that serves as
                                                                                4
     a good estimate of G without introducing too much
     truncation error?                                                          2
                                                                                0
In addition, even if we could address challenge 1 and have                       −4            −2                  0              2                   4
access to ht ≲ G, the regularizer rt = ft used for our                                                             w
known-G algorithm also required exact knowledge of the
value for G. We rely on the scaling factor c ≥ O(kG) to                   Figure 2. Comparison of Huber loss ft without scaling factor σt
P big enough to “cancel” the ERROR ≤ kG maxt ∥wt ∥ as
be                                                                        with p = 3, |wt | = 1, and |w|2 . |w|2 always grow faster than
   t ft (wt ) ≥ Õ(c maxt ∥wt ∥). Therefore, simply setting               σt (w) far away from the origin.
c = kht is not sufficient since ht values are likely smaller
than G.
In the known-G case, the Huber regularizer ft almost per-                 iterations in which ∥g̃t ∥ ≥ ht . This mechanism is named as
fectly cancels the error by imposing a penalty that is also               FILTER and is displayed as Algorithm 3 in Appendix F.
roughly proportional to maxt ∥wt ∥. The challenge in the
                                                                          Notice that ht only doubles if it is guaranteed that some
unknown G-case is that the proportionality constant of kG
                                                                          gt satisfies ht ≤ ∥gt ∥, so that ht ≤ O(G) always. Denote
is unknown, so we cannot perform this cancellation. In-
                                                                          rounds where gradients are clipped as P̄ = {t ∈ [T ] : g̃t ̸=
stead, we propose to use a regularizer rt (w) = O(∥w∥2 )
                                                                          g̃tc }, that is P̄ denotes rounds that have ht ≤ ∥gt ∥. The
that grows faster than the Huber regularizer ft as illustrated
                                                                          conditional doubling mechanism also ensures |P̄| ≤ Õ(k)
in Figure 2. This way, kG maxt ∥wt ∥ ≤ rt (maxt ∥wt ∥)
                                                                          (See Lemma F.2). This means only a small fraction of g̃t are
for large enough ∥wt ∥ no matter what G is.P By scaling
                                                                          truncated before ht becomes a very accurate estimate of G.
rt appropriately, we would like to ensure t rt (wt ) ≥
                   2                                                      Hence, the total rounds which are vulnerable to suffering
P maxt ∥wt ∥ ). Then, as long as maxt ∥wt ∥ ≥ G,
Ω(k
                                                                          from truncation error is small. This FILTER strategy im-
   t rt (wt ) will completely cancel ERROR . So overall, with-            proves upon a method with a similar purpose in van Erven
out prior knowledge of G, ERROR − CORRECTION ≤
                                                                          et al. (2021); it uses only constant space rather than O(k)
O(kG2 ) is guaranteed. However, the quadratic growth of rt
                                                                          space.
introduces another challenge:

  2. How can we exploit a more aggressive quadratic regu-                 Challenge 2: As a consequence of using ht from FILTER
          P without introducing too much regularization
     larization                                                           as the clipping threshold, we can decompose the ERROR
     bias t rt (u) for arbitrary u ∈ W?                                   term defined in Equation (6) by using g̃t = g̃tc for t ∈ P:


                             Pconstant regularizer rt (u) =
In particular, notice that any                                                         X                               X
                                                                           ERROR ≤            ∥gt − g̃tc ∥∥wt ∥ +            ∥gt − g̃t ∥∥wt ∥ (10)
C∥w∥2 would add bias of t rt (u) = T C∥u∥2 to the re-
                                                                                       t∈P̄                            t∈P
                    P require C = O(1/T ). This in turn is
gret, so that we would                                                                 |           {z              }   |           {z             }
                                                                                                                           EP :corruption error
too small to ensure t rt (wt ) ≥ Ω(k maxt ∥wt ∥2 ). Our so-                                EP̄ :truncation error

lution will require a more nuanced time-varying regularizer.
                                                                          Therefore, we must choose a regularizer rt to offset those
                                                                          errors. We discuss how each error component is treated and
6.2. Adaptive Thresholding and Error Correction                           finally reveal the structure of rt .
Challenge 1: To meet the challenge of choosing ht prop-                   Truncation error EP̄ can be reduced by keeping ∥wt ∥ from
erly, we introduce a “tracking mechanism” that conserva-                  being too large. Thus, every time we experience some
tively increases ht over time. The key insight is that at most            truncation error, we would like to use some regularization
k values of t can have ∥g̃t ∥ > 2G (See Lemma F.1). Based                 to force the learner to decrease ∥wt ∥. To this end, we use
on this observation, we propose a simple way to maintain a                a quadratic regularization penalty αt ∥wt ∥2 where αt ̸= 0
“threshold” ht which provides a conservative lower bound                  only when t ∈ P̄ so as to only encourage wt to decrease only
estimate of G. The threshold ht starts with some small value              when we have “evidence” that truncation error has occurred.
h1 = τG > 0 and stays constant until we observe k + 1                     Then, for any round t ∈ P̄ we bound the truncation error

                                                                      6
                                          Unconstrained Robust Online Convex Optimization

minus the quadratic regularizer αt ∥wt ∥2 as follows:                              So, applying a sufficiently large regularization on ex-
                                                                                   actly the indices in P0 will ideally be enough to cancel
    ∥gt − g̃tc ∥∥wt ∥ − αt ∥wt ∥2 ≤                                                all of the corruption error. Further, notice that |P0 | ≤
                                                        ∥gt − g̃tc ∥2              O(ln(maxt ∥wt ∥)). Thus, one might hope to apply an ap-
                  sup ∥gt − g̃tc ∥X − αt X 2 =
                  X≥0                                       4αt                    proach similar to the one used for truncation error: use
                                                                                   a regularizer βt ∥w∥2 with βt = 0 for t ∈      / P0 and βt
such a regularization scheme implies overall:                                      equal to some constant β for t ∈ P0P       . Unfortunately,
            X                   X ∥gt − g̃ c ∥2              X 1                   this will yield a regularization bias of t∈P0 β∥u∥2 ≤
                                             t
   EP̄ −          αt ∥wt ∥2 ≤                       ≤ G2                           O(β ln(maxt ∥wt ∥)∥u∥2 ). While this seems benign, recall
              t
                                       4αt                          αt
                                t∈P̄                         t∈P̄                  that actually maxt ∥wt ∥ may be exponential in T , so that
                                                                                   ln(maxt ∥wt ∥) is still polynomial in T . To resolve this, we
and additional regularization bias is ∥u∥2 t αt . This
                                               P
                                                                                   gradually attenuate βt by choosing:
means the truncation error will be controlled as O(kG2 ),
and the additional bias from this regularization will also be
mild as O(k∥u∥2 ), if the following conditions hold simulta-                                                    1{zt+1 ̸= zt }
neously:                                                                                       βt = γ β ·                                                (12)
                                                                                                             1 + i=1 1{zi+1 ̸= zi }
                                                                                                                Pt
        X                           X
            1/αt ≤ O(k),                 αt ≤ O(k)                                 With this choice, the following are guaranteed:
        t∈P̄                            t∈[T ]                                                                                 
                                                                                                X                1
Notice that |P̄| ≤ Õ(k) and that ht+1 ̸= ht , ∀t ∈ P̄. Thus,                                        1/βt ≤ Õ     ln max ∥wt ∥
                                                                                                                 k      t
                                                                                               t∈P0
the following αt fulfills both requirements:
                                                                                   and
                     αt = γα · 1{ht+1 ̸= ht }                           (11)                 X
                                                                                                     βt = Õ(k ln ln max ∥wt ∥) = Õ(k)
by setting γα = O(1).                                                                                                      t
                                                                                            t∈[T ]
Next, for managing the corruption error EP , one might at-
                                                                                   with γβ = O(k). The first identity guarantees that
tempt to take the same approach by imposing an additional
                                                                                   EP − t βt ∥wt ∥2 is at most Õ(kG2 ln maxt ∥wt ∥), while
                                                                                          P
quadratic regularizer βt ∥wt ∥2 . Similar calculation as used
                                                                                   PT second 2ensures that2 the additional bias is only
                                                                                   the
in the control of truncation error suggests  that we can con-
                                                                                      t=1 βt ∥u∥ ≤ Õ(k∥u∥ ). Now, we still need to han-
                                     P
trol the corruption error so long as   t∈P 1/β  t ≤ O(k) and
P
     β   ≤ O(k)   holds simultaneously.   Unfortunately,   |P|                     dle the potentially-large Õ(kG2 ln maxt ∥wt ∥) term. This
   t t
could potentially be as large as Ω(T ), and so it is not possi-                    remaining corruption bound can be controlled by adding a
ble to pick constant βt , ∀t ∈ P that satisfies these desired                      P multiple of the
                                                                                   small                  Huber regularizer ft , which satisfies
                                                                                                       2
rates.                                                                                 f
                                                                                      t t (w) ≥ Õ(kG    ln maxt ∥wt ∥) even for c ≪ G.

Our remedy is to apply a milder regularization by combining                        To summarize, our solution to solve Challenge 2 is to set
the quadratic regularizer which is active only on a smaller                        regularizer as:
subset P0 ⊆ P and the Huber regularization ft which is                                                 rt (w) = ft (w) + at ∥w∥2
active at every round. To see how this will work, suppose we
divide the T rounds into N “epochs” in which maxt ∥wt ∥ ∈                          where at = αt + βt . Overall, the sparsely applied quadratic
[2N , 2N +1 ]. Specifically, we begin with some z1 = τD > 0.                       regulaization and small Huber regularization at every round
Whenever ∥wt ∥ ≥ zt , we set zt+1 = 2∥wt ∥, and zt+1 = zt                          allow the following bounds as shown in Lemma H.2:
otherwise (formally summarized as TRACKER as Algorithm
                                                                                   ERROR − CORRECTION ≲
4, Appendix G). We choose P0 = {t : zt+1 ̸= zt }, that                                                               
is time steps P0 = {τ1 , . . . , τN } when threshold doubles.                                                1
                                                                                                             X   X 1     XT

For any two consecutive time steps τn , τn+1 ∈ P0 , we                                         (kG)2          +      −     ft (wt )
                                                                                                            α
                                                                                                      t:α >0 t
                                                                                                                   βt
define [τn : τn+1 − 1] as a single “epoch” for each n ∈ N .                                                    t         t=1   t:βt >0
Notice that for t ∈ [τn , τn+1 − 1], we must have ∥wt ∥ ≤                          and
2∥wτn ∥. Further, the total corruption error incurred in one                                                                   !
                                                                                                       T            T                  T
such “epoch” is:                                                                                   2
                                                                                                       X            X                  X
                                                                                    BIAS ≲ ∥u∥               αt +         βt       +         ft (u) + kG∥u∥
    τn+1 −1                                  τn+1 −1                                                   t=1          t=1                t=1
     X                                           X
              ∥gt − g̃tc ∥∥wt ∥ ≤ 2∥wτn ∥                ∥gt − g̃tc ∥
                                                                                   with   appropriately        chosen          constants,        ERROR    −
     t=τn                                        t=τn
                                                                                   CORRECTION ≤ Õ(kG2 ) and BIAS ≤ Õ(kG∥u∥ + ∥u∥2 )
                                 ≤ 2kG∥wτn ∥                                       are achieved.

                                                                               7
                                        Unconstrained Robust Online Convex Optimization

6.3. Base Algorithm and the Regret                                       Corollary 6.2. With c = kτG , γβ = k, γα = 1, τD = ϵ/k
                                                                         and rest of parameters same as Theorem 6.1, Algorithm 1
With the regularizer rt chosen in the previous section, it
                                                                         guarantees a regret bound:
remains to choose a learner A which guarantees regret:
                                                                                           "
                                                                                                               √       
                    T
                    X                                                          RT (u) ≤ Õ ϵ[G]τG + ∥u∥[G]τG      T +k
       RTA (u) :=     ⟨g̃tc , wt − u⟩ + ft (wt ) − ft (u)
                    t=1                                                                                                          #
                                                                                                              2
                                                                                                                  + [G]2τG
                      T
                                                                                                                             
                      X                                                                      + (k + 1) ∥u∥
                            at ∥wt ∥2 − ∥u∥2
                                               
                  +
                      t=1
                                                                         where [G]τG := max(τG , G).
However, the solution of Section 5.1 of learning with com-
posite loss ℓ̃t (w) = ⟨g̃tc , wt ⟩ + ft (w) + at ∥w∥2 is no longer       Just as in the known-G
                                                                                           √     case, the parameter settings
                                                                                                                       √      in Corol-
appropriate because it requires the composite term to be                 lary 6.2 yield Õ( T ) regret so long as k ≤ T so that we
known in round t. Unfortunately, in this case the quadratic              can experience a significant amount of corruption without
component depends on at = αt + βt , which is unknown                     damaging the asymptotics of the regret bound.
until g̃tc is revealed. Due to the quadratic component, we
                                                                         We can also achieve the desirable “safety” property of The-
employ the “epigraph-based regularization” technique re-
                                                                         orem 6.1 in which the regret with respect to the baseline
cently developed by Cutkosky & Mhammedi (2024) to
                                                                         point u = 0 is constant no matter what k is via a differ-
construct A. Briefly, this technique projects convex op-
                                                                         ent setting of the regularization parameters as provided in
timization problems in W = Rd to an augmented space
                                                                         Corollary 6.3:
Rd+1 . The first d coordinate of the solution in the aug-
mented space is the decision variable wt , and the extra                 Corollary 6.3. With c = τG , γβ = k 2 , γα = k + 1, τD = 1
coordinate is a technical device that is used to modify the              and rest of parameters same as Theorem 6.1, Algorithm 1
loss in a way that makes it easier to control the quadratic              guarantees a regret bound:
penalty. We incorporate                   in our set up to obtain
                             this technique
                       √
                                                                                     "
RTA (u) ≤ Õ ∥u∥G T + ∥u∥2 k as provided in Theorem                      RT (u) ≤ Õ ϵ[G]τG + (k + 1)[G]τG + [G]2τG
I.3. We leave a brief summary of the technique in Appendix                                                                               #
I.                                                                                                 √               
                                                                                                                                 2   2
                                                                                      + ∥u∥[G]τG        T + k + 1 + ∥u∥ (k + 1)
Combining with the error correction parts from the previous
section, we obtain a general regret guarantee as follows with
free parameters c, γα , γβ that specify the Huber regularizer            where [G]τG := max(τG , G).
and quadratic regularizers:
                                                                         However, in this case we now pay a larger penalty for u ̸= 0
Theorem 6.1. Suppose gt , g̃t satisfies assumptions in Equa-             that scales with k 2 rather than k. This is a natural tradeoff:
tion (3) and (4). Setting rt (w) = ft (w) + αt ∥w∥2 , where ft           we ensured constant regret at the origin by increasing the
is defined in Equation (7) with parameters: α = ϵτG /c, p =              regularization away from the origin. The overall regulariza-
ln T, γ = γα + γβ , for some ϵ, c, γα , γβ , τG , τD > 0, set            tion is stronger, which encourages smaller ∥wt ∥. Thus, this
Algorithm 5 algorithm as the base algorithm A. Then Algo-                algorithm configuration is likely to be advantageous when
rithm 1 guarantees:                                                      competing with small ∥u∥.
              "
                                                   √       
RT (u) ≤ Õ ϵ[G]τG + kτD [G]τG + ∥u∥[G]τG             T +k               7. Conclusion
           + c (∥u∥ + τD ) + (γα (k + 1) + γβ ) ∥u∥2                     In this paper, we considered unconstrained online convex
                                         #                               optimization that only have access to potentially corrupted
             (k + 1)[G]2τG    k 2 [G]2τG                                 gradients g̃t instead of the true gradient gt , in which the
           +               +
                  γα               γβ                                    corruption level is measured by k. In the case that G ≥
                                                                         maxt ∥gt ∥ is known, we provide an algorithm
                                                                                                               √         that achieves
                                                                         the optimal regret guarantee ∥u∥G( T + k). When G
Notice that although it appears possible to set c = 0 in the
                                                                         is unknown it incur an extra additive penalty of (∥u∥2 +
above bound, there is a log(1/c) term hidden inside the Õ
                                                                         G2 )k. While the ∥u∥2 + G2 is optimal without corruption
that prevents excessively small c values.
                                                                         (Cutkosky & Mhammedi, 2024), it is unclear whether the
Next, we provide two different way to set c, γβ . By setting             multiplicative dependence on k is optimal in the presence
both c, γβ = O(k) and τD = O(1/k), we obtain:                            of corruption.

                                                                     8
                                      Unconstrained Robust Online Convex Optimization

Impact Statement                                                      Cutkosky, A. Artificial constraints and hints for unbounded
                                                                        online learning. In Proceedings of the Thirty-Second
This paper advances the theoretical understanding of on-                Conference on Learning Theory, pp. 874–894, 2019.
line convex optimization, contributing to the mathematical
foundations of machine learning. As it does not involve               Cutkosky, A. and Mhammedi, Z. Fully unconstrained online
deployable systems or datasets, the broader societal and                learning. Advances in Neural Information Processing
ethical implications are indirect, and no specific concerns             Systems, 2024.
need to be highlighted.
                                                                      Cutkosky, A. and Orabona, F. Black-box reductions for
                                                                        parameter-free online learning in banach spaces. In Con-
References                                                              ference On Learning Theory, pp. 1493–1529, 2018.
Abernethy, J., Bartlett, P. L., Rakhlin, A., and Tewari, A.
                                                                      Delibalta, I., Gokcesu, K., Simsek, M., Baruh, L., and Kozat,
  Optimal strategies and minimax lower bounds for online
                                                                        S. S. Online anomaly detection with nested trees. IEEE
  convex games. In Proceedings of the nineteenth annual
                                                                        Signal Processing Letters, 23(12):1867–1871, 2016.
  conference on computational learning theory, pp. 415–
 424, 2008.                                                           Diakonikolas, I. and Kane, D. M. Recent advances in algo-
                                                                        rithmic high-dimensional robust statistics. arXiv preprint
Agarwal, A., Agarwal, S., and Patil, P. Stochastic duel-                arXiv:1911.05911, 2019.
  ing bandits with adversarial corruption. In Algorithmic
 Learning Theory, pp. 217–248. PMLR, 2021.                            Duchi, J. C., Shalev-Shwartz, S., Singer, Y., and Tewari, A.
                                                                        Composite objective mirror descent. In COLT, volume 10,
Ben-Tal, A., El Ghaoui, L., and Nemirovski, A. Robust op-               pp. 14–26. Citeseer, 2010.
  timization, volume 28. Princeton university press, 2009.
                                                                      Gupta, A., Koren, T., and Talwar, K. Better algorithms
Ben-Tal, A., Hazan, E., Koren, T., and Mannor, S. Oracle-               for stochastic bandits with adversarial corruptions. In
  based robust optimization via online learning. Operations            Conference on Learning Theory, pp. 1562–1578. PMLR,
  Research, 63(3):628–638, 2015.                                        2019.

Bertsekas, D. Convex optimization theory, volume 1. Athena            Huber, P. J. Robust statistics, volume 523. John Wiley &
  Scientific, 2009.                                                     Sons, 2004.

Candès, E. J., Li, X., Ma, Y., and Wright, J. Robust principal       Ito, S. On optimal robustness to adversarial corruption in on-
  component analysis? Journal of the ACM (JACM), 58(3):                  line decision problems. Advances in Neural Information
  1–37, 2011.                                                            Processing Systems, 34:7409–7420, 2021.
                                                                      Jacobsen, A. and Cutkosky, A. Parameter-free mir-
Chang, F.-C., Nabiei, F., Wu, P.-Y., Cioba, A., Vakili, S.,
                                                                        ror descent. In Loh, P.-L. and Raginsky, M. (eds.),
  and Bernacchia, A. Gradient descent: Robustness to
                                                                        Proceedings of Thirty Fifth Conference on Learn-
  adversarial corruption. In OPT 2022: Optimization for
                                                                        ing Theory, volume 178 of Proceedings of Ma-
  Machine Learning (NeurIPS 2022 Workshop), 2022.
                                                                        chine Learning Research, pp. 4160–4211. PMLR,
Chen, S., Koehler, F., Moitra, A., and Yau, M. Online and               2022. URL https://proceedings.mlr.press/
  distribution-free robustness: Regression and contextual               v178/jacobsen22a.html.
  bandits with huber contamination. In 2021 IEEE 62nd
                                                                      Jun, K.-S. and Orabona, F. Parameter-free online convex
  Annual Symposium on Foundations of Computer Science
                                                                        optimization with sub-exponential noise. In Conference
  (FOCS), pp. 684–695. IEEE, 2022.
                                                                        on Learning Theory, pp. 1802–1823. PMLR, 2019.
Cherapanamjeri, Y., Aras, E., Tripuraneni, N., Jordan, M. I.,         Klivans, A., Kothari, P. K., and Meka, R. Efficient algo-
  Flammarion, N., and Bartlett, P. L. Optimal robust                    rithms for outlier-robust regression. In Conference On
  linear regression in nearly linear time. arXiv preprint               Learning Theory, pp. 1420–1430. PMLR, 2018.
  arXiv:2007.08137, 2020.
                                                                      Levy, D., Carmon, Y., Duchi, J. C., and Sidford, A. Large-
Cook, R. D. Detection of influential observation in linear              scale methods for distributionally robust optimization.
  regression. Technometrics, 42(1):65–68, 2000.                         Advances in Neural Information Processing Systems, 33:
                                                                        8847–8860, 2020.
Cutkosky, A. Algorithms and Lower Bounds for Parameter-
  free Online Learning. PhD thesis, Stanford University,              Lugosi, G. and Mendelson, S. Robust multivariate mean
  2018.                                                                 estimation: the optimality of trimmed mean. 2021.

                                                                  9
                                    Unconstrained Robust Online Convex Optimization

Lykouris, T., Mirrokni, V., and Paes Leme, R. Stochastic           Sankararaman, A., Narayanaswamy, B., Singh, V. Y., and
  bandits robust to adversarial corruptions. In Proceedings          Song, Z. Fitness:(fine tune on new and similar samples)
  of the 50th Annual ACM SIGACT Symposium on Theory                  to detect anomalies in streams with drift and outliers.
  of Computing, pp. 114–122, 2018.                                   In International Conference on Machine Learning, pp.
                                                                     19153–19177. PMLR, 2022.
Mcmahan, B. and Streeter, M. No-regret algorithms for
 unconstrained online convex optimization. In Advances             Thode, H. C. Testing for normality. CRC press, 2002.
 in neural information processing systems, pp. 2402–2410,
 2012.                                                             van der Hoeven, D. User-specified local differential privacy
                                                                     in unconstrained adaptive online learning. In Advances
McMahan, H. B. and Orabona, F. Unconstrained online                  in Neural Information Processing Systems, pp. 14103–
 linear learning in hilbert spaces: Minimax algorithms and           14112, 2019.
 normal approximations. In COLT, pp. 1020–1039, 2014.
                                                                   van Erven, T., Sachs, S., Koolen, W. M., and Kotlowski,
Mhammedi, Z. and Koolen, W. M.           Lipschitz and               W. Robust online convex optimization in the presence of
 comparator-norm adaptivity in online learning. Confer-              outliers. In Conference on Learning Theory, pp. 4174–
 ence on Learning Theory, pp. 2858–2887, 2020.                       4194. PMLR, 2021.
Namkoong, H. and Duchi, J. C. Stochastic gradient                  Xie, S. M., Pham, H., Dong, X., Du, N., Liu, H., Lu, Y.,
  methods for distributionally robust optimization with f-           Liang, P. S., Le, Q. V., Ma, T., and Yu, A. W. Doremi:
  divergences. Advances in neural information processing             Optimizing data mixtures speeds up language model pre-
  systems, 29, 2016.                                                 training. Advances in Neural Information Processing
Orabona, F. Simultaneous model selection and optimiza-               Systems, 36, 2023.
  tion through parameter-free stochastic learning. In Ad-          Zhang, J. and Cutkosky, A. Parameter-free regret in high
  vances in Neural Information Processing Systems, pp.               probability with heavy tails. Advances in Neural Infor-
  1116–1124, 2014.                                                   mation Processing Systems, 35:8000–8012, 2022.
Orabona, F. A modern introduction to online learning. arXiv        Zhang, Z., Cutkosky, A., and Paschalidis, I. Pde-based
  preprint arXiv:1912.13213, 2019.                                   optimal strategy for unconstrained online learning. In In-
Orabona, F. and Pál, D. Coin betting and parameter-free             ternational Conference on Machine Learning, pp. 26085–
  online learning. In Lee, D. D., Sugiyama, M., Luxburg,             26115. PMLR, 2022.
  U. V., Guyon, I., and Garnett, R. (eds.), Advances in            Zhang, Z., Yang, H., Cutkosky, A., and Paschalidis, I. C. Im-
  Neural Information Processing Systems 29, pp. 577–585.             proving adaptive online learning using refined discretiza-
  Curran Associates, Inc., 2016.                                     tion. In International Conference on Algorithmic Learn-
Oren, Y., Sagawa, S., Hashimoto, T. B., and Liang, P. Dis-           ing Theory, pp. 1208–1233. PMLR, 2024.
  tributionally robust language modeling. arXiv preprint
                                                                   Zhou, C. and Paffenroth, R. C. Anomaly detection with
  arXiv:1909.02060, 2019.
                                                                     robust deep autoencoders. In Proceedings of the 23rd
Qi, Q., Guo, Z., Xu, Y., Jin, R., and Yang, T. An online             ACM SIGKDD international conference on knowledge
  method for a class of distributionally robust optimiza-            discovery and data mining, pp. 665–674, 2017.
  tion with non-convex objectives. Advances in Neural
                                                                   Zinkevich, M. Online convex programming and generalized
  Information Processing Systems, 34:10067–10080, 2021.
                                                                     infinitesimal gradient ascent. In Proceedings of the 20th
Raginsky, M., Willett, R. M., Horn, C., Silva, J., and Mar-          International Conference on Machine Learning (ICML-
  cia, R. F. Sequential anomaly detection in the presence            03), pp. 928–936, 2003.
  of noise and limited feedback. IEEE Transactions on
  Information Theory, 58(8):5544–5562, 2012.
Sagawa, S., Koh, P. W., Hashimoto, T. B., and Liang, P.
  Distributionally robust neural networks for group shifts:
  On the importance of regularization for worst-case gener-
  alization. arXiv preprint arXiv:1911.08731, 2019.
Sankararaman, A. and Narayanaswamy, B. Online robust
  non-stationary estimation. Advances in Neural Informa-
  tion Processing Systems, 36, 2024.

                                                              10
                                      Unconstrained Robust Online Convex Optimization

A. Unconstrained Online Convex Optimization with Hints
In the unconstrained
         √            setting, there are algorithms requires a uniform bound G ≥ maxt ∥gt ∥ upfront which guarantees
Õ(∥u∥G T ) (McMahan & Orabona, 2014; Orabona & Pál, 2016; Cutkosky & Orabona, 2018; Zhang et al., 2022). In the
case where G is unknown, algorithms are usually devised through an intermediate step with a slightly ideal scenario, that is
                                                     t+1 = maxi≤t+1 ∥gi ∥ at each iteration t. It turns out by having access
the algorithm receives a gradient gt with a “hints” h√
to ht to guide the algorithm, same regret Õ(∥u∥hT T ) can be achieved (Cutkosky, 2019; Mhammedi & Koolen, 2020;
Jacobsen & Cutkosky, 2022; Zhang et al., 2024).
In this paper, we also follows the same strategy of assuming a good hints ht = maxi≤t ∥gt ∥ is supplied to the algorithm,
and eventually investigate the scenario of only the current best estimate ht ≈ maxi≤t−1 ∥gt ∥ is available. Hence most
of the proofs in the appendix are displayed in the way of relying on a time varying “hints”: 0 < h1 ≤ · · · hT ≤ hT +1 to
accommodate the design of both known G and unknown G case.

B. Bounds on Regularizer in Equation (7)
Our results are based on appropriate algebraic property of ft as displayed in Equation (7) and was firstly studied by Zhang
& Cutkosky (2022). We re-stated relevant bounds as Lemma B.1 for completeness.
Lemma B.1 (Lemma 11 and Lemma 13 of Zhang & Cutkosky (2022)). Let ft : W → R+ be defined as follows for some
c ≥ 0, α > 0 and p ≥ 1,
                                       
                                       c(p∥w∥ − (p − 1)∥wt ∥) Pt ∥wt ∥p−1               , ∥w∥ > ∥wt ∥
                                                                 ( i=1 ∥wi ∥p +αp )1−1/p
                     ft (w; c, p, α) =                  1
                                       c∥w∥p Pt         p   p 1−1/p ,                     ∥w∥ ≤ ∥wt ∥
                                                 (    i=1 ∥wi ∥   +α )

Then
                               T
                                                  
                                                        T
                                                                             !1/p     
                               X                        X
                                     ft (wt ) ≥ c             ∥wt ∥p + αp          − α
                               t=1                      t=1
                                T
                                                                  "              p (p−1)/p    #
                                X
                                                          1/p                  ∥u∥
                                      ft (u) ≤ cp∥u∥T                 ln 1 +                   +1
                                t=1
                                                                                α
In particular, when p = ln T for T ≥ 3:
                                     T
                                     X                               
                                           ft (wt ) ≥ c max ∥wt ∥ − α
                                                           t
                                     t=1
                                      T                                  p     
                                      X                                 ∥u∥
                                          ft (u) ≤ 3c ln T ∥u∥ ln 1 +            +2
                                      t=1
                                                                         α

Proof. The first set of bounds are the same as Zhang & Cutkosky (2022) Lemma 13. For the second set of bounds: the
                      P                     1/p P            1/p
                          T          p     p        T         p
lower bound is due to     t=1 ∥w t ∥   + α       ≥  t=1 ∥w t ∥       followed by an application of of Lemma 11 in Zhang
                                                                                                                  p 
& Cutkosky (2022); the upper bound is due to xq ≤ x + 1 for x > 0 and 0 < q < 1, where we set x = ln 1 + ∥u∥     α
and q = (p − 1)/p followed by T 1/ ln T = e ≤ 3.

C. Base Algorithms for known G
In this section, we verify the “centered mirror descent” framework (see their Algorithm 1 and we contextualize it as
Algorithm 2 here) developed by (Jacobsen & Cutkosky, 2022) automatically guarantee a composite regret RTA (u) “for free”
thus is a compatible candidate in achieving robust unconstrained learning.
Algorithm 2 is an explicit update with two regularizers ψt (w):
                                     Z ∥w∥                                                 
                                              ′            ′             ln(x/at + 1)
                          ψt (w) = 3        Ψt (x)dx, Ψt (x) = min                    + ηVt                            (13)
                                       0                        η≤1/ht        η

                                                                       11
                                         Unconstrained Robust Online Convex Optimization

and some ft (w) (In their notation as φt (w) ). That is

                                 wt+1 = argmin ⟨gt , w⟩ + Dψt (w | wt ) + ∆t (w) + ft (w)                                (14)
                                                w

where Dψ (a | b) = ψ(a) − ψ(b) − ⟨∇ψ(b), a − b⟩ is the Bregman divergence induced by ψ, and ∆t (w) = Dψt+1 (w |
w1 ) − Dψt (w | w1 ).
Notice the first two terms in Equation (14) corresponds to the classical mirror descent with mirror map ψt , the third term
∆t (w) encourages iterate to be close to the initial start w1 , thus echoing “centered” mirror descent. and ft being any
arbitrary composite regularizer and its structure is completely known in√   time in order to produce wt+1 . shows the above
update with ft = 0 (φt in their notation) guarantees RT (u) ≤ Õ(∥u∥hT T ) (Theorem 6), which is optimal. The second
composite regularizer ft was specifically tailored as ft (w) = O(∥gt ∥2 ∥w∥) in order to attain optimal dynamic regret (See
their Proposition 1).
                                 √
We verify RTA (u) ≤ Õ(∥u∥hT T ) when ft as defined in Equation (7) for our purpose, which is formalized as Theorem
C.2. In fact, the development of (Jacobsen & Cutkosky, 2022) attains the same bound for any arbitrary composite regularizer
ft for user to exploit. We first present a helper Lemma that is equivalent to the update in Equation (14) before the theorem:
Lemma C.1. Equation (14) is equivalent to

                                        w̃t+1 = argmin⟨gt , w⟩ + Dψt (w | wt )                                           (15)
                                                    w
                                        wt+1 = argmin Dψt (w | w̃t+1 ) + ∆t (w) + ft+1 (w)                               (16)
                                                    w


Proof. By first order optimality, Equation (15) implies

                                                 gt + ∇ψt (w̃t+1 ) − ∇ψt (wt ) = 0

Thus

                                                    w̃t+1 = ∇ψt−1 (∇ψt (wt ) − gt )

Substitute w̃t+1 into Equation (16), we see the equivalence.
Theorem C.2. Suppose 0 < h1 ≤ h2 ≤ · · · ≤ hT and g1 , · · · , gT be arbitrary sequence satisfies ∥gt ∥ ≤ ht for all t ∈ [T ].
Then Algorithm 2 guarantees
                                         T
                                         X                                                  √ 
                          RTA (u) :=       ⟨gt , wt − u⟩ + rt (wt ) − rt (u) ≤ Õ ϵhT + ∥u∥hT T
                                         t=1

where rt is defined as Equation (7) for arbitrary c, p, α > 0.

Proof. First, we verify Algorithm 2 is indeed the update corresponding to Equation (14). By Lemma C.1, Equation (14) is
equivalent to a two step update as shown in Equation (15) and (16).
By first order optimality to Equation (15):

                                                    w̃t+1 = ∇ψt−1 (∇ψt (wt ) − gt )

Then substitute to Equation (16)

                                       ∇ψt+1 (wt+1 ) + ∇ft+1 (wt+1 ) = ∇ψt (wt ) − gt := θt
                                 R ∥w∥                                           p−1
                                                                            |x|
Define Ψt (∥w∥) := ψt (w) =        0
                                          Ψ′t (x)dx and Rt+1 (x) := cp (S +|x|p−1 )1−1/p
                                                                                                              x
                                                                                         (Notice ∇ft+1 (x) = ∥x∥ Rt+1 (∥x∥)),
                                                                            t
thus by substitute derivatives
                                                                                      
                                         wt+1  ′
                                               Ψ (∥wt+1 ∥) + Rt+1 (∥wt+1 ∥) = θt
                                                                             
                                        ∥wt+1 ∥ | t+1       {z             }
                                                              :=Lt+1 (∥wt+1 ∥)


                                                                  12
                                          Unconstrained Robust Online Convex Optimization

Thus, the solution wt+1 satisfies the following for some x ≥ 0:

                                                                 θt
                                                 wt+1 = x             ,        Lt+1 (x) = ∥θt ∥
                                                                ∥θt ∥

In particular, define Ft = log(1 + axt )

                                            ( p                           p        √
                                             6 Vt Ft (x) + Rt (x),      ht Ft (x) < Vt
                                   Lt (x) =
                                             3ht Ft (x) + 3V
                                                           ht + Rt (x), otherwise
                                                             t




                                      p                 √
The boundary case is when x∗ : ht          Ft (x∗ ) =       Vt . That is x∗ = at (exp(Vt /h2t ) − 1). Consider by cases, if

                                                                                    6Vt
                                             Lt (x) = ∥θt ∥ ≤ Lt (x∗ ) =                + Rt (x∗ )
                                                                                     ht
                p        √
Then x ≤ x∗ , ht Ft (x) < Vt thus the first branch should be evoked. Similarly, consider the other case, the complete
update should be:

                                          ( p
                                           6 Vt Ft (x) + Rt (x),      ∥θt ∥ ≤ 6V         ∗
                                                                               ht + Rt (x )
                                                                                 t

                                 Lt (x) =
                                           3ht Ft (x) + 3V
                                                         ht + Rt (x), otherwise
                                                           t




It remains to show the composite regret RTA (u) guaranteed by Algorithm 2. Notice the original proof of Theorem 6 of
(Jacobsen & Cutkosky, 2022) relies on their generalized Lemma 1 by setting ft = 0 (their φt ). Thus Lemma 1 of (Jacobsen
& Cutkosky, 2022) implies for general ft :

                                   T
                                   X                 T
                                                     X
           RT (u) ≤ ψT +1 (u) +           ft (u) +     ⟨gt , wt − wt+1 ⟩ − Dψt (wt+1 | wt ) − ∆t (wt+1 ) − ft+1 (wt+1 )
                                    t=1              t=1


Move relative terms to left hand side:

           T
           X                                         T
                                                     X
RT (u) +         ft (wt ) − ft (u) ≤ ψT +1 (u) +       ⟨gt , wt − wt+1 ⟩ − Dψt (wt+1 | wt ) − ∆t (wt+1 ) + f1 (w1 ) − fT +1 (wT +1 )
           t=1                                       t=1


w1 = 0, thus f1 (w1 ) = 0. And ft is non-negative

                                                     T
                                                     X
                                 ≤ ψT +1 (u) +         ⟨gt , wt − wt+1 ⟩ − Dψt (wt+1 | wt ) − ∆t (wt+1 )
                                                     t=1


Thus following the exactly same proof of Theorem 6 of (Jacobsen & Cutkosky, 2022):

                           v
                            u                q                                      q                       
                                                          2                                        2
                            u              ∥u∥  B T +1 ln   (B T +1 )               ∥u∥  B T +1 ln   (B T +1 )
  RTA (u) ≤ 4hT + 6∥u∥ max tVT +1 ln 1 +
                           u                                         , hT ln 1 +                            
                                                     ϵ                                        ϵ
                                                                                                                




                                                                          13
                                         Unconstrained Robust Online Convex Optimization

Algorithm 2 Robust Online Learning By Exploiting Linear Offset
 1: Input: Time horizon T ; Initial Value ϵ; Corruption parameter k; Regularization relevant parameters: c, p, α;
      Hints: 0 < h1 ≤ h2 ≤ · · · , ≤ hT +1 ;
 2: Initialize: θ1 = 0, C1 = 0, N1 = 4, B1 = 4N1 , w1 = 0, S0 = αp .
 3: for t = 1 to T do
 4:   Define: Ft (x) = ln(1 + x/at ), Rt+1 (x) = cp∥x∥p−1 /(St + ∥x∥p )1−1/p
 5:   Output wt , receive gt where ∥gt ∥ ≤ ht
 6:   Compute θt+1 = ∇ψt (wt ) − gt
 7:   Update Ct+1 = Ct + ∥gt ∥2 , Nt+1 = Nt + ∥gt ∥2 /h2t , Bt+1 = Bt + 4Nt
                                                   ϵ
 8:   Set Vt+1 = h2t+1 + Ct+1 and αt+1 = √           2
                                             Bt+1 ln (Bt+1 )
        Compute x∗ = at+1 exp(Vt+1 /h2t+1 ) − 1
                                                
 9:
10:     Define

                                        6 Vt+1 Ft+1 (x) + Rt+1 (x), ∥θt ∥ ≤ 6V
                                    (    p                                        t+1         ∗
                                                                                ht+1 + Rt+1 (x )
                         Lt+1 (x) =
                                        3ht+1 Ft+1 (x) + 3V    t+1
                                                             ht+1 + Rt+1 (x), otherwise

                                                                                                                                      1/p
11:   Solve for xt+1 : Lt+1 (xt+1 ) = ∥θt ∥                                                 {solvable via bisection where xt+1 ∈ [0, St     ]}
12:   Update wt+1 = xt+1 ∥θθtt ∥ , St+1 = St + ∥wt+1 ∥p
13: end for


We remark that the inverse problem involved in Algorithm 2 Line 11 can be efficiently handled by bisection method since
Lt+1 (x) is monotonically increasing. Notice that 0 = Lt+1 (0) ≤ Lt+1 (xt+1 ) ≤ 0, so 0 can be used as an initial lower
                                                                           −1
bound. On the other hand Rt+1 (xt+1 ) ≤ Lt+1 (xt+1 ) = ∥θt ∥, thus xt+1 ≤ Rt+1 (∥θ∥), where for y ≥ 0:

                                                                                    p       ! p1
                                                    −1             St (y/cp) p−1
                                                   Rt+1 (y) =                       p
                                                                   1 + (y/cp) p−1
                                         1/p
For simplicity, we can always use St           as an initial upper bound.

D. Proof to Theorem 5.1 and Applications
We provide the regret guarantee of Algorithm 1 when using an instance of Algorithm 2 as a base learner A as well as two
applications when h1 = · · · = hT +1 = G
Theorem 5.1. Suppose gt , g̃t satisfies assumptions in Equation (3) and (4). Setting ht = G, rt = ft as defined in Equation
(7) with c = kG, p = ln T, α = ϵ/k for some ϵ > 0, set Algorithm 2 algorithm as the base algorithm A. Then Algorithm 1
guarantees:
                                                       h             √        i
                                           RT (u) ≤ Õ ϵG + ∥u∥G        T +k

Proof. The proof begins with the regret decomposition in Equation (6) and is displayed below for convenience.
              T                                        T                     T
                                                                                          * T               +  T
             X                                         X                     X             X                   X
   RT (u) :=     ⟨g̃tc , wt − u⟩ + rt (wt ) − rt (u) +   ⟨gt − g̃tc , wt ⟩ −   rt (wt ) +     gt − g̃tc , −u +   rt (u)
                t=1                                        t=1                          t=1                t=1                t=1
                |                {z                    }   |       {z        }          |     {z   }   |              {z              }
                                 A (u)
                              :=RT                               :=ERROR            :=CORRECTION                    :=BIAS



Define OFFSET := ERROR − CORRECTION, and in Section 5.1 we already shown ERROR ≤ kG maxt ∥wt ∥, thus
                                                                   T
                                                                   X
                                 OFFSET ≤ kG max ∥wt ∥ −                 rt (wt )
                                                       t
                                                                   t=1


                                                                    14
                                     Unconstrained Robust Online Convex Optimization

by Lemma B.1 by substituting c, pα

                                         ≤ kG max ∥wt ∥ − kG(max |wt | − ϵ/k) = O (ϵG)
                                                 t                        t

Similarly by following the application of Lemma B.1:
                                                     T
                                                     X
                               BIAS ≤ kG∥u∥ +              rt (u)
                                                     t=1
                                                                     "                      ln T !        #
                                                                                      |u|k
                                     ≤ kG∥u∥ + 3kG ln T |u| ln 1 +                                     +2
                                                                                        ϵ
                                     = Õ (kG∥u∥)

In addition, Algorithm 2 is set as A in response to g̃tc with ht = G. Thus by Theorem C.2 guarantees
                                                                         √
                                               RTA (u) ≤ Õ(ϵG + ∥u∥G T )

Combining three parts and we complete the proof.

Here, we provide implication of Theorem 5.1 to stochastic convex optimization and an online version of distributionally
robust optimization.

Stochastic convex optimization with corruptions OCO and convex stochastic optimization are connected through the
classical Online-to-Batch Conversion (Orabona, 2019). Below, we present the implications of Theorem 5.1 stochastic
convex optimization in a setting where k gradient evaluations are arbitrarily corrupted.
Corollary D.1 (Stochastic Convex Optimization via Online to Batch). Suppose L : W → R is convex and E[ℓt (w)] =
L(w), gt = ∇ℓt (wt ) and Et [∥gt ∥] ≤ G. Algorithm 1 have access to g̃t such that t=1 1{gt ̸= g̃t } ≤ k, then Algorithm 1
                                                                                 PT
guarantees
                                                                             √       
                                                                        ∥u∥G
                                  "             !        #
                                       PT
                                             w                     ϵ +           T + k
                                         t=1 t
                               E L                − L(u) ≤ Õ                          
                                          T                                   T

Proof. The proof leverages the standard online to batch conversion (Theorem 3.1 in (Orabona, 2019) by setting αt = 1),
then combining with the regret bounds from Theorem 5.1.

Distributionally robust optimization Distributionally robust optimization is a form of robust stochastic optimization on
training data sampled from distribution P that is not the same as the population distribution Q (Ben-Tal et al., 2009; 2015).
Typically, Q is considered as uniform, but the actual training data collection process might be biased, meaning P is different
to Q. In this situation, stochastic optimization which treats each training example with equal weight is no longer appropriate.
Namkoong & Duchi (2016) formalized this framework as the following model with respect to a set of losses ℓ1 , . . . ℓT , and
an uncertainty set Pk = {P ∈ ∆T : Df (P ||Q) ≤ C(k, T )}, where Df (P ||Q) is the f -Divergence, for a convex function
f : R+ 7→ R with f (1) = 0.
                                                                     T
                                                                     X
                                                  argmin sup              pt ℓt (w)
                                                      w       P ∈Pk t=1


the decision variable from above formulation takes account into the worst case distributional uncertainty, hence is intuitively
associated with improving generalization error given an appropriate uncertainty set Pk (Sagawa et al., 2019).
Distributionally robust optimization is increasingly relevant in the training of large language models, where training data
are sourced from different domains (Xie et al., 2023). This is due to data from some domain are relatively atypical in
comparison to others in representing the overall population distribution (Oren et al., 2019). Although empirical gain has
been observed by incorporating distributionally robust optimization, the scalability has always been a primary concern for

                                                                    15
                                          Unconstrained Robust Online Convex Optimization

model training (Levy et al., 2020; Qi et al., 2021). Therefore, we consider a natural “online” version of distributionally
robust optimization model proposed by Namkoong & Duchi (2016), with its online analogous metric formulated as:

                                                                T
                                                                X
                                                         sup          pt (ℓt (wt ) − ℓt (u))
                                                        P ∈Pk t=1


We present the implication of Algorithm 1 to this problem with respect to total variation DT V and Kullback-Leibler
divergence DKL . In particular, we assume ℓt is convex and Q is uniform.
Corollary D.2 (Online Distributionally Robust Optimization). Suppose g̃t ∈ ∇ℓt (wt ) and ∥g̃t ∥ ≤ G. Algorithm 1 runs on
g̃t guarantees
                                                                                                      √          
                                          T
                                          X                                               ϵ + ∥u∥G          T +k
                                    sup         pt (ℓt (wt ) − ℓt (u)) ≤ Õ                                          
                                P ∈Pk t=1                                                              T

                                                                      2
for DT V ≤ Tk . In addition, in the case where DKL ≤ 2k
                                                     T 2 the same guarantee is achieved.


                                                    PT
Proof. We begin with the case of DT V (P ||Q) = 12 t=1 qt | pqtt − 1| ≤ Tk , where qt = T1 . First, we link the regret incurred
by Algorithm 2 that runs on gt , and we denote the unobservable gradient as g̃t = pqtt gt

                                                T
                                                X                                      T
                                                                                       X
                                R̃T (u) :=             pt (ℓt (wt ) − ℓ(u)) ≤                  pt ⟨gt , wt − u⟩
                                                t=1                                    t=1
                                                T                               T                   
                                                X                               X              pt
                                            =         qt ⟨gt , wt − u⟩ +              qt          − 1 ⟨gt , wt − u⟩
                                                t=1                             t=1
                                                                                               qt
                                                       T                 T
                                                                                                             !
                                              1        X                 X
                                            =            ⟨gt , wt − u⟩ +   ⟨g̃t − gt , wt − u⟩
                                              T        t=1                           t=1


      1
          PT                   PT        pt
since G    t=1 ∥gt − g̃t ∥ ≤    t=1 |1 − qt | ≤ 2k, g̃t , gt satisfies Equation (2), hence Theorem 5.1 provides the guarantee:

                                                                                                  √          
                                      T
                                      X                                              ϵ + ∥u∥G           T +k
                                            pt (ℓt (wt ) − ℓ(u)) ≤ Õ                                            
                                      t=1
                                                                                                  T

                                                                                √                                     2
In terms of DKL , we exploit the Pinsker’s inequality DT V ≤                         2DKL , Hence DKL ≤ 2k
                                                                                                        T 2 yields to the same results.


E. Lower Bounds
In this section, we present two type of matching lower bounds to Theorem 5.1: Theorem 5.2 provides a lower bound for any
comparator u∗ ∈ Rd with arbitrary magnitude D > 0. Theorem E.5 is a lower bound with log factors, which appears in
unconstrained OCO upper bounds.
We begin by presenting a helper lemma that aids in the analysis of Theorem 5.2, followed by Lemmas required to proof to
Theorem 5.2.
Lemma E.1. Suppose z1 , z2 , · · · , zT ∈ {−1, +1} with equal probability. Then for every t ∈ [T ] for some T ≥ 1.
                                                       " T             T
                                                                                     ! #         r
                                                        X              X                              T
                                                   E           sign             zi    zt ≥
                                                         t=1              i=1
                                                                                                      16


                                                                           16
                                           Unconstrained Robust Online Convex Optimization
                     P
Proof. Define St =        i∈[T ]:i̸=t zi , by conditioning on gT ∈ {−1, +1}:
                      "         T
                                           ! #
                                X
                  2 E sign            zT     zt = E [sign (ST + 1)] − [sign (ST − 1)]
                                i=1
                                                                     X
                                                     =                                   (sign(k + 1) − sign(k − 1)) P (ST = k)
                                                          k∈{−T,−T +2,··· ,T }


                              T is even, sign(k + 1) − sign(k − 1) = 2 when k = 0, and sign(k + 1) − sign(k − 1) = 0
We consider T by cases: suppose
otherwise. Thus applying TT/2 ≥ 2T −1 (T /2)−1/2
                          "      T
                                            !        #                                                         r
                                 X                                                    T      −T    −1     −1/2      1
                     E sign            zi       zT       = P (ST = 0) =                    2    ≥ 2 (T /2)     =
                                 i=1
                                                                                     T /2                          2T

Similarly if T is odd, by symmetry to ST = ±1:
                          "      T
                                       ! #
                                X              1
                        E sign       zi zT = (P (ST = −1) + P (ST = 1))
                                i=1
                                               2
                                                          
                                                     T
                                            =               2−T
                                                 (T + 1)/2
Define T ′ = T − 1 thus T ′ is even
                                                                                  ′  ′
                                                                                  T         T
                                                                    T !′           2 !       2 !    (T ′ + 1)! −(T ′ +1)
                                                           = T′         T′
                                                                               · T ′ +2      T′
                                                                                                 ·           2
                                                                                                      (T ′ )!
                                                                                      
                                                                     !       !            ! 2 !
                                                              2 ′ 2 ′             2
                                                                 T          T + 1 −(T ′ +1)
                                                           =      ′      T ′ +2       ′ 2
                                                              T /2          2   + T2
                                                                        ′ −1/2 ′
                                                              T ′ −1     T           T + 1 −(T ′ +1)
                                                           ≥2                                 2
                                                                         2           T′ + 2
                                                              1               1            1
                                                           ≥        =                ≥
                                                             8T ′       8(T − 1)         16T
Thus combining two cases:
                                                               "          T
                                                                                     !        #
                                                                          X                            1
                                                          E sign                zi       zT       ≥
                                                                          i=1
                                                                                                      16T

Due to symmetry, St has the same distribution ∀t ∈ [T ]:
                               "        T
                                              ! #        " T
                                                               ! #
                                       X                   X
                             E sign        zT zt = E sign    zi zT ,                                                      ∀t ∈ [T ]
                                                 i=1                                          i=1

Thus
                                    " T                  T
                                                                    ! #              "                T
                                                                                                                 !        #       r
                                     X                   X                                            X                               T
                                E           sign               zi    zt = T E sign                          zi       zT       ≥
                                      t=1                i=1                                          i=1
                                                                                                                                      16



Theorem 5.2. For every D > 0, there exists a comparator u∗ ∈ Rd such that ∥u∗ ∥ = D, g̃1 , · · · , g̃T and g1 , · · · , gT such
that ∥gt ∥, ∥g̃t ∥ ≤ 1, t=1 1{g̃t ̸= gt } = k:
                       PT

                                                T
                                                X                    h      √      i
                                                  ⟨gt , wt − u∗ ⟩ ≥ Ω ∥u∗ ∥    T +k
                                                 t=1

                                                                                17
                                       Unconstrained Robust Online Convex Optimization

Proof. Consider the following random sequence: zk+1 , zk+2 , · · · , zT ∈ {−1, +1} with equal probability and z1 =
                  PT
· · · , zk = sign( t=k+1 zt ). And z˜1 = · · · = z̃k = 0 and z̃t = zt , ∀t ≥ k + 1. Let q ∈ Rn be any unity vector. Suppose
                                                     PT
gt = zt q, g̃t = z̃t q, ∀t ∈ T . Select u∗ = −D sign( t=k+1 gt )q. Thus:
                                         " T                       #
                                          X
                               ∗
                      E[RT (u )] = E               ⟨gt , wt − u⟩
                                             t=1
                                       T
                                                                " k         #  T
                                       X                         X             X
                                   =         E [⟨gt , wt ⟩] − E     ⟨gt , u⟩ −   E [⟨gt , u⟩]
                                       t=1                             t=1                   t=k+1
                                     T                         T
                                                                    "                                   T
                                                                                                                     !#
                                     X                           X                                      X
                                   =   E ⟨E[zt ]q, wt ⟩ + Dk + D   E zt sign                                    zt
                                                    t
                                       t=1                                             t=k+1            t=k+1
                                                        T
                                                              "                    T
                                                                                             !#
                                                        X                          X
                                   = Dk + D                  E zt sign                  zt
                                                     t=k+1                     t=k+1

by Lemma E.1
                                                                !
                                                                                             √
                                                    r
                                                         T −k
                                   ≥D k+                               = Ω(∥u∗ ∥(k +             T ))
                                                          16



The second lower bound in Theorem E.5 has a matching log factors by uses the definition of “regret at the origin” of an
online learning algorithm, formalized as:
                                                                   T
                                                                   X
                                                        RT (0) =         ⟨gt , wt − 0⟩ ≤ ϵ                                 (17)
                                                                   t=1

This condition implies that an algorithm maintaining small ϵ is inherently conservative: it will perform well if the comparator
is close to the origin, but this behavior may come at the cost of performing poorly if the comparator is far from the origin.
Before presenting the analysis to Theorem E.5, we first list previously established result on properties of iterates wt produced
by any algorithm has constant regret guarantee at the origin as defined in Equation (17). Lemma E.2 was originally appeared
in (Cutkosky, 2018) then being re-interpreted by (Orabona, 2019). Lemma E.3 from (Zhang & Cutkosky, 2022).
Lemma E.2 (Theorem 5.11 of (Orabona, 2019)). For any OLO algorithm suffers constant regret at the origin (Equation
(17)) and |gt | ≤ 1, there exist βt ∈ Rd such that ∥βt ∥ ≤ 1 and
                                                                t−1
                                                                              !
                                                               X
                                                 w t = βt ϵ −       ⟨gi , wi ⟩
                                                                             i=1

for all t ∈ [T ].
Lemma E.3 (Lemma 8 of (Zhang & Cutkosky, 2022): Unconstrained OLO Iterate Growth). Suppose assumptions in Lemma
E.2 is satisfied. Then for every t ∈ [T ], ∥wt ∥ ≤ ϵ2t−1 .

We first derive an lower bound for algorithms satisfies assumption in Lemma E.2. The construction was originally appeared
in Theorem 5.12 from (Orabona, 2019). Finally, the lower bound in the context of adversarial corruptions is presented in
Theorem 5.2.
Lemma E.4 (Unconstrained OLO Lower Bound). Suppose assumptions in Lemma E.2 is satisfied, then set gt =
[gt,1 , 0, · · · , 0], gt,1 = g = 1 for all t ∈ [T ]. Then there exists an u∗ ∈ Rd such that ∥u∗ ∥ = 2ϵeT , and
                                                                         s
                                          T
                                                                                      ∥u∗ ∥2 T
                                                                                              
                                         X
                                                         ∗            ∗     T
                                             ⟨gt , wt − u ⟩ ≥ ϵ + ∥u ∥        ln 1 +
                                         t=1
                                                                           30            2ϵ2

                                                                         18
                                          Unconstrained Robust Online Convex Optimization
                    Pt
Proof. Let rt = −      i=1 ⟨gi , wi ⟩. Then

                                              T
                                              X
                                         ϵ−     ⟨gt , wt ⟩ = ϵ + rT −1 − ⟨gT , wT ⟩
                                              t=1

by Lemma E.2, there exists some βT : ∥βT ∥ ≤ 1
                                                              = ϵ + rT −1 − ⟨gT , βT ⟩(ϵ + rT −1 )
                                                              = (1 − ⟨gt , βt ⟩) (ϵ + rT −1 )
Then recursively expand rT −1 , rT −2 , · · · , r1 with Lemma E.2, then for some βt : ∥βt ∥ ≤ 1
                                                       T
                                                       X                T
                                                                        Y
                                                  ϵ−     ⟨gt , wt ⟩ = ϵ   (1 − ⟨gt , βt ⟩)
                                                       t=1                    t=1

Hence
                  T                  T                             T                           T
                                                                                        |g|2 T
                 X                  Y                             Y                
                                                                                                  ≤ ϵ exp |g|2 T
                                                                                                                 
            ϵ−       ⟨gt , wt ⟩ ≤ ϵ      max (1 − ⟨gt , βt ⟩) = ϵ     (1 + |g|) = ϵ 1 +
                 t=1                t=1
                                        ∥βt ∥≤1
                                                                  t=1
                                                                                          T

where we used inequality (1 + nx )n ≤ ex by setting n = T, x = |g|2 T for the last step. Rearrange above equation, we have
                    T                                                PT           !             T
                   X
                                                  2
                                                                  | t=1 gt,1 |2               X
                       ⟨gt , wt ⟩ − ϵ ≥ −ϵ exp |g| T = −ϵ exp                        = −f (−       gt,1 )
                   t=1
                                                                         T                     t=1
                        2
where f (x) = ϵ exp( xT ), by Theorem K.2 part 1, we have f (x) = f ∗∗ (x). Then by the definition of double conjugate f ∗∗ ,
                        T                          T                         T
                                                                                                    !
                       X                          X                         X
                                              ∗∗                                              ∗
                           ⟨gt , wt ⟩ − ϵ ≥ −f (−     gt,1 ) = − sup ⟨−        gt,1 , u1 ⟩ − f (u1 )                   (18)
                         t=1                                 t=1                     u1 ∈R    t=1

By Theorem K.2 part 2, the supreme is achieve at
                                                                                !
                                                                                       
                                                                                             PT           2 
                                            T                      T
                                            X                2ϵ    X                           t=1 gt,1
                            u∗1 = ∇f (−           gt,1 ) =               gt,1       exp                     = 2ϵe
                                                                                                                    T
                                                                                                           
                                            t=1
                                                             T     t=1
                                                                                                   T

Substitute u∗1 and set u∗ = [u∗1 , 0, · · · , 0], then Equation (18) becomes:
                               T
                               X                      T
                                                      X                          T
                                                                                 X
                                                                 ∗      ∗ ∗
                                     ⟨gt , wt ⟩ − ϵ ≥   ⟨gt,1 , u1 ⟩ + f (u1 ) =   ⟨gt , u∗ ⟩ + f ∗ (u∗1 )
                               t=1                     t=1                                   t=1

Rearrange we have
                                                     T
                                                     X
                                                           ⟨gt , wt − u∗ ⟩ ≥ ϵ + f ∗ (u∗1 )                             (19)
                                                     t=1

It remains to obtain a lower bound to f ∗ (u∗1 ). By Lemma K.4 and Lemma K.3, we have
                                                                                           
                                      r           s 
                                                          T |u∗1 |2
                                                                    
                                        T ∗                                     1
                         f ∗ (u∗1 ) =
                                                                                            
                                          |u1 |    W          2
                                                                       −r                  
                                        2                  2ϵ                   T |u∗ |2
                                                                                           
                                                                              W      1
                                                                                   2ϵ2
                                                                                                         
                                      r           s
                                                                    T |u∗1 |2
                                                                             
                                        T ∗                                                  1           
                                    ≥     |u1 |    0.6 ln 1 +           2
                                                                                −r                        
                                        2                            2ϵ                    
                                                                                                T |u∗
                                                                                                    1|
                                                                                                      2
                                                                                                         
                                                                                    0.6 ln 1 + 2ϵ2


                                                                         19
                                         Unconstrained Robust Online Convex Optimization
                             ∗ 2
                                
                         T |u1 |
Notice that 0.6 ln 1 +     2ϵ2       = 0.6 ln(1 + 2 exp(T )2 T ) > 1.5, hence by Lemma K.5

                                         r         s
                                                                  T |u∗1 |2
                                                                           
                                          T ∗ 0.2
                                     ≥       |u1 |     ln 1 +
                                          2          3              2ϵ2
                                            s
                                                          T |u∗1 |2
                                                                   
                                         ∗     T
                                     = |u1 |       ln 1 +
                                               30           2ϵ2

Substitute the lower bound to f ∗ (u∗1 ) to Equation (19)
                                              s                                s
                 T                                          ∗ |2 T                         ∥u∗ ∥2 T
                                                                                                 
                X
                                ∗          ∗    T         |u1                ∗   T
                    ⟨gt , wt − u ⟩ ≥ ϵ + |u1 |     ln 1 +            = ϵ + ∥u ∥     ln 1 +
                t=1
                                                30          2ϵ2                  30          2ϵ2




Theorem E.5. For any algorithm thatPmaintains Equation (17) for some ϵ > 0, there exists a sequence of g̃1 , · · · , g̃T and
g1 , · · · , gT such that ∥gt ∥, ∥g̃t ∥ ≤ 1, t=1 1{g̃t ̸= gt } = k, and a u∗ ∈ Rd such that
                                             T


                                             T
                                             X                     h          √      i
                                               ⟨gt , wt − u∗ ⟩ ≥ Ω̃ ϵ + ∥u∗ ∥    T +k
                                             t=1


           proof strategy is that algorithm with regret guarantee as shown in Equation (17) attains a matching lower bound
Proof. the √
Ω̃(ϵ + ∥u∥ T ) in responding to gt as shown in Lemma E.4. The by reversing the direction of exactly k gradients by taking
account into the growth behavior of wt (Lemma E.3) and a particular hard comparator u∗ constructed in Lemma E.4, we can
show regrets during those rounds builds up linearly. Let g̃1 , · · · , g̃T , where ∥g˜t ∥ ≤ 1 as defined in Lemma E.4 and suppose
algorithm operates on those gradients. Let S be the index set S = {t ∈ [T ] : gt ̸= g̃t }. Then by the lower bound presented
in Lemma E.4
                                   T
                                   X                   T
                                                       X                    T
                                                                            X
                                     ⟨gt , wt − u∗ ⟩ =   ⟨g̃t , wt − u∗ ⟩ +   ⟨gt − g̃t , wt − u∗ ⟩
                                   t=1                   t=1                     t=1
                                                                   √
                                                                   ∗
                                                                          X
                                                      ≥ Ω̃(ϵ + ∥u ∥ T ) +   ⟨gt − g̃t , wt − u∗ ⟩
                                                                                 t∈S


for some u∗ ∈ Rd and ∥u∗ ∥ = 2ϵeT . For t ∈ S, define gt as follows

                                                                          u∗
                                                            gt = g̃t −
                                                                         ∥u∗ ∥

Then
                          T
                         X                                 √      X       u∗         X u∗
                             ⟨gt , wt − u∗ ⟩ ≥ Ω̃(ϵ + ∥u∗ ∥ T ) +     ⟨− ∗ , wt ⟩ +      ⟨ ∗ , u∗ ⟩
                         t=1
                                                                        ∥u   ∥            ∥u ∥
                                                                  t∈S                t∈S
                                                           √      X
                                             ≥ Ω̃(ϵ + ∥u∗ ∥ T ) −     ∥wt ∥ + k∥u∗ ∥
                                                                         t∈S


Finally, By Lemma E.3 ∥wt ∥ ≤ ϵ2t−1 . Hence ∥wt ∥ ≤ 12 ∥u∗ ∥

                  T
                  X                                  √     k                             √      
                       ⟨gt , wt − u∗ ⟩ ≥ Ω̃(ϵ + ∥u∗ ∥ T ) − ∥u∗ ∥ + k∥u∗ ∥ = Ω̃ ϵ + ∥u∗ ∥    T +k
                   t=1
                                                           2



                                                                   20
                                       Unconstrained Robust Online Convex Optimization

F. Adaptive Thresholding
In this section, we formalize the adaptive thresholding and clipping mechanism, namely FILTER, summarized in Section 6.2.
This mechanism relies on prior knowledge of big corrupted gradients numbers which is naturally restricted by corruption
model in Equation (3). We present this result as Lemma F.1, followed FILTER as Algorithm 3 and its property in Lemma F.2.
Lemma F.1. For g1 , · · · , gT and g̃1 , · · · , g̃T that satisfies Equation (3), then there are at most k number of g̃t such that
∥g̃t ∥ ≥ 2G.

Proof. By definition of B = {t ∈ [T ] : ∥gt − g̃t ∥ > G}:

                     B := {t ∈ [T ] : ∥gt − g̃t ∥ > G}
                        = {t ∈ [T ] : ∥gt − g̃t ∥ > G, ∥gt ∥ < G} ∪ {t ∈ [T ] : ∥gt − g̃t ∥ > G, ∥gt ∥ = G}
                        ⊇ {t ∈ [T ] : ∥gt − g̃t ∥ > G, gt = G · sign(g̃t )}
                        = {t ∈ [T ] : ∥G − ∥g̃t ∥∥ > G}
                        = {t ∈ [T ] : ∥g̃t ∥ > 2G}

Finally, due to Equation (3), k := |B| ≥ |{t ∈ [T ] : ∥g̃t ∥ > 2G}|.


Algorithm 3 FILTER: k-lag Thresholding and Gradient Clipping
 1: Input: Corruption parameter k, Initial Lipschitz guess: τ = τG > 0.
 2: Initialize: Filter threshold h1 = τ , P = {}.
 3: for t = 1 to T do
 4:   Receive g̃t .
 5:   if ∥g̃t ∥ > ht then
 6:      Set g̃tc = ∥g̃g̃tt ∥ ht , update counter: n = n + 1.
 7:      if n = k then
 8:          Update Threshold ht+1 = 2ht , reset counter: n = 0.
 9:      end if
10:   else
11:      Set g̃tc = g̃t , register rounds P = P ∪ {t}.
12:      Maintain threshold ht+1 = ht .
13:   end if
14:   Output g̃tc , ht+1 .
15: end for


We display some convenience property of Algorithm FILTER, notice all quantities apart from ht are for assisting analysis
only
Lemma F.2. (Algorithm 3 property) Suppose gt , g̃t satisfies Equation (3), and Algorithm 3 receives g̃t , then its per iteration
outputs g̃tc , ht+1 satisfies:

(1) ht+1 = ht , ∀t ∈ P = {t ∈ [T ] : g̃tc = g̃t }
(2) ∥g̃tc ∥ ≤ ht , ∀t ∈ [T ]
(3) τ = h1 ≤ h2 ≤ · · · ≤ hT +1 ≤ max(τ, 4G)
(4) |P| ≥ T − (k + 1) max ⌈log2 8G
                                         
                                   τ ⌉, 1


Proof. We show each property in turns.

(1) guaranteed by algorithm line 11-12.
(2) either line 4 or line 11 is evoked to compute g̃tc .

                                                                21
                                     Unconstrained Robust Online Convex Optimization

(3) ht being non-decreasing sequence and ht = τ is by construction. Hence it remains to show an upperbound to
    ht , ∀t ∈ [T + 1]. The key to this proof is there are at most k number of g̃t such that ∥g̃t ∥ ≥ 2G gaurateed by Equation
    (3) (See Lemma F.1).
    In the case where initial value of τ ≥ 2G, then the check point h never doubled since each time of doubling requires
    k + 1 number of ∥g̃t ∥ exceeds current one. (by line 4-9)
    Now, we consider τ < 2G, where threshold doubling ht+1 = 2ht was evoked at least once (line 8) with initial value τ .
    Then hT +1 = 2N τ for some N ∈ [T ], where N is the number of time line 8 was evoked.
    On the other hand, at least k + 1 number of g̃t such that ∥g̃t ∥ ≥ 2N −1 τ were observed thus have triggered line 8 so
    eventually hT +1 = 2N τ . Thus by Lemma F.1, 2N −1 τ ≤ 2G, N ≤ log2 4G     τ .
    Thus hT +1 = 2N τ ≤ 4G. Moreover, ht is non-decreasing, and we complete the proof.
(4) |P| is associated with the number of time in which check point h doubled. By the proof to property (3) that
    2N −1 τ ≤ 2G, thus N ≤ max ⌈log2 4G     τ ⌉, 0 as an upper bound that the number of line 8 being executed.
    Each execution of line 8 requires exactly k + 1 number of g̃t being clipped. Thus there were (k + 1) max ⌈log2 4G
                                                                                                                          
                                                                                                                    τ ⌉, 0
    number of rounds not being register to P by the time when last time step t∗ ∈ [T ], when the execution of line 8
    happens.
    For T ≥ t > t∗ , there were less than (k + 1) number of g̃t not being registered into P, otherwise threshold would have
    been doubled. Thus
                                                                                                
                                                  4G                                             8G
                      |P| ≤ (k + 1) max log2          , 0 + (k + 1) = (k + 1) max log2                 ,1
                                                   τ                                              τ




G. Adaptive Tracking
We introduce TRACKER, a simple doubling mechanism for estimating maxt ∥wt ∥. as shown in Algorithm 4. The properties
of TRACKER is displayed in Lemma G.1.

Algorithm 4 T RACKER: Track the Magnitude of wt
 1: Input: Initial magnitude guess: τ = τD > 0.
 2: Initialize: Filter threshold z1 = τ , (Counter, Set): (n = 0, Tn = {}), Checkpoint t0 = 1.
 3: for t = 1 to T do
 4:   Receive wt .
 5:   if ∥wt ∥ > zt then
 6:      Double: zt+1 = 2∥wt ∥.
 7:      Update counter: n = n + 1.
 8:      Add a new checkpoint: tn = t, initialize a new set: Tn = {}.
 9:   else
10:      Maintain: zt+1 = zt .
11:   end if
12:   Register round: Tn ← Tn ∪ {t}.
13: end for


Lemma G.1. (Algorithm 4 property) Algorithm 4 guarantees

(1) [T ] is partitioned by T0 , T1 , T2 , · · · , TN , for some N where N ≤ max(0, log2 2 maxt ∥wt ∥/τ ).
(2) τ = zt = zt+1 , ∥wt ∥ ≤ τ, ∀t ∈ T0
(3) ∥wt ∥ ≤ 2∥wtn ∥, ∀t ∈ Tn , n ∈ [N ]
(4) τ = z1 ≤ z2 ≤ · · · ≤ zT +1 ≤ max(τ, 2 maxt ∥wt ∥)

                                                              22
                                         Unconstrained Robust Online Convex Optimization

Proof. We show each property in turns.

(1) partition property can be seen by in the initialization of n = 0 with increment of 1 (line 6) and whenever counter n
    updates a new set Tn is created (line 7). And ∀t ∈ [T ] is assigned to Tn for some n ≥ 0 (line 11).
     As zT +1 = 2N τ ≤ 2 maxt ∥wt ∥. Thus N ≤ max(0, log2 2 maxt ∥wt ∥/τ ).
(2) For the time period of n = 0, line 4 was never executed.
(3) By construction Tn = {tn , tn + 1, · · · , tn+1 − 1}, ∀n ∈ [N − 1], TN = {tN , · · · , T }. When t = tn , the inequality
    holds. Thus we consider ∀t ∈ Tn \ {tn }, line 9 was triggered, hence zt+1 = zt = ztn +1 and ∥wt ∥ ≤ zt . On the other
    hand, by property (2) ztn +1 = 2ztn and ∥wtn ∥ > ztn . Thus
                                       2∥wtn ∥ > 2ztn = ztn +1 = zt ≥ ∥wt ∥,                         ∀t ∈ Tn \ {tn }

(4) since z1 = τ and zt+1 is either through line 5 (double) or line 9 (maintain). Thus non-decreasing property holds.
     Suppose line 5 was never executed, then zT +1 = z1 = τ . Now we consider line 5 was executed at least once. Let
     t∗ ∈ [T ] be the last time step in which line 5 was executed. Thus
                                                  zT +1 = zT = · · · = zt∗ +1 = 2zt∗ < 2∥wt∗ ∥
     a further upper bound is zt ≤ 2 maxt ∥wt ∥ for t ∈ [t∗ + 1, T + 1], combing with zt being non-decreasing, we complete
     the proof.




H. Error Correction
We provides the error correction effort as a result of trigger signals αt , βt from FILTER and tracker, respectively and
the chosen regularizer rt (w) = ft (w) + at ∥w∥2 as discussed in Section 6.3. We aim to bound OFFSET := ERROR −
CORRECTION by spliting it into two components:

                        X                              T
                                                       X                         X                           T
                                                                                                             X                       T
                                                                                                                                     X
            OFFSET =          ∥gt − g̃tc ∥∥wt ∥ −              αt ∥wt ∥2 +             ∥gt − g̃t ∥∥wt ∥ −            βt ∥wt ∥2 −           ft (wt )
                        t∈P
                         /                               t=1                     t∈P                          t=1                    t=1
                        |                      {z                        }       |                              {z                               }
                               OFFSET 1 : due to adaptive clipping                                 OFFSET 2 : due to corruption


and BIAS:
                                            T
                                            X            X                           X                          X
                                        2
                        BIAS = ∥u∥                at +          ft (u) + ∥u∥               ∥gt − g̃tc ∥ + ∥u∥         ∥gt − g̃tc ∥
                                            t=1           t                          t∈P                        t∈P
                                                                                                                 /

We begin with a helper Lemma followed by the upper bound.
Lemma H.1 (Error of Truncated Gradients). Suppose gt , g̃t satisfies assumptions in Equation (3) and (4). Define g̃tc as in
Equation (5) with ht ≤ τ for some τ > 0. Then
                                                      T
                                                      X
                                                               ∥gt − g̃tc ∥ ≤ 2k max(τ, G)
                                                       t=1


Proof. By definition: ∥gt − g̃tc ∥ ≤ G + τ ≤ 2 max(τ, G). Thus
                                    T
                                    X                          T
                                                               X
                                            ∥gt − g̃tc ∥ =            min (∥gt − g̃tc ∥, 2 max(τ, G))
                                     t=1                        t=1
                                                                        τ          T
                                                                                   X
                                                          ≤ 2 max                ,1   min (∥gt − g̃tc ∥, G)
                                                                             G         t=1
                                                          ≤ 2k max (τ, G)
where the last step is due to Equation (4).

                                                                             23
                                         Unconstrained Robust Online Convex Optimization

Lemma H.2. Suppose gt , g̃t satisfies assumptions in Equation (3) and (4). Algorithm 3 and 4 are initialized with some
τG , τD > 0. Algorithm 3 in response to g̃t and output ht+1 , Algorithm 4 in response to arbitrary sequence wt in which
maxt ∥wt ∥ ≤ 2ϵ 2T , and outputs zt+1 . Define
                                                            rt (w) = ft (w) + at ∥w∥2
where ft is defined as shown in Equation (7) for some c > 0, p = ln T, α = ϵτG /c, at = αt + βt , αt , βt are defined as in
Equation (11) and (12). For some γα , γβ > 0:
                          64 max(τG , G)2
                                                                  
                                                               8G
               OFFSET ≤                   (k + 1) max log2           ,1
                                 γα                            τG
                                                                   2                                2
                                        16k 2 max (τG , G)    64k 2 max (τG , G)  c
                           + ϵτG +                         ln                    + τD + 2kτD max(τG , G)
                                                γβ                  cγβ τD        2
and
                                              (γα (k + 1) + γβ ) ∥u∥2 + c∥u∥ + ∥u∥k max(τG , G)
                                                                                               
                               BIAS ≤ Õ


Proof. We show three components in turn:
OFFSET 1 : due to adaptive clipping:
                                        X                                                 X
                       OFFSET 1 :=            ∥gt − g̃tc ∥∥wt ∥ − αt ∥wt ∥2 ≤                   (G + ht )∥wt ∥ − αt ∥wt ∥2                    (20)
                                        t∈P
                                         /                                                t∈P
                                                                                           /

                                                                                                        A2
For each fixed t ∈ P̄, we have At ∥wt ∥ − αt ∥wt ∥2 ≤ supX≥0 At X − αt X 2 ≤ 4αtt , where At = G + ht > 0. Hence an
upper bound to Equation (20) can be derived by substitute αt = γα , ∀t ∈ P̄:
             X (G + ht )2       1 X                   (G + hT )2        64 max(τG , G)2
                                                                                                   
                                                                                                         8G
                                                                                                              
 OFFSET 1 ≤                  =          (G + ht )2 ≤             |P̄| ≤                 (k + 1) max log2      ,1
                     4αt       4γα                       4γα                 γα                           τG
             t∈P
              /                           t∈P
                                           /

where the last inequality is due to upperbound to |P̄| by Lemma F.2 (4).
OFFSET 2 : due to corruption:

The upper bound is obtained through two steps. In each step we aim to show:
                       X                              T
                                                      X                       T
                                                                              X                                    XT
         OFFSET 2 :=         ∥gt − g̃t ∥∥wt ∥ −             βt ∥wt ∥2 −             rt (wt ) ≤ O G2 k ln(max ∥wt ∥) −   ft (wt )
                                                                                                                  t
                       t∈P                            t=1                     t=1                                                   t=1
                       |                    {z                         }                        |                       {z                }
                             step 1: ≤O(G2 k log(max   t ∥wt ∥))                                                step 2: ≤O(G2 k)


By construction, we have
                                                 βt = γβ · 1+P1t{zt+1 ̸=zt }
                                          (
                                                                   1{zi+1 ̸=zi } ,               t = tn , n ∈ [N ]
                                  βt =                                  i=1

                                                 0,    otherwise
Proceed with analysis to step 1, where second line is by Lemma G.1 property (1) and value of βt displayed above:
                                 X                             T
                                                               X
                   step 1 : =          ∥gt − g̃t ∥∥wt ∥ −              βt ∥wt ∥2
                                 t∈P                           t=1
                                 N
                                 X X                                          N
                                                                              X
                             =                   ∥gt − g̃t ∥∥wt ∥ −                 βtn ∥wtn ∥2
                                 n=0 t∈P∩Tn                                  n=1

                                  X                                    N
                                                                       X                 X                        N
                                                                                                                  X
                             ≤            ∥gt − g̃t ∥∥wt ∥ +                 2∥wtn ∥              ∥gt − g̃t ∥ −         βtn ∥wtn ∥2
                                 t∈P∩T0                                n=1             t∈P∩Tn                     n=1

                                        X                        N
                                                                 X                     X                        N
                                                                                                                X
                             ≤ τD               ∥gt − g̃t ∥ +              2∥wtn ∥              ∥gt − g̃t ∥ −         βtn ∥wtn ∥2
                                    t∈P∩T0                      n=1                  t∈P∩Tn                     n=1


                                                                              24
                                       Unconstrained Robust Online Convex Optimization

where the third line is due to Lemma G.1 property (3). For the first summand, we can define some “imaginary” truncated
gradients


                                                          g̃t
                                                  zt =          min (∥g̃t ∥, τG )
                                                         ∥g̃t ∥


         P                       PT
Notice   t∈P∩T0 ∥gt − g̃t ∥ ≤       t=1 ∥gt − zt ∥ ≤ 2k max(τG , G) by evoking Lemma H.1. Thus,



                                                      N
                                                      X                 X                           N
                                                                                                    X
                       step 1 ≤ 2kτD max(τG , G) +           2∥wtn ∥             ∥gt − g̃t ∥ −            βtn ∥wtn ∥2                (21)
                                                      n=1              t∈P∩Tn                       n=1




Now we analyze each summands over n in Equation (21). Considering a fixed n ∈ [N ]:

                        X                                              X
             2∥wtn ∥            ∥gt − g̃t ∥ − βtn ∥wtn ∥2 ≤ sup X               2∥gt − g̃t ∥ − βtn X 2
                                                             X≥0
                       t∈P∩Tn                                        t∈P∩Tn
                                                              P                         2
                                                                t∈P∩Tn ∥gt − g̃t ∥
                                                         =
                                                                        β tn
                                                                                          !2              t
                                                                                                                                 !
                                                            2
                                                                                                                1{zi+1 ̸= zi }
                                                                     X                                    X
                                                         =                  ∥gt − g̃t ∥             1+
                                                           γβ                                             i=1
                                                                   t∈P∩Tn
                                                                                          !2              T
                                                                                                                                 !
                                                            2
                                                                                                                1{zi+1 ̸= zi }
                                                                     X                                    X
                                                         ≤                  ∥gt − g̃t ∥             1+
                                                           γβ                                             i=1
                                                                   t∈P∩Tn
                                                                                          !2
                                                            2        X
                                                         =                  ∥gt − g̃t ∥        (1 + N )
                                                           γβ
                                                                   t∈P∩Tn




                                                                                       1{zi+1 ̸= zi }. Now, we substitute it back to
                                                                               PT
where the second to last line is due to number of zt+1 doubled N =               t=1
equation (21)


                                                                            N
                                                                                                            !2
                                                        2 (1 + N ) X                   X
                            step 1 ≤ 2kτD max(τG , G) +                                        ∥gt − g̃t ∥
                                                            γβ     n=1               t∈P∩Tn
                                                                               N
                                                                                                            !2
                                                         2 (1 + N )            X X
                                    ≤ 2kτD max(τG , G) +                                       ∥gt − g̃t ∥
                                                             γβ                n=1 t∈P∩Tn
                                                                                                   !2
                                                         2 (1 + N )            X
                                    = 2kτD max(τG , G) +                             ∥gt − g̃t ∥
                                                             γβ
                                                                               t∈P
                                                                               T
                                                                                                   !2
                                                         2 (1 + N )            X
                                    ≤ 2kτD max(τG , G) +                             ∥gt − g̃tc ∥
                                                             γβ                t=1
                                                         2 (1 + N )                  2
                                    ≤ 2kτD max(τG , G) +            (2k max(hT , G))
                                                             γβ

                                                                25
                                             Unconstrained Robust Online Convex Optimization

where the last step is due to Lemma H.1 by noticing ∥g̃tc ∥ ≤ hT , ∀t ∈ [T ]. This mean we obtained an upper bound to step 1:
                                       T                                                                               2
            X                          X                                                            8k 2 max (τG , G) (1 + N )
step 1 :=         ∥gt − g̃t ∥∥wt ∥ −         βt ∥wt ∥2 ≤ 2kτD max(τG , G) +
                                       t=1
                                                                                                                γβ
            t∈P
                                                                                                                                                     
                                                                                                                     2                       t ∥wt ∥
                                                                                                    8k 2 max (τG , G) (1 + max 0, log2 2 maxτD       )
                                                              ≤ 2kτD max(τG , G) +
                                                                                                                           γβ
                                                                                                                                            
                                                                                                                     2               t ∥wt ∥
                                                                                                    8k 2 max (τG , G) log2 2 + 4 maxτD
                                                              ≤ 2kτD max(τG , G) +
                                                                                                                               γβ
                                                                                                                                           
                                                                                                                           2        t ∥wt ∥
                                                                                                    16k 2 max (τG , G) ln 2 + 4 maxτD
                                                              ≤ 2kτD max(τG , G) +
                                                                                                                            γβ

where the second step is due to Lemma G.1 (1). Thus, it is sufficient to bound step 2 defined as follows to obtain a bound for
OFFSET 2 that is independent of maxt ∥wt ∥:
                                                                            
                                                    2                t ∥wt ∥
                                  16k 2 max (τG , G) ln 2 + 4 maxτD              XT
                        step 2 :=                                              −     ft (wt )
                                                     γβ                          t=1

evoke Lemma B.1 with α = ϵτG /c
                                                                              
                                                         2             t ∥wt ∥
                                       16k 2 max (τG , G) ln 2 + 4 maxτD
                                  ≤                                                                       − c max ∥wt ∥ + ϵτG
                                                                        γβ                                      t
                                                                                  2
                                            16k 2 max (τG , G)             cτD
                                  ≤ sup                        ln(2 + X) −     X + ϵτG
                                       X>−2         γβ                      4

for A, B > 0, A ln(2 + X) − BX obtains its supremum at X = A/B − 2 > −2. Hence supX>−2 A ln(2 + X) − BX =
                                                                   2                  2
A ln(A/B) − A + 2B. By substituting A = 16k max(τ
                                             γβ
                                                  G ,G)
                                                        , B = cτ4D we have
                                                                                                           !
                                                                        2                             2
                                    16k 2 max (τG , G)                             64k 2 max (τG , G)        c
                                  =                                             ln                      − 1 + τD + ϵτG
                                            γβ                                           cγβ τD              2

Thus step 1 and step 2 implies
                                                                            2                              2
                                         16k 2 max (τG , G)    64k 2 max (τG , G)  c
                  OFFSET 2 ≤ ϵτG +                          ln                    + τD + 2kτD max(τG , G)
                                                 γβ                  cγβ τD        2

BIAS: comparator related term

                                                 T
                                                 X            X                            X                          X
                                             2
                          BIAS := ∥u∥                  at +            ft (u) + ∥u∥              ∥gt − g̃tc ∥ + ∥u∥         ∥gt − g̃tc ∥
                                                 t=1            t                          t∈P                        t∈P
                                                                                                                       /
                                             T
                                             X                X                            T
                                                                                           X
                                = ∥u∥2                 at +            ft (u) + ∥u∥              ∥gt − g̃tc ∥
                                                 t=1           t                           t=1
                                             T
                                             X                X
                                ≤ ∥u∥2                 at +            ft (u) + ∥u∥2k max (hT , G)
                                                 t=1           t
                                             T
                                             X                X
                                ≤ ∥u∥2                 at +            ft (u) + ∥u∥16k max (τG , G)                                                (22)
                                                 t=1           t


                                                                                      26
                                      Unconstrained Robust Online Convex Optimization


          P It remains
where the last           P the first two terms in Equation (22) can be bounded by desired orders. For the first
                 P to show
summand, t at = t αt + t βt . Thus by definition and Lemma F.2 (4):
                                                               
                       X                                     8G
                         αt ≤ γα |P| ≤ γα (k + 1) max log2           ≤ Õ(γα (k + 1))
                       t
                                                              τG

and Lemma G.1 (1) implies N ≤ O(ln maxt ∥wt ∥) and the condition maxt ∥wt ∥ ≤ 2ϵ 2T implies:

                          X               T
                                          X          1{zt+1 ̸= zt }
                               βt = γ β                                  = γβ ln (1 + N ) ≤ Õ(γβ )
                                                      i=1 1{zi+1 ̸= zi }
                                                     Pt
                           t              t=1 1 +


The second term in Equation (22) can be upper bounded by Lemma B.1 by substituting α = ϵτG /c:
                           T
                                                         "                     ln T !      #
                           X                                              ∥u∥
                                 ft (u) ≤ 3c ln T ∥u∥ ln 1 +                              + 2 = Õ (c∥u∥)
                           t=1
                                                                           α

Thus,

                                              (γα (k + 1) + γβ ) ∥u∥2 + c∥u∥ + ∥u∥k max(τG , G)
                                                                                               
                            BIAS ≤ Õ




I. Base Algorithms for unknown G
In this section, we show the Epigraph-based regularization scheme developed by (Cutkosky & Mhammedi, 2024) guarantees
appropriate composite regret defined as:
                                                       T
                                                       X
                                          RTA (u) :=     ⟨gt , wt − u⟩ + rt (wt ) − rt (u)
                                                       t=1

when rt (w) = ft (w) + at ∥w∥2 and the sequence at satisfies assumption in Lemma H.2. That is
                                      T
                                      X                                     T
                                                                            X
                         RTA (u) :=                                           at ∥wt ∥2 − ∥u∥2
                                                                                               
                                        ⟨gt , wt − u⟩ + ft (wt ) − ft (u) +
                                      t=1                                             t=1

Thus, can be used as a base algorithm A that can be supplied to Algorithm 1 when the G ≥ maxt ∥gt ∥ is unknown. The
proof is identical to (Cutkosky & Mhammedi, 2024) except at behaves differently here. Nevertheless, we summarize as
Algorithm 5 and shows the regret guarantee attained stilled suffices in achieving our aim.
Epigraph-based Regularization is a geometric reparameterization: it suffices to design two learners: Aw to wt and Ay to
produce yt , where (wt , yt ) ∈ W = {(w, y) : y ≥ ∥w∥2 } ⊆ Rd+1 . Then it suffices to design algorithm to bound:
                                          T
                                          X                                     T
                                                                                X
                            RTA (u) ≤       ⟨gt , wt − u⟩ + ft (wt ) − ft (u) +   at (yt − ∥u∥2 )                     (23)
                                          t=1                                          t=1
                                          |                   {z                  }    |         {z      }
                                                          Aw                                     A
                                                         RT  (u)                              RT y (u)


This is a sum of two regrets for the pair wt and yt subject to yt ≥ ∥wt ∥2 . This problem can be solved by using a pair of
unconstrained learners (Aw , Ay ) that produce (ŵt , ŷt ) ∈ Rd+1 and guarantee regret bounds:

                                                       T
                                                       X
                                        R̃TAw (u) ≥          ⟨gt , ŵt − u⟩ + ft (ŵt ) − ft (u)
                                                       t=1


                                                                    27
                                               Unconstrained Robust Online Convex Optimization

and
                                                                      T
                                                            A
                                                                      X
                                                        R̃T y (u) ≥          at (ŷt − ∥u∥2 )
                                                                      t=1

By a black-box conversion from unconstrained-to-constrained learning due to (Cutkosky & Orabona, 2018) (Theorem 3) to
enforce the constraint: this involves a projection ΠW : Rd+1 → W := {(w, y) : y ≥ ∥w∥2 } (line 7) and a certain technical
correction to the gradient feedback (11-15). These procedures output variables (wt , yt ) = ΠW ((ŵt , ŷt )) that satisfies the
                                                       A           A
constraint and guarantees RTAw (u) ≤ R̃TAw (u) and RT y (u) ≤ R̃T y (u). In particular, we choose Algorithm 2 as Aw and
                                                  y
(Jacobsen & Cutkosky, 2022) Algorithm 4 as A . We summarize the entire procedure as Algorithm 5 and its gaurantee on
RTA (u) is displayed as Theorem I.3. We first present a useful definition and a helper Lemma.
Definition I.1. For the set W = {(w, y) : y ≥ ∥w∥2 } ⊆ Rd+1 , and arbitrary (w, y) ∈ W and (ŵ, ŷ) ∈ Rd+1 and some
ht , γ > 0:

 (1) norm: ∥(w, y)∥t = h2t ∥w∥2 + γ 2 y 2
                                           2       2
 (2) dual norm: ∥(w, y)∥∗,t = ∥w∥
                               h2
                                  + γy 2
                                       t


 (3) distance function of (ŵ, ŷ) to W : St ((ŵ, ŷ)) = inf y≥∥w∥2 ∥(w, y) − (ŵ, ŷ)∥t
                                                        h2t (ŵ−w)
                                                                                                     
                                                                                     γ 2 (ŷ−y)
 (4) subgradient at (ŵ, ŷ): ∇St ((ŵ, ŷ)) = h2 ∥ŵ−w∥     2 +γ 2 (ŷ−y)2 , h2 ∥ŵ−w∥2 +γ 2 (ŷ−y)2
                                                        t                          t


 (5) projection map ΠtW ((ŵ, ŷ)) = argmin(w,y)∈W ∥(w, y) − (ŵ, ŷ)∥t

Lemma I.2. In the same notation as Definition I.1, if ∥gt ∥ ≤ ht and αt ∈ [0, γ], and (δtw , δty ) = ∥(gt , at )∥∗,t ∇St ((ŵt , ŷt ))
then
                                                     √                     √
                                          ∥δtw ∥ ≤ 2ht ,           |δty | ≤ 2γ

Proof. Since ∥gt ∥ ≤ ht and αt ∈ [0, γ], ∥(gt , at )∥∗,t ≤ 2. On the other hand ∥∇St ((ŵ, ŷ))∥∗,t = 1, and

                                                                             ∥δtw ∥2   |δty |2
                                                       ∥(δtw , δty )∥∗,t =           +
                                                                               h2t      γ2

Thus
                                                                ∥δtw ∥2   |δty |2
                                                                        +         ≤2
                                                                  h2t      γ2
                     ∥δtw ∥2        |δ y |2
This implies both      h2t
                             ≤ 2 and γt2 ≤ 2.

Theorem I.3. Suppose gt , g̃t satisfies assumptions in Equation (3) and (4), and having access to g̃tc as defined in Equation
(5) with ht provided by FILTER (Algorithm 3). with α = ϵ/c, γ = γα + γβ , for some ϵ, c, γα , γβ , τG , τD > 0, Algorithm 5
guarantees:
                                                          √                              
                               RTA (u) ≤ Õ ϵhT + ∥u∥hT T + ∥u∥2 (γα (k + 1) + γβ )

In addition, the produced iterate satisfies maxt ∥wt ∥ ≤ 2ϵ 2T

Proof. Notice that we used ŵt , ŷt as outputs from some unconstrained learner and wt , yt being their projection on Wt in
Algorithm 5 denote. We begin our analysis from Equation (23):
                                     T
                                     X                                                 T
                                                                                       X
                         RTA (u) ≤         ⟨gt , wt − u⟩ + ft (wt ) − ft (u) +               at (yt − ∥u∥2 )
                                     t=1                                               t=1


                                                                        28
                                          Unconstrained Robust Online Convex Optimization

By Cutkosky & Orabona (2018) Theorem 3


                                    T
                                    X                                                     T
                                                                                          X
                                ≤         ⟨g̃tc + δtw , ŵt − u⟩ + ft (wt ) − ft (u) +          (at + δty )(yt − ∥u∥2 )
                                    t=1                                                   t=1



Notice ∥ŵt ∥ ≤ ∥wt ∥, thus ft (wt ) ≤ ft (ŵt )


                                    T
                                    X                                                     T
                                                                                          X
                                ≤         ⟨g̃tc + δtw , ŵt − u⟩ + ft (ŵt ) − ft (u) +     (at + δty )(yt − ∥u∥2 )                          (24)
                                    t=1                                                   t=1
                                    |                      {z                     }       |              {z                }
                                                         Aw                                             A
                                                        RT  (u)                                        RT y (u)



                                                                                                                  √
Since γβ = γ2 , at = αt + βt ≤ γα + γβ = γ. Thus, by Lemma I.2, ∥g̃tc + δtw ∥ ≤ ht +                                  2ht ≤ 3ht and |at + δty | ≤
    √
γ + 2γ ≤ 3γ. By Theorem C.2:


                                                      w
                                                                          √ 
                                                   RTA (u) ≤ Õ ϵhT + ∥u∥hT T


and Theorem 10 of Cutkosky & Mhammedi (2024) shown

                                                                     v             
                                                                      u        T
                                               Ay
                                                                      u        X
                                              RT (u) ≤ Õ ϵhT + ∥u∥2 tγ 2 + γ   at 
                                                                                              t=1



Thus, we can bound Equation (24) by combine both bounds:

                                                                           v          
                                                                                  T
                                                                √
                                                                            u
                                                                            u     X
                            RTA (u) ≤ Õ ϵhT + ∥u∥hT               T + ∥u∥2t 2
                                                                             γ +γ   at 
                                                                                              t=1



        P        P          P                                                                  P                                 P
since   t at =     t αt +    t βt , by the same computation as that of Lemma H.2,                   t αt ≤ Õ(γα (k +1)) and        t βt ≤ O(γβ )



                                                        √
                                                                q                           
                                        ≤ Õ ϵhT + ∥u∥hT T + ∥u∥2 γ 2 + γ ((γα (k + 1) + γβ )



γ ≤ γα and γ ≤ γβ

                                                       √                           
                                        ≤ Õ ϵhT + ∥u∥hT T + ∥u∥2 (γα (k + 1) + γβ )




                                                                      29
                                    Unconstrained Robust Online Convex Optimization

Algorithm 5 Robust Online Learning By Exploiting In-Time Offset
 1: Input: Time horizon T , FILTER (Algorithm 3), TRACKER (Algorithm 4),
    an algorithm Ay with optimal rate in parameter-free literature (e.g., Jacobsen & Cutkosky (2022) Algorithm 4),
    corruption parameter k, base algorithm parameters ϵ, regularization parameters c, α, γα , γβ , γ.
 2: Initialize: Initialize Algorithm 2 as Aw with ϵ. Initialize Ay with ϵ.
    Initialize FILTER with τG (outputs ht as a conservative lower-bound guess for G).
    Initialize TRACKER with τD (outputs zt as a conservative lower-bound guess for maxt |wt |).
 3: for t = 1 to T do
 4:    Receive ŵt from Aw ; Receive ŷt from Ay .
 5:    Compute operators in Definition I.1 with ht , γ.
 6:    # Explicit projection of (ŵt , ŷt ) through projection map ΠtW as in Definition I.1.
 7:    Compute projection: (wt , yt ) = ΠtW ((ŵt , ŷt )).
 8:    Play wt , receive g̃tc , ht+1 from FILTER. Send wt to TRACKER and receive zt+1 .
 9:    Compute αt , βt as defined in Equations (11), (12).
10:    Compute quadratic regularizer weights: at = αt + βt .
11:    # Compute gradient correction direction (δtw , δty ) with ∥ · ∥∗,t and ∇St as in Definition I.1.
12:    Compute: (δtw , δty ) = ∥(g̃tc , at )∥∗,t ∇St ((ŵt , ŷt )).
13:    # Send corrected gradients:
14:    Send ( 21 (g̃tc + δtw ) , 2ht+1 ) to Aw .
15:    Send 12 (at + δty ) and 23 γ to Ay .
16: end for


J. Regret Analysis with Unknown G
We provide the regret guarantee of Algorithm 1 when using an instance of Algorithm 5 as a base learner A.
Theorem J.1 (Restated Theorem 6.1). Suppose gt , g̃t satisfies assumptions in Equation (3) and (4). Setting rt (w) =
ft (w) + αt ∥w∥2 , where ft is defined in Equation (7) with parameters: α = ϵτG /c, p = ln T, γ = γα + γβ , for some
ϵ, c, γα , γβ , τG , τD > 0, there exists an algorithm A as a base algorithm such that Algorithm 1 guarantees:
                                                                 √                                          
                 RT (u) ≤ Õ 8ϵ max(τG , G) + ∥u∥ max(τG , G)         T + k + c∥u∥ + (γα (k + 1) + γβ ) ∥u∥2
                                          2                        2
                        16k 2 max (τG , G)    64k 2 max (τG , G)    c
                      +                    ln                     + τD + 2kτD max(τG , G)
                                γβ                  cγβ τD          2
                        64(k + 1) max(τG , G)2
                                                                
                                                              8G
                      +                         max      log2     ,1
                                  γα                          τG

Proof. Note the definition of RT (u), the proof is completed by combining Lemma H.2 and Theorem I.3

K. Fenchel Conjugate
Here we collects basic properties of Fenchel conjugate, see reference such as (Bertsekas, 2009; Orabona, 2019), and
previously established Lemma used in Appendix E for completeness.
Definition K.1. Let f : Rd → [−∞, ∞], the Fenchel conjugate f ∗ is defined as
                                               f ∗ (θ) = sup ⟨θ, x⟩ − f (x)
                                                        x∈Rd

the double conjugate f ∗∗ is defined as
                                              f ∗∗ (θ) = sup ⟨θ, x⟩ − f ∗ (x)
                                                        x∈Rd

Theorem K.2. Let f : Rd → (−∞, ∞]

 1. f (x) = f ∗∗ (x), ∀x ∈ Rd iff f is convex and lower semicontinuous

                                                            30
                                    Unconstrained Robust Online Convex Optimization

 2. ⟨θ, x⟩ − f (x) achieves its supremum in x at x = x∗ iff x∗ ∈ ∇f ∗ (θ)

Lemma K.3. (Theorem A.32 of (Orabona, 2019)) The Lambert function W : R+ → R+ is defined as

                                           x = W (x) exp (W (x)) ,       for x > 0

and W (x) > 0.6 ln(1 + x) for x > 0.
Lemma K.4. (Theorem A.3 of (Orabona, 2019)) Let a, b > 0, f (x) = b exp(x2 /2a). Then the Fenchel conjugate is
                                              s                              
                                        √
                                                       2
                                                         aθ            1
                               f ∗ (θ) = a|θ|  W               −q            
                                                          b2         W aθ
                                                                           2
                                                                                   b2

where W (·) is the Lambert function.
Lemma K.5.
                                              √
                                                             r
                                                      1           x            3
                                                  x− √ ≥            ,   ∀x ≥
                                                       x          9            2

Proof. The proof is based on rearrange x ≥ 23 , the condition is equivalent to
                                                             
                                                            1
                                                        1−      x≥1
                                                            3
                                 √
Given x > 0, divide both side by x

                                                         1 √
                                                          
                                                                      1
                                                     1−         x≥ √
                                                         3             x

Rearrange and we complete the proof.




                                                             31
