<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Contextual Active Model Selection</title></titleStmt>
			<publicationStmt>
				<publisher>The Thirty-eighth Annual Conference on Neural Information Processing Systems</publisher>
				<date>12/10/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10621890</idno>
					<idno type="doi"></idno>
					
					<author>X Liu</author><author>F Xia</author><author>R Stevens</author><author>Y Chen</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[While training models and labeling data are resource-intensive, a wealth of pre-trained models and unlabeled data exists. To effectively utilize these resources, we present an approach to actively select pre-trained models while minimizing labeling costs. We frame this as an online contextual active model selection problem: At each round, the learner receives an unlabeled data point as a context. The objective is to adaptively select the best model to make a prediction while limiting label requests. To tackle this problem, we propose CAMS, a contextual active model selection algorithm that relies on two novel components: (1) a contextual model selection mechanism, which leverages context information to make informed decisions about which model is likely to perform best for a given context, and (2) an active query component, which strategically chooses when to request labels for data points, minimizing the overall labeling cost. We provide rigorous theoretical analysis for the regret and query complexity under both adversarial and stochastic settings. Furthermore, we demonstrate the effectiveness of our algorithm on a diverse collection of benchmark classification tasks. Notably, CAMS requires substantially less labeling effort (less than 10%) compared to existing methods on CIFAR10 and DRIFT benchmarks, while achieving similar or better accuracy.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>As pre-trained models become increasingly prevalent in a variety of real-world machine learning applications <ref type="bibr">[2,</ref><ref type="bibr">11,</ref><ref type="bibr">53]</ref>, there is a growing demand for label-efficient approaches for model selection, especially when facing varying data distributions and contexts at run time. Oftentimes, no single pre-trained model achieves the best performance for every context, and a proper approach is to construct a policy for adaptively selecting models for specific contexts <ref type="bibr">[48]</ref>. For instance, in medical diagnosis and drug discovery, accurate predictions are of paramount importance. The diagnosis of diseases through pathologist or the determination of compound chemical properties through lab testing can be costly and time-consuming. Different models may excel in analyzing different types of pathological images <ref type="bibr">[1,</ref><ref type="bibr">3,</ref><ref type="bibr">23]</ref> or chemical compounds <ref type="bibr">[17,</ref><ref type="bibr">32,</ref><ref type="bibr">46]</ref>. Furthermore, in many real-world applications, the collection of labels for model evaluation can be expensive and data instances may arrive as a stream rather than all at once. This scenario necessitates cost-effective and robust online algorithms capable of determining the most efficient model selection policy even when faced with a limited supply of labels, a scenario not fully addressed by previous works that typically assume access to all labels <ref type="bibr">[6,</ref><ref type="bibr">7,</ref><ref type="bibr">27,</ref><ref type="bibr">54]</ref>.</p><p>Recently, the problem of online model selection with the consideration of label acquisition costs was studied in a context-free setting by Karimi et al. <ref type="bibr">[39]</ref>. However, this approach doesn't fully capture the dynamics of data contexts that are essential in many applications. Recognizing this gap, in this paper, we consider a more general problem setting that incorporates context information for adaptive model selection. We introduce CAMS, an algorithm for active model selection that dynamically adapts to the data context to choose the most suitable models for an arbitrary data stream. As highlighted in</p><p>Setup Algorithm Online bagging * Hedge EXP3 EXP4 Query by Committee ModelPicker CAMS [54] [ 27] [ 7] [ 7] [ 65] [ 39] (ours) bagging online learning bandit contextual bandits active learning model selection (ours) model selection &#8224;</p><p>&#8224; We regard "arms" as "models" when comparing CAMS against bandit algorithms, such as EXP3/EXP4. * Online ensemble learning aims to build a composite model by aggregating multiple models rather than selecting the best model (for a given context).</p><p>Table <ref type="table">1</ref>: Comparing CAMS against related work in terms of problem setup.</p><p>Table <ref type="table">1</ref>, CAMS aims to address the need for adaptive and effective model selection, by bridging the gap between contextual bandits, online learning, and active learning.</p><p>Our key contributions are summarized as follows:</p><p>&#8226; We investigate a novel problem which we refer to as contextual active model selection, and introduce a novel principled algorithm that features two key technical components: (1) a contextual online model selection procedure, designed to handle both stochastic and adversarial settings, and <ref type="bibr">(2)</ref> an active query strategy. The proposed algorithm is designed to be robust to heterogeneous data streams, accommodating both stochastic and adversarial online data streaming scenarios.</p><p>&#8226; We provide rigorous theoretical analysis on the regret and query complexity of the proposed algorithms. We establish regret upper bounds for both adversarial and stochastic data streams under limited label costs. Our regret upper bounds are within constant factors of the existing lower bounds for online learning problems with expert advice under the full information setting.</p><p>&#8226; Empirically, we demonstrate the effectiveness and robustness of our approach on a variety of online model selection tasks spanning different application domains (from generic ML benchmarks such as CIFAR10 to domain-specific tasks in biomedical analysis), data scales (ranging from 80 to 10K), data modalities (i.e., tabular, image, and graph-based data), and label types (binary or multiclass labels). For the tasks evaluated, (1) CAMS outperforms all competing baselines by a significant margin.</p><p>(2) Asymptotically, CAMS performs no worse than the best single model. (3) CAMS is not only robust to adversarial data streams but also can efficiently recover from "malicious experts" (i.e. inferior pre-trained models).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related Work</head><p>Contextual bandits. Classical bandit algorithms (e.g., <ref type="bibr">[6,</ref><ref type="bibr">7]</ref>) aim to find the best arm(s) through a sequence of actions. When side information (e.g., user profile for recommender systems or environmental context for experimental design) is available, many bandit algorithms can be lifted to the contextual setting: For example, EXP4 <ref type="bibr">[7,</ref><ref type="bibr">9,</ref><ref type="bibr">52]</ref> considers the bandit setting with expert advice: At each round, experts announce their predictions of which actions are the most promising for the given context, and the goal is to construct a expect selection policy that competes with the best expert from hindsight. In bandit problems, the learner only gets to observe the reward for each action taken. In contrast, for the online model selection problem considered in this work-where an action corresponds to choosing a model to make prediction on an incoming data point-we get to see the loss/reward of all models on the labeled data point. By utilizing the information from unchosen arms, it could significantly reduce the cumulative regret. In this regard, this work aligns more closely with online learning with full information setting, where the learner has access to the loss of all the arms at each round (e.g. as considered in the Hedge algorithm <ref type="bibr">[13,</ref><ref type="bibr">14,</ref><ref type="bibr">27,</ref><ref type="bibr">36]</ref>).</p><p>Online learning with full information. A clear distinction between our work and online learning is that we assume the labels of the online data stream are not readily available but can be acquired at each round with a cost. In addition, the learner only observes the loss incurred by all models on a data point when it decides to query its label. In contrast, in the canonical online learning setting, labels arrive with the data and one gets to observe the loss of all candidate models at each round. Similar setting also applies to other online learning problems, such as online boosting or bagging. A related work to ours is online learning with label-efficient prediction <ref type="bibr">[16]</ref>, which proposes an online learning algorithm with matching upper and lower bounds on the regret. However, they consider a fixed query probability that leads to a linear query complexity. Our algorithm, inspired by uncertainty sampling in active learning, achieves an improved query complexity with the adaptive query strategy while maintaining a comparable regret.</p><p>Stream-based Active learning. Active learning aims to achieve a target learning performance with fewer training examples <ref type="bibr">[64]</ref>. The active learning framework closest to our setting is queryby-committee (QBC) <ref type="bibr">[65]</ref>, in particular under the stream-based setting <ref type="bibr">[35,</ref><ref type="bibr">47]</ref>. QBC maintains a committee of hypotheses; each committee member votes on the label of an instance, and the instances with the maximal disagreement among the committee are considered the most informative labels. Note that existing stream-based QBC algorithms are designed and analyzed assuming i.i.d. data streams. In comparison, our work uses a different query strategy as well as a novel model recommendation strategy, which also applies to the adversarial setting.</p><p>Active model selection. Active model selection captures a broad class of problems where model evaluations are expensive, either due to (1) the cost of evaluating (or "probing") a model, or <ref type="bibr">(2)</ref> the cost of annotating a training example. Existing works under the former setting <ref type="bibr">[49,</ref><ref type="bibr">59]</ref> and online setting <ref type="bibr">[21,</ref><ref type="bibr">66]</ref> often ignore context information and data annotation cost, and only consider partial feedback on the models being evaluated/ probed on i.i.d. data. The goal is to identify the best model with as few model probes as possible. This is quite different from our problem setting which considers the full information setting as well as non-negligible data annotation cost. <ref type="bibr">[71]</ref> proposes that the optimal model choice is influenced by the sample size rather than any individual sample feature. <ref type="bibr">[44]</ref> addresses the active model selection problem, however both works do not adopt a stream-based approach. For the later, apart from Karimi et al. <ref type="bibr">[39]</ref>, an online contextual-free model selection work, as shown in Table <ref type="table">1</ref>, most existing works assume a pool-based setting where the learner can choose among the pool of unlabeled data <ref type="bibr">[4,</ref><ref type="bibr">29,</ref><ref type="bibr">43,</ref><ref type="bibr">49,</ref><ref type="bibr">60,</ref><ref type="bibr">61,</ref><ref type="bibr">68,</ref><ref type="bibr">76]</ref>, and the goal is to identify the best model with a minimal set of labels.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Problem Statement</head><p>Notations. Let X be the input domain and Y := {0, . . . , c &#8593; 1} be the set of c possible class labels for each input instance. Let F = {f 1 , . . . , f k } be a set of k pre-trained classifiers over X &#8594; Y. A model selection policy &#969; : X &#8595; ! k&#8593;1 maps any input instance x &#8596; X to a distribution over the pre-trained classifiers F, specifying the probability &#969; (x) of selecting each classifier under input x.</p><p>Here, ! k&#8593;1 denotes the k-dimensional probability simplex w &#8596; R k : |w| = 1, w &#8599; 0 . One can interpret a policy &#969; as an "expert" that suggests which model to select for a given context x.</p><p>Let " be a collection of model selection policies. In this paper, we propose an extended policy set " &#8594; := " &#8600; {&#969; const 1 , . . . , &#969; const k } which also includes constant policies that always suggest a fixed model. Here, &#969; const j (&#8226;) := e j , and e j &#8596; ! k&#8593;1 denotes the canonical basis vector with e j = 1. Unless otherwise specified, we assume " is finite with |"| = n, and |" &#8594; | &#8771; n + k. As a special case, when " = &#8656;, our problem reduces to the contextual-free setting.</p><p>The contextual active model selection protocol. Assume that the learner knows the set of classifiers F as well as the set of model selection policies ". At round t, the learner receives a data instance x t &#8596; X as the context for the current round, and computes the predicted label &#375;t,j = f j (x t ) for each pre-trained classifier indexed by j &#8596; [k]. Denote the vector of predicted labels by all k models by &#375;t := [&#375; t,1 , . . . , &#375;t,k ] &#8595; . Based on previous observations, the learner identifies a model/classifier f jt and makes a prediction &#375;t,jt for the instance x t . Meanwhile, the learner can obtain the true label y t only if it decides to query x t . Upon observing y t , the learner incurs a query cost, and receives a (full) loss vector &#949; &#949; &#949; t = I {&#375; t &#8596; =yt} , where the jth entry &#949; t,j := I {&#375;t,j &#8596; =yt} corresponds to the 0-1 loss for model j &#8596; [k] at round t. The learner can then use the queried labels to adjust its model selection criterion for future rounds.</p><p>Performance metric. If x t is misclassified by the model j t selected by learner at round t, i.e. &#375;t,jt &#8658; = y t , it will be counted towards the cumulative loss of the learner, regardless of the learner making a query. Otherwise, no loss will be incurred for that round. For a learning algorithm A, its cumulative loss over T rounds is defined as L A T := T t=1 &#949; t,jt . In practice, the choice of model j t at round t by the learner A could be random: For stochastic data streams where (x, y) arrives i.i.d., the learner may choose different models for different random realizations of (x t , y t ). For the adversarial setting where the data stream {(x t , y t )} t&#8599;1 is chosen by an adversary before each round, the learner may randomize its choice of model to avoid a constant loss at each round <ref type="bibr">[33]</ref>. Therefore, due to the randomness of L A T , we consider the expected cumulative loss E[L A T ] as a key performance measure of the learner A. To characterize the progress of A, we consider the regret-formally defined as follows-as the difference between the cumulative loss received by the learner and the loss if the learner selects the "best policy" &#969; &#8594; &#8596; " &#8594; in hindsight. For stochastic data streams, we assume that each policy i recommends the most probable model w.r.t. &#969; i (x t ) for context x t . We use maxind(w) := arg max j:wj &#8600;w w j to denote the index of the maximalvalue entry<ref type="foot">foot_1</ref> of w. Since (x, y) are drawn i.i.d., we define &#181; i = 1 T T t=1 E xt,yt &#949; t,maxind(&#969;i(xt)) . This leads to the pseudo-regret for the stochastic setting over T rounds, defined as</p><p>In an adversarial setting, since the data stream (and hence the loss vector) is determined by an adversary, we consider the reference best policy to be the one that minimizes the loss on the adversarial data stream, and the expected regret</p><p>where &#949;t,i := &#8657;&#969; i (x t ) , &#949; &#949; &#949; t &#8659; denotes the expected loss if the learner commits to policy &#969; i , randomizes and selects j t &#8660; &#969; i (x t ) (and receives loss &#949; t,jt ) at round t. Our goal is to devise a principled online active model selection strategy to minimize the regret as defined in (1) or (2), while maintaining a low total query cost. For convenience, we refer the readers to App. B for a summary of the notations used in this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Contextual Active Model Selection</head><p>In this section, we introduce our main algorithm for both stochastic and adversarial data streams.</p><p>1: Input: Models F, policies ", #rounds T , budget b 2: Initialize loss L0 &#8598; 0; query cost C 0 &#8598; 0 3: Set " &#8594; &#8598; " &#8600; {&#969; const 1 , . . . , &#969; const k } according to Eq. (3) 4: for t = 1, 2, ..., T do 5: Receive x t 6:</p><p>Output &#375;t,jt &#8660; f t,jt as the prediction for x t 10:</p><p>Compute z t in Eq. (4)</p><p>11: Sample U t &#8660; Ber (z t ) 12: if U t = 1 and C t &#8771; b then 13:</p><p>Query the label y t 14:</p><p>16: Estimate model loss: &#949;t,j = &#949;t,j zt , &#8733;j &#8596; [|F|]</p><p>17: Update &#949; &#949; &#949; t : &#949;t,i &#8598; &#8657;&#969; i (x t ), &#949;t,j &#8659;, &#8733;i &#8596; [|" &#8594; |] 18: Lt = Lt&#8593;1 + &#949; &#949; &#949; t 19: else 20: Lt = Lt&#8593;1</p><p>21: C t &#8598; C t&#8593;1 22: end if 23: end for 21: procedure SETRATE(t, x t , m) 22: if STOCHASTIC then 23: &#977; t = ln m t 24: end if 25: if ADVERSARIAL then 26: Set &#982; t as in adversarial setting section 27:</p><p>end if</p><p>29: return &#977; t 30: end procedure 29: procedure RECOMMEND(x t , q t ) 30: if STOCHASTIC then 31:</p><p>32: j t &#8598; maxind(w t ) 33: end if 34: if ADVERSARIAL then 35: i t &#8660; q t 36: j t &#8660; &#969; it (x t ) 37: end if 38: return j t 39: end procedure Our key insight underlying the contextual model selection strategy extends from the online learning with expert advice framework <ref type="bibr">[13,</ref><ref type="bibr">27]</ref>. We start by appending the constant policies that always pick single pre-trained models to form the extended policy set " &#8594; (Line 3, in Fig. <ref type="figure">1</ref>). This allows CAMS to be at least as competitive as the best model. Then, at each round, CAMS maintains a probability distribution over the (extended) policy set " &#8594; , and updates those according to the observed loss for each policy. We use q t := (q t,i ) i&#8600;|! &#8594; | to denote the probability distribution over " &#8594; at t. Specifically, the probability q t,i is computed based on the exponentially weighted cumulative loss, i.e. q t,i &#8601; exp &#8593;&#977; t Lt&#8593;1,i where Lt,i := t &#982; =1 &#949;&#982;,i denotes the cumulative loss of policy i.</p><p>For adversarial data streams, it is natural for both the online learner and the model selection policies to randomize their actions to avoid linear regret <ref type="bibr">[33]</ref>. Following this insight, CAMS randomly samples a policy i t &#8660; q t , and-based on the current context x t -samples a classifier j t &#8660; &#969; it (x t ) to recommend at round t.</p><p>Under the stochastic setting, CAMS adopts a weighted majority strategy <ref type="bibr">[45]</ref> when selecting models. The vector of each model's weighted votes from the policies, w t = i&#8600;|! &#8594; | q t,i &#969; i (x t ), is interpreted as a distribution induced by the weighted policy. The model j t = maxind(w t ) which receives the highest probability becomes the recommended model at round t. This deterministic model selection strategy is commonly used in stochastic online optimization <ref type="bibr">[33]</ref>. An alternative strategy is to take a randomized approach as in the adversarial setting, or take a Follow-the-Leader approach <ref type="bibr">[42]</ref> and go with the most probable model recommended by the most probable policy (i.e. use w t = &#969; maxind(q t ) (x t )).As shown in experimental results section and further discussed in Appendix (outperformance over the best policy/expert section), CAMS outperforms these policies in a wide range of practical applications. The model selection steps are detailed in Line 5-9 in Fig. <ref type="figure">1</ref>.</p><p>Active queries. Under a limited budget, we intend to query the labels of those instances that exhibit significant disagreement among the pre-trained models F. To achieve this goal, we design an adaptive query strategy with query probability z t . Concretely, given context x t , model predictions &#375;t and model distribution w t , we denote by &#949;y t := &#8657;w t , I {&#375; t &#8658; = y}&#8659; as the expected loss if the true label is y. We characterize the model disagreement as</p><p>Intuitively, when &#949;y t is close to 0 or 1, there is little disagreement among the models in labeling x t as y, otherwise there is significant disagreement. We capture this insight with function h(x) = &#8593;x log x. Since the label y t is unknown upfront when receiving x t , we iterate through all the possible labels y &#8596; Y and take the average value as in Eq. (3). Note that E takes a similar algebraic form to the entropy function, although it does not inherit the information-theoretic interpretation.</p><p>With the model disagreement term defined above, we consider an adaptive query probability<ref type="foot">foot_2</ref> </p><p>where &#1009; t 0 = 1 &#8771; t &#8596; (0, 1] is an adaptive lower bound on the query probability to encourage exploration at an early stage. The query strategy is summarized in Line 10-14 in Fig. <ref type="figure">1</ref>.</p><p>Model updates. Now define U t &#8660; Ber (z t ) as a binary query indicator that is sampled from a Bernoulli distribution parametrized by z t . Upon querying the label y t , one can calculate the loss for each model f j &#8596; F as &#949; t,j = I {&#375; t,j &#8658; = y t }. Since CAMS does not query all the i.i.d. examples, we introduce an unbiased loss estimator for the models, defined as &#949;t,j = &#949;t,j zt U t . The unbiased loss of policy &#969; i &#8596; " &#8594; can then be computed as &#949;t,i = &#8657;&#969; i (x t ), &#949;t,j &#8659;. In the end, CAMS computes the (unbiased) cumulative loss of policy &#969; i as LT,i = T t=1 &#949;t,i , which is used to update the policy probability distribution in next round. Pseudocode for the model update steps is summarized in Line 15-21 in Fig. <ref type="figure">1</ref>.</p><p>Remark. CAMS runs efficiently with time complexity O (nk) per round and space complexity O ((n + k) &#8226; k). At each round, each model selection policy specifies a probability distribution over the models for the given context. When these distributions correspond to constant Dirac delta distributions (regardless of the context), the problem reduces to the context-free problem investigated by Karimi et al. <ref type="bibr">[39]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Theoretical Analysis</head><p>We now present theoretical bounds on the regret (defined in Eq. (1) and Eq. (2), respectively) and the query complexity of CAMS for both the stochastic and the adversarial settings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Stochastic setting</head><p>Under the stochastic setting, the cumulative loss of CAMS over T rounds-as specified by the RECOMMEND procedure-is L CAMS T = T t=1 &#949;t,maxind(wt) where recall w t = i&#8600;|! &#8594; | q t,i &#969; i (x t ) is the probability distribution over F induced by the weighted policy.</p><p>Let i &#8594; = arg min i&#8600;[|! &#8594; |] &#181; i be the index of the best policy (&#181; i denotes the expected loss of policy i, as defined in problem statement section. The cumulative expected loss of policy i &#8594; is T &#181; i &#8594; ; therefore the expected pseudo-regret (Eq. ( <ref type="formula">1</ref>)</p><p>Define ! := min i&#8596; =i &#8594; (&#181; i &#8593; &#181; i &#8594; ) as the minimal sub-optimality gap <ref type="foot">4</ref> in terms of the expected loss against the best policy i &#8594; . Furthermore, let w t i &#8594; := &#969; i &#8594; (x t ) be probability distribution over F induced by policy i &#8594; at round t. We define &#962; := min xt {max wj &#8600;w t i &#8594; w j &#8593; max wj &#8600;w t i &#8594; ,j&#8596; =maxind(w t i &#8594; ) w j } (5) as the minimal probability gap between the most probable model and the rest (assuming no ties) induced by the best policy i &#8594; . We further define b = p min log c (1/p min ), where p min = min s,i &#969;(x s ) denotes the minimal model selection probability by any policy <ref type="foot">5</ref> . As our first main theoretical result, we show that, without exhaustively querying the labels of the stochastic stream, CAMS achieves constant expected regret. Theorem 1. (Regret) In the stochastic environment, with probability at least 1 &#8593; &#1009;, CAMS achieves</p><p>Note that in the stochastic setting, a lower bound of # ((log " &#8594; ) /!) was shown in Mourtada and Ga&#239;ffas <ref type="bibr">[50]</ref> for online learning problems with expert advice under the full information setting (i.e. assuming labels are given for all data points in the stochastic stream). To establish the proof of Theorem 1, we consider a novel procedure to connect the weighted policy by CAMS to the best policy &#969; i &#8594; . Conceptually, we would like to show that, after a constant number of rounds &#966; const , with high probability, the model selected by CAMS (Line 32) will be the same as the one selected by the best policy i &#8594; . In that way, the expected pseudo regret will be dominated by the maximal cumulative loss up to &#966; const . Toward this goal, we first bound the weight of the best policy w t,i &#8594; as a function of t, by choosing a proper learning rate &#977; t (CAMS, Line 23). Then, we identify a constant threshold &#966; const , beyond which CAMS exhibits the same behavior as &#969; i &#8594; with high probability. Finally, we obtain the regret bound by inspecting the regret at the two stages separately. The formal statement of Theorem 1 and the detailed proof are deferred to App. E.1.</p><p>Next, we provide an upper bound on the query complexity in the stochastic setting. Theorem 2. (Query Complexity). For c-class classification problems, with probability at least 1 &#8593; &#1009;, the expected number of queries made by CAMS over T rounds is upper bounded by</p><p>Theorem 2 is built upon Theorem 1, where the the key idea behind the proof is to relate the number of updates to the regret. When T &#181; i &#8594; , LT,&#8594; are regarded as constants (given by an oracle), the query-complexity bound is then sub-linear w.r.t. T . Note that the number of class labels c affects the quality of the query complexity bound. The intuition behind this result is, with larger number of classes, each query may carry more information upon observation. For instance, in an extreme case where only one expert always recommends the best model and others gives random recommendations of models (and predicts random labels), having more classes lowers the chance of a model making the correct guess, and therefore helps to "filter out" those suboptimal experts in fewer rounds-hence being more query efficient. We defer the proof of Theorem 2 to App. E.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Adversarial setting</head><p>Now we consider the adversarial setting. Let LT,&#8594; :</p><p>T t=1 &#949;t,i be the cumulative loss of the best policy. The expected regret (Eq. ( <ref type="formula">2</ref>)) for CAMS equals to R T (CAMS) = E T t=1 &#8657;q t , &#949; &#949; &#949; t &#8659; &#8593; LT,&#8594; . We show that under the adversarial setting, CAMS achieves sub-linear regret in T without accessing all labels. Theorem 3. (Regret) Let c be the number of classes and &#982; t be specified as Line 26-27 in the SETRATE procedure. Under the adversarial setting, the expected regret of CAMS is bounded by</p><p>The proof is provided in App. F.1. Assuming &#982; t to be a constant, our regret upper bound in Theorem 3 matches (up to constants) the lower bound of # &#63723; T ln |" &#8594; | for online learning problems with expert advice under the full information setting <ref type="bibr">[15,</ref><ref type="bibr">63]</ref> (i.e. assuming labels are given for all data points). Hereby, the decaying learning rate &#977; t as specified in Line 27 is based on two parameters, where 1/ &#8242; t corresponds to the lower bound &#1009; t 0 on the query probability, and</p><p>) is a (data-dependent) term that is chosen to reduce the impact of the randomized query strategy on the regret bound (especially when t is large). Intuitively, &#982; t relates to the skewness of the policy where the max term corresponds to the maximal probability of most probable mispredicted label over t rounds. Note that in theory &#982; t can be small (e.g. CAMS may choose a constant policy &#969; const i &#8596; " &#8594; that mispredict the label for x t , which leads to &#982; t = 0); in such cases, our result still translates to a sublinear regret bound of O(c</p><p>Furthermore, in practice, we consider to "regularize" the policies (App. D.4) to ensure that probability a policy selecting any model is bounded away from 0.</p><p>Finally, the following theorem (proof in App. F.2) establishes a query complexity bound of CAMS. Theorem 4. (Query Complexity). Under the adversarial setting, the expected query complexity over</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Experiments</head><p>Datasets. We evaluate our approach using five datasets: (1) CIFAR10 <ref type="bibr">[41]</ref> contains 60,000 images from 10 different balanced classes. ( <ref type="formula">2</ref>) DRIFT <ref type="bibr">[73]</ref> is a tabular dataset with 128-dimensional features, based on 13,910 chemical sensor measurements of 6 types of gases at various concentration levels.</p><p>(3) VERTEBRAL <ref type="bibr">[5]</ref> is a biomedical tabular dataset which classifies 310 patients into three classes (Normal, Spondylolisthesis, Disk Hernia) based on 6 attributes. (4) HIV <ref type="bibr">[74]</ref> contains over 40,000 compounds annotated with molecular graph features and binary labels (active, inactive) indicating their ability to inhibit HIV replication. ( <ref type="formula">5</ref>) CovType <ref type="bibr">[24]</ref> has 580K samples and contains details including slope, aspect, elevation, measurements of area, and type of forest cover.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Policy sets.</head><p>We construct the policy sets " for each dataset following a procedure similar to Meta-selector <ref type="bibr">[48]</ref>. In this approach, a set of recommender algorithms is considered, and Meta-selector assigns varying ratings to these algorithms based on the specific user. Concretely, we first construct a set of models trained on different subsamples from each dataset. We then construct a set of policies, which include malicious, normal, random, and biased policy types for each dataset based on different models and features. Details on the classifiers and policies are provided in the supplemental materials. The malicious policy provides contrary advice; the random policy provides random advice; the biased policy provides biased advice by training on a biased distribution for classifying specific classes. The normal policy gives reasonable advice, being trained under a standard process on the training set. We represent the output of the i th policy as &#969; i (x t ), indicating the rewards distribution of all the base classifiers on x t . In total, we create 80, 10, 6, 4 classifiers and 85, 11, 17, 20 policies for CIFAR10, DRIFT, VERTEBRAL, and HIV, respectively.</p><p>Baselines. We evaluate CAMS against both contextual and non-contextual active model selection baselines. We consider four non-contextual baselines: (1) Random Query Strategy (RS) which queries the instance label with a fixed probability b T ;</p><p>(2) Model Picker (MP) <ref type="bibr">[39]</ref> that employs variancebased active sampling with a coin-flip query probability max {v (&#375; t , w t ) , &#977; t }, where the variance term is defined as v (&#375; t , w t ) = max y&#8600;Y &#949;y</p><p>) Query by Committee (QBC) implementing committee-based sampling <ref type="bibr">[22]</ref>; and (4) Importance Weighted Active Learning (IWAL) <ref type="bibr">[8]</ref> that calculates query probability based on labeling disagreements of surviving classifiers. Since no contextual baselines exist yet, we propose contextual versions of QBC and IWAL as (5) CQBC and (6) CIWAL. Both extensions maintain their respective original query strategies but incorporate the context into the cumulative rewards. For model selection, CAMS, MP, CQBC, and CIWAL recommend the classifier with the highest probability. The other baselines use Follow-the-Leader (FTL), recommending the model with the minimum cumulative loss for past queried instances. Finally, we add <ref type="bibr">(7)</ref> Oracle to represent the best single policy with the minimum cumulative loss, with the same query strategy as CAMS.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Main results</head><p>Fig. <ref type="figure">2</ref> visualizes the cost effectiveness of CAMS and the baselines. Here, we define cost effectiveness as the measure of how quickly the cumulative loss decreases in response to an increase in query cost. Fig. <ref type="figure">2</ref> demonstrates that CAMS outperforms all the comparison methods across all benchmarks. Remarkably, it outperforms even the oracle on the VERTEBRAL (Fig. <ref type="figure">2c</ref>) and HIV (Fig. <ref type="figure">2d</ref>) benchmarks with fewer than 10 and 20 queries, respectively. In the case of the VERTEBRAL benchmark, CAMS outperforms the best baseline in query cost by a margin of 20%, despite the fact that 11 out of the 17 experts provided malicious or random advice. This level of performance is attained by utilizing an active query strategy to retrieve highly informative data, thereby maximizing the differentiation between models and policies within the constraints of a limited budget. Additionally, the model selection strategy allows for effectively combining the expertise among the experts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Ablation studies</head><p>Effectiveness of active querying. In Fig. <ref type="figure">3a</ref> and Fig. <ref type="figure">3b</ref>, we perform ablation studies to demonstrate the effectiveness of our active query strategy. We fix the model recommendation strategy as the one used by CAMS, and compare three query strategies: (1) CAMS, (2) the state-of-the-art variancebased query strategy from Model Picker <ref type="bibr">[39]</ref> (referred to as "variance"), and (3) a random query strategy. Figure <ref type="figure">3a</ref> demonstrates that CAMS has the fastest convergence rate in terms of cumulative loss on CIFAR10, implying effective use of queried labels. Furthermore, CAMS not only achieves the minimum cumulative loss but also incurs significantly lower query costs, with reductions of 71% and 95% compared to the variance and random strategies respectively as showed in Fig. <ref type="figure">3b</ref>. This suggests that CAMS selectively queries data to optimize policy improvement, whereas the other strategies may query unnecessary labels, including potentially noisy or uninformative ones, which impede policy improvement and convergence.</p><p>Robustness. In Fig. <ref type="figure">2</ref>, 3c, 3d,3e, 3f, and 3g, CAMS exhibits robustness in a variety of environmental settings. Firstly, As shown in Fig. <ref type="figure">2</ref>, CAMS outshines other methods in a contextual environment, whereas in Fig. <ref type="figure">3c</ref>, a non-contextual (no experts) environment, it achieves comparable performance to the state-of-the-art Model Picker in identifying the best classifier. Secondly, CAMS is robust in both stochastic and adversarial environments. As demonstrated in Fig. <ref type="figure">2</ref>, CAMS surpasses other methods in a stochastic environment. Additionally, as illustrated in Fig. <ref type="figure">3d</ref>, in a worst-case adversarial environment, CAMS effectively recovers from adversarial actions and approaches the performance of the best classifier (see App. G.5). We further observe that CAMS demonstrates robustness to varying scales of data, where the online stream sizes range from 80 to 10K (Fig. <ref type="figure">2</ref>) to 100K (Fig. <ref type="figure">3e</ref>, where we randomly sample 100K samples from the CovType dataset <ref type="bibr">[24]</ref>).</p><p>In Fig. <ref type="figure">2</ref>, we assume that the stream length T is hidden and not used as input to CAMS. Under the stochastic setting, however, knowing T can provide additional information that one can leverage to optimize the query probability, thereby giving an advantage to some of the baseline algorithms (e.g. random). As an ablation study, in Fig. <ref type="figure">3f</ref> and Fig. <ref type="figure">3g</ref>, we assume the stochastic setting where the total length T of the online stream is given. Given the stream length T and query budget b, we may optimize each algorithm by scaling their query probabilities, so that each algorithm allocates its query budget to the top b informative labels in the entire online stream based on its own query criterion. CAMS still ourperform the baselines under the setting.</p><p>Improvement over the best classifier and policy. Fig. <ref type="figure">3h</ref> demonstrates that when provided with good policies, CAMS formulates a stronger policy which incurs no regret. CAMS has the potential to outperform an oracle, especially in rounds where the oracle does not make the optimal recommendation. For instance, in the stochastic version of CAMS (as shown in lines 22-23 and 30-32 of Fig. <ref type="figure">1</ref>), CAMS recommends a model using a weighted majority vote among all policies, enabling the formation of a new policy in each round by amalgamating the strengths of each sub-optimal policy. This adaptive strategy can potentially outperform any single policy. Moreover, in most real-world scenarios and conducted experiments (as depicted in App. G.6), data streams may not be strictly stochastic, and therefore no single policy consistently performs the best. In such cases, CAMS's weighted policy may find an enhanced combination of "advices", leading to improved performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Conclusion</head><p>We introduced CAMS, an online contextual active model selection framework based on a novel model selection and active query strategy. The algorithm was motivated by many real-world use cases that need to make decision by taking both contextual information and the cost into consideration. We have demonstrated CAMS's compelling performance of using the minimum query cost to learn the optimal contextual model selection policy on several diverse online model selection tasks. In addition to the promising empirical performance, we also provided rigorous theoretical guarantees on the regret and query complexity for both stochastic and adversarial settings. We hope our work can inspire future works to handle more complex real-world model selection tasks (e.g. beyond classification or non-uniform loss functions, etc. where our analysis does not readily apply).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A Impact Statements</head><p>This paper introduces a novel framework for adaptive model selection in label-efficient learning. By integrating robust online learning with active query strategies, our algorithm effectively adapts to varying data contexts and minimizes labeling efforts, crucial in domains requiring swift and accurate decisions, such as disease identification and financial predictions. Ethically, the framework's design promotes efficient and context-aware model selection, reducing potential biases associated with context-ignorant model selections. No major ethical concerns are anticipated, given the algorithm's generality and focus on solving practical problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Table of</head><p>Notations Defined in the Main Paper notation meaning Problem Statement X input domain x input instance, x &#8596; X t, T index of a round, total number of rounds i, j index of policies, models/classifiers n number of policies k number of classifiers Y { 0, . . . , c &#8593; 1}, set of c possible class labels for each input instance c number of class labels, |Y| !</p><p>model selection policy (expert) &#969; : X &#8595; ! k&#8593;1 , probability of selecting each classifier under input x &#969; const &#969; const j (&#8226;) := e j , e j &#8596; ! k&#8593;1 denotes the canonical basis vector with e j = 1 " collection of model selection policies</p><p>best policy &#375;t,j f j (x t ), predicted label for j th pre-trained classifier at round t y t true label of x t &#375;t [&#375; t,1 , . . . , &#375;t,k ] &#8595; , predicted labels by all k models at round t &#949; t,j I {&#375;t,j &#8596; =yt} , 0-1 loss for model j &#8596; [k] at round t &#949; &#949; &#949; t I {&#375; t &#8596; =yt} , full loss vector upon observing y t A the learner L A T T t=1 &#949; t,jt , cumulative loss over T rounds for a learning algorithm A &#949;t,i &#8657;&#969; i (x t ) , &#949; &#949; &#949; t &#8659;, expected loss if the learner commits to policy &#969; i and take random selection at round t maxind(w) arg max j,wj &#8600;w w j , index of maximal value entry of w &#181; 1 T T t=1 E xt,yt &#949;t,maxind(&#969;i(xt)) R T (A), R T (A) expected regret in adversarial setting, pseudo-regret for stochastic setting E t [&#8226;] E[&#8226;|F t ], F t = &#8636; E (1) , &#375;1 , ..., &#375;t&#8593;1 , E (t) Algorithm q t (q t,i ) i&#8600;|! &#8594; | , probability distribution over " &#8594; at t Lt,i t &#982; =1 &#949;&#982;,i , cumulative loss of policy i w t i&#8600;|! &#8594; | q t,i &#969; i (x t ), distribution induced by the weighted policy &#949;y t &#8657;w t , I {&#375; t &#8658; = y}&#8659;, expected loss if the true label is y E (&#375; t , w t ) model disagreement function h(x) &#8593;x log x &#1009; t 0 1 &#8771; t , lower bound of query probability z t max {&#1009; t 0 , E (&#375; t , w t )}, adaptive query probability &#949;t,j &#949;t,j zt U t U query indicator &#977; t adaptive learning rate &#982;</p><p>unbiased estimate of classifier loss vector</p><p>unbiased estimate of policy loss vector &#63728; L unbiased cumulative loss of classifiers, policies Analysis p t,y j&#8600;[k] I {&#375; t,j = y} w j , the total probability of classifiers predicts label y at round t</p><p>sub-optimality gap or immediate regret of policy i L T,&#8594; the cumulative loss of oracle at round T </p><p>Table 3: Regret and query complexity bounds. For the notations in this table: i &#8594; is the model with the highest expected accuracy; &#8640; j</p><p>is the probability that exactly one of j and i &#8594; correctly classifies a sample; &#962; and &#982; T are defined in Eq. ( <ref type="formula">5</ref>) and ( <ref type="formula">6</ref>), respectively. b = p min log c (1/p min ), where p min = min s,i &#969;(x s ) denotes the minimal model selection probability by any policy.</p><p>Remark 5. When T &#181; i &#8594; , LT,&#8594; are regarded as constants (given by an oracle), the query-complexity bound is then sub-linear w.r.t. T .</p><p>Remark 6. Note that the number of class labels c affects the quality of the query complexity bound. The intuition behind this result is, with larger number of classes, each query may carry more information upon observation. For instance, in an extreme case where only one expert always recommends the best model and others gives random recommendations of models (and predicts random labels), having more classes lowers the chance of a model making the correct guess, and therefore helps to "filter out" those suboptimal experts in fewer rounds-hence being more query efficient.</p><p>Remark 7. To prove the practical feasibility of CAMS, we have analyzed its time and space complexity.</p><p>Our analysis shows that CAMS has a time complexity of O (T nk) in total or O(nk) per round (due to the RECOMMEND procedure under the stochastic setting), and a space complexity of O ((n + k) &#8226; k).</p><p>Here, T refers to the online horizon, n denotes the number of policies, and k denotes the number of models. Taking into account these complexities, we can confirm that CAMS is practically feasible.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Supplemental Materials on Experimental Setup D.1 Baselines</head><p>Model Picker (MP) Model Picker <ref type="bibr">[39]</ref> is a context-free online active model selection method inspired by EXP3. Model Picker aims to find the best classifier in hindsight while making a small number of queries. For query strategy, it uses a variance-based active learning sampling method to select the most informative label to query to differentiate a pool of models, where the variance is defined as</p><p>. The coin-flip query probability is defined as max {v (&#375; t , w t ) , &#977; t } when v (&#375; t , w t ) &#8658; = 0, or 0 otherwise. For model recommendation, it uses an exponential weight algorithm to recommend the model with minimal exponential cumulative loss based on the past queried labels at each round.</p><p>Query by Committee (QBC) For query strategy, we have adapted the method of <ref type="bibr">[22]</ref> as a disagreement-based selective sampling query strategy for online streaming data. We treat each classifier as a committee member and compute the query probability by measuring disagreement between models for each instance. The query function is coin-flip by vote entropy probability</p><p>, where V (c, x) stands for the number of committee members assigning a class c for input context x and k is the number of committee. For the model recommendation part, we use the method of Follow-the-Leader (FTL) <ref type="bibr">[42]</ref>, which greedily recommends the model with the minimum cumulative loss for past queried instances.</p><p>Importance Weighted Active Learning (IWAL) We have implemented <ref type="bibr">[8]</ref> as the IWAL baseline. For the query strategy part, IWAL computes an adaptive rejection threshold for each instance and assigns an importance weight to each classifier in the hypothesis space H t . IWAL retains the classifiers in the hypothesis space according to their weighted error versus the current best classifier's weighted error at round t. The query probability is calculated based on labeling disagreements of surviving classifiers through function max i,j&#8600;Ht,y&#8600;[c] &#949; (y) t,i &#8593; &#949; (y) t,j . For model recommendation, we also adopt the Follow-the-Leader (FTL) strategy.</p><p>Random Query Strategy (RS) The RS method queries the label of incoming instances by the coin-flip fixed probability b T . It also uses the FTL strategy based on queried instances for model recommendation.</p><p>Contextual Query by Committee (CQBC) We have created a contextual variant of QBC termed CQBC, which has the same entropy query strategy as the original QBC. For model recommendation, we combine two model selection strategies. The first strategy calculates the cumulative reward of each classifier based on past queries and normalizes it as a probability simplex vector. We also adopt Exp4's arm recommending vector to use contextual information. Finally, we compute the element-wise product of the two vectors and normalize it to be CQBC's model recommendation vector. At each round, CQBC would recommend the top model based on the classifiers' historical performance on queried instances and the online advice matrix for streaming data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Contextual Importance Weighted Active Learning (CIWAL)</head><p>We have created a variant version of importance-weighted active learning. Similar to CQBC, CIWAL adopts the query strategy from IWAL and converts the model selection strategy to be contextual. For model selection, we incorporate Exp4's arm recommendation strategy based on the side-information advice matrix and each classifier's historical performance according to queried instances. We compute the element-wise product of the two vectors as the model selection vector of CIWAL and normalize it as a weighted vector. Finally, CIWAL recommends the classifier with the highest weight.</p><p>Oracle: Among all the given policies, oracle represents the best single policy that achieves the minimum cumulative loss, and it has the same query strategy as CAMS.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.2 Details on policies and classifiers</head><p>We constructed different expert-model configurations to reflect the cases in real-world applications 6 . This section lists the collection of policies and models used in our experiments.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>CIFAR10:</head><p>We have constructed 80 diversified classifiers based on VGG <ref type="bibr">[67]</ref>, ResNet <ref type="bibr">[34]</ref>, DenseNet <ref type="bibr">[38]</ref>, GoogLeNet <ref type="bibr">[69]</ref>. We have also used EfficientNet <ref type="bibr">[70]</ref>, MobileNets <ref type="bibr">[37]</ref>, RegNet <ref type="bibr">[62]</ref>, and ResNet to construct 85 diversified policies.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>DRIFT:</head><p>We have constructed ten classifiers using Decision Tree <ref type="bibr">[55]</ref>, SVM <ref type="bibr">[18]</ref>, AdaBoost <ref type="bibr">[28]</ref>, Logistic Regression <ref type="bibr">[20]</ref>, KNN <ref type="bibr">[19]</ref> models. We have also created 8 diversified policies with multilayer perceptron (MLP) models of different layer configurations: (128, 30, 10); (128, 60, 30, 10); (128, 120, 30, 10); (128, 240, 120, 30, 10).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VERTEBRAL:</head><p>We have built six classifiers using Random Forest <ref type="bibr">[10]</ref>, Gaussian Process <ref type="bibr">[56]</ref>, linear discriminant analysis <ref type="bibr">[26]</ref>, Naive Bayes <ref type="bibr">[31]</ref> algorithms. We have constructed policies by using standard scikit-learn built-in models including Random Forest Classifier, Extra Trees Classifier <ref type="bibr">[30]</ref>, Decision Tree Classifier, Radius Neighbors Classifier <ref type="bibr">[51]</ref>, Ridge Classifier <ref type="bibr">[57]</ref> and K-Nearest-Neighbor classifiers. 6 To list a few other scenarios beyond the ones used in the paper: In healthcare, models could be the treatments, experts could be the doctors and the context could be the condition of a patient. For any patient (context), doctors (experts) will have their own advice on the treatment (model) recommendation for this patient based on their past experience. In the finance domain, models could be trading strategies, experts could be portfolio managers, and the context could be the stock/equity. Some trading strategies (models) might work well for the information technology sector, and some other models might work well for the energy sector, so depending on the sector of stock (context), different portfolio managers (experts) might have their own advice on different trading strategies (models) based their past trading experience.</p><p>HIV: We have used graph convolutional networks (GCN) <ref type="bibr">[40]</ref>, Graph Attention Networks (GAT) <ref type="bibr">[72]</ref>, AttentiveFP <ref type="bibr">[75]</ref>, and Random Forest to construct 4 classifiers. We have also used various feature representations of molecules such as MACCS key <ref type="bibr">[25]</ref>, ECFP2, ECFP4, and ECFP6 <ref type="bibr">[58]</ref> molecular fingerprints to build 6 MLP-based policies, respectively.</p><p>CovType: We have built 6 classifiers using Random Forest, Gaussian Process, linear discriminant analysis, Naive Bayes algorithms. We have constructed 17 policies by using standard scikit-learn built-in models including Random Forest Classifier, Extra Trees Classifier, Decision Tree Classifier, Radius Neighbors Classifier, Ridge Classifier and K-Nearest-Neighbor classifiers.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.3 Implementation details</head><p>We build our evaluation pipeline on top of prior work <ref type="bibr">[39]</ref> around the four benchmark datasets. Specifically,</p><p>&#8226; Context x t is the raw context of the data (e.g., the 32x32 image for CIFAR10).</p><p>&#8226; Predictions &#375;t contain the predicted label vector of all the classifiers' predictions according to the online context x t . &#8226; Oracle contains the true label y t of x t .</p><p>&#8226; Advice matrix contains all policies' probability distribution &#8637; over all the classifiers on context x t .</p><p>To adapt to an online setting, we sequentially draw random T i.i.d. instances x 1:T from the test pool and define it as a realization. For a fair comparison, all algorithms receive data instances in the same order within the same realization.</p><p>Algorithm 1 Regularized policy &#969; (x t )</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.4 Regularized policy</head><p>As discussed in adversarial section, we wish to ensure that the probability a policy selecting any model is bounded away from 0 so that the regret bound in Theorem 3 is non vacuous. In our experiments, we achieve this goal by applying a regularized policy &#969; as shown in Algorithm 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.5 Summary of datasets and models</head><p>We summarize the attributes of datasets, the models, and the model selection policies as follows. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.6 Hyperparameters</head><p>We performed our experiments on a Linux server with 80 Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz and total 528 Gigabyte memory.</p><p>By considering the resource of server, We set 100 realizations and 3000 stream-size for DRIFT, 20 realizations and 10000 stream-size for CIFAR10, 200 realizations and 4000 stream size for HIV, 300 realization and 80 stream-size for VERTEBRAL. In each realization, we randomly selected stream-size aligned data from testing-set and make it as online streaming data which is the input of each algorithm. Thus, we got independent result for each realization.</p><p>A small realization number would increase the variance of the results due to the randomness of stream order. A large realization number would make the result be more stable but at the cost of increasing computational cost (time, memory, etc.). We chose the realization number by balancing both aspects.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Proofs for the Stochastic Setting</head><p>In this section, we focus on the stochastic setting. We first prove the regret bound presented in Theorem 1 and then prove the query complexity presented in Theorem 2 for Algorithm 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.1 Proof of Theorem 1</head><p>Before providing the proof of Theorem 1, we first introduce the following lemma. Lemma 8. Fix &#966; &#8596; (0, 1). Let q t,i &#8594; be the probability of the optimal policy i &#8594; maintained by Algorithm 1 at t, and let b = p min log c (1/p min ), where p min = min s,i &#969;(x s ) denotes the minimal model selection probability by any policy <ref type="foot">7</ref>. When t &#8599; &#63729; &#63740; ln</p><p>, with probability at least 1 &#8593; &#1009;, it holds that q t,i &#8594; &#8599; &#966; .</p><p>Proof of Lemma 8. W.l.o.g, we assume</p><p>, and &#969; 1 is the policy with the minimal expected loss.</p><p>Define</p><p>where i &#8656; &#8619; arg min i&#8596; =1 Lt&#8593;1,i denotes the index of the best empirical policy up to t &#8593; 1 other than &#969; 1 . Therefore for i &#8599; 2, it holds that</p><p>We have q t,i &#8594; = q t,1 = exp(&#8593;&#962;t Lt&#8593;1,1)</p><p>as the weight of optimal expert at round t. Therefore</p><p>where step (a) is by dividing the cumulative loss of sub-optimal policy &#969; i &#8595; and step (b) is by the definition of &#1009; t in Equation <ref type="bibr">(7)</ref>.</p><p>Let &#966; &#8596; (0, 1), such that q t,i &#8594; &#8599; exp(&#962;t t s=1 &#1009;s) exp(&#962;t</p><p>. Rearranging the terms, we get</p><p>Next, we seek a high probability upper bound on &#1009; t . Denote</p><p>We know</p><p>Here, step (9a) is by the fact that ! 2 = min i&#8596; =1 ! i &#8771; ! i &#8595; , and step (9b) is by Hoeffding's inequality where b denotes the upper bound on |&#1009; s |. Further note that</p><p>&#8771; U s &#8657;&#969; i &#8595; (x s ), I {&#375; s &#8658; = y s }&#8659; </p><p>, it holds that q t,i &#8594; &#8599; &#966; with probability at least 1 &#8593; &#1009;.</p><p>Lemma 9. At round t, when t &#8599;</p><p>, it holds that the arm chosen by the best policy i &#8594; will be the arm chosen by Algorithm 1 with probability at least 1 &#8593; &#1009;. That is, arg max</p><p>Proof of Lemma 9. At round t, for Algorithm 1, we have loss</p><p>as the minimal gap in model distribution space of best policy. The arm recommended by the best policy i &#8594; of CAMS will dominate CAMS's selection, when we have</p><p>Rearranging the terms, and by</p><p>Therefore, we get &#966; &#8226; (&#962;) &#8599; (1 &#8593; &#966; ), and thus &#966; &#8599; 1 &#8636;+1 . Set &#966; &#8599; 1 &#8636;+1 . By Lemma 8, we get</p><p>where the last step is by applying 2e &#8593; t&#982; 2 2b 2 = &#1009;, thus, &#8641; = 2b<ref type="foot">foot_6</ref> t ln 2 &#1009; . Dividing both sides by t</p><p>Proof of Theorem 1. Therefore, with probability at least 1 &#8593; &#1009; , we get constant regret</p><p>Furthermore, with probability at most &#1009;, the regret is upper bounded by T . Thus, we have</p><p>where step (a) by setting &#1009; = 1 T , and where &#962; in Eq. ( <ref type="formula">10</ref>) is the min gap.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.2 Proof of Theorem 2</head><p>In this section, we analyze the query complexity of CAMS in the stochastic setting, where we take a similar approach as proposed by Karimi et al. <ref type="bibr">[39]</ref> for the context-free model selection problem. Our main idea is to derive from query indicator U t and query probability z t . We first used Lemma 10 to bound the expected number of queries T t=1 U t by the sum of query probability as</p><p>Then we used Lemma 11 to bound the first item (which corresponds to the lower bound of query probability over T rounds) and applied Lemma 12 to bound the second term (which characterizes the model disagreement). Finally, we combined the upper bounds on the two parts to reach desired result.</p><p>Lemma 10. The query complexity of Algorithm 1 is upper bounded by</p><p>Proof. Now we have model disagreement defined in Eq. ( <ref type="formula">3</ref>), the query probability defined in Eq. ( <ref type="formula">4</ref>), and the query indicator U. Let us assume, at each round, we have query probability z t &gt; 0, which indicates we will not process the instance that all the models' prediction are the same.</p><p>At round t, from query probability Eq. ( <ref type="formula">4</ref>), we have</p><p>, where the inequality is by applying that &#8733;A, B &#8599; 0, max{A, B} &#8771; A + B.</p><p>Thus, in total round T , we could get the following equation as the cumulative query cost,</p><p>where the inequality is by inputting &#1009; t 0 = 1 &#8771; t and Eq. ( <ref type="formula">3</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 11.</head><p>T t=1</p><p>Proof. We can bound the LHS as follows:</p><p>Lemma 12. Denote the true label at round t by y t , and define p t,y := j&#8600;[k] I {&#375; t,j = y} w j . Further define R t := t 1 &#8593; p t,yt as the expected cumulative loss of Algorithm 1 at t.</p><p>Proof of Lemma 12. Suppose at round t, the true label is y t .</p><p>yt ) log |Y| 1 1&#8593;pt,y t |Y| + y&#8596; =yt (1 &#8593; p t,y ) log |Y| 1 1&#8593;pt,y |Y| (a) &#8771; (1 &#8593; p t,yt ) log |Y| 1 1&#8593;pt,y t |Y| + &#8593; 1) (1&#8593;pt,y t ) |Y|&#8593;1 log |Y| |Y|&#8593;1 1&#8593;pt,y t |Y| &#8771; (1 &#8593; p t,yt ) log |Y| 1 1&#8593;pt,y t |Y| + (1 &#8593; p t,yt ) log |Y| |Y|&#8593;1 1&#8593;pt,y t |Y| = (1 &#8593; p t,yt ) log |Y| |Y|&#8593;1 (1&#8593;pt,y t ) 2 |Y| (b) &#8771; r t log |Y| |Y|&#8593;1 r 2 t |Y| , where step (a) is by applying Jensen's inequality and using 1 &#8593; p t,y = 1&#8593;pt,y t |Y|&#8593;1 , and step (b) is by replacing the expected loss 1 &#8593; p t,yt by its short-hand notation r t .</p><p>Recall that we define the expected cumulative loss as</p><p>Since R T is the cumulative loss up to round T , T 's incremental rate is no less than R T 's incremental rate. Thus, R T &#8771; T and Tt Rt &#8771; Tt+1 Rt+1 . So we get Eq. ( <ref type="formula">14</ref>). Now we are ready to prove Theorem 2.</p><p>Proof of Theorem 2. From Lemma 10, we get the following equation as the cumulative query cost</p><p>Let us assume the expected total loss of best policy is T &#181; i &#8594; . From Theorem 1, we get</p><p>Plugging this result into the query complexity bound given by Lemma 11 and Lemma 12, we have</p><p>, where &#962; is defined as Eq. ( <ref type="formula">10</ref>) and step (a) by applying c = |Y|.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F Proofs for the Adversarial Setting</head><p>In this section, we first prove the regret bound presented in Theorem 3 and then prove query complexity bound presented in Theorem 4 for Algorithm 1 in the adversarial setting. Lemma 13 builds upon the proof of the hedge algorithm <ref type="bibr">[27]</ref>, but with an adaptive learning rate.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F.1 Proof of Theorem 3</head><p>Lemma 13. Consider the setting of Algorithm 1, Let us define h t,i = exp &#8593;&#977; t Lt&#8593;1,i &#8733;i &#8596; |" &#8594; | as exponential cumulative loss of policy i, &#977; t is the adaptive learning rate and q t is the probability distribution of policies, then</p><p>Proof. We first bound the following term</p><p>where the inequality is by applying that for x &#8771; 0, we have</p><p>By taking log on both side, we get</p><p>where step (a) is by applying that log (1 + x) &#8771; x, when x &#8599; &#8593;1.</p><p>Now summing over t = 1 : T yields:</p><p>Lemma 14. Consider the setting of Algorithm 1. Let p t,y = j&#8600;[k] I {&#375; t,j = y} w j . The query probability z t satisfies</p><p>Proof. We first bound the query probability term</p><p>yt (1 &#8593; p t,yt ) + p t,y (1 &#8593; p t,y )) , &#8733;y &#8658; = y t , where step (a) is by applying ln (1 + x) &#8599; x 1+x for x &gt; &#8593;1, ln 1 1 &#8593; p t,y = ln 1 + p t,y 1 &#8593; p t,y &#8599; pt,y 1&#8593;pt,y 1 1&#8593;pt,y = p t,y , and where step (b) is by applying &#8733;a, b &#8596; R, max {a, b} &#8599; a. Proof of Theorem 3. By applying Lemma 13, we got</p><p>For any policy s, we have a lower bound</p><p>where step (a) in Eq. ( <ref type="formula">15</ref>) is by initializing &#63739; L 0 = 0, e 0 = 1, and</p><p>Thus, we have</p><p>&#8771; log (n + k)</p><p>where step (b) is by applying</p><p>and step (c) is by dividing &#977; T on both side.</p><p>Because we have</p><p>where step (d) is by applying</p><p>, where step (e) is by using &#8657;w t , &#949; &#949; &#949; t &#8659; = 1 &#8593; p t,yt and step (f ) by using Lemma 14 and get lower bound of z t as 1 |Y| ln |Y| (p t,yt (1 &#8593; p t,yt ) + p t,y (1 &#8593; p t,y )) and applying</p><p>p &#982;,y . Let p t,&#375; = max y p t,y . Thus, we have</p><p>So we have</p><p>where step (g) is by getting the lower bound of z t as</p><p>where the last inequality is due to the fact that</p><p>which completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F.2 Proof of Theorem 4</head><p>Proof of Theorem 4. From Lemma 10, we get the following equation as the cumulative query cost</p><p>Let us assume the expected total loss of best policy is LT,&#8594; . Thus, from Theorem 3, we get the expected cumulative loss</p><p>Now plugging the regret bound R T proved in Theorem 3 into the query complexity bound given by Lemma 12, we have</p><p>Finally, by applying query complexity upper bound of Lemma 11, we got</p><p>Since the second term on the RHS dominates the upper bound, we have</p><p>where step (a) is obtained by suppressing constant coefficients involving |Y| into the O notation. Cumulative loss (a) CIFAR10 (b) DRIFT (c) VERTEBRAL (d) HIV Figure 5: Ablation study of three query strategies (entropy, variance, random) for 4 diverse benchmarks based on the same model recommendation strategy. Under the same query cost constraint, CAMS's entropy-based strategy exceeds the performance of the other two strategies on non-binary benchmarks in terms of query cost and cumulative lost. 90% confident intervals are indicated in shades.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.3 Comparing CAMS with each individual expert</head><p>We evaluate CAMS by comparing it with all the policies available in various benchmarks. The policies in each benchmark are summarized in App. D.2 and Table <ref type="table">D</ref>.5. The empirical results in Fig. <ref type="figure">6</ref> demonstrate that CAMS could efficiently outperform all policies and converge to the performance of the best policy with only slight increase in query cost in all benchmarks. In particular, on the VERTEBRAL and HIV benchmarks, CAMS even outperforms the best policy.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.4 Comparing CAMS against Model Picker in a context-free environment</head><p>CAMS outperforms Model Picker in Fig. <ref type="figure">2</ref>, by leveraging the context information for adaptive model selection. In a context-free environment, " = {&#8843;}, so " &#8594; := {&#969; const 1 , . . . , &#969; const k }, where &#969; const j (&#8226;) := e j represents a policy that only recommends a fixed model. In this case, selecting the best policy to CAMS equals selecting the best single model. Fig. <ref type="figure">7</ref> demonstrates that the mean of CAMS and Model Picker lies in the shades of each other, which means CAMS has approximately the same performance as model picker considering the randomness on all benchmarks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.5 Robustness against malicious experts in adversarial environments</head><p>When given only malicious and random advice policies, the conventional contextual online learning from experts advice framework will be trapped in the malicious or random advice. In contrast, CAMS could efficiently identify these policies and avoid taking advice from them. Meanwhile, it also successfully identifies the best classifier to learn to reach its best performance.</p><p>Cumulative loss (a) CIFAR10 (b) DRIFT (c) VERTEBRAL (d) HIV Cumulative loss (a) CIFAR10 (b) DRIFT (c) VERTEBRAL (d) HIV Figure 7: Comparing the model selection strategy of CAMS and Model Picker baseline based on the same variance-based query strategy in a context-free environment. CAMS has approximately the same performance as Model Picker on all the benchmarks. 90% confident intervals are indicated in shades.</p><p>The novelty in CAMS that enables this robustness is that we add the constant policies {&#969; const 1 , . . . , &#969; const k } into the policy set " to form the new set as " &#8594; . To illustrate the performance difference, we have created a variant of CAMS by adapting to the conventional approach (named CAMS-conventional). Fig. <ref type="figure">8</ref> demonstrates that CAMS could outperform all the malicious and random policies and converge to the performance of the best classifier. CAMS-conventional: We create the CAMS-conventional algorithm as the CAMS using policy set ", not " &#8594; . Figure <ref type="figure">8</ref>: Evaluating the robustness of CAMS compared to the conventional learning from experts' advice (CAMS-conventional) in a complete malicious and random policies environment. When no good policy is available, CAMS could recover from malicious advice and successfully approach the performance of the best classifier. In contrast, the conventional approach will be trapped in malicious advice. 90% confident intervals are indicated in shades.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.6 Outperformance over the best policy/expert</head><p>We also observe that CAMS does not stop at approaching the best policy or classifier performance. Sometimes, it even outperforms all the policies and classifiers, and Fig. <ref type="figure">9</ref> demonstrates such a case.</p><p>To demonstrate the advantage of CAMS, we create two variant versions of CAMS: (1) CAMS-MAX (App. G.7), (2) CAMS-Random-Policy (App. G.8). CAMS-MAX and CAMS-Random-Policy use the same algorithm as CAMS in adversarial settings but have different model selection strategies for ablation study in the stochastic settings.</p><p>We evaluate the three algorithms on VERTEBRAL and HIV benchmarks in terms of (a) normal policies (Fig. <ref type="figure">9</ref> Left), (b) classifiers (Fig. <ref type="figure">9</ref> Middle), and (c) malicious and random policies (Fig. <ref type="figure">9</ref> Right). In the normal policies column, we only compare the policies with regular policies giving helpful advice. In the classifier column, we compare them with the performance of classifiers only.</p><p>In the malicious and random policies column, we compare them with unreasonable policies only.</p><p>Fig. <ref type="figure">9</ref> demonstrates that all three algorithms could outperform the malicious/random policies. However, CAMS-Random-Policy does not outperform the best classifier while both CAMS and CAMS-MAX can on both benchmarks. CAMS-MAX approaches the performance of the best policy but does not outperform the best policy on both benchmarks. Finally, perhaps surprisingly, CAMS outperforms the best policy (Oracle) on both benchmarks and continues to approach the hypothetical, optimal policy (with 0 cumulative loss).</p><p>This surprising factor is contributed by the adaptive weighted policy of CAMS, which adaptively creates a better policy by combining the advantage of each sub-optimal policy and classifier to reach the performance of the hypothetical, optimal policy (defined as</p><p>The second reason could be that the benchmark we created, or any real-world cases, will not be strictly in a stochastic setting (in which a single policy outperforms all others or has lower &#181; in every round). The weight policy strategy can make a better combination of advice for this case. They outperform all the malicious/random policies. Moreover, CAMS and CAMS-MAX outperform the best classifier. Finally, only CAMS even exceeds the best policy (Oracle) in both benchmarks and continues approaching the hypothetical, optimal policy (0 cumulative loss). 90% confident intervals are indicated in shades.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.7 The CAMS-MAX algorithm</head><p>CAMS-MAX is a variant of CAMS. In an adversarial setting, they share the same algorithm. However, in a stochastic setting, CAMS-MAX gets the index i &#8594; of max value in the probability distribution of policy q, and selects the model with the max value in &#969; i &#8594; (x t ) to recommendation. The difference is marked as blue color in Fig. <ref type="figure">10</ref>.</p><p>1: Input: Models F, policies " &#8594; , #rounds T , budget b 2: Initialize loss L0 &#8598; 0; query cost C 0 &#8598; 0 3: for t = 1, 2, ..., T do 4:</p><p>Receive x t 5:</p><p>It randomly samples the policy from the probability distribution of policy q, and selects the model with max value in &#969; i &#8594; (x t ) to recommendation. The difference is marked as blue color in Fig. <ref type="figure">11</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.9 Maximal queries from experiments</head><p>Table <ref type="table">6</ref> in this section summarizes the maximum query cost for a given data stream (of fixed total size), with its associated cumulative loss for all baselines (exclude Oracle) on all benchmarks in experiment section. The result in this table is slightly different from the query complexity curves of Fig. <ref type="figure">2</ref> (Middle). The curve in Fig. <ref type="figure">2</ref>  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.10 Query complexity</head><p>To achieve the same level of prediction accuracy (measured by average cumulative loss over a fixed number of rounds), CAMS incurs less than 10% of the label cost of the best competing baselines on CIFAR10 (10K examples), and 68% the cost on VERTEBRAL (see Fig. <ref type="figure">12</ref>); Fig. <ref type="figure">12</ref>  <ref type="foot">8</ref> and Table <ref type="table">6</ref> also demonstrate the compelling effectiveness of CAMS's query strategy outperforming all baselines in terms of query cost in VERTEBRAL, DRIFT, and CIFAR10 benchmarks, which is consistent with our query complexity bound in Theorem 2. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.11 Fine-tuning the query probabilities for stochastic streams</head><p>For the experimental results we reported in the main paper, we consider a streaming setting where the data arrives online in an arbitrary order and arbitrary length. Therefore, for both CAMS and the baselines, we used the exact off-the-shelf query criteria as described in experiment setup section without fine-tuning the query probabilities, which could be otherwise desirable in certain scenarios (e.g. for stochastic streams, where the query probability can be further optimized).</p><p>In this section, we consider such scenarios, and conduct an additional set of experiments to further demonstrate the performance of CAMS assuming stochastic data streams. Given the stream length T and query budget b, we may optimize each algorithm by scaling their query probabilities, so that each algorithm allocates its query budget to the top b informative labels in the entire online stream based on its own query criterion. Note that in practice, finding the exact scaling parameter is infeasible, as we do not know the online performance unless we observe the entire data stream. While it is challenging to determine the scaling factor for each algorithm under the adversarial setting, one can effectively estimate the scaling factor for stochastic streams, where the context arrives i.i.d..</p><p>Concretely, we use the early budget to decide the scaling parameter in our following evaluation: Firstly, we use a small fraction (i.e. T /10) of the online stream and see how much queries b early each algorithm consumed. Then we calculate the scaling parameter s = (b&#8593;bearly)</p><p>T &#8593;T /10 &#8226; T /10 bearly and multiply the scaling factor with the query probability of each algorithm for the remaining 9  10 &#8226; T rounds. The results in Fig. <ref type="figure">13</ref> demonstrate that CAMS still outperforms all the baselines (excluding Oracle) when all algorithms select the top b data of the whole online stream to query. The improvement of CAMS over the baseline approaches does not differ much between the two versions (with or without scaling) of the experiments as shown in the bottom plots of Fig. <ref type="figure">2</ref> and Fig. <ref type="figure">13</ref>.</p><p>For a head-to-head comparison between the bottom plots of Fig. <ref type="figure">2</ref> and Fig. <ref type="figure">13</ref>, note that the total number of rounds stays the same for DRIFT (T = 3000), VERTEBRAL (T = 80), and HIV (T = 4000); while we used half the rounds and half the maximal budget for CIFAR10 (T = 5000) for the version with scaling. Roughly speaking, the cumulative regret plots for the baselines were "streched out" to cover the full allocated budget after scaling, but we do not observe a significant difference in terms of the absolute gain in terms of the cumulative loss. Another way to read the difference between the two plots is to compare the cumulative losses at the budget range where all algorithms were not cut off early: e.g., for DRIFT, when Query Cost is 250, the cumulative losses for the competing algorithm stay roughly the same under the two evaluation scenarios. G.12 Ablation study on the active query strategy</p><p>In this section, we compare the performance of CAMS and its non-active variant (CAMS-nonactive), which queries the label for each incoming data point. As shown in Fig. <ref type="figure">14</ref>, CAMS performs equally well or better than CAMS-nonactive, even though it queries significantly less data. Surprisingly, on the DRIFT dataset, CAMS significantly outperforms CAMS-nonactive, even when using less than 10 percent of the query budget (Fig. <ref type="figure">14b</ref>). This demonstrates that CAMS selectively choose the data to query to maximal optimize policy improvement, while CAMS queries all data points, regardless of their usefulness or noise, which hampers policy improvement and convergence. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.13 Relative Cumulative Loss</head><p>Relative cumulative loss (RCL). At round t, we define RCL as L t,ji &#8593; L t,j &#8594; , where L t,j &#8594; stands for the cumulative loss (CL) of the policy always selecting the best classifier, and L t,ji stands for the CL of policy i.</p><p>Relative cumulative loss The RCL under the same query cost for all baselines is shown in Fig. <ref type="figure">15</ref>. The loss trajectory demonstrates that CAMS efficiently adapts to the best policy after only a few rounds and outperforms all baselines in all benchmarks. The result also demonstrates that CAMS can achieve negative RCL on all benchmarks, which means it outperforms any algorithms that chase the best classifier, as the horizontal 0 line represents the performance benchmark of best classifier. This empirical result aligns with Theorem 1 that, in the worst scenario, if the best classifier is the best policy, CAMS will achieve its performance. Otherwise, CAMS will reach a better policy and incurs no regret.</p><p>CAMS could achieve such performance because when an Oracle fails to achieve 0 loss over all instances and contexts, CAMS has the opportunity to outperform the Oracle in those rounds Oracle does not make the best recommendation. For instance, the stochastic version of CAMS (Line 22-23; Line 30-32 in Fig. <ref type="figure">1</ref>) may achieve this by recommending a model using the weighted majority vote among all policies. Therefore, one can view CAMS as adaptively constructing a new policy at each round by combining the advantages of each sub-optimal policy, which may outperform any single expert/policy. Furthermore, for the experiments we ran (or in most real-world scenarios), the data streams are not strictly in a stochastic setting (in which a single policy outperforms all others or has a lower expected loss in every round). The weighted policy strategy may find a better combination of "advices" in such cases (see Fig. <ref type="figure">2</ref> and App. G.6). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Global Rebuttal Response</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>H Experiments on ImageNet</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I Comparing CAMS against recent works in active learning</head><p>Active Learning Setting / Algorithms Coreset Batch-BALD BADGE; VAAL; ClusterMargin BALANCE; GLISTER VeSSAL Model Picker CAMS Streaming, sequential &#8594; Justification: We list the paper's contribution and scope clearly at the last paragraph of Section 1</p><p>Guidelines:</p><p>&#8226; The answer NA means that the abstract and introduction do not include the claims made in the paper. &#8226; The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. &#8226; The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. &#8226; It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Limitations</head><p>Question: Does the paper discuss the limitations of the work performed by the authors?</p><p>Answer: [Yes]</p><p>Justification: We have discussed our limitation at Section 7 future direction. It summarizes the limitations of our approach and we hope to address in the future work.</p><p>Guidelines:</p><p>&#8226; The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. &#8226; The authors are encouraged to create a separate "Limitations" section in their paper.</p><p>&#8226; The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. &#8226; The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. &#8226; The authors should reflect on the factors that influence the performance of the approach.</p><p>For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. &#8226; The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. &#8226; If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. &#8226; While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Theory Assumptions and Proofs</head><p>Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?</p><p>&#8226; The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). &#8226; The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) &#8226; The assumptions made should be given (e.g., Normally distributed errors). &#8226; It should be clear whether the error bar is the standard deviation or the standard error of the mean.</p><p>&#8226; It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified. &#8226; For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). &#8226; If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. 8. Experiments Compute Resources Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? Answer: [Yes] Justification: It can be found at the supplementary Appendix D.6. Guidelines: &#8226; The answer NA means that the paper does not include experiments. &#8226; The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. &#8226; The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. &#8226; The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). 9. Code Of Ethics Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics <ref type="url">https://neurips.cc/public/EthicsGuidelines</ref>? Answer: [Yes] Justification: The codes are anonymous as well. Guidelines: &#8226; The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. &#8226; If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. &#8226; The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). 10. Broader Impacts Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? Answer: [Yes] Justification: It has been discussed at Abstract and Section 1.</p><p>Guidelines:</p><p>&#8226; The answer NA means that there is no societal impact of the work performed.</p><p>&#8226; If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact.</p><p>&#8226; Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. &#8226; The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. &#8226; The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. &#8226; If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="11.">Safeguards</head><p>Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? Answer: [NA] Justification: Guidelines:</p><p>&#8226; The answer NA means that the paper poses no such risks.</p><p>&#8226; Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. &#8226; Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. &#8226; We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. 12. Licenses for existing assets Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? Answer: [NA] Justification: Guidelines:</p><p>&#8226; The answer NA means that the paper does not use existing assets.</p><p>&#8226; The authors should cite the original paper that produced the code package or dataset.</p><p>&#8226; The authors should state which version of the asset is used and, if possible, include a URL. &#8226; The name of the license (e.g., CC-BY 4.0) should be included for each asset.</p><p>&#8226; For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. &#8226; If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>&#8594; Correspondence to: Xuefeng Liu &lt;xuefeng@uchicago.edu&gt;.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>Assume ties are broken randomly.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>For convenience of discussion, we assume that those rounds where all policies in ! &#8594; select the same models or all models F make the same predictions are removed as a precondition.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>w.l.o.g. assume there is a single best policy, and thus " &gt; 0.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_4"><p>We assume pmin &gt; 0 per the policy regularization criterion in Appendix C.3. (cf. Algorithm 1 on "Regularized policy &#969;(xt))".</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_5"><p>We assume pmin &gt; 0 per the policy regularization criterion in Appendix C.3. (cf. Algorithm 1 on "Regularized policy &#969;(xt))".</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_6"><p>&#63731; &#63742; ,</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="8" xml:id="foot_7"><p>We also consider variants for each algorithm (other than Random and Oracle) where we scale the query probabilities based on the early-phase performance and observe similar behavior. See App. G.11 for the corresponding results.</p></note>
		</body>
		</text>
</TEI>
