[Paper Review] From Contextual Data to Newsvendor Decisions: On the Actual Performance of Data-Driven Algorithms
This paper introduces a novel optimization-based framework to exactly characterize the worst-case regret of Weighted Empirical Risk Minimization (WERM) policies in contextual Newsvendor problems, revealing that performance can peak at finite sample sizes and that data relevance critically shapes learning curves—contradicting conventional concentration-based bounds that overstate the need for large datasets.
In this work, we study how the relevance/quality and quantity of past data influence performance by analyzing a contextual Newsvendor problem, in which a decision-maker trades off between underage and overage costs under uncertain demand. We consider a setting in which past demands observed under ``close by'' contexts come from close by distributions and analyze the performance of data-driven algorithms through a notion of context-dependent worst-case expected regret. We analyze the broad class of Weighted Empirical Risk Minimization (WERM) policies which weigh past data according to their similarity in the contextual space. This class includes classical policies such as ERM, k-Nearest Neighbors and kernel-based policies. Our main methodological contribution is to characterize exactly the worst-case regret of any WERM policy on any given configuration of contexts. To the best of our knowledge, this provides the first understanding of tight performance guarantees in any contextual decision-making problem, with past literature focusing on upper bounds via concentration inequalities. We instead take an optimization approach, and isolate a structure in the Newsvendor loss function that allows to reduce the infinite-dimensional optimization problem over worst-case distributions to a simple line search. This in turn allows us to unveil fundamental insights that were obfuscated by previous general-purpose bounds. We characterize actual guaranteed performance as a function of the contexts, as well as granular insights on the learning curve of algorithms.
Motivation & Objective
- To understand how data quantity and relevance impact the performance of data-driven policies in contextual decision-making.
- To develop a precise, non-asymptotic performance guarantee for WERM policies under context-dependent distribution shifts.
- To challenge prevailing concentration-based upper bounds by showing they misrepresent actual learning curves in contextual Newsvendor problems.
- To quantify the effective sample size and optimal parameter choice for ERM, k-NN, and kernel-based policies under heterogeneous data relevance.
- To demonstrate that ERM can achieve good performance with few samples even when previous bounds suggest otherwise.
Proposed method
- Formalize a local condition linking context dissimilarity to Kolmogorov distance between demand distributions.
- Define worst-case regret as the expected loss difference between policy action and optimal action under adversarial distributions satisfying the local condition.
- Use an optimization approach—'learning without concentration'—to reduce the infinite-dimensional worst-case distribution problem to a one-dimensional line search.
- Characterize exact worst-case regret for any WERM policy by exploiting structural properties of the Newsvendor loss function.
- Derive closed-form expressions for the minimal worst-case regret across WERM subclasses, including ERM and k-NN-ERM.
- Calibrate performance using effective sample size proxies such as $1/(1-γ)$ for exponential weighting and $k^*$ for k-NN.
Experimental results
Research questions
- RQ1How does the dissimilarity between past contexts and the out-of-sample context affect the worst-case regret of data-driven policies?
- RQ2Can we derive exact, tight performance guarantees for WERM policies in contextual Newsvendor problems, rather than relying on upper bounds?
- RQ3Does the worst-case regret of ERM decrease monotonically with sample size, or can it deteriorate with large datasets?
- RQ4What is the effective sample size of a WERM policy under heterogeneous data relevance?
- RQ5How do the optimal parameters of ERM and k-NN-ERM vary with context dissimilarity and data relevance?
Key findings
- The worst-case regret of ERM reaches a global minimum at a finite sample size and then increases with more data, contradicting monotonic improvement implied by concentration-based bounds.
- For $\Delta = 0.001$, the optimal k-NN-ERM uses only $k^* = 27$ samples, indicating a much smaller effective sample size than suggested by uniform dissimilarity assumptions.
- The effective sample size proxy $1/(1 - \gamma^*)$ for exponential weighting is comparable to $k^*$, with $1/(1 - \gamma^*) = 20$ when $k^* = 27$ at $\Delta = 0.001$.
- When data relevance is heterogeneous, the number of samples used by k-NN-ERM is smaller than in homogeneous settings, showing that low-dissimilarity data dominates performance.
- The minimal worst-case regret for k-NN-ERM is $0.014$ at $\Delta = 0.001$, outperforming ERM’s $0.016$ under the same conditions.
- The analysis reveals that previous upper bounds are artifacts of the analysis method and do not reflect the true shape of the learning curve, especially for ERM.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.