arXiv:2609.09907cs.LGSep 2026

Manuscript Offprint

arXiv:2609.09907

Meta-LinEXP3: Online-within-Online Learning for Adversarial Linear Contextual Bandits

Hao Li, Jie Xu, Zheng Xie

Abstract

Meta-learning has emerged as an effective paradigm for transferring knowledge across sequential bandit tasks. While substantial progress has been made for stochastic bandits and non-contextual adversarial bandits, meta-learning for adversarial linear contextual bandits (ALCBs) with random action sets remains largely unexplored. To address this problem, we propose Meta-LinEXP3, an online-within-online algorithm that constructs a predictable task-level prior from completed tasks to guide the inner LinEXP3 learner. For known context distributions, we develop a policy-centered estimator that achieves an intrinsic-dimension O(n)\mathcal{O}(\sqrt{n}) per-task regret bound. For unknown distributions, we introduce a past-only regularized moment estimator with an O(n2/3)\mathcal{O}(n^{2/3}) leading regret term and explicit finite-sample error. We further establish a direct connection between prior accuracy and transfer regret, showing that increasingly accurate priors yield sublinear transfer-dependent regret across tasks. Experiments demonstrate the effectiveness of Meta-LinEXP3, including its application to structured hyperspectral tensor sampling.

Keywords: Meta-learning, adversarial linear contextual bandits, online-within-online learning, LinEXP3, tensor sampling

1 Introduction

Contextual bandits model sequential decision problems in which the learner observes context-dependent actions and receives feedback only for the selected action [1, 13, 15]. They are widely used for applications such as treatment selection [28], personalized recommendation [4], and online advertising [15]. In the stochastic setting, losses are generated from a stationary model; in the adversarial setting, the loss sequence may vary arbitrarily over time.

We focus on adversarial linear contextual bandits (ALCBs). Each action is represented by a context vector, and its loss is the inner product between that context and a loss vector chosen by the environment. Apart from the geometric and non-anticipation conditions stated below, we impose no stationary model on the loss sequence.

A central limitation of the single-task formulation is that many applications naturally generate a sequence of related decision problems. Recommendation systems serve different user cohorts, pricing policies are deployed over successive sales cycles, and clinical studies may involve multiple patient groups. Restarting an ALCB learner on every task discards information that could be useful when task horizons are short. Existing ALCB methods [16, 21] analyze one task at a time and do not address this form of cross-task transfer.

Meta-learning [30] provides a natural framework for exploiting repeated structure across tasks. In online-within-online meta-learning [7, 10, 18], an outer learner updates shared information from completed tasks, while an inner learner makes the round-by-round decisions within each task.

*Corresponding author: xiezheng81@nudt.edu.cn.

Contributions. Building on [11, 21, 26], we study an online-within-online ALCB problem with mm tasks of nn rounds under a shared context distribution. The loss vector at a round may depend on the entire preceding history, including earlier tasks; the only freshness requirement is on the current context set. Our main contributions are:

  1. We introduce Meta-LinEXP3, which couples an outer task-level transfer mechanism with an inner adversarial LinEXP3 learner.

  2. We propose positive-cosine retrieval weighting (PCRW) and use a uniform baseline for comparison. Both form a predictable prior from completed task summaries and keep it fixed throughout the next task.

  3. For known context distributions, PC-KDE gives an intrinsic-dimension O(n)\mathcal{O}(\sqrt{n}) per-task bound. For unknown distributions, PRME gives an O(n2/3)\mathcal{O}(n^{2/3}) leading term with an explicit moment estimation error. For structured sequences of oblivious tasks, the stated margin and prior-accuracy conditions imply sublinear transfer-dependent terms in the number of tasks.

  4. We evaluate the method on bounded synthetic tasks, a controlled PC-KDE/PRME/LPE comparison, MovieLens recommendation, and structured KSC tensor sampling, with experiments designed to separate transfer effects from estimator behavior.

These guarantees rely on the fixed-within-task prior and on the specific estimator properties used in the analysis; a different inner estimator requires a separate verification of selection correction, score range, variance, and bias.

Section 2 reviews related work, Section 3 formalizes the problem, Sections 4–5 present the algorithm and regret analysis, and Section 6 reports the experiments. Section 7 concludes, and complete proofs are given in Appendix A.

References (31)