Many online algorithms rely on randomness for their guarantees. A shopping assistant or a review queue that inspects candidates in a random order can provably end up with a near-best shortlist. Randomness is costly in deployed systems, though: it makes runs irreproducible, it is hard to audit, and in some settings truly random bits are expensive. The method of conditional expectations addresses this. It replaces random choices with deterministic ones made one at a time, each picked so that a computable upper bound on the chance of failure (a "pessimistic estimator") never increases. A recent result uses it to shrink the randomness needed for multiple-choice secretary selection from $O(\log n!)$ bits to $O(\log\log n)$ bits. In that problem, the system picks $k$ items from $n$ candidates it inspects one at a time, deciding on each item immediately. The output is a small, explicit family of inspection orders that keeps a competitive ratio of $1-4\sqrt{\log k/k}$ (Online Sampling and Decision Making with Low Entropy).
That guarantee assumes each item's value is fixed before the order is drawn. Human preferences change over time. Raters tire, tastes shift during a session, and priorities flip (Right Now, Wrong Then; Learning What Matters Now). Once an item's value depends on when it is inspected, it depends on its position in the order. Explicit low-randomness families are algebraically structured, since they are built from Reed–Solomon codes, and that structure may line up badly with structured drift such as trends, periodic fatigue, or change points. A fully random order has no structure for drift to exploit. This note proposes to measure that fragility and then repair it. The repair builds drift into the pessimistic estimator, so the explicit family is certified against a whole set of plausible drift profiles at the same time. It also proposes the first empirical evaluation of these derandomized constructions, which so far exist only on paper.
Core Claim
The claim has two parts. First, derandomization through conditional expectations quietly trades robustness to drift for determinism. A low-randomness family of inspection orders that is provably good for fixed values can fall measurably below a fully random order when values drift with inspection time. The gap should be largest when the drift has periodic or algebraic structure that correlates with the family's construction. Second, the trade is not forced. Suppose the pessimistic estimator sums failure bounds over a finite set $D$ of drift profiles as well as over the value-ranking events the original analysis tracks. The same greedy construction then yields a family that is good for every profile in $D$. Under a union bound, the extra cost should be only about $\log|D|$ additional bits.
The drift model is simple. Item $i$ inspected at position $p$ has realized value
$$v_i(p) = v_i \, g(p) \quad \text{or} \quad v_i(p) = v_i + h(p),$$
where $v_i$ is a fixed base value and $g$ or $h$ is a drift profile from $D$. Profiles include monotone decay to model fatigue, a step at a change point to model a preference flip, and sinusoidal or block-periodic shapes to model session effects.
The setting is chosen on purpose. In online convex optimization with switching costs on the line, the deterministic 2-competitive algorithm (A 2-Competitive Algorithm For Online Convex Optimization With Switching Costs) already holds against any adversarial sequence of costs. Drift is therefore already covered there, and convexity means playing the mean of a randomized strategy is a trivially deterministic choice. Derandomization is fragile only when the guarantee leans on a randomness assumption that drift can break, and random-order selection is the clearest case of that.
Research Program
The work has three parts.
The first part is an implementation and validation study of the low-randomness secretary construction. It covers wall-clock cost, the size of the hidden constants the original paper flags as open, and empirical competitive ratios on real value distributions with no drift. This directly fills the validation gap the research file documents for provable online algorithms.
The second part is a drift stress test. Each family of inspection orders is crossed with each drift profile, and we record the empirical ratio of the value the algorithm selects to the offline best $k$ under realized values. We also record the gap to a fully random order. Profiles are parameterized by period and amplitude. The aim is to find whether there are "resonant" profiles under which the explicit construction collapses while random orders do not. If such profiles exist, we characterize them analytically, starting with periods that match the field size used in the code construction.
The third part is the drift-aware construction. We extend the pessimistic estimator to a weighted sum over $(\text{event}, g)$ pairs for $g \in D$ and run the same sequential conditional-expectation procedure. We then report both the certified bound and the empirical ratio as $|D|$ grows. A held-out set of profiles not in $D$ tests whether certifying against a modest $D$ generalizes to nearby drift. This is the key test of whether the method is useful in practice rather than only on paper.
Baselines
The naive reference point is a fixed inspection order, such as arrival or index order, combined with the standard sample-then-threshold rule. It uses no randomness, so any provable method must beat it clearly. Under monotone drift we expect it to fail badly, by analogy with the near-zero success that fixed and heuristic baselines show under sudden shifts in Learning What Matters Now.
The strongest competitor is the fully random order with the same threshold rule. It is the object that derandomization tries to imitate, and it has no structure for drift to exploit. It runs on identical value sets and drift profiles and is averaged over many orders. No reported empirical result was found on Lacuna for random-order or low-randomness multiple-choice secretary under drift or on real data. The only reported figure is the theoretical ratio $1-4\sqrt{\log k/k}$ from Online Sampling and Decision Making with Low Entropy. Beating it means the drift-aware explicit family comes within a pre-registered margin of 1% in empirical ratio of fully random orders on every in-$D$ profile, while using at most $O(\log\log n + \log|D|)$ bits.
The second baseline is the original low-randomness family, unchanged. The third is a seeded random family of $m$ orders whose seed length matches ours. A seeded random family is a small set of orders drawn once with a pseudorandom generator; it uses the same number of bits but carries no certificate. The fourth baseline is an ablation that keeps our sequential construction but drops the drift terms from the estimator. This isolates the key ingredient: if the ablation matches the full method, drift-awareness adds nothing. All methods use the same threshold rule, value sets, and profiles. Where hyperparameters are tuned, such as $m$ for the seeded family, they get the same tuning budget.
Why not just…?
Why not just use full randomness? If random bits are cheap, this is the right answer, and the stress test will say so by reporting the price of determinism directly. The proposal targets the regime that motivates the low-randomness work in the first place: auditable, reproducible selection. There, the question is whether determinism can be had without a loss under drift.
Why not just draw a small random family with a seed? This is the real threat. A union bound shows that $m$ random orders are good for any fixed finite set of drift profiles with high probability, and they may match our construction empirically. The two differ in that our family carries a deterministic certificate, while the seeded family is good only with probability. Its failures under resonant drift are rare and hard to detect in advance. The experiments compare worst case over profiles, not average, across many seeds. If seeded families are never worse in the worst case, we will report that the certificate's value is purely formal.
Why not just make the stopping rule drift-aware, rescaling values by an estimated trend in the style of the recency-weighted NS-DPO from Right Now, Wrong Then? This addresses a different failure. Rescaling corrects the threshold but not the correlation between the order and the drift. Estimation lags at change points, which is the same problem that NS-DPO's dependence on an unknown variation budget creates. We include a trend-corrected threshold variant on top of every order family to separate the two effects.
Proposed Experiments
Values come from three sources. The first is the New Yorker Caption Ranking Dataset, with over 250 million ratings; the task is to shortlist $k$ captions from a contest's submissions for human review. The second is reward-model scores on UltraFeedback responses, using the preference-flip change-point protocol from Right Now, Wrong Then to define step profiles. The third is WebShop products (WebShop), scored with multi-attribute weights that drift as in AcCoRD's evolving user preferences (AcCoRD). Synthetic adversarial values serve as a control. If time-stamped ratings in the caption data show real within-session drift, we fit $g$ to it. If not, drift is injected and labeled as such.
We sweep $n$ from $10^3$ to $10^6$ and $k$ from 2 to the limit $\log n/\log\log n$. The metrics are empirical competitive ratio, worst-case ratio across profiles, gap to random order, bits of randomness, and construction time.
The decisive checks are three. If there is no profile where the original family loses more than 1% to random orders, the fragility claim is false and the work reduces to the validation study. If the ablation matches the drift-aware estimator, the mechanism is unnecessary. If seeded random families match our worst case at equal bits, the contribution is limited to certification.
References
- Online Sampling and Decision Making with Low Entropy
- Right Now, Wrong Then: Non-Stationary Direct Preference Optimization under Preference Drift
- Learning What Matters Now: Dynamic Preference Inference under Contextual Shifts
- A 2-Competitive Algorithm For Online Convex Optimization With Switching Costs
- WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents
- AcCoRD: Evaluating User-Agent Collaboration Under Realistic User Preference Dynamics