arXiv:2610.19804cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19804

Efficient contextual partial monitoring with general function approximation

Kapilan Balagopalan, Hao Qin, Kwang-Sung Jun, Chicheng Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Kapilan Balagopalan, Hao Qin

Department of Computer Science

University of Arizona

Tucson, AZ, USA

{kapilanbgp, hqin}@arizona.edu

Kwang-Sung Jun

Graduate School of Artificial Intelligence

POSTECH

Pohang, South Korea

kwangsungjun@gmail.com

Chicheng Zhang

Department of Computer Science

University of Arizona

Tucson, AZ, USA

chichengz@arizona.edu

ABSTRACT

We study finite stochastic partial monitoring (PM) games with side information, a paradigm of sequential learning with partial feedback. On each round t∈[T]t \in [T], both player and environment observe a context and player chooses an action and environment simultaneously chooses an outcome. The player neither observes the outcome nor the loss; instead they only observe a feedback symbol which is partially informative about the outcome. We utilize the Estimation-to-Decisions (E2D) meta-algorithm of Foster et al. (2021) to design E2D.PMSIDE, a computationally-efficient framework for contextual partial monitoring, which uses an online regression oracle to efficiently estimate the outcome distributions based on historical (context, action, feedback symbol) tuples. Since the exploration rule given by the original E2D algorithm is intractable to compute, we propose two computationally-efficient exploration rules that achieve optimal regret orders in TT: in the globally observable setting, our exploration rule is based on ϵ\epsilon-greedy, while in the locally observable setting, our exploration rule uses inverse gap weighting (Foster & Rakhlin, 2020) which was previously only known to be effective in the bandit setting. We show that a variant of E2D.PMSIDE named OE2D.PMSIDE can be combined with offline regression oracles to give an efficient algorithm with optimal regret when the contexts are drawn independently from a fixed distribution. We evaluate our algorithm on a synthetic label-efficient prediction game and an LLM routing task, in which a learner decides from prompt, uncertainty and internal state features whether to escalate a query from a weak model to a strong one. We show that our method has superior performance than prior approaches.

1 INTRODUCTION

The contextual stochastic partial monitoring problem (Bartók & Szepesvári, 2012) is an online learning problem where the learner repeatedly takes actions so as to minimize its loss based on the environment's partial feedback. At the beginning of the game, the learner and the environment are given a pair G=(L,Φ)\mathcal{G} = (L, \Phi) of k×dk \times d matrices, where kk is the number of actions available to the learner and dd is the number of outcomes available to the environment. The loss matrix L∈[0,1]k×d\mathbf{L} \in [0, 1]^{k \times d} records the loss LaoL_{ao} incurred when the learner plays action aa and the environment's outcome is oo. The feedback matrix Φ∈Σk×d\Phi \in \Sigma^{k \times d} records what the learner is shown instead: playing aa against outcome oo reveals the feedback symbol Φao\Phi_{ao} from a finite alphabet Σ={1,…,m}\Sigma = \{1, \ldots, m\}. The interaction between the learner and the environment proceeds over TT rounds. At round tt the learner observes a context xtx_t (which may be chosen adversarially), samples an action At∼pt(⋅∣xt)A_t \sim p_t(\cdot | x_t) according to a policy pt:X→Δ(k)p_t : \mathcal{X} \to \Delta(k), and the environment draws an outcome OtO_t from some stochastic distribution q∗(xt)q^*(x_t) independently of the learner's randomization. The learner then observes the feedback symbol σt=ΦAtOt\sigma_t = \Phi_{A_t O_t} and incurs the loss LAtOtL_{A_t O_t}, which remains hidden. The goal of the learner is to minimize its regret, which is the difference between its expected cumulative loss and that of the best policy in hindsight:

RegT:=∑t=1T(pt⊤Lq∗(xt)−min⁡λ∈Δ(k)λ⊤Lq∗(xt)).\mathrm{Reg}_{T}:=\sum_{t=1}^{T}\left(p_{t}^{\top}\boldsymbol{L}q^{*}(x_{t})-\min_{\lambda\in\Delta(k)}\lambda^{\top}\boldsymbol{L}q^{*}(x_{t})\right).

