acceptodds
Published as a conference paper at NeurIPS 2026

The Power of a Random Sample in Online Algorithms

Omer Wasim, Sami Davies, Shallu Tomer, Rathish Das

Abstract

In this paper, we introduce a semi-random model in online optimization, which interpolates naturally between the standard (adversarial) and random-order arrival model, which we call the online with a random sample (ORS) model: the full input may be chosen adversarially, but a random -fraction of the input is selected and presented to the algorithm in random-order, before the remaining non-sampled elements are presented (in adversarial order). While similar in spirit to the AOS (adversarial order with a sample) model introduced by Kaplan, Naori and Raz, in our ORS model, the sampled -fraction is revealed online instead of offline, and hence, competitiveness is measured with respect to the full input. Our central focus in the paper is applying the ORS model to the secretary problem and its natural variant. For the secretary problem, we present an optimal -competitive algorithm, while for the -secretary problem, we obtain a competitive algorithm whose performance converges to optimal competitiveness as . We also include a -competitive algorithm for facility location.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_wBubOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
4
Significance
3
Read review
Summary

The standard setting of online algorithms, in which the data is completely adversarial, often makes the problem hopelessly difficult for the online algorithm. For this reason, researchers have considered more realistic models where the algorithm can perform better. An extreme example is random order, in which the adversary decides on the pieces of the data but not on their order, which is chosen uniformly at random. This setting is unrealistic from the other direction, making it too easy for the algorithm.

Settings in the middle are known as semi-random, and are part of the fascinating study of beyond worst-case settings. One example appearing in the literature is the AOS model (adversarial order with a sample), in which a random fraction of the data is presented to the algorithm ahead of time, and the rest is presented in an adversarial order. The main drawback of this setting is that the competitive ratio now has an awkward definition, since it depends only on the unsampled data.

In this paper, the authors suggest a variant of the AOS model, the ORS model (online with a random sample), which is more in line with the usual setting. In this model, a random fraction of the data is presented in random order and in an online fashion, and the rest of the data is presented in an adversarial order. The authors convincingly argue that this setting is realistic. They analyze the classical secretary problem in this setting, determining the optimal competitive ratio, and also give an example (facility location) where algorithms for the AOS model can be adapted to the ORS model with similar performance.

Strengths and weaknesses

The model studied in this work is quite natural, and I hope that it would capture the attention of the community. The main drawback of the paper is that only few problems are studied. It seems that the authors were so eager to spread the word that they refused to wait until the model has been studied more thoroughly. Especially, it would be interesting to prove a meta-theorem showing that in some situations, AOS algorithms can be adapted to ORS algorithms (and perhaps vice versa).

Questions

Have you tried connecting the AOS and ORS settings more systematically?

Limitations

Yes

Paper formatting concerns

None

Final justification

My positive opinion on the paper has not changed.

1 comment

We thank the reviewers for their careful reading of our paper. We were pleased that all reviewers found our introduction of the online with a random sample (ORS) model to be interesting, natural, and well motivated. We believe the key advantage of the ORS model over the adversarial order with a sample (AOS) model is that algorithms in ORS are fully online, while also naturally interpolating between the random-order (RO) and adversarial-order settings. Although our primary contribution is introducing this model, we also believe the ORS model has substantial technical depth and can help better characterize the complexity of online problems.

We would like to further clarify the technical contribution of the ORS model to the beyond-worst-case literature, particularly given its similarity to the AOS model.

