betaFeedback

WorksComputer Science

Efficient contextual partial monitoring with general function approximation

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 εε-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 to prior approaches.

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×dL \in[0,1]^{k \times d} records the loss LaoL_{a o} 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_{a o} 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\mid x_t) according to a policy pt:Δ(k)p_t : \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:

Reg⁡T:=∑t=1T(pt⊤Lq∗(xt)−min⁡λ∈Δ(k)λ⊤Lq∗(xt)).\operatorname{Reg}_{T} := \sum_{t=1}^{T} \left( p_t^{\top} Lq^{*}(x_t) - \min_{\lambda\in\Delta(k)} \lambda^{\top} Lq^{*}(x_t) \right).

Contextual stochastic partial monitoring has many applications, such as learning from one-sided feedback [16, 31], dynamic pricing [19], data procurement in crowdsourcing [33], and label-efficient prediction [15]. 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 [28, 8, 2, 27]: 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 tt, 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=o1o2a10ℓ01a211,Φ=o1o2a1⊙⊙a2⊥∧.L = \begin{array}{c|cc} & o_1 & o_2 \\ a_1 & 0 & \ell_{01} \\ a_2 & 1 & 1 \end{array}, \qquad \Phi= \begin{array}{c|cc} & o_1 & o_2 \\ a_1 & \odot& \odot\\ a_2 & \perp& \wedge \end{array}.

This game was also referred to as the Apple Tasting game Helmbold et al. [16] in earlier works.

Example 2: contextual label efficient prediction game [15] (Lattimore & Szepesvari 2020). 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=o1o2a1cca210a301,Φ=o1o2a1⊥∧a2⊙⊙a3⊙⊙.L = \begin{array}{c|cc} & o_1 & o_2 \\ a_1 & c & c \\ a_2 & 1 & 0 \\ a_3 & 0 & 1 \end{array}, \qquad \Phi= \begin{array}{c|cc} & o_1 & o_2 \\ a_1 & \perp& \wedge\\ a_2 & \odot& \odot\\ a_3 & \odot& \odot \end{array}.