Contextual stochastic partial monitoring has many applications, such as learning from one-sided feedback (Helmbold et al., 2000; Sculley, 2007), dynamic pricing (Kleinberg & Leighton, 2003), data procurement in crowdsourcing (Singla et al., 2014), and label-efficient prediction (Helmbold et al., 1997). Below we give two examples:

Example 1: LLM routing. Modern Large language models (LLM)-based question-answering service optimizes its cost-efficiency by operating in a hybrid mode (Ong et al., 2025; Chen et al., 2023; An et al., 2026; Li et al., 2026): it keeps two LLMs – one weak but cheap and one strong but expensive; and given a prompt, it judiciously decides which LLMs to route the prompt to, obtaining its response. At time step t, the service receives a new prompt represented by context xtx_t, and the weak model generates a response at negligible cost, and the router then either serves the weak response ( a1a_1) or queries the strong model and serves its response ( a2a_2). The environment’s (hidden) outcome is whether the weak response agrees with the strong one ( o1o_1) or does not agree ( o2o_2). We take the strong model to be correct and to cost 1 per query, and we incur cost of ℓ01>1\ell_{01} > 1 when a served weak model’s response is wrong. Partial monitoring enters through the feedback: serving the weak response never reveals whether it was correct, so both outcomes yield the same symbol ⊙\odot, and only querying the strong model distinguishes them. The game’s loss matrix and feedback matrix are summarized below:

L=[a1a2][o1o20ℓ0111],Φ=[a1a2][o1o2⊙⊙⊥∧].\boldsymbol{L}=\begin{bmatrix}{{{a_{1}}}} \\{{{a_{2}}}}\end{bmatrix}\begin{bmatrix}{{{o_{1}}}}&{{{o_{2}}}} \\{{{0}}}&{{{\ell_{01}}}} \\{{{1}}}&{{{1}}}\end{bmatrix},\qquad\boldsymbol{\Phi}=\begin{bmatrix}{{{a_{1}}}} \\{{{a_{2}}}}\end{bmatrix}\begin{bmatrix}{{{o_{1}}}}&{{{o_{2}}}} \\{{{\odot}}}&{{{\odot}}} \\{{{\perp}}}&{{{\wedge}}}\end{bmatrix}.

This game was also referred to as the Apple Tasting game Helmbold et al. (2000) in earlier works.

Example 2: contextual label efficient prediction game (Lattimore & Szepesvári, 2020; Helmbold et al., 1997). Suppose we would like to learn a spam filter online, which predicts whether an email is spam ( o1o_1) or not ( o2o_2) based on its text features ( xtx_t) and directs it to the inbox ( a2a_2) or spam folder ( a3a_3). There is also a third option ( a1a_1) where the system can ask the recipient/expert for classification, which is accurate but incurs a fixed cost. Only when the learner chooses action a1a_1 does it get to see the true label of the email. The game’s loss matrix and feedback matrix are summarized below:

L=[a1a2a3][o1o2cc1001],Φ=[a1a2a3][o1o2⊥∧⊙⊙⊙⊙].\boldsymbol{L}=\begin{bmatrix}{{{a_{1}}}} \\{{{a_{2}}}} \\{{{a_{3}}}}\end{bmatrix}\begin{bmatrix}{{{o_{1}}}}&{{{o_{2}}}} \\{{{c}}}&{{{c}}} \\{{{1}}}&{{{0}}} \\{{{0}}}&{{{1}}}\end{bmatrix},\qquad\boldsymbol{\Phi}=\begin{bmatrix}{{{a_{1}}}} \\{{{a_{2}}}} \\{{{a_{3}}}}\end{bmatrix}\begin{bmatrix}{{{o_{1}}}}&{{{o_{2}}}} \\{{{\perp}}}&{{{\wedge}}} \\{{{\odot}}}&{{{\odot}}} \\{{{\odot}}}&{{{\odot}}}\end{bmatrix}.

Depending on the feedback structure, finite stochastic partial-monitoring games are classified into four categories (classification theorem): trivial, easy, hard, and hopeless games (Bartók et al., 2011; Lattimore & Szepesvári, 2020). In hopeless games, the feedback is too uninformative to support meaningful learning, and the regret might grow linearly with the time horizon ( Ω(T)\Omega(T)). In contrast, in trivial games, there exists an action which is optimal for every outcome; consequently, they can be solved with zero regret. The main cases requiring more refined analysis are easy ( Θ(T)\Theta(\sqrt{T})) and hard games ( Θ(T2/3)\Theta(T^{2/3})). Both classes satisfy global observability, which we define shortly. In addition, easy games satisfy local observability, whereas hard games do not.

Related work: partial monitoring with side information. We adopt the contextual partial monitoring setting of Bartók et al. (2012a); Heuillet et al. (2024), and use the terms contextual partial monitoring and partial monitoring with side information interchangeably for it. The classification of easy and hard games established for finite stochastic non-contextual partial monitoring (Bartók et al., 2011; Lattimore & Szepesvári, 2020) extends to this setting, at least in the minimax regret's dependence on T. First, the non-contextual lower bounds of Bartók et al. (2011) transfer immediately, since a non-contextual game can be viewed as a contextual game with a dummy context. Second, for the upper bounds, Foster et al. (2022) shows the equivalence between the Decision-Estimation Coefficient Foster et al. (2021) and the exploration-by-optimization (ExO) objective of Lattimore & Szepesvári (2020), which implies that the contextual version of the Estimation-to-Decision algorithm (Foster et al., 2021, Section 8) achieve regrets that match optimal rates given by ExO. These optimal statistical guarantees come at a computational cost, however: the algorithm attaining them selects each action distribution by solving a minimax problem at every round, which is not known to be tractable (see Section 2.3 for further discussion). Furthermore, our work is closely related to Lattimore & Szepesvári (2019; 2020); Lattimore (2022); Lattimore & Gyorgy (2021) and Foster et al. (2022). A detailed discussion is deferred to Section A.

Meanwhile, computationally efficient algorithms have been proposed for contextual stochastic partial monitoring, by imposing strong assumptions on the function class that models the true outcome distribution q∗q^*. Utilizing generalized linear models for modeling (functions of) q∗q^*, Bartók et al. (2012a) proposed CBPSIDE, a deterministic algorithm based on confidence intervals that extends UCB-style methods from the bandit setting; it applies only to easy games, where it achieves O(T)O(\sqrt{T}) regret. Heuillet et al. (2024) later introduced CBPSIDE* and its randomized counterpart RANDCBPSIDE*, which cover both classes, attaining O(T)O(\sqrt{T}) regret on easy games and O(T2/3)O(T^{2/3}) on hard ones. Kirschner et al. (2023) studies the linear partial monitoring and its contextual extension, which generalizes contextual finite partial monitoring; however, they require that the mappings from (context, action) to the expected reward and the signal feedback to be (context-independent) linear functions.

This motivates the question that drives our work: are there computationally efficient algorithms for contextual partial monitoring that support general function approximation and attain the optimal rates? In this paper, we answer this question affirmatively. Specifically, we make the following contributions: Contributions. (1) we propose an algorithmic framework E2D.PMSIDE that reduces stochastic contextual partial monitoring to online regression. It is based on the E2D (Estimation to Decision) framework (Foster et al., 2021), where the algorithm aims at finding an exploration distribution that certifies a low Decision-Estimation Coefficient (See Section 2.3 for its definition); our key observation is that this can be done by optimizing a surrogate objective that trades off between greediness and coverage, which paves the way for the design of efficient algorithms for contextual partial monitoring. (2) Based on the above relaxed objective, we instantiate E2D.PMSIDE in the globally observable and locally observable games to obtain ϵ\epsilon-GREEDY.PMSIDE and SQUARECB.PMSIDE algorithms respectively, achieving regret of optimal order in T in their respective settings. These, to our knowledge, are the first computationally efficient contextual partial monitoring algorithms with general function approximation. (3) When the contexts are iid, we propose a variant of E2D.PMSIDE named OE2D.PMSIDE, which is an efficient stochastic contextual partial monitoring algorithm based on offline regressions, a computational primitive that can admit simpler implementations in practice. (4) We evaluate SQUARECB.PMSIDE in two contextual partial monitoring tasks: label-efficient prediction and LLM routing, and show that it outperforms several baselines.

References (32)