First, we strongly believe it is impossible to develop a formal connection between the AOS and ORS models, or a black-box reduction from one to the other for arbitrary problems (although such reductions may exist for certain classes of problems). This is because some problems are significantly easier in AOS than in ORS, while others are easier in ORS than in AOS. An example of the former is min-max (i.e., ℓ∞\ell_\infty-norm) correlation clustering (see this recent work: https://arxiv.org/pdf/2510.15076). Let pp denote the fraction of the input seen offline in the AOS model, and equivalently the fraction of the input arriving in random order in the ORS model. While it is possible to obtain an O((1/p6)log⁡n)O((1/p^6)\log n)-competitive algorithm for min-max correlation clustering in the AOS model, it is impossible to achieve even an Ω(n1/3)\Omega(n^{1/3})-competitive algorithm in the RO model, and therefore the same impossibility carries over to the ORS model. On the other hand, we show that for the secretary problem, the ORS model admits a tight competitive ratio of pe−ppe^{-p}, whereas the AOS model has a tight competitive ratio of 1/21/2 whenever p>1/2p>1/2. Overall, for some problems (e.g., min-max correlation clustering), requiring competitiveness on the full input is essentially a death sentence, whereas for others (e.g., secretary), the primary loss comes from only being able to exploit randomness on a portion of the input.

Second, we would like to highlight the technical novelty of our analyses. Existing work in the AOS model only relies on the fact that the sample provides a random snapshot of the underlying offline input. Interestingly, this property has previously been identified by Azar, Kleinberg, and Weinberg under the framework of order-oblivious algorithms. In contrast, our analyses for secretary (both upper and lower bounds) and (k,1)(k,1)-secretary require substantially more: they exploit the fact that the first pp-fraction of the input arrives in random order, not just that it forms a random sample of the offline input. This is the aspect that distinguishes our analyses from those in the AOS model.

Reviewer_8yiNOpenReview ↗
Rating
3
Clarity
4
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary

This paper introduces a new model for online optimization that naturally interpolates between the random-order arrival model and the standard adversarial-order model. In this model, a uniformly random prefix is followed by an adversarially ordered suffix. A parameter p∈[0,1]p \in [0,1] determines the fraction of the input that is not manipulated by the adversary and appears in the random prefix of the online sequence. After observing this prefix, the adversary chooses the order of the remaining elements.

The paper studies the classical secretary problem in this model. In addition, it presents an algorithm for the facility location problem under the same framework:

For the classical secretary problem, the authors provide an optimal algorithm. For the (k,1)(k,1) variant, where the algorithm is allowed to select kk items, they present an algorithm and derive a lower bound on its competitive ratio.

For the facility location problem, they adapt Meyerson's online algorithm and provide a corresponding competitive analysis.

Strengths and weaknesses

Strengths:

  1. The proposed model is natural, well-motivated, and worthy of further study.
  2. The problems considered under this model are interesting and relevant.
  3. The paper is well written; the proofs appear sound and are generally easy to follow.

Weaknesses:

  1. While the model is natural and interesting, it resembles the previously well studied AOS model. It is not entirely clear to what extent the additional online aspect of the model requires new algorithmic ideas, rather than adaptations of existing techniques, when considering other problems.
  2. The main contribution of the paper is theoretical, yet the technical contributions are relatively modest. I view this as the main weakness of the paper.
  3. The computational details do not seem sufficiently important to warrant inclusion in the main body of the paper. I would prefer to see the facility location application instead in the main body.
  4. I have the impression that the paper is a better fit for a venue in theoretical computer science.

Editorial notes:

  1. Line 276: b_k should appear in the chain of inequalities.
  2. Line 413: In citation [14] (Naveen Garg et al.), the journal information is missing.
Questions
  1. In the ORS model, the adversary observes the random prefix before choosing the order of the remaining elements. What would change if the adversary were also allowed to observe the algorithm's decisions during the online phase? It seems that the current results may continue to hold in this stronger setting, while providing a closer match to the motivation behind the model.

  2. Since the proposed model is closely related to the AOS model, it would be helpful to discuss whether techniques and algorithms developed for AOS can be adapted to this setting. In particular, can the results known for AOS be transferred to the proposed model, and if not, what are the main obstacles introduced by the fact that the sample is revealed online rather than upfront?

Limitations

yes

Paper formatting concerns

none

Final justification

I maintain my borderline reject recommendation. The technical contribution is somewhat modest, and the proofs appear to require only established techniques, without new insights or methodological contributions. Additionally, I am concerned that the work is not yet mature:

  1. The paper needs a more in-depth comparison with the AOS model, and the ORS model should be stated in its strongest form. Both points were clarified only during discussion.

  2. The paper studies few problems, which I find insufficient for a newly proposed model.

Overall, in its current form I believe this paper does not meet the bar for this conference.

1 comment

We thank the reviewers for their careful reading of our paper. We were pleased that all reviewers found our introduction of the online with a random sample (ORS) model to be interesting, natural, and well motivated. We believe the key advantage of the ORS model over the adversarial order with a sample (AOS) model is that algorithms in ORS are fully online, while also naturally interpolating between the random-order (RO) and adversarial-order settings. Although our primary contribution is introducing this model, we also believe the ORS model has substantial technical depth and can help better characterize the complexity of online problems.

We would like to further clarify the technical contribution of the ORS model to the beyond-worst-case literature, particularly given its similarity to the AOS model.

First, we strongly believe it is impossible to develop a formal connection between the AOS and ORS models, or a black-box reduction from one to the other for arbitrary problems (although such reductions may exist for certain classes of problems). This is because some problems are significantly easier in AOS than in ORS, while others are easier in ORS than in AOS. An example of the former is min-max (i.e., ℓ∞\ell_\infty-norm) correlation clustering (see this recent work: https://arxiv.org/pdf/2510.15076). Let pp denote the fraction of the input seen offline in the AOS model, and equivalently the fraction of the input arriving in random order in the ORS model. While it is possible to obtain an O((1/p6)log⁡n)O((1/p^6)\log n)-competitive algorithm for min-max correlation clustering in the AOS model, it is impossible to achieve even an Ω(n1/3)\Omega(n^{1/3})-competitive algorithm in the RO model, and therefore the same impossibility carries over to the ORS model. On the other hand, we show that for the secretary problem, the ORS model admits a tight competitive ratio of pe−ppe^{-p}, whereas the AOS model has a tight competitive ratio of 1/21/2 whenever p>1/2p>1/2. Overall, for some problems (e.g., min-max correlation clustering), requiring competitiveness on the full input is essentially a death sentence, whereas for others (e.g., secretary), the primary loss comes from only being able to exploit randomness on a portion of the input.

Second, we would like to highlight the technical novelty of our analyses. Existing work in the AOS model only relies on the fact that the sample provides a random snapshot of the underlying offline input. Interestingly, this property has previously been identified by Azar, Kleinberg, and Weinberg under the framework of order-oblivious algorithms. In contrast, our analyses for secretary (both upper and lower bounds) and (k,1)(k,1)-secretary require substantially more: they exploit the fact that the first pp-fraction of the input arrives in random order, not just that it forms a random sample of the offline input. This is the aspect that distinguishes our analyses from those in the AOS model.

Next, we address several individual questions.

Reviewer 8yiN asked:

"What would change if the adversary were also allowed to observe the algorithm's decisions during the online phase? It seems that the current results may continue to hold in this stronger setting, while providing a closer match to the motivation behind the model."

The reviewer is correct that our results continue to hold in this stronger model. Upon revisiting the description of our model, we realized that we did not state the adversary's power as clearly as we should have. The adversary may observe the random-order portion of the input, as well as the algorithm's decisions on that portion, before adaptively choosing the remaining adversarial portion of the input.

More broadly, however, it is not clear that these two models are equivalent for all online problems. As noted above, Azar, Kleinberg, and Weinberg introduced the notion of order-oblivious algorithms, which use the random-order portion only to obtain a random sample of the input. Allowing an adaptive adversary should not affect problems for which order-oblivious algorithms suffice, but this need not be true in general. We believe an interesting direction for future work is to determine whether there exists a problem that admits a strong impossibility result in the ORS model against an adaptive adversary, but not against an oblivious one.

Reviewer_tNZ7OpenReview ↗
Rating
4
Clarity
4
Confidence
4
Originality
2
Quality
3
Significance
2
Read review
Summary

This paper introduces the Online with Random Sample (ORS) model online algorithms. Unlike traditional competitive analysis that assumes adversarial ordering of items, the ORS model presents a pp-fraction sample of items in random order initially, followed by the remaining items in adversarial order. Crucially, the decision-maker can act on the initial random sample, distinguishing this model from others where initial samples are only observed or considered as historical data. The authors analyze three problems under this framework: the secretary problem, (k,1)(k,1)-secretary problem, and facility location, demonstrating how performance interpolates between fully adversarial and fully random regimes as pp varies from 0 to 1.

Strengths and weaknesses

Strengths

  • The paper addresses growing interest in models that move beyond worst-case competitive analysis, joining recent work on random sampling (e.g., "the secretary problem with independent sampling"), learning-augmented algorithms (e.g., "Improving online algorithms via ML predictions"), and enhanced decision-making power (e.g., "Lookback prophet inequalities").
  • The result for the secretary problem is optimal.
  • The results provide a nice interpolation between adversarial and random-order models across all three studied problems.
  • The paper is well-written, easy to read, and the proofs are rigorous and correct as far as I checked.

Weaknesses

  • While interesting, the model feels incremental compared to existing "beyond worst-case" frameworks, as previous models have studied order variants in online algorithms.
  • The algorithms and proofs largely adapt established techniques for these problems without introducing new insights or methodological contributions.
  • The authors provide no lower bound for the (k,1)(k,1)-secretary problem and only conjecture optimality of their algorithm.

======================================= I updated my score feom 3 to 4 after the authors rebuttal.

Questions
  • What are the fundamental barriers to proving lower bounds for the (k,1)-secretary problem in your model? Why cannot existing lower bound techniques for this problem be adapted to the ORS setting?
  • Can the authors explain what are the technical difficulties or novel contributions (ideas, proofs,...) in the paper beyond the model itself?
Limitations

yes

Paper formatting concerns

No concerns

Final justification

The authors explained in their rebuttal why the model is technically different from previously studied models, and explained that the lower bound for the (k,1) secretary problem is out of the scope of the current paper.

This partially addresses my concerns, but I still think the model is not conceptually novel enough in comparison to existing models, and the missing lower bound is still a limitation altough the objecitve of the paper is mainly to introduce the ORS model.

I slightly raised my score to reflect my new assessment of the paper.

1 comment

We thank the reviewers for their careful reading of our paper. We were pleased that all reviewers found our introduction of the online with a random sample (ORS) model to be interesting, natural, and well motivated. We believe the key advantage of the ORS model over the adversarial order with a sample (AOS) model is that algorithms in ORS are fully online, while also naturally interpolating between the random-order (RO) and adversarial-order settings. Although our primary contribution is introducing this model, we also believe the ORS model has substantial technical depth and can help better characterize the complexity of online problems.

We would like to further clarify the technical contribution of the ORS model to the beyond-worst-case literature, particularly given its similarity to the AOS model.

First, we strongly believe it is impossible to develop a formal connection between the AOS and ORS models, or a black-box reduction from one to the other for arbitrary problems (although such reductions may exist for certain classes of problems). This is because some problems are significantly easier in AOS than in ORS, while others are easier in ORS than in AOS. An example of the former is min-max (i.e., ℓ∞\ell_\infty-norm) correlation clustering (see this recent work: https://arxiv.org/pdf/2510.15076). Let pp denote the fraction of the input seen offline in the AOS model, and equivalently the fraction of the input arriving in random order in the ORS model. While it is possible to obtain an O(1/p6⋅log⁡n)O(1/p^6 \cdot \log n)-competitive algorithm for min-max correlation clustering in the AOS model, it is impossible to achieve even an Ω(n1/3)\Omega(n^{1/3})-competitive algorithm in the RO model, and therefore the same impossibility carries over to the ORS model. On the other hand, we show that for the secretary problem, the ORS model admits a tight competitive ratio of pe−ppe^{-p}, whereas the AOS model has a tight competitive ratio of 1/21/2 whenever p>1/2p>1/2. Overall, for some problems (e.g., min-max correlation clustering), requiring competitiveness on the full input is essentially a death sentence, whereas for others (e.g., secretary), the primary loss comes from only being able to exploit randomness on a portion of the input.

Second, we would like to highlight the technical novelty of our analyses. Existing work in the AOS model only relies on the fact that the sample provides a random snapshot of the underlying offline input. Interestingly, this property has previously been identified by Azar, Kleinberg, and Weinberg under the framework of order-oblivious algorithms. In contrast, our analyses for secretary (both upper and lower bounds) and (k,1)(k,1)-secretary require substantially more: they exploit the fact that the first pp-fraction of the input arrives in random order, not just that it forms a random sample of the offline input. This is the aspect that distinguishes our analyses from those in the AOS model.

Next, we address individual questions.

Reviewer tNZ7 expressed concern that the ORS model is only an incremental extension of previous frameworks, noting that "previous models have studied order variants in online algorithms."

We interpret "order variants" to refer to previous models that allow more general interleavings of the random-order/offline and adversarial-order components. We emphasize that these models either achieve substantially weaker guarantees than ours (recall that we assume the random-order portion arrives before the adversarial portion), or they require additional structural assumptions on the interleaving.

For example, in the Byzantine secretary problem studied by Bradac et al. (which we cite), all values are chosen adversarially, but are partitioned into "good" and "rogue" values. Good values arrive at uniformly random times, while rogue values arrive at adversarially chosen times. In this model, selecting a value comparable to the maximum good or rogue value is impossible. In fact, one can only compete against the second-largest good value, and even then their algorithm only achieves a (1−ϵ)(1-\epsilon) approximation provided it is allowed to select k≥poly⁡(1/ϵ,log⁡n)k \ge \operatorname{poly}(1/\epsilon,\log n) values.

One possible source of confusion is the semi-online bipartite matching model of Kumar et al., which we cite. This is an interleaved AOS model: its competitive ratio interpolates between the fully offline setting (not the RO model) and the adversarial online setting. It is therefore not an interpolation between random-order and adversarial-order components.

Upon acceptance, we will revise the related work section to make it clearer that the secretary problem under general interleavings has much stronger impossibility results. We will also emphasize that the work most closely related to ours is the AOS model, where the offline sample is observed first rather than being arbitrarily interleaved with the adversarial portion.

Reviewer tNZ7 also asked whether existing lower-bound techniques for (k,1)(k,1)-secretary could be adapted to the ORS setting. We believe this is likely the case. We would like to point the reviewer to the relevant work (https://i.cs.hku.hk/~hubert/soda15.pdf), and we think extending those techniques to the ORS model would make for an excellent future direction. Such an adaptation would be technically quite involved and is outside the scope of the present paper, whose primary goal is to introduce the model and begin exploring its implications on several fundamental problems in beyond-worst-case analysis.

Comments on the paper

1 comment
Meta-review

The authors introduce ORS model and show it's connection to AOS model. The ORS model that is introduced is natural.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.