Contextual Search in the Presence of Adversarial Corruptions

Akshay Krishnamurthy, Thodoris Lykouris, Chara Podimata, Robert E. Schapire · DOI

Abstract

Contextual search is a multidimensional generalization of binary search that models settings such as feature-based dynamic pricing. While standard algorithms for this problem assume a homogeneous and accurate response model, real-world data is often subject to adversarial corruptions. This paper introduces the first robust algorithms for contextual search that maintain near-optimal performance in clean environments and degrade gracefully as the number of corruptions increases. We present two primary approaches: a geometric method based on multidimensional binary search and a simpler approach based on online gradient descent.

Introduction

In the contextual search problem, a learner aims to identify a hidden vector $w^*$ in $d$-dimensional space. In each round $t$, the learner is presented with a context $x_t$ and must predict a value $y_t$. The learner then receives binary feedback indicating whether $y_t$ was greater than or less than the true value $\langle w^*, x_t \rangle$. This framework captures many practical applications, most notably dynamic pricing, where a seller suggests a price for an item based on its features and observes whether a customer makes a purchase.

Traditional multidimensional binary search algorithms are highly efficient but notoriously brittle. Because they use each piece of feedback to permanently prune the search space, a single corrupted response—whether due to a data glitch or non-rational agent behavior—can lead the algorithm to discard the true parameter $w^*$ entirely. This paper addresses the challenge of making contextual search robust against an unknown number of adversarial corruptions $C$ within $T$ total rounds.

Algorithmic Frameworks

1. Corrupted Projected Volume (CorPV.AC)

The primary contribution is the CorPV.AC algorithm, which robustifies the ProjectedVolume method through three key innovations:

  • Epoch-based Updates: Rather than updating the knowledge set (the set of possible $w^*$ values) after every query, the algorithm aggregates queries into epochs. This prevents a single malicious response from immediately derailing the search.
  • Separating Cuts via Carathéodory’s Theorem: At the end of an epoch, the algorithm identifies a "protected region" consistent with the majority of feedback. Using the Perceptron algorithm and Carathéodory’s theorem, it identifies a single "safe" hyperplane cut. This cut is guaranteed to shrink the search space without excluding the true ground truth, even if a subset of the epoch's feedback was corrupted.
  • Multi-layered Robustness: Since the total number of corruptions $C$ is typically unknown, the algorithm employs a multi-layered structure. It runs several instances of the search in parallel, each assuming a different corruption budget. This allows the system to "correct" the trajectory of less robust layers using information from more conservative ones.

2. Contextual Search via Gradient Descent (ContextualSearch.GD)

As a more computationally efficient alternative, the authors propose a gradient-based approach. This method treats binary feedback as a subgradient of a proxy loss function and applies Online Gradient Descent (OGD). While this approach is simpler to implement and runs in polynomial time, it yields a higher regret bound than the geometric method, failing to achieve the logarithmic efficiency characteristic of binary search.

Theoretical Results and Regret Analysis

The performance of these algorithms is measured by regret, defined as the difference between the loss incurred by the algorithm and the loss of the best fixed parameter in hindsight. The paper focuses on the $\varepsilon$-ball loss, a standard metric for accuracy in search problems.

  • Graceful Degradation: The CorPV.AC algorithm achieves a regret bound of $O(C \cdot d^3 \cdot \text{poly log}(T))$. In the absence of noise ($C=0$), the regret is logarithmic in $T$, which is near-optimal. As corruptions increase, the error grows only linearly with $C$, demonstrating "graceful degradation."
  • Efficiency Trade-offs: While CorPV.AC offers superior regret bounds, its runtime is quasipolynomial. Conversely, the ContextualSearch.GD approach provides a polynomial-time guarantee but with a regret bound of $O(\sqrt{T} + C)$.

Discussion and Future Work

This work provides the first robust guarantees for contextual search under adversarial noise, bridging the gap between theoretical binary search and practical, noisy data environments. However, two primary challenges remain:

  1. Computational Complexity: Achieving logarithmic regret with a fully polynomial-time algorithm remains an open question.
  2. Strategic Agents: The current model assumes myopic agents. Future research could investigate settings where agents behave strategically, providing false feedback specifically to manipulate the learner's future predictions (e.g., a buyer lying about their valuation to drive down future prices).

Summary updated

BibTeX
@article{krishnamurthy2023contextual,
  author = {Akshay Krishnamurthy and Thodoris Lykouris and Chara Podimata and Robert E. Schapire},
  title = {{Contextual Search in the Presence of Adversarial Corruptions}},
  journal = {Oper. Res.},
  year = {2023},
  doi = {10.1287/opre.2022.2365},
}
Figure