Depending on the feedback structure, finite stochastic partial-monitoring games are classified into four categories (classification theorem): trivial, easy, hard, and hopeless games [7] (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. [5]; Heuillet et al. [17], 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 [7] (Lattimore & Szepesvári 2020) extends to this setting, at least in the minimax regret’s dependence on TT. First, the non-contextual lower bounds of Bartók et al. [7] 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. [11] shows the equivalence between the Decision-Estimation Coefficient Foster et al. [10] and the exploration-by-optimization (ExO) objective of Lattimore & Szepesvári [24], which implies that the contextual version of the Estimation-to-Decision algorithm Foster et al., [10] 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 § 2.3 for further discussion). Furthermore, our work is closely related to [23] (Lattimore & Szepesvári 2020); [21]; [22] and [11]. 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. [5] 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. [17] 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. [18] 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., [10]), where the algorithm aims at finding an exploration distribution that certifies a low Decision-Estimation Coefficient (See § 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 ϵ-Greedy.PMSide and SquareCB.PMSide algorithms respectively, achieving regret of optimal order in TT 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.

Preliminaries

Basic Notation. We write 0 and 1 for the all-zeros and all-ones column vectors, e1,…,eke_1,\ldots,e_k for the standard basis vectors, and bold symbols for matrices. For a vector or matrix AA, ∥A∥∞=max⁡ij∣Aij∣\lVert A\rVert_\infty= \max_{ij}|A_{ij}| is the entrywise maximum norm, MiM_i denotes the vector generated by ii-th row, and MijM_{ij} denotes the element at ii-th row and jj-th column. For two distributions uu and vv, DH2(u∥v)D_{\mathrm{H}}^2(u\mathbin\Vert v) denotes their squared Hellinger distance. Let co⁡(S)\operatorname{co}(S) denote the convex hull of a set SS. For a subset A⊆[k]A \subseteq[k] we write Δ(A):={λ∈Δ(k):λi=0\Delta(A) := \{\lambda\in\Delta(k) : \lambda_i = 0 for all i∉A}i \notin A\} for the face of Δ(k)\Delta(k) supported on AA. Elements of Δ(A)\Delta(A) remain kk-dimensional vectors; they simply place no mass outside AA.

Signal matrix. (Komiyama et al. [20]) Given a feedback matrix Φ\Phi, it is convenient to describe the feedback of a single action aa as a linear map. The signal matrix of action aa is the m×dm \times d matrix SaS_a with Sa[o,:]=1{Φao=o}S_a[o,:] = \mathbf{1}\{\Phi_{ao} = o\}. Writing Δ(n)\Delta(n) for the probability simplex on nn elements, if the outcome is drawn from q∈Δ(d)q \in\Delta(d) then Saq∈Δ(m)S_aq \in\Delta(m) is precisely the distribution of the symbol observed on playing aa. Two candidate outcome distributions q1,q2q_1,q_2 are therefore distinguishable through action aa exactly to the extent that Saq1S_aq_1 and Saq2S_aq_2 differ; and it is this quantity, rather than the gap between q1q_1 and q2q_2 themselves, that governs what the learner can hope to identify. Recall that in our stochastic contextual partial monitoring problem, each round is preceded by a context xtx_t drawn from a set X\mathcal{X}, and the outcome distribution depends on it: outcomes follow q∗(xt)q^*(x_t) for an unknown q∗:X→Δ(d)q^*:\mathcal{X}\to\Delta(d). The learner is given a model class Q⊆{q:X→Δ(d)}\mathcal{Q}\subseteq\{q:\mathcal{X}\to\Delta(d)\}, which we assume is well-specified.

Assumption 2.1 (Realizability). The model class Q\mathcal{Q} contains the true outcome distribution q∗q^*.

Structure of partial monitoring games

We now review some basic structures of partial monitoring games revealed in prior works.

Definition 2.1 (Cell decomposition, Bartók et al. [6]). The cell Ca\mathcal{C}_a of action aa is defined as the subset of outcome distributions where action aa is optimal. Formally, Ca={q∈Δ(d):(ea−eb)TLq≤0, ∀b∈[k]}\mathcal{C}_a = \{q \in\Delta(d) : (e_a-e_b)^\mathsf{T}Lq \le0,\ \forall b \in[k]\}. The collection {Ca:a∈[k]}\{\mathcal{C}_a : a \in[k]\} is called the cell decomposition.

Neighborhood graph (Lattimore & Szepesvári, 2020). Cells that meet in a face of dimension d−2d-2 correspond to actions that can be optimal simultaneously, and this adjacency structure organizes the analysis that follows. Call an action Pareto optimal when its cell is full dimensional, dim⁡(Ca)=d−1\dim(\mathcal{C}_a)=d-1, taking the dimension of a polytope to be that of its affine hull, and write Π\Pi for the set of such actions together with Δ(Π):={λ∈Δ(k):λb=0 for all b∉Π}\Delta(\Pi) := \{\lambda\in\Delta(k) : \lambda_b=0\text{ for all }b \notin\Pi\} for the corresponding face of Δ(k)\Delta(k). The remaining actions are of two kinds: aa is degenerate when Ca≠∅\mathcal{C}_a \ne\varnothing but dim⁡(Ca)≤d−2\dim(\mathcal{C}_a) \le d-2, and dominated when Ca=∅\mathcal{C}_a = \varnothing. Since dim⁡(Δ(d))=d−1\dim(\Delta(d))=d-1, neither kind is ever uniquely optimal; each is optimal only on a set of measure zero. A game with no degenerate actions is called non-degenerate, and two actions are duplicates when their loss rows coincide, (ea−eb)TL=0(e_a-e_b)^\mathsf{T}L=0. Two Pareto optimal actions are neighbors when their cells meet in a face of the largest dimension short of coincidence, dim⁡(Ca∩Cb)=d−2\dim(\mathcal{C}_a\cap\mathcal{C}_b)=d-2; the intersection reaches dimension d−1d-1 only for duplicates. Writing E\mathcal{E} for the resulting edge set, (Π,E)(\Pi,\mathcal{E}) is the neighborhood graph of G\mathcal{G}.

Observability

In partial-monitoring games, the learner observes feedback rather than the losses or rewards associated with its actions. Therefore, a central challenge is to infer (differences of) losses of actions from the observed feedback symbol. Whether this is possible depends on the interplay between the loss matrix and the feedback matrix.

References

  1. [1]Alekh Agarwal, Sham Kakade, Akshay Krishnamurthy, and Wen Sun. Flambe: Structural complexity and representation learning of low rank mdps. Advances in neural information processing systems, 33:20095–20107, 2020.arxiv.org/abs/2006.10814
  2. [2]Byeongwoo An, Kapilan Balagopalan, Hyowon Wi, Sehwa Jeong, Jiun Jeong, Kyoungseok Jang, Noseong Park, Gi-Soo Kim, and Kwang-Sung Jun. Efficient algorithms for contextual apple tasting with log-loss. In ICML 2026 DEMO workshop, 2026.
  3. [3]Peter Auer, Nicolò Cesa-Bianchi, Yoav Freund, and Robert E Schapire. The Nonstochastic Multiarmed Bandit Problem. SIAM J. Comput., 32(1):48–77, jan 2003. ISSN 0097-5397. doi: 10.1137/S0097539701398375.DOI
  4. [5]Gábor Bartók et al. Partial monitoring with side information. In In Proc. ALT, 2012a.DOI
  5. [6]Gábor Bartók et al. An adaptive algorithm for finite stochastic partial monitoring. In Proc. ICML, 2012b.arxiv.org/abs/1206.6487
  6. [7]Gábor Bartók, Dávid Pál, and Csaba Szepesvári. Minimax regret of finite partial-monitoring games in stochastic environments. In Sham M. Kakade and Ulrike von Luxburg (eds.), Proceedings of the 24th Annual Conference on Learning Theory, volume 19 of Proceedings of Machine Learning Research, pp. 133–154, Budapest, Hungary, 09–11 Jun 2011. PMLR. URL https://proceedings.mlr.press/v19/bartok11a.html.
  7. [8]Lingjiao Chen, Matei Zaharia, and James Zou. Frugalgpt: How to use large language models while reducing cost and improving performance. arXiv preprint arXiv:2305.05176, 2023.arxiv.org/abs/2305.05176
  8. [10]Dylan J Foster, Sham M Kakade, Jian Qian, and Alexander Rakhlin. The Statistical Complexity of Interactive Decision Making. CoRR, abs/2112.1, 2021.arxiv.org/abs/2112.13487
  9. [11]Dylan J Foster, Alexander Rakhlin, Ayush Sekhari, and Karthik Sridharan. On the complexity of adversarial decision making. Advances in Neural Information Processing Systems, 35:35404–35417, 2022.arxiv.org/abs/2206.13063
  10. [12]Aurélien Garivier, Tor Lattimore, and Emilie Kaufmann. On explore-then-commit strategies. In Advances in Neural Information Processing Systems, volume 29, pp. 784–792. Curran Associates, Inc., 2016.
  11. [13]James A Grant and David S Leslie. Apple tasting revisited: Bayesian approaches to partially monitored online binary classification. arXiv preprint arXiv:2109.14412, 2021.arxiv.org/abs/2109.14412
  12. [14]Elad Hazan, Amit Agarwal, and Satyen Kale. Logarithmic Regret Algorithms for Online Convex Optimization. Mach. Learn., 69(2-3):169–192, 2007.
  13. [15]David Helmbold et al. Some label efficient learning results. In In Proc. CoLT, 1997.DOI
  14. [16]David P Helmbold, Nicholas Littlestone, and Philip M Long. Apple tasting. Information and Computation, 161(2):85–139, 2000.DOI
  15. [17]Maxime Heuillet, Ola Ahmad, and Audrey Durand. Randomized confidence bounds for stochastic partial monitoring, 2024.arxiv.org/abs/2402.05002
  16. [18]Johannes Kirschner, Tor Lattimore, and Andreas Krause. Linear partial monitoring for sequential decision-making: Algorithms, regret bounds and applications. JMLR, 2023.arxiv.org/abs/2302.03683
  17. [19]Robert Kleinberg and Tom Leighton. The value of knowing a demand curve: Bounds on regret for online posted-price auctions. In 44th Annual IEEE Symposium on Foundations of Computer Science, 2003. Proceedings., pp. 594–605. IEEE, 2003.DOI
  18. [20]Junpei Komiyama, Junya Honda, Hisashi Kashima, and Hiroshi Nakagawa. Regret lower bound and optimal algorithm in dueling bandit problem. In Conference on learning theory, pp. 1141–1154. PMLR, 2015.arxiv.org/abs/1506.02550
  19. [21]Tor Lattimore. Minimax regret for partial monitoring: Infinite outcomes and rustichini’s regret. In Conference on Learning Theory, pp. 1547–1575. PMLR, 2022.arxiv.org/abs/2202.10997
  20. [22]Tor Lattimore and Andras Gyorgy. Mirror descent and the information ratio. In Conference on Learning Theory, pp. 2965–2992. PMLR, 2021.arxiv.org/abs/2009.12228
  21. [23]Tor Lattimore and Csaba Szepesvári. An information-theoretic approach to minimax regret in partial monitoring. In Conference on Learning Theory, pp. 2111–2139. PMLR, 2019.arxiv.org/abs/1902.00470
  22. [24]Tor Lattimore and Csaba Szepesvári. Exploration by optimisation in partial monitoring. In Conference on Learning Theory, pp. 2488–2515. PMLR, 2020.arxiv.org/abs/1907.05772
  23. [25]Tor Lattimore and Csaba Szepesvári. Bandit Algorithms. Cambridge University Press, 2020.
  24. [26]David A Levin and Yuval Peres. Markov Chains and Mixing Times. American Mathematical Society, Providence, RI, 2 edition, 2017. ISBN 978-1-4704-2962-1.
  25. [27]Yubo Li, Yidi Miao, Ramayya Krishnan, and Rema Padman. Jev-as-a-judge: Accept when confident, escalate when unsure. arXiv preprint arXiv:2609.26550, 2026.arxiv.org/abs/2609.26550
  26. [28]Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E Gonzalez, M Kadous, and Jon Sio. Routellm: Learning to route llms from preference data. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu (eds.), International Conference on Learning Representations, volume 2025, pp. 34433–34448, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/5503a7c69d48a2f86fc00b3dc09de686-Paper-Conference.pdf.arxiv.org/abs/2406.18665
  27. [29]Hao Qin and Chicheng Zhang. Optimal and efficient contextual combinatorial semi-bandits with general function approximation, 2026a. URL https://arxiv.org/abs/2607.13686.
  28. [30]Hao Qin and Chicheng Zhang. Taming the monster every context: Complexity measure and unified framework for offline-oracle efficient contextual bandits, 2026b. URL https://arxiv.org/abs/2602.09456.
  29. [31]David Sculley. Practical learning from one-sided feedback. In Proceedings of the 13th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 609–618, 2007.DOI
  30. [32]David Simchi-Levi and Yunzong Xu. Bypassing the monster: A faster and simpler optimal algorithm for contextual bandits under realizability. Mathematics of Operations Research, 47(3):1904–1931, 2022.
  31. [33]Adish Singla, Ian Lienert, Gábor Bartók, and Andreas Krause. Contextual procurement in online crowdsourcing markets. In Proceedings of the AAAI Conference on Human Computation and Crowdsourcing, volume 2, pp. 58–59, 2014.DOI
  32. [34]A. Tsybakov. Introduction to nonparametric estimation. In Springer Series in Statistics, 2008. URL https://api.semanticscholar.org/CorpusID:4293359.
  33. [35]Vladimir G Vovk. A game of prediction with expert advice. In Proceedings of the eighth annual conference on Computational learning theory, pp. 51–60, 1995.
  34. [36]Yunbei Xu and Assaf Zeevi. Upper counterfactual confidence bounds: a new optimism principle for contextual bandits. arXiv preprint arXiv:2007.07876, 2020.

Paper details

vlnc:W_dcupqmpn
